
.pod-detail-column {
  position: relative;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 16px;
  padding: 0;
  overflow: hidden;
}

.is-hidden {
  display: none !important;
}

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

.pod-column-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  padding: 18px 20px 0 20px;
}

.pod-column-body {
  padding: 16px 20px 24px 20px;
}

.pod-design-template-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.pod-design-template-label {
  font-size: 0.95rem;
  color: #1f2937;
}

.pod-design-template-label.is-missing {
  color: #9ca3af;
}

.pod-design-sync-inline {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 12px 0 4px;
}

.pod-design-sync-inline__message {
  font-size: 0.88rem;
  color: #475467;
  min-height: 1.2em;
}

.pod-design-sync-inline__message.is-success {
  color: #15803d;
}

.pod-design-sync-inline__message.is-error {
  color: #b91c1c;
}

.pod-column-toggle {
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #fff;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f2937;
}

.icon-button {
  border: none;
  background: rgba(148, 163, 184, 0.2);
  color: #1f2937;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.icon-button:hover {
  background: rgba(59, 130, 246, 0.85);
  color: #fff;
}

.icon-button .icon {
  font-size: 1rem;
  line-height: 1;
}

.pod-detail-column.is-collapsed .pod-column-body {
  display: none;
}

.pod-detail-column.is-collapsed .pod-column-toggle {
  background: #1d4ed8;
  color: #fff;
  border-color: #1d4ed8;
}

.pod-detail-column.is-collapsed {
  min-width: 68px;
  max-width: 68px;
  flex: 0 0 68px;
  padding: 0;
}

.pod-detail-column.is-collapsed .pod-column-header {
  justify-content: center;
  padding: 14px;
}

.pod-detail-column.is-collapsed .pod-column-header div {
  display: none;
}

.pod-hidden-file {
  display: none;
}

:root {
  color-scheme: light;
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background-color: #f5f7fb;
  color: #1d2330;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background-color: #f5f7fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 24px;
}

.app-header {
  background: linear-gradient(135deg, #111827, #1f2937);
  color: #fff;
  padding: 18px 0;
  box-shadow: 0 2px 12px rgba(17, 24, 39, 0.25);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  font-size: 1.25rem;
  font-weight: 600;
  text-decoration: none;
  color: inherit;
}

.subtitle {
  display: block;
  font-size: 0.85rem;
  margin-top: 4px;
  opacity: 0.75;
}

.nav-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.pattern-submit-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 20px;
}

.pattern-timer {
  font-weight: 600;
  color: #cbd5f5;
  font-size: 0.95rem;
}

.nav-header-link {
  color: #cbd5f5;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 12px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.nav-header-link:hover {
  background: rgba(148, 163, 184, 0.2);
}

.nav-header-link.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.nav-link-trends {
  background: #065f46;
  color: #fff;
  box-shadow: 0 6px 14px -6px rgba(6, 95, 70, 0.6);
}

.nav-link-trends:hover,
.nav-link-trends.active {
  background: #064e3b;
  color: #fff;
}

.nav-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  min-width: 20px;
}

.nav-badge.is-hidden {
  display: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-toggle {
  border: none;
  background: transparent;
  font: inherit;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.nav-dropdown-toggle::after {
  content: "▾";
  font-size: 0.75rem;
  transform: translateY(1px);
}

.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  background: #111827;
  border-radius: 12px;
  padding: 10px;
  box-shadow: 0 18px 30px -18px rgba(15, 23, 42, 0.6);
  min-width: 180px;
  z-index: 10;
}

.nav-dropdown.is-open .nav-dropdown-menu,
.nav-dropdown:focus-within .nav-dropdown-menu {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-dropdown-item {
  color: #cbd5f5;
  text-decoration: none;
  font-weight: 600;
  padding: 8px 10px;
  border-radius: 8px;
  transition: background 0.15s ease;
  display: block;
}

.nav-dropdown-item:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #fff;
}

.nav-dropdown-item.active {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.image-studio .panel {
  min-height: 70vh;
}

.image-studio-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.image-studio-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.image-dropzone {
  border: 2px dashed rgba(148, 163, 184, 0.7);
  padding: 24px;
  border-radius: 18px;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.image-dropzone.is-hover {
  border-color: #1d4ed8;
  background: rgba(59, 130, 246, 0.08);
}

.image-dropzone-hint {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.image-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}

.image-preview-card,
.image-cropper-card {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 15px 30px -20px rgba(15, 23, 42, 0.35);
}

.image-crop-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.image-preview {
  background: #f8fafc;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  user-select: none;
}

.image-preview img,
.image-preview canvas {
  max-width: 100%;
  max-height: 380px;
  display: block;
}

.crop-overlay {
  position: absolute;
  border: 2px solid #2563eb;
  background: rgba(37, 99, 235, 0.25);
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.25);
  border-radius: 12px;
  pointer-events: none;
}

.crop-rotate-handle {
  position: absolute;
  top: -26px;
  left: 50%;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #2563eb;
  background: #fff;
  transform: translateX(-50%);
  box-shadow: 0 4px 10px rgba(15, 23, 42, 0.2);
  cursor: grab;
  pointer-events: auto;
}

.crop-rotate-handle::after {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  width: 2px;
  height: 14px;
  background: #2563eb;
  transform: translateX(-50%);
}

.crop-rotate-handle:active {
  cursor: grabbing;
}

.image-meta {
  margin-top: 10px;
  font-size: 0.88rem;
  color: #475569;
}

.selection-meta {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #1d4ed8;
  font-weight: 600;
}

.image-crop-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.image-crop-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.image-cropper-card select {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 6px 8px;
  background: #fff;
}

.image-crop-form input {
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  padding: 6px 8px;
}

.image-crop-actions,
.image-result-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nav-dropdown.active > .nav-header-link {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  border-radius: 10px;
}

.nav-dropdown-menu--wide {
  min-width: 280px;
  padding: 14px;
  gap: 12px;
}

.nav-search-form,
.nav-inline-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.nav-search-form label,
.nav-inline-form label {
  font-size: 0.78rem;
  color: rgba(226, 232, 240, 0.9);
}

.nav-search-row,
.nav-inline-row {
  display: flex;
  gap: 6px;
}

.nav-search-row input,
.nav-inline-row input[type="text"] {
  flex: 1;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 8px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.65);
  color: #e2e8f0;
}

.nav-search-row input::placeholder,
.nav-inline-row input[type="text"]::placeholder {
  color: rgba(203, 213, 225, 0.7);
}

.nav-dropdown-item.nav-dropdown-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(99, 102, 241, 0.45);
  background: rgba(67, 56, 202, 0.18);
  color: #e0e7ff;
  font-weight: 600;
  padding: 10px;
}

.nav-dropdown-item.nav-dropdown-cta:hover {
  background: rgba(67, 56, 202, 0.32);
  color: #fff;
}

main {
  flex: 1;
  width: 100%;
  padding-top: 32px;
  padding-bottom: 48px;
  padding-left: 32px;
  padding-right: 32px;
}

.panel {
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 18px 35px -20px rgba(17, 24, 39, 0.35);
  overflow: hidden;
}

.panel-header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid rgba(17, 24, 39, 0.08);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.panel-header-actions {
  display: inline-flex;
  gap: 10px;
  align-items: center;
}

.panel-header h1 {
  margin: 0;
  font-size: 1.8rem;
}

.panel-body {
  padding: 24px 32px 32px;
}

.panel-subsection {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(17, 24, 39, 0.08);
}

.summary-cards {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.summary-card {
  background: rgba(255, 255, 255, 0.12);
  padding: 12px 18px;
  border-radius: 12px;
  min-width: 90px;
  text-align: center;
  color: #f9fafb;
  backdrop-filter: blur(8px);
}

.summary-label {
  font-size: 0.75rem;
  opacity: 0.85;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.summary-value {
  font-size: 1.4rem;
  font-weight: 600;
}

.filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 20px;
}

.filter-form input,
.filter-form select {
  padding: 9px 12px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
}

.filter-inline {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
}

thead {
  background: #f1f5f9;
  font-size: 0.85rem;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

th, td {
  padding: 12px 16px;
  text-align: left;
}

tbody tr:nth-child(even) {
  background: #fafcff;
}

tbody tr:hover {
  background: #eef2ff;
}

.empty {
  padding: 32px;
  text-align: center;
  color: #64748b;
}

.table-responsive {
  overflow-x: auto;
}

.shop-bulk-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.shop-filter-controls {
  margin: 24px 0 12px;
  padding: 12px 16px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 10px;
  background: #f8fafc;
}

.hide-dead-form {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.hide-dead-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.shop-selection-tools {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-filter-pill {
  background: #1d4ed8;
  color: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.shop-add-section {
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shop-add-section h2 {
  margin: 0;
  font-size: 1.1rem;
}

.shop-add-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.shop-add-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-add-form textarea {
  width: 100%;
  min-height: 160px;
  padding: 12px 14px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 10px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.9rem;
  background: #f8fafc;
}

.shop-add-form textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
  background: #fff;
}

.shop-add-form .form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.shop-auth-hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.shop-auth-hint a {
  margin-left: 4px;
  color: #2563eb;
  text-decoration: none;
  word-break: break-all;
}

.shop-auth-hint a:hover {
  text-decoration: underline;
}

.shop-auth-copy-message {
  font-size: 0.8rem;
  color: #0f172a;
  margin-left: 8px;
}

.shop-auth-copy-message.is-success {
  color: #16a34a;
}

.shop-auth-copy-message.is-error {
  color: #dc2626;
}

.shop-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.shop-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.shop-type-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.shop-type-tabs .btn.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

.shop-detail-panel .panel-header {
  align-items: flex-start;
  gap: 16px;
}

.shop-view-toggle {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.shop-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.shop-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-bottom: 16px;
}

.shop-summary-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 16px;
  background: #f8fafc;
}

.shop-summary-card h3 {
  margin-top: 0;
  margin-bottom: 12px;
  font-size: 1rem;
}

.shop-summary-card dl {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px 16px;
}

.shop-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 999px;
  background: #f8fafc;
  font-weight: 600;
  color: #0f172a;
}

.shop-toggle-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.shop-toggle-slider {
  position: relative;
  width: 52px;
  height: 28px;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.2s ease;
  flex-shrink: 0;
}

.shop-toggle-slider::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.15);
  transition: transform 0.2s ease;
}

.shop-toggle-input:checked + .shop-toggle-slider {
  background: #1d4ed8;
}

.shop-toggle-input:checked + .shop-toggle-slider::after {
  transform: translateX(24px);
}

.shop-toggle-input:disabled + .shop-toggle-slider {
  opacity: 0.6;
}
.shop-nav-buttons {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.shop-summary-card dl div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-summary-card dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #94a3b8;
}

.shop-summary-card dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.shop-rename-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.shop-rename-row {
  display: flex;
  gap: 8px;
}

.shop-rename-row input {
  flex: 1;
}

.shop-info-badge {
  font-size: 0.85rem;
  color: #0f172a;
  background: rgba(37, 99, 235, 0.08);
  padding: 8px 12px;
  border-radius: 8px;
}

.shopify-config-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.shopify-config-form label {
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}

.shopify-config-form input {
  width: 100%;
}

.template-description-preview {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #475569;
  white-space: pre-wrap;
}

.template-color-list {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #475569;
}

.template-color-list .inline-list {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.template-color-list .color-pill {
  display: inline-block;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #0f172a;
  font-weight: 600;
  font-size: 0.78rem;
}

.shop-flash-sale-note {
  margin-top: 0;
}

.shop-product-stats {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  color: #6b7280;
}

.shop-product-stats strong {
  color: #111827;
}

.shop-product-stats .stat-divider {
  color: #cbd5f5;
}

.shop-product-search {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.shop-product-search__keywords {
  display: flex;
  gap: 8px;
  flex: 1;
  min-width: 280px;
}

.shop-product-search input[type="text"] {
  flex: 1;
  min-width: 220px;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font-size: 0.95rem;
}

.shop-product-search .btn-link {
  padding: 6px 10px;
}

.shop-product-search__page-size {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #475569;
}

.shop-product-search select {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font-size: 0.9rem;
  background: #fff;
}

.shop-product-search__controls {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.btn.is-loading {
  opacity: 0.7;
  pointer-events: none;
  position: relative;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-top-color: transparent;
  animation: button-spinner 0.6s linear infinite;
  transform: translateY(-50%);
}

@keyframes button-spinner {
  to {
    transform: translateY(-50%) rotate(360deg);
  }
}

.bulk-actions-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: rgba(59, 130, 246, 0.08);
  border: 1px solid rgba(59, 130, 246, 0.2);
  border-radius: 10px;
  margin-bottom: 10px;
  flex-wrap: wrap;
  gap: 10px;
}

.bulk-actions-bar__info {
  font-size: 0.9rem;
  color: #1d4ed8;
  font-weight: 600;
}

.bulk-actions-bar__buttons {
  display: flex;
  gap: 8px;
  align-items: center;
}

.bulk-actions-bar__buttons .inline-form {
  margin: 0;
  display: inline-flex;
  align-items: center;
}

.bulk-actions-bar__buttons .btn[disabled] {
  opacity: 0.6;
  pointer-events: none;
}

.shop-product-select {
  width: 68px;
  text-align: center;
}

.select-all-label {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  font-size: 0.75rem;
  color: #475569;
}

.shop-product-checkbox {
  width: 18px;
  height: 18px;
}

.shop-products-table img {
  width: 90px;
  max-height: 90px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.shop-products-table .shop-product-thumb {
  width: 120px;
}

.shop-product-row--history-1 {
  background-color: #ecfdf3 !important;
}

.shop-product-row--history-1:nth-child(even) {
  background-color: #d6f7e3 !important;
}

.shop-product-row--history-2 {
  background-color: #fff7ed !important;
}

.shop-product-row--history-2:nth-child(even) {
  background-color: #ffe9d5 !important;
}

.shop-product-row--history-3 {
  background-color: #fef2f2 !important;
}

.shop-product-row--history-3:nth-child(even) {
  background-color: #fde0e0 !important;
}

.shop-pagination {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 10px;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.9rem;
  color: #475569;
}

.shop-pagination__nav {
  display: flex;
  align-items: center;
  gap: 8px;
}

.shop-product-variant-panel {
  margin-top: 8px;
  font-size: 0.85rem;
}

.shop-product-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.price-history-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 320px;
  overflow-y: auto;
  margin-top: 8px;
}

.price-history-item {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 10px;
  padding: 8px 10px;
  background: #fff;
}

.price-history-item__header {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  margin-bottom: 4px;
  color: #475569;
}

.price-history-item__header strong {
  color: #0f172a;
}

.price-history-item__body {
  font-size: 0.82rem;
  color: #0f172a;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.shop-product-variant-panel > summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 600;
  list-style: none;
}

.variant-color-groups {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.variant-color-group > summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
  list-style: none;
}

.variant-size-list {
  margin-top: 4px;
  padding-left: 8px;
}

.variant-size-list table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.variant-size-list th,
.variant-size-list td {
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  padding: 4px 6px;
  text-align: left;
}

.shop-product-delete-form {
  margin-top: 6px;
}

.flash-sale-template-meta {
  display: block;
  margin-top: 6px;
  font-size: 0.78rem;
  color: #64748b;
}

.flash-sale-template-card {
  margin: 24px 0;
  padding: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  background: #f8fafc;
}

.flash-sale-template-card h2 {
  margin-top: 0;
}

.flash-sale-template-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.flash-sale-file-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.flash-sale-file-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.flash-sale-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1200;
}

.flash-sale-modal:not(.is-visible),
.flash-sale-modal[hidden] {
  display: none;
}

.flash-sale-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.flash-sale-modal__dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  padding: 24px;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 25px 45px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  gap: 16px;
  z-index: 1;
}

.flash-sale-modal__header h3 {
  margin: 0;
  font-size: 1.1rem;
  color: #0f172a;
}

.flash-sale-modal__header p {
  margin: 4px 0 0;
  color: #475569;
  font-size: 0.92rem;
}

.flash-sale-modal__body label {
  font-weight: 600;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: block;
  margin-bottom: 6px;
}

.flash-sale-modal__body input {
  width: 100%;
}

.flash-sale-modal__hint {
  margin-top: 8px;
  font-size: 0.85rem;
  color: #475569;
}

.flash-sale-modal__error {
  min-height: 1rem;
  margin-top: 8px;
  font-size: 0.85rem;
  color: #dc2626;
}

.flash-sale-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.shop-name-input {
  width: 100%;
  max-width: 240px;
  padding: 9px 12px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
}

.shop-warehouse-input {
  width: 160px;
  padding: 8px 10px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 10px;
  font-size: 0.9rem;
  background: #fff;
}

.shop-warehouse-input:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.2);
}

.shop-limit-display {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}

.shop-limit-display.is-full {
  color: #b91c1c;
}

.shop-limit-count {
  font-variant-numeric: tabular-nums;
}

.shop-limit-chip {
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(14, 165, 233, 0.15);
  color: #0369a1;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shop-limit-chip.is-full {
  background: rgba(220, 38, 38, 0.12);
  color: #b91c1c;
}

.shop-limit-input {
  margin-top: 6px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #475569;
}

.shop-limit-field {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 8px;
  font-size: 0.9rem;
}

.shop-limit-field:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.pod-copy-template-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
}

.pod-copy-template-modal.is-hidden {
  display: none;
}

.pod-copy-template-backdrop {
  position: absolute;
  inset: 0;
}

.pod-copy-template-dialog {
  position: relative;
  width: min(420px, calc(100% - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  z-index: 1;
}

.pod-copy-template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.pod-copy-template-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pod-copy-product-info {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pod-copy-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pod-copy-product-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pod-copy-product-title {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.pod-copy-product-shop {
  margin: 2px 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.pod-color-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1020;
}

.pod-color-modal.is-hidden {
  display: none;
}

.pod-color-modal__backdrop {
  position: absolute;
  inset: 0;
}

.pod-color-modal__dialog {
  position: relative;
  width: min(720px, calc(100% - 32px));
  max-height: 90vh;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 35px 90px rgba(15, 23, 42, 0.4);
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.pod-color-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pod-color-modal__helper {
  margin: 8px 0 0;
  color: #475569;
  font-size: 0.95rem;
}

.pod-color-modal__message {
  margin-top: 8px;
  font-size: 0.92rem;
  color: #475569;
}

.pod-color-modal__list {
  margin: 16px 0;
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pod-color-group {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 12px 14px;
}

.pod-color-group__title {
  margin: 0 0 8px;
  font-weight: 600;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.pod-color-group__note {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.pod-color-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pod-color-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
}

.pod-color-option input {
  margin: 0;
}

.pod-color-group__message {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #dc2626;
}

.pod-color-group.has-error {
  border-color: #f87171;
}

.pod-color-modal__footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 8px;
}

.pod-copy-select-hint {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.pod-copy-template-body input[type="search"] {
  width: 100%;
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.pod-copy-template-body input[type="search"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.pod-copy-template-message {
  min-height: 1rem;
  font-size: 0.9rem;
  color: #0f172a;
}

.pod-copy-template-message.is-error {
  color: #dc2626;
}

.pod-copy-template-list {
  max-height: 320px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pod-copy-template-options {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pod-copy-template-footer {
  margin-top: 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.pod-copy-template-footer .btn {
  min-width: 150px;
}

.pod-copy-template-footer .btn-link {
  min-width: auto;
}

.pod-sku-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1010;
}

.pod-sku-modal.is-hidden {
  display: none;
}

.pod-sku-modal-backdrop {
  position: absolute;
  inset: 0;
}

.pod-sku-modal-dialog {
  position: relative;
  width: min(380px, calc(100% - 32px));
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.35);
  z-index: 1;
}

.pod-sku-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.pod-sku-modal-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pod-sku-modal-product {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.pod-sku-modal-message {
  min-height: 1.1rem;
  font-size: 0.9rem;
  color: #0f172a;
}

.pod-sku-modal-message.is-error {
  color: #dc2626;
}

.pod-sku-modal-message.is-success {
  color: #16a34a;
}

.pod-sku-modal-footer {
  margin-top: 16px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.pod-copy-shop-option {
  width: 100%;
  text-align: left;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #f8fafc;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background 0.2s ease, border 0.2s ease, box-shadow 0.2s ease;
}

.pod-copy-shop-option.is-selected {
  background: #e0f2fe;
  border-color: #38bdf8;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.25);
}
.pod-copy-shop-option.is-connected {
  background: #064e3b;
  border-color: #064e3b;
  color: #ecfccb;
}
.pod-copy-shop-option.is-connected .pod-copy-shop-option-label {
  color: #ecfccb;
}
.pod-copy-shop-option.is-connected .pod-copy-shop-option-meta {
  color: #bbf7d0;
}
.pod-copy-shop-option.is-connected.is-selected {
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.35);
}

.pod-copy-shop-option:hover,
.pod-copy-shop-option:focus {
  background: #e0f2fe;
  border-color: #38bdf8;
}
.pod-copy-shop-option.is-connected:hover,
.pod-copy-shop-option.is-connected:focus {
  background: #065f46;
  border-color: #065f46;
}

.pod-copy-shop-option-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  flex: 1;
}

.pod-copy-shop-option-label {
  font-weight: 600;
  color: #0f172a;
}

.pod-copy-shop-option-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.pod-copy-shop-option-check {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  border: 2px solid rgba(37, 99, 235, 0.35);
  color: rgba(37, 99, 235, 0.6);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
  font-weight: 700;
  transform: scale(0.65);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease, background 0.2s ease, color 0.2s ease, border 0.2s ease;
}

.pod-copy-shop-option.is-selected .pod-copy-shop-option-check {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  opacity: 1;
  transform: scale(1);
  box-shadow: 0 8px 16px rgba(37, 99, 235, 0.35);
}

.pod-copy-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
  text-align: center;
}

.pod-copy-template-footer .btn.is-loading {
  position: relative;
  color: transparent;
  pointer-events: none;
}

.pod-copy-template-footer .btn.is-loading::after {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-top-color: #fff;
  animation: pod-copy-spinner 0.85s linear infinite;
}

.shop-name-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.shop-status-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.shop-status-switch {
  position: relative;
  width: 42px;
  height: 22px;
  display: inline-block;
}

.shop-status-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.shop-status-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: rgba(148, 163, 184, 0.6);
  border-radius: 999px;
  transition: background 0.2s ease;
}

.shop-status-slider::before {
  content: "";
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  top: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s ease;
  box-shadow: 0 2px 4px rgba(15, 23, 42, 0.2);
}

.shop-status-switch input:checked + .shop-status-slider {
  background: #22c55e;
}

.shop-status-switch input:checked + .shop-status-slider::before {
  transform: translateX(20px);
}

.shop-status-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #475569;
}

.shop-status-label.is-live {
  color: #16a34a;
}

.shop-status-label.is-die {
  color: #dc2626;
}

.page-full {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.page-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.page-header-main h1 {
  margin: 0;
}

.page-header-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.stat-chip {
  background: #f1f5f9;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 16px;
  display: flex;
  gap: 12px;
  align-items: center;
}

.stat-chip .label {
  font-weight: 600;
  color: #1f2937;
}

.stat-chip .value {
  font-size: 1.1rem;
  color: #2563eb;
  font-weight: 700;
}

.trendsi-search-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  padding: 16px 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.size-chart-panel {
  margin-top: 16px;
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.size-chart-panel header h2 {
  margin: 0;
  font-size: 1rem;
}

.size-chart-panel header p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.size-chart-library {
  display: grid;
  gap: 24px;
}

.size-chart-form-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.size-chart-upload-form .form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.size-chart-upload-form input[type="text"],
.size-chart-upload-form input[type="file"] {
  width: 100%;
}

.size-chart-gallery {
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gallery-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 8px;
  align-items: baseline;
}

.size-chart-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.size-chart-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
}

.size-chart-preview {
  background: #fff;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.05);
  padding: 8px;
  display: flex;
  justify-content: center;
  max-height: 360px;
  overflow: hidden;
}

.size-chart-preview img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  object-fit: contain;
}

.size-chart-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.size-chart-layout {
  display: grid;
  gap: 24px;
  grid-template-columns: 1.3fr 1fr;
  align-items: start;
}

.size-chart-sync {
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.size-chart-sync header {
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.size-chart-editor {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.size-chart-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: 1fr;
}

.size-chart-editor .form-row {
  gap: 10px;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.size-chart-actions-right {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.size-chart-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.size-chart-form .form-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.size-chart-library-select {
  align-items: center;
  gap: 12px;
}

.size-chart-library-select label {
  font-weight: 600;
  color: #1f2937;
  min-width: 140px;
}

.size-chart-library-select select {
  flex: 1 1 240px;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
}

.size-chart-library-select .btn {
  margin-left: auto;
  white-space: nowrap;
}

.pod-form .form-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pod-form .textarea {
  grid-column: 1 / -1;
}
.pod-form select.form-select {
  width: 100%;
}

.pod-reference-preview {
  margin-top: 8px;
}

.pod-reference-preview .pod-reference-thumb {
  margin: 0;
}

.pod-reference-preview img {
  max-width: 200px;
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.15);
  display: block;
}

.pod-reference-hint {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #0f172a;
}
.mockup-extra-actions {
  margin-top: 12px;
  display: flex;
  gap: 10px;
}
.pod-idea-row {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.pod-idea-row .form-control-wrapper {
  flex: 1 1 200px;
}

.pod-dropzone {
  border: 2px dashed rgba(96, 165, 250, 0.5);
  border-radius: 14px;
  padding: 14px;
  background: rgba(219, 234, 254, 0.4);
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.pod-dropzone:hover,
.pod-dropzone.is-hover {
  border-color: #2563eb;
  background: rgba(191, 219, 254, 0.6);
}

.pod-dropzone.is-uploading {
  border-color: #1d4ed8;
  background: rgba(191, 219, 254, 0.85);
}

.pod-dropzone input[type="file"] {
  display: none;
}

.pod-dropzone-hint {
  margin: 0;
  font-size: 0.8rem;
  color: #2563eb;
}

.pod-upload-message {
  font-size: 0.8rem;
  color: #0f172a;
}

.flash-sale-inline-form {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.flash-sale-inline-form .input-narrow {
  width: 72px;
  padding: 4px 6px;
  font-size: 0.85rem;
}

.inline-filter-form {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}

.inline-filter-form input[type="search"] {
  min-width: 240px;
}

.inline-filter-form .inline-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #475569;
}

.inline-filter-form .inline-filter-option input {
  margin: 0;
}

.etsy-toolbar {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
  border-radius: 20px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 23, 42, 0.08);
}

.etsy-header-intro {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.etsy-pin-stats-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 4px;
}

.etsy-pin-stat-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 10px 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.etsy-pin-stat-card span {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.etsy-pin-stat-card strong {
  font-size: 1.05rem;
  color: #0f172a;
}

.etsy-filter-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.etsy-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}

.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

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

.filter-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.filter-field input,
.filter-field select {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.95rem;
  background: #fff;
}

.filter-field.filter-checkbox {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 10px 20px;
  align-items: center;
}

.filter-field.filter-checkbox label {
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: normal;
  text-transform: none;
  color: #0f172a;
}

.etsy-tag-filter-list {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  padding: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  background: #f8fafc;
}

.etsy-tag-filter-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.88rem;
  color: #0f172a;
}

.etsy-tag-filter-option input {
  margin: 0;
}

.etsy-tag-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid var(--tag-filter-color, #2563eb);
  background: rgba(15, 23, 42, 0.02);
  font-weight: 600;
  color: #0f172a;
}

.etsy-tag-filter-chip::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--tag-filter-color, #2563eb);
}

.etsy-filter-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.etsy-unsynced-indicator {
  padding: 6px 12px;
  border-radius: 999px;
  background: #fee2e2;
  color: #991b1b;
  font-size: 0.85rem;
  font-weight: 600;
}

.etsy-sort-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}

.etsy-sort-controls .sort-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.etsy-sort-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.sort-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font-size: 0.85rem;
  text-decoration: none;
  color: #0f172a;
  transition: all 0.15s ease;
  background: #fff;
}

.sort-pill.is-active {
  border-color: #2563eb;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.25);
}

.meta-separator {
  margin: 0 6px;
}

.form-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tiktok-tag-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.tag-keyword-chip {
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  font-size: 0.78rem;
  color: #0f172a;
  border: 1px solid rgba(15, 23, 42, 0.12);
  --tag-color: rgba(15, 23, 42, 0.12);
  box-shadow: inset 0 0 0 1px var(--tag-color);
}

.printify-template-rewrite {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.template-rewrite-option {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.8rem;
  color: #475569;
}

.title-rewrite-result {
  margin-top: 10px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  font-size: 0.9rem;
}

.title-rewrite-result p {
  margin: 6px 0 0;
  font-weight: 600;
  color: #0f172a;
}

.title-rewrite-result .rewrite-apply {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: #0f172a;
}

.tiktok-image-card.is-existing {
  border-color: rgba(16, 185, 129, 0.6);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5);
}

.etsy-pin-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 20px;
  margin-top: 24px;
}

.etsy-sort-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.etsy-sort-controls .sort-label {
  font-weight: 600;
  color: #475569;
  margin-right: 4px;
}

.etsy-sort-controls .btn.is-active {
  background: #1d4ed8;
  border-color: #1d4ed8;
  color: #fff;
}

@media (min-width: 768px) {
  .etsy-pin-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .etsy-pin-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1280px) {
  .etsy-pin-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.etsy-pin-item {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 22px;
  padding: 18px;
  background: #fff;
  transition: box-shadow 0.2s ease, border-color 0.2s ease, transform 0.15s ease;
}

.etsy-pin-item:hover {
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.etsy-pin-item.is-highlighted {
  border-color: #2563eb;
  box-shadow: 0 25px 60px rgba(37, 99, 235, 0.25);
}

.etsy-pin-select {
  position: absolute;
  top: 12px;
  left: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  color: #f1f5f9;
  font-weight: 500;
  z-index: 3;
}

.etsy-pin-select input {
  width: 18px;
  height: 18px;
}

.etsy-pin-thumb {
  position: relative;
  display: block;
  width: 100%;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f1f5f9;
  aspect-ratio: 3 / 4;
}

.etsy-pin-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.etsy-pin-thumb:hover img {
  transform: scale(1.07);
}

.etsy-pin-delete {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  border: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.etsy-pin-delete:hover {
  transform: scale(1.08);
  background: rgba(239, 68, 68, 0.9);
}

.etsy-pin-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.etsy-pin-potential {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  display: flex;
  flex-direction: column;
  text-align: right;
  gap: 2px;
  box-shadow: 0 10px 18px rgba(15, 23, 42, 0.3);
}

.etsy-pin-potential span {
  font-size: 0.65rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0.75;
}

.etsy-pin-potential strong {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}

.etsy-pin-badge.badge-popular {
  background: #14532d;
}

.etsy-pin-badge.badge-best {
  background: #ea580c;
}

.etsy-pin-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.etsy-pin-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.etsy-pin-title:hover {
  color: #1d4ed8;
}

.etsy-pin-meta-line {
  font-size: 0.82rem;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.etsy-pin-chip {
  font-size: 0.65rem;
  padding: 2px 6px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.25);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.etsy-pin-row-actions {
  margin-top: 6px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.etsy-pin-row-actions form {
  display: flex;
  gap: 6px;
  align-items: center;
  flex: 1 1 220px;
}

.etsy-pin-row-actions select {
  width: 100%;
  min-width: 0;
  max-width: 100%;
}

.etsy-pin-toast {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 16px;
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(15, 23, 42, 0.92);
  color: #f8fafc;
  font-size: 0.85rem;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.35);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.etsy-pin-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.etsy-pin-detail-flag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.15);
  color: #0f5132;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.etsy-pin-detail-flag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16a34a;
}

.etsy-pin-item.has-detail {
  border-color: #86efac;
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(134, 239, 172, 0.35);
}

.etsy-pin-item.has-post {
  border-color: #0f2d1d;
  background: #14532d;
  color: #f0fdf4;
}

.etsy-pin-item.has-post .etsy-pin-title {
  color: #bbf7d0;
}

.etsy-pin-item.has-post .etsy-pin-meta-line,
.etsy-pin-item.has-post .text-muted {
  color: rgba(240, 253, 244, 0.85);
}

.etsy-pin-item.has-post .btn {
  border-color: rgba(240, 253, 244, 0.25);
  color: #f0fdf4;
}

.etsy-pin-item.has-post .btn-primary {
  background: rgba(15, 23, 42, 0.25);
  color: #f0fdf4;
  box-shadow: none;
}

.etsy-pin-item.has-detail.has-post {
  background: #1b7a42;
  border-color: #0f3a20;
  color: #f0fdf4;
}

.etsy-pin-item.is-unuseful {
  background: #0f172a;
  border-color: rgba(249, 250, 251, 0.15);
  color: #f8fafc;
}

.etsy-pin-item.is-unuseful .etsy-pin-title {
  color: #bfdbfe;
}

.etsy-pin-item.is-unuseful .etsy-pin-meta-line,
.etsy-pin-item.is-unuseful .text-muted {
  color: rgba(248, 250, 252, 0.8);
}

.etsy-pin-item.is-unuseful .btn {
  border-color: rgba(248, 250, 252, 0.35);
  color: #f8fafc;
}

.etsy-pin-tag-list {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.etsy-pin-tag-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--tag-color, #2563eb);
  color: #fff;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.etsy-pin-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 2px;
}

@media (max-width: 640px) {
  .etsy-pin-stats {
    grid-template-columns: 1fr;
  }
}

.etsy-pin-stat {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 8px 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.etsy-pin-stat span {
  font-size: 0.65rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #475569;
}

.etsy-pin-stat strong {
  font-size: 1rem;
  color: #0f172a;
}

.etsy-pin-stat small {
  font-size: 0.72rem;
  color: #475569;
}

.etsy-pin-stat.is-highlight {
  background: #fee2e2;
  border-color: #fb7185;
}

.etsy-pin-stat.is-highlight span {
  color: #b91c1c;
}

.etsy-pin-stat.is-highlight strong {
  color: #b91c1c;
}

.etsy-pin-item.is-unuseful .etsy-pin-stat {
  background: rgba(15, 15, 25, 0.6);
  border-color: rgba(248, 250, 252, 0.18);
}

.etsy-pin-tiktok {
  border-top: 1px dashed rgba(15, 23, 42, 0.15);
  padding-top: 8px;
  margin-top: 4px;
}

.etsy-pin-tiktok.is-collapsed {
  display: none;
}

.etsy-pin-stat-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0f172a;
  display: inline-block;
  margin-bottom: 4px;
}

.etsy-pin-extra-wrapper {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
}

.etsy-pin-extra-wrapper [data-pin-extra-toggle] span {
  display: inline-block;
  transition: transform 0.2s ease;
}

.etsy-pin-extra-wrapper [data-pin-extra-toggle].is-active span {
  transform: rotate(180deg);
}

.etsy-pin-extra {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.etsy-pin-extra.is-collapsed {
  display: none;
}

.etsy-pin-extra-row {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #0f172a;
}

.etsy-pin-extra-row.is-column {
  flex-direction: column;
  gap: 6px;
}

.etsy-pin-extra-row span {
  color: #475569;
}

.etsy-pin-tiktok-summary {
  margin-top: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.etsy-pin-sold-header {
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.2;
}

.etsy-pin-sold-cell {
  text-align: center;
}

.etsy-pin-sold-value {
  font-weight: 600;
  color: #b91c1c;
}

.etsy-pin-total-sold-value {
  font-weight: 700;
  color: #0f172a;
}

.review-photos-modal[hidden] {
  display: none;
}

.review-photos-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
}

.review-photos-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.review-photos-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  width: min(900px, 90vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.review-photos-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
}

.review-photos-modal-body {
  padding: 16px 20px 24px;
  overflow-y: auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.review-photo-card {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  background: #f8fafc;
  border-radius: 12px;
  padding: 8px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.review-photo-card:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
  transform: translateY(-2px);
}

.review-photo-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  background: #fff;
}

.review-photo-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

.etsy-pin-detail-page .panel-body {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.etsy-pin-detail-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 16px;
  padding: 16px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.etsy-pin-detail-meta .label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
  margin-bottom: 4px;
}

.etsy-pin-detail-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.etsy-pin-detail-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.etsy-pin-detail-gallery a {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: block;
}

.etsy-pin-detail-gallery img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

.etsy-pin-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.etsy-pin-review-card {
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  padding: 10px;
  text-align: center;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.etsy-pin-review-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
}

.etsy-pin-review-card span {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.etsy-pin-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-top: 16px;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud span {
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-size: 0.8rem;
  font-weight: 600;
}

.code-block {
  background: #0f172a;
  color: #f8fafc;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-size: 0.85rem;
  padding: 16px;
  border-radius: 12px;
  overflow-x: auto;
}

.tiktok-post-modal[hidden] {
  display: none;
}

.tiktok-post-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 24px 12px;
}

.tiktok-post-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.tiktok-post-modal-dialog {
  position: relative;
  width: min(1100px, 95vw);
  height: calc(100vh - 48px);
  max-height: calc(100vh - 48px);
  border-radius: 20px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.35);
  z-index: 1;
}

.tiktok-post-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  flex: 0 0 auto;
  background: #fff;
}

.tiktok-post-modal-dialog > #tiktok-post-form {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
}

.tiktok-post-modal-dialog > #tiktok-post-form > .tiktok-post-modal-body {
  flex: 1;
  min-height: 0;
}

.tiktok-post-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tiktok-post-header-actions .tiktok-post-actions {
  align-items: center;
}

.tiktok-post-modal-body {
  padding: 20px 24px 28px;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
  gap: 24px;
  -webkit-overflow-scrolling: touch;
}

.tiktok-post-footer-actions {
  display: flex;
  justify-content: flex-end;
  padding-top: 12px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.tiktok-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  background: #f8fafc;
  padding: 16px 20px;
}

.tiktok-section .section-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.pod-description-template-status {
  display: block;
  margin-top: 4px;
  font-size: 0.8rem;
  color: #475569;
}

.pod-description-template-status.is-error {
  color: #dc2626;
}

.pod-description-template-status.is-success {
  color: #15803d;
}

.tiktok-image-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}

.tiktok-image-card {
  border: 2px solid transparent;
  border-radius: 12px;
  background: #fff;
  padding: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  transition: border 0.2s ease, transform 0.2s ease;
  position: relative;
  overflow: visible;
  z-index: 0;
}

.tiktok-image-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  transform-origin: bottom left;
}

.tiktok-image-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.tiktok-image-card.selected {
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.25);
  cursor: grab;
}

.tiktok-image-card.selected.is-dragging {
  cursor: grabbing;
}

.tiktok-image-card:hover {
  z-index: 20;
}

.tiktok-image-card:hover img {
  transform: scale(3);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  position: relative;
  z-index: 10;
}

.tiktok-image-card.is-dragging {
  opacity: 0.6;
  border-style: dashed;
}

.tiktok-image-card .tiktok-image-order {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1;
  padding: 3px 8px;
  border-radius: 999px;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.25);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.tiktok-image-card .tiktok-image-order.is-hidden {
  opacity: 0;
  transform: translateY(-4px);
}

.tiktok-size-chart-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 12px;
}

.tiktok-size-chart-card {
  appearance: none;
  border: 2px dashed rgba(148, 163, 184, 0.8);
  border-radius: 12px;
  padding: 8px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  position: relative;
  transition: border 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
  min-height: 150px;
  color: #0f172a;
  overflow: visible;
  z-index: 0;
}

.tiktok-size-chart-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  transform-origin: bottom left;
}

.tiktok-size-chart-card:hover {
  z-index: 20;
}

.tiktok-size-chart-card:hover img {
  transform: scale(3);
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.25);
  position: relative;
  z-index: 10;
}
.tiktok-size-chart-card span {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-align: center;
}

.tiktok-size-chart-card::after {
  content: '✓';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.2);
  color: #fff;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.tiktok-size-chart-card.selected {
  border-color: #2563eb;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.2);
  transform: translateY(-2px);
}

.tiktok-size-chart-card.selected::after {
  opacity: 1;
  transform: scale(1);
  background: #2563eb;
}

.tiktok-size-chart-card.size-chart-none {
  align-items: center;
  justify-content: center;
  text-align: center;
  background: #f8fafc;
}

.tiktok-size-chart-card:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.tiktok-printify-select select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  font-size: 0.95rem;
  background: #fff;
}

.tiktok-color-chart-controls {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.tiktok-color-chart-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
}

.tiktok-color-chart-option input[type="checkbox"] {
  width: 18px;
  height: 18px;
}

.tiktok-color-chart-option input[type="checkbox"]:disabled {
  opacity: 0.55;
}

.tiktok-color-chart-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 10px;
  background: #f8fafc;
}

.tiktok-color-chart-preview img {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.1);
}

.tiktok-color-chart-preview-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.9rem;
}

.tiktok-color-chart-preview-info strong {
  color: #0f172a;
}

.tiktok-color-chart-preview-info a {
  color: #2563eb;
  font-weight: 600;
}

.tiktok-shop-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.tiktok-shop-card {
  position: relative;
  border: 2px solid rgba(148, 163, 184, 0.4);
  border-radius: 14px;
  background: #fff;
  padding: 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 130px;
  transition: border 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.tiktok-shop-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.tiktok-shop-card-namewrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tiktok-template-toggle {
  position: relative;
  top: 0;
  right: 0;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(15, 23, 42, 0.04);
  font-size: 0.75rem;
  font-weight: 600;
  font-family: inherit;
  color: #0f172a;
  cursor: pointer;
  margin-left: auto;
  appearance: none;
  -webkit-appearance: none;
  transition: background 0.2s ease, border 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.tiktok-template-toggle .template-toggle-indicator {
  width: 16px;
  height: 16px;
  border-radius: 4px;
  border: 2px solid #94a3b8;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  font-weight: 700;
  color: transparent;
  background: #fff;
}

.tiktok-template-toggle.is-active {
  border-color: rgba(16, 185, 129, 0.8);
  background: rgba(16, 185, 129, 0.18);
  color: #065f46;
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.25);
}

.tiktok-template-toggle.is-active .template-toggle-indicator {
  border-color: #059669;
  background: #059669;
  color: #fff;
}

.tiktok-template-toggle:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  box-shadow: none;
}

.tiktok-shop-card input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.tiktok-shop-card-name {
  font-weight: 600;
  color: #0f172a;
}

.tiktok-shop-card-capacity {
  margin-top: 6px;
}

.tiktok-shop-card-body {
  flex: 1;
}

.tiktok-shop-card-count {
  font-size: 0.85rem;
  color: #0f172a;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.tiktok-shop-card-count strong {
  font-variant-numeric: tabular-nums;
}

.tiktok-shop-card-count span {
  font-weight: 500;
  font-size: 0.75rem;
  color: #475569;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.tiktok-shop-card-count.is-full {
  color: #b91c1c;
}

.shop-capacity-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.shop-capacity-badge.is-full {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}

.shop-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
}

.shop-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.shop-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.shop-card-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.shop-inline-pair {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.shop-card-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.shop-card-row label {
  color: #94a3b8;
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.shop-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.shop-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
}

.shop-card .flash-sale-file-list {
  display: grid;
  gap: 6px;
}

.shop-card-footer {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.shop-card-toggle-group {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.flash-sale-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.flash-sale-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ecfdf3;
  color: #16a34a;
  font-weight: 700;
  width: fit-content;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.flash-sale-meta-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #0f172a;
  font-weight: 600;
}

.flash-sale-block {
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  padding: 10px 12px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: start;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

.flash-sale-summary {
  display: grid;
  gap: 6px;
  font-size: 0.95rem;
}

.flash-sale-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  color: #0f172a;
  font-weight: 600;
}

.flash-sale-stat {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.flash-sale-sep {
  color: #94a3b8;
}

.flash-sale-actions {
  display: flex;
  justify-content: flex-end;
  align-self: center;
}

.btn-block {
  width: 100%;
  text-align: center;
}

.flash-sale-note {
  color: #475569;
  font-size: 0.9rem;
}

.shop-card .shop-code {
  font-weight: 600;
  color: #0f172a;
}

.shop-card input,
.shop-card select {
  width: 100%;
}

.shop-limit-input {
  width: 100%;
}

.tiktok-shop-card-note {
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}

.tiktok-shop-card.selected {
  border-color: #2563eb;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.25);
  transform: translateY(-2px);
}

.tiktok-shop-card.is-template-sample {
  border-color: #10b981;
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.25);
}

.tiktok-shop-card.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.tiktok-shop-card.is-capacity-full {
  border-color: #f97316;
}

.tiktok-shop-card.is-disabled .tiktok-shop-card-note {
  color: #94a3b8;
}

.tiktok-shop-card.has-error {
  border-color: #dc2626;
}

.tiktok-shop-card:focus-visible {
  outline: 2px solid #6366f1;
  outline-offset: 2px;
}

.tiktok-post-history {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.85rem;
}

.tiktok-post-history li + li {
  margin-top: 4px;
}

.tiktok-post-history strong {
  display: block;
  color: #0f172a;
}

.tiktok-post-history span {
  color: #475569;
  margin-left: 2px;
}

.tiktok-post-history small {
  display: block;
  color: #94a3b8;
  font-size: 0.75rem;
}

.tiktok-post-history li {
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.tiktok-post-history li:last-child {
  border-bottom: none;
}

.tiktok-post-history-actions {
  display: flex;
  gap: 8px;
  margin-top: 4px;
}

.tiktok-post-history-actions .btn-tiny {
  padding: 2px 6px;
  font-size: 0.7rem;
}

.tiktok-post-alert {
  padding: 12px;
  border-radius: 12px;
  font-size: 0.9rem;
}

.tiktok-post-alert.error {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.tiktok-post-alert.success {
  background: rgba(16, 185, 129, 0.15);
  color: #065f46;
}

.tiktok-post-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.etsy-idea-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.etsy-idea-modal[hidden] {
  display: none;
}

.etsy-idea-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.etsy-idea-modal__dialog {
  position: relative;
  margin: 6vh auto;
  max-width: 520px;
  background: #fff;
  border-radius: 22px;
  box-shadow: 0 35px 80px rgba(15, 23, 42, 0.35);
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.etsy-idea-modal__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.etsy-idea-modal__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.etsy-idea-modal__body section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px;
  background: #f8fafc;
}

.bundle-meta-colors {
  display: grid;
  gap: 12px;
  margin-top: 12px;
}

.bundle-meta-color-block {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px;
  background: #fff;
}

.bundle-meta-color-block-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.etsy-idea-modal__body h4 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.sortable {
  color: inherit;
  text-decoration: none;
  position: relative;
  padding-right: 16px;
}

.sortable::after {
  content: '\2195';
  position: absolute;
  right: 0;
  color: rgba(15, 23, 42, 0.35);
  font-size: 0.85em;
}

.sortable.sort-active::after {
  content: attr(data-arrow);
  color: #2563eb;
}

.etsy-pin-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.etsy-pin-actions label {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 600;
}

.etsy-sync-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 18px;
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
}

.etsy-sync-status.is-info {
  background: #e0f2fe;
  color: #075985;
}

.etsy-sync-status.is-success {
  background: #dcfce7;
  color: #166534;
}

.etsy-sync-status.is-warning {
  background: #fef3c7;
  color: #92400e;
}

.etsy-sync-status.is-error {
  background: #fee2e2;
  color: #991b1b;
}

.pod-dropzone--asset {
  min-height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  border-style: dashed;
  gap: 6px;
  color: #1e3a8a;
}

.pod-asset-section {
  margin-top: 24px;
  border-top: 1px solid rgba(30, 64, 175, 0.18);
  padding-top: 16px;
}

.pod-asset-header {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 14px;
}

.pod-asset-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #1e3a8a;
}

.pod-asset-header p {
  margin: 0;
  color: #334155;
  font-size: 0.9rem;
}

.pod-asset-uploader--inline {
  margin-bottom: 12px;
}

.pod-asset-uploader--inline .pod-dropzone {
  min-height: 70px;
  padding: 12px;
  font-size: 0.85rem;
}

.pod-generated-section {
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid rgba(30, 64, 175, 0.18);
}

.pod-generated-groups {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pod-generated-group {
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  background: rgba(224, 231, 255, 0.35);
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.pod-generated-group.is-expanded {
  box-shadow: 0 16px 38px -22px rgba(15, 23, 42, 0.45);
}

.pod-generated-group-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(191, 219, 254, 0.5);
}

.pod-generated-toggle {
  margin: 0;
  padding: 0;
  border: none;
  background: none;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1e3a8a;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
}

.pod-generated-toggle::before {
  content: "▸";
  font-size: 0.9rem;
  transition: transform 0.2s ease;
}

.pod-generated-group.is-expanded .pod-generated-toggle::before {
  transform: rotate(90deg);
}

.pod-generated-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 3px;
}

.pod-generated-name {
  white-space: nowrap;
}

.pod-generated-count {
  font-size: 0.85rem;
  color: #1d4ed8;
}

.pod-generated-stats {
  font-size: 0.8rem;
  color: #475569;
}

.pod-generated-actions .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

.pod-generated-body {
  padding: 12px 16px 18px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.pod-generated-body[hidden] {
  display: none;
}

.pod-generated-assets {
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.pod-generated-assets.is-drag-over {
  border: 2px dashed rgba(37, 99, 235, 0.6);
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.2);
}

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

@media (max-width: 640px) {
  .pod-generated-section .pod-asset-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

.pod-generated-section .pod-asset-card {
  padding: 10px;
  gap: 8px;
}

.pod-generated-section .pod-asset-card.is-drop-target {
  outline: 2px dashed rgba(37, 99, 235, 0.6);
}

.pod-generated-section .pod-asset-figure {
  min-height: 0;
  aspect-ratio: 1 / 1;
}

.pod-generated-section .pod-asset-figure img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pod-manual-group .pod-generated-group-bar {
  background: rgba(226, 232, 240, 0.55);
}

.pod-manual-message {
  margin-bottom: 10px;
}

.pod-asset-card.is-dragging {
  opacity: 0.6;
}

.pod-asset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
  margin-top: 12px;
}

.pod-asset-card {
  background: rgba(219, 234, 254, 0.7);
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-shadow: 0 12px 30px -18px rgba(15, 23, 42, 0.5);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.pod-asset-card.is-synced {
  border-color: rgba(34, 197, 94, 0.7);
  background: rgba(187, 247, 208, 0.5);
  box-shadow: 0 20px 32px -18px rgba(34, 197, 94, 0.5);
}

.pod-asset-card.is-synced::after {
  content: "✓ Đã cập nhật";
  font-size: 0.75rem;
  font-weight: 600;
  color: #15803d;
  align-self: flex-end;
}

.pod-asset-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 0.78rem;
  color: #1f2937;
}

.pod-asset-chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.16);
  color: #312e81;
  line-height: 1.2;
}

.pod-asset-chip--variant {
  background: rgba(16, 185, 129, 0.18);
  color: #047857;
}

.pod-asset-figure {
  margin: 0;
  border-radius: 10px;
  overflow: hidden;
  background: rgba(191, 219, 254, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 120px;
}

.pod-asset-figure img {
  max-width: 100%;
  height: auto;
  display: block;
}

.pod-asset-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.pod-asset-seed {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pod-asset-select {
  width: 100%;
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: rgba(224, 231, 255, 0.9);
  color: #1e3a8a;
  font-size: 0.9rem;
}

.pod-asset-select:focus {
  outline: none;
  border-color: rgba(59, 130, 246, 0.8);
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.25);
}

.pod-asset-note {
  font-size: 0.85rem;
  color: #475569;
}

.pod-asset-delete {
  border: none;
  background: rgba(248, 113, 113, 0.18);
  color: #b91c1c;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 30px;
  text-align: center;
  font-size: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  flex-shrink: 0;
}

.pod-asset-delete:hover {
  background: rgba(248, 113, 113, 0.32);
  color: #7f1d1d;
}

.pod-asset-empty {
  grid-column: 1 / -1;
  margin: 0;
  color: #475569;
  font-style: italic;
}

.pod-asset-uploader + .pod-upload-message {
  margin-top: 8px;
}

.pod-board {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.pod-column {
  background: #f8fafc;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  min-height: 240px;
}

.pod-column-header {
  padding: 16px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pod-column-header h2 {
  margin: 0;
  font-size: 1rem;
}

.pod-column-header-main {
  flex: 1 1 auto;
}

.pod-column-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.pod-column-count {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pod-column-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
}

.pod-card {
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  box-shadow: 0 15px 30px -22px rgba(15, 23, 42, 0.35);
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pod-card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.pod-card-header h3 {
  margin: 0;
  font-size: 1rem;
}

.pod-card-header small {
  color: #94a3b8;
  font-size: 0.78rem;
}

.pod-card-snippet {
  margin: 0;
  color: #475569;
  font-size: 0.9rem;
}

.pod-card-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 0.8rem;
}

.pod-card-links a {
  color: #2563eb;
  text-decoration: none;
}

.pod-card-links a:hover {
  text-decoration: underline;
}

.pod-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.pod-card-status-form {
  display: flex;
  gap: 6px;
  align-items: center;
}

.pod-card-status-form select {
  font-size: 0.8rem;
}

.pod-column-empty {
  padding: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  color: #94a3b8;
  font-size: 0.85rem;
  text-align: center;
}

.pod-header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pod-form-panel {
  margin-bottom: 28px;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 24px 28px;
}

.pod-ideas-table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  font-size: 0.9rem;
}

.pod-ideas-table th,
.pod-ideas-table td {
  border: 1px solid rgba(15, 23, 42, 0.1);
  padding: 10px 12px;
  vertical-align: top;
}

.pod-ideas-table thead {
  background: #f1f5f9;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.78rem;
  color: #334155;
}

.pod-tag {
  font-weight: 600;
  color: #111827;
}

.pod-meta {
  display: block;
  margin-top: 4px;
  color: #64748b;
  font-size: 0.78rem;
}

.pod-status-form {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pod-status-select {
  min-width: 180px;
}

.pod-ideas-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pod-status-current {
  margin-bottom: 10px;
  display: inline-block;
}

.status-idea-ideation {
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
}

.status-idea-original_design {
  background: rgba(129, 140, 248, 0.15);
  color: #4c1d95;
}

.status-idea-design {
  background: rgba(99, 102, 241, 0.18);
  color: #3730a3;
}

.status-idea-mockup {
  background: rgba(250, 204, 21, 0.18);
  color: #b45309;
}

.status-idea-listing {
  background: rgba(45, 212, 191, 0.18);
  color: #0f766e;
}

.status-idea-video {
  background: rgba(134, 239, 172, 0.18);
  color: #15803d;
}

.pod-detail-page .breadcrumb {
  margin-bottom: 18px;
  display: flex;
  gap: 8px;
  font-size: 0.9rem;
}

.pod-detail-header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.pod-detail-header h1 {
  margin: 0 0 6px;
}

.pod-detail-meta {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
}

.pod-detail-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: stretch;
}

.pod-detail-column {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.pod-column-header h2 {
  margin: 0;
  font-size: 1.05rem;
}

.pod-column-header p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.85rem;
}

.design-warning {
  color: #dc2626;
  font-weight: 600;
  font-size: 0.85rem;
  display: inline-flex;
  gap: 4px;
  margin-top: 4px;
}

.design-warning--inline {
  margin-top: 0;
  margin-left: 8px;
}

.pod-title-warning {
  color: #dc2626;
  display: flex;
  align-items: center;
  gap: 8px;
}

.stack-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pod-etsy-pin-section {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.pod-etsy-pin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.pod-etsy-pin-header h3 {
  margin: 0;
  font-size: 1rem;
}

.pod-etsy-pin-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pod-etsy-pin-card {
  display: flex;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 12px;
  background: #fff;
  align-items: flex-start;
  flex-wrap: wrap;
}

.pod-etsy-pin-thumb {
  flex: 0 0 auto;
}

.pod-etsy-pin-thumb img {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
}

.pod-etsy-pin-placeholder {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
}

.pod-etsy-pin-content {
  flex: 1 1 220px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pod-etsy-pin-content a {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.pod-etsy-pin-content a:hover {
  text-decoration: underline;
}

.pod-etsy-pin-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.85rem;
  color: #64748b;
}

.pod-etsy-pin-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-left: auto;
}

.pod-etsy-pin-actions form {
  margin: 0;
}

.pod-etsy-pin-empty {
  margin: 0;
  color: #94a3b8;
  font-size: 0.9rem;
}

.pod-etsy-pin-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 6px;
  margin-top: 6px;
}

.pod-etsy-pin-gallery-item {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 8px;
  padding: 0;
  background: #f8fafc;
  cursor: zoom-in;
  overflow: hidden;
}

.pod-etsy-pin-gallery-item img {
  width: 100%;
  height: 60px;
  object-fit: cover;
  display: block;
}

.pod-image-preview {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.pod-image-preview img {
  max-width: 100%;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pod-image-wrapper {
  position: relative;
  display: inline-block;
}

.pod-image-meta {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.8);
  color: #fff;
  font-size: 0.75rem;
  letter-spacing: 0.02em;
}

.pod-image-viewer-modal {
  position: fixed;
  inset: 0;
  z-index: 1600;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pod-image-viewer-modal.is-hidden {
  display: none;
}

.pod-image-viewer-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.7);
}

.pod-image-viewer-dialog {
  position: relative;
  background: transparent;
  max-width: min(90vw, 1200px);
  max-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.pod-image-viewer-content {
  background: #0f172a;
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  max-height: 90vh;
}

.pod-image-viewer-content img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}

.pod-image-viewer-meta {
  color: #e2e8f0;
  font-size: 0.9rem;
}

.pod-image-viewer-close {
  position: absolute;
  top: -8px;
  right: -8px;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.3rem;
  cursor: pointer;
}

.pod-image-viewer-nav {
  border: none;
  background: rgba(15, 23, 42, 0.85);
  color: #fff;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 1.4rem;
  cursor: pointer;
}

.pod-image-viewer-nav[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
}

.pod-selected-list {
  background: rgba(37, 99, 235, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.9rem;
}

.pod-selected-list ul {
  margin: 8px 0 0;
  padding-left: 18px;
}

.pod-printify-list {
  margin-top: 18px;
}

.pod-printify-items {
  list-style: none;
  padding-left: 0;
  margin: 16px 0 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pod-printify-item {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 8px 18px -14px rgba(15, 23, 42, 0.6);
}

.pod-printify-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.pod-printify-title-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.pod-printify-title a {
  font-weight: 600;
  font-size: 1.05rem;
  color: #0f172a;
  text-decoration: none;
}

.pod-printify-title a:hover {
  color: #2563eb;
}

.pod-printify-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pod-printify-hashtag-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pod-printify-hashtag-time {
  font-size: 0.78rem;
  color: #64748b;
}

.pod-printify-hashtags {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.5;
  color: #334155;
  word-break: break-word;
}

.pod-printify-hashtags.is-empty {
  color: #94a3b8;
  font-style: italic;
}

.pod-printify-hashtags-message {
  font-size: 0.85rem;
  color: #0f172a;
  margin-top: 2px;
}

.pod-printify-hashtags-message.error {
  color: #dc2626;
}

.pod-printify-select {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: rgba(148, 163, 184, 0.12);
}

.pod-printify-select input[type="checkbox"] {
  margin: 0;
}

.pod-printify-gallery {
  margin-top: 14px;
}

.pod-printify-grid {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.pod-printify-grid::-webkit-scrollbar {
  height: 6px;
}

.pod-printify-grid::-webkit-scrollbar-thumb {
  background: rgba(15, 23, 42, 0.2);
  border-radius: 999px;
}

.pod-printify-grid::-webkit-scrollbar-track {
  background: transparent;
}

.pod-printify-image-card {
  position: relative;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 6px;
  background: rgba(255, 255, 255, 0.95);
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 68px;
  min-height: 90px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  cursor: default;
  flex: 0 0 auto;
}

.pod-printify-generated {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pod-printify-generated.is-hidden {
  display: none;
}

.pod-printify-generated-label {
  font-size: 0.76rem;
  font-weight: 600;
  color: #475569;
}

.pod-printify-grid--generated {
  padding-bottom: 4px;
}

.pod-printify-image-figure {
  margin: 0;
  border-radius: 6px;
  overflow: hidden;
  width: 100%;
  height: 60px;
}

.pod-printify-image-figure img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 6px;
  object-fit: cover;
}

.pod-listing-video {
  margin-top: 16px;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 220px;
  align-self: flex-start;
}

.pod-listing-video.is-hidden {
  display: none;
}

.pod-listing-video-player {
  position: relative;
  width: 100%;
  background: #0f172a;
  border-radius: 10px;
  overflow: hidden;
}

.pod-listing-video-player video {
  width: 100%;
  display: block;
  background: #000;
  border-radius: inherit;
  aspect-ratio: 9 / 16;
}

.pod-listing-video-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #1e293b;
}

.pod-listing-video-meta .pod-listing-video-sep {
  opacity: 0.55;
}

.pod-listing-media {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.pod-listing-video-confirm {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.8rem;
  color: #1f2937;
}

.pod-listing-video-confirm.is-hidden {
  display: none;
}

.pod-listing-video-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-weight: 600;
}

.pod-listing-video-toggle .form-check-input {
  width: 16px;
  height: 16px;
  margin: 0;
}

.pod-listing-video-confirm-status {
  color: #0f766e;
  font-weight: 500;
}

.pod-listing-video-confirm-status.error {
  color: #dc2626;
}

.pod-printify-placeholder {
  width: 100%;
  min-height: 220px;
  max-height: 220px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: #94a3b8;
  background: #f8fafc;
}

.pod-printify-chip {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.pod-printify-chip--copied {
  background: rgba(251, 191, 36, 0.25);
  color: #92400e;
}

.pod-printify-chip-count {
  font-size: 0.72rem;
  font-weight: 600;
  color: #dc2626;
}

.pod-printify-chip-order {
  font-size: 0.72rem;
  font-weight: 600;
  color: #15803d;
  margin-right: 2px;
}

.shop-product-count {
  color: #dc2626;
  font-weight: 600;
  margin-left: 4px;
}

.shop-order-count {
  color: #15803d;
  font-weight: 600;
  margin-left: 4px;
}

.pod-printify-form .shop-name {
  font-weight: 600;
  color: #0f172a;
}

.pod-printify-form .shop-name--connected {
  color: #fff;
  background: #065f46;
  padding: 2px 6px;
  border-radius: 8px;
}

.pod-printify-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.pod-printify-thumb-link,
.pod-printify-thumb-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #f8fafc;
  color: #1f2937;
  font-weight: 600;
  text-decoration: none;
}

.pod-printify-thumb-fallback span {
  font-size: 1.1rem;
}

@media (max-width: 1080px) {
  .pod-printify-info {
    min-width: 200px;
  }
}

@media (max-width: 860px) {
  .pod-printify-head {
    flex-direction: column;
    align-items: stretch;
  }

  .pod-printify-select {
    align-self: flex-start;
  }

  .pod-printify-info {
    min-width: 100%;
  }

  .pod-printify-body {
    flex-direction: column;
  }

  .pod-printify-carousel {
    max-width: 100%;
  }

  .pod-printify-placeholder {
    min-height: 180px;
  }
}

.pod-listing-product {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pod-listing-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.85rem;
}

.pod-listing-shop {
  font-weight: 600;
}

.pod-listing-grid {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pod-listing-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.pod-listing-shop-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pod-shop-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  font-size: 0.78rem;
  font-weight: 600;
}
.pod-shop-pill small {
  margin-left: 6px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ef4444;
}
.pod-shop-pill--pending {
  background: rgba(239, 68, 68, 0.12);
  color: #b91c1c;
}
.pod-shop-pill--connected {
  background: #064e3b;
  color: #ecfccb;
}


.pod-listing-grid-header {
  display: grid;
  grid-template-columns: 1fr 220px;
  gap: 12px;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
}

.pod-listing-grid-row {
  display: block;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 16px;
  background: #f8fafc;
}

.pod-listing-grid-row.is-autolinked {
  box-shadow: 0 0 0 2px #2563eb;
}



.design-page {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  background: #f8fafc;
}

.design-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 28px;
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(14, 165, 233, 0.1));
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 22px 45px -38px rgba(37, 99, 235, 0.65);
}

.design-hero-copy {
  max-width: 640px;
}

.design-hero-copy h1 {
  margin: 0 0 6px;
  font-size: 1.75rem;
}

.design-hero-copy p {
  margin: 0;
  font-size: 0.95rem;
  color: #1f2937;
}

.design-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.design-layout {
  display: grid;
  grid-template-columns: minmax(260px, 320px) minmax(0, 1fr) minmax(260px, 300px);
  gap: 20px;
}

.design-sideboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.design-mainboard {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.design-card {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 18px 36px -32px rgba(15, 23, 42, 0.55);
  display: flex;
  flex-direction: column;
}

.design-card-header {
  padding: 18px 20px 0;
}

.design-card-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.design-card-note {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.design-toolbar-card {
  padding-bottom: 16px;
}

.design-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 16px 20px 0;
}

.design-toolbar-left {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.design-inspector-card {
  padding-bottom: 20px;
}

.design-inspector-hint {
  margin: 12px 20px;
  font-size: 0.85rem;
  color: #94a3b8;
}

.design-inspector-host {
  display: none;
}

.design-inspector {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.design-inspector.is-detached {
  display: none;
}

.design-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.design-control-font .design-control-with-actions {
  align-items: stretch;
}

.design-normal-font-select {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  border: 0;
  margin: 0;
  padding: 0;
}

.design-normal-font-picker {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.design-normal-font-picker.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.design-normal-font-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.design-normal-font-toggle:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.design-normal-font-picker.is-open .design-normal-font-toggle {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.design-normal-font-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.design-normal-font-label {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  font-weight: 600;
  color: #0f172a;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.design-normal-font-spacer {
  flex: 0 0 8px;
}

.design-normal-font-sample {
  min-width: 70px;
  padding: 4px 10px;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 16px;
  line-height: 1.2;
  text-align: center;
  letter-spacing: 0.12em;
  transition: border-color 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.design-normal-font-sample.is-placeholder {
  color: rgba(15, 23, 42, 0.5);
  font-style: italic;
}

.design-normal-font-caret {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.design-normal-font-picker.is-open .design-normal-font-caret {
  transform: rotate(-135deg);
}

.design-normal-font-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 240px;
  z-index: 45;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.35);
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.design-normal-font-menu[hidden] {
  display: none;
}

.design-normal-font-option {
  width: 100%;
  border: none;
  background: transparent;
  border-radius: 10px;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}

.design-normal-font-option + .design-normal-font-option {
  margin-top: 4px;
}

.design-normal-font-option:hover,
.design-normal-font-option.is-active {
  background: rgba(59, 130, 246, 0.1);
}

.design-normal-font-option-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}

.design-normal-font-option-name {
  font-weight: 600;
  color: #0f172a;
}

.design-normal-font-option-note {
  font-size: 0.8rem;
  color: #475569;
}

.design-normal-font-option-sample {
  font-size: 1.4rem;
  letter-spacing: 0.18em;
  color: #0f172a;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 6px;
  padding: 6px 10px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
}

.design-normal-font-empty {
  padding: 14px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}

.design-control-align .design-align-buttons {
  display: inline-flex;
  gap: 6px;
}

.design-align-button {
  width: 38px;
  height: 34px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.7);
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.design-align-button svg {
  fill: #0f172a;
}

.design-align-button:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.design-align-button.is-active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.design-align-button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.design-align-button.is-disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.design-control-size .design-size-inputs {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 96px;
  gap: 12px;
  align-items: center;
}

.design-control-size input[type='range'] {
  width: 100%;
  min-width: 0;
}

.design-control-size input[type='number'] {
  width: 100%;
  min-width: 0;
  padding-inline: 10px;
}

.design-fill-picker {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.design-fill-swatches {
  display: grid;
  grid-template-columns: repeat(8, 28px);
  gap: 8px;
}

.design-fill-swatch {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 2px solid transparent;
  background: var(--swatch-color, #000);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.12);
}
.design-fill-swatch:not(.is-disabled):hover {
  transform: translateY(-1px);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.18), 0 6px 10px -6px rgba(15, 23, 42, 0.35);
}

.design-fill-swatch.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.design-fill-swatch.is-disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

.design-fill-inputs {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.design-fill-inputs input[type='color'] {
  width: 44px;
  height: 44px;
  border: none;
  padding: 0;
  background: transparent;
  cursor: pointer;
}

.design-fill-inputs input[type='color'].is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.design-fill-inputs input[type='text'] {
  width: 100%;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 0.9rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.design-fill-inputs input[type='text']::placeholder {
  color: #94a3b8;
}

.design-fill-inputs input[type='text'].is-disabled {
  background: rgba(226, 232, 240, 0.6);
  color: #9ca3af;
}

.design-fill-inputs input[type='text'].is-invalid {
  border-color: rgba(239, 68, 68, 0.85);
  color: #ef4444;
}

.design-fill-inputs input[type='color'].is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.design-control.is-hidden-control {
  display: none !important;
}

.design-control-with-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.design-control-with-actions select {
  flex: 1 1 auto;
}

.design-color-font-select {
  position: absolute;
  top: 0;
  left: 0;
  opacity: 0;
  pointer-events: none;
  width: 0;
  height: 0;
  margin: 0;
  border: 0;
}

.design-color-font-picker {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}

.design-color-font-picker.is-disabled {
  opacity: 0.6;
  pointer-events: none;
}

.design-color-font-toggle {
  width: 100%;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 8px;
  background: #ffffff;
  font-size: 0.95rem;
  color: #0f172a;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, color 0.15s ease;
}

.design-color-font-toggle:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.design-color-font-picker.is-open .design-color-font-toggle {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.design-color-font-toggle.is-disabled,
.design-color-font-picker.is-disabled .design-color-font-toggle {
  cursor: not-allowed;
  opacity: 0.6;
  box-shadow: none;
}

.design-color-font-label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.design-color-font-label-name {
  font-weight: 600;
  color: #0f172a;
}

.design-color-font-label-note {
  font-size: 0.8rem;
  color: #475569;
}

.design-color-font-caret {
  width: 12px;
  height: 12px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform 0.15s ease;
  flex-shrink: 0;
}

.design-color-font-picker.is-open .design-color-font-caret {
  transform: rotate(-135deg);
}

.design-color-font-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  min-width: 240px;
  z-index: 40;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 12px;
  box-shadow: 0 24px 48px -28px rgba(15, 23, 42, 0.35);
  padding: 8px;
  max-height: 320px;
  overflow-y: auto;
}

.design-color-font-menu[hidden] {
  display: none;
}

.design-color-font-option {
  border: none;
  background: transparent;
  width: 100%;
  padding: 10px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.design-color-font-option + .design-color-font-option {
  margin-top: 4px;
}

.design-color-font-option:hover,
.design-color-font-option.is-active {
  background: rgba(37, 99, 235, 0.1);
}

.design-color-font-option-header {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.design-color-font-option-name {
  font-weight: 600;
  color: #111827;
}

.design-color-font-option-note {
  font-size: 0.85rem;
  color: #475569;
}

.design-color-font-option-preview {
  display: flex;
  gap: 8px;
}

.design-color-font-preview-item {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  box-shadow: 0 10px 20px -16px rgba(15, 23, 42, 0.5);
}

.design-color-font-preview-item img {
  width: 90%;
  height: 90%;
  object-fit: contain;
}

.design-color-font-empty {
  padding: 16px;
  text-align: center;
  font-size: 0.9rem;
  color: #64748b;
}


.design-control-action-buttons {
  display: inline-flex;
  gap: 6px;
}

.design-icon-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #ffffff;
  color: #1f2937;
  padding: 0;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.design-icon-button:hover {
  background: #e2e8f0;
  border-color: #1d4ed8;
  color: #1d4ed8;
}

.design-icon-button.text-danger {
  border-color: rgba(239, 68, 68, 0.4);
  color: #dc2626;
}

.design-icon-button.text-danger:hover {
  border-color: #dc2626;
  background: rgba(254, 202, 202, 0.35);
}

.design-icon-button .icon {
  width: 14px;
  height: 14px;
  display: inline-block;
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px 14px;
}

.design-icon-button .icon-delete {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23dc2626' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='3 6 5 6 21 6'%3E%3C/polyline%3E%3Cpath d='M19 6l-1 14a2 2 0 0 1-2 2H8a2 2 0 0 1-2-2L5 6'%3E%3C/path%3E%3Cpath d='M10 11v6'%3E%3C/path%3E%3Cpath d='M14 11v6'%3E%3C/path%3E%3Cpath d='M9 6V4a1 1 0 0 1 1-1h4a1 1 0 0 1 1 1v2'%3E%3C/path%3E%3C/svg%3E");
}

.design-icon-button .icon-font-switch {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%231f2937' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 19V6a2 2 0 0 1 2-2h5'%3E%3C/path%3E%3Cpath d='M12 7L9 20'%3E%3C/path%3E%3Cpath d='M9 20l-2.5-4H4'%3E%3C/path%3E%3Cpath d='M9 20l2.5-4H15'%3E%3C/path%3E%3Cpath d='M19 5l2 4h-3l2 4h-3l2 4h-3'%3E%3C/path%3E%3C/svg%3E");
}

.design-control label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #475569;
}

.design-control select,
.design-control input {
  min-width: 140px;
}

.design-control select.is-disabled {
  opacity: 0.6;
}

.design-canvas-shell {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 18px 20px 24px;
  box-shadow: 0 24px 40px -30px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.design-canvas-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.design-canvas-header-left {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.design-canvas-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.design-canvas-title {
  font-size: 1rem;
  font-weight: 600;
  color: #0f172a;
}

.design-canvas-meta {
  font-size: 0.82rem;
  color: #475569;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 999px;
  padding: 4px 10px;
}

.design-template-badge {
  font-size: 0.78rem;
  color: #0f172a;
  background: rgba(14, 165, 233, 0.12);
  border-radius: 999px;
  padding: 4px 10px;
  transition: background 0.2s, color 0.2s;
}

.design-template-badge.is-unsaved {
  background: rgba(148, 163, 184, 0.18);
  color: #64748b;
}

.design-canvas-container {
  flex: 1 1 auto;
  display: flex;
  justify-content: center;
  align-items: center;
}

.design-canvas-board {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  background-image: linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%, #e2e8f0),
    linear-gradient(45deg, #e2e8f0 25%, transparent 25%, transparent 75%, #e2e8f0 75%, #e2e8f0);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
  padding: 16px;
  border-radius: 16px;
  border: 1px solid #cbd5f5;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  width: min(100%, 720px);
  aspect-ratio: 1 / 1;
  position: relative;
}

.design-canvas-golden {
  position: absolute;
  inset: 16px;
  width: calc(100% - 32px);
  height: calc(100% - 32px);
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2;
}

.design-canvas-golden.is-active {
  opacity: 0.4;
}

.design-canvas-guides {
  position: absolute;
  inset: 16px;
  pointer-events: none;
  z-index: 3;
}

.design-guide-line {
  position: absolute;
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0.05));
  display: none;
  box-shadow: 0 0 12px rgba(37, 99, 235, 0.25);
}

.design-guide-line.is-visible {
  display: block;
}

.design-guide-line--vertical {
  top: 0;
  bottom: 0;
  width: 2px;
}

.design-guide-line--horizontal {
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.05), rgba(37, 99, 235, 0.5), rgba(37, 99, 235, 0.05));
}

.design-guide-line--center.design-guide-line--vertical {
  left: 50%;
  transform: translateX(-50%);
}

.design-guide-line--center.design-guide-line--horizontal {
  top: 50%;
  transform: translateY(-50%);
}

.design-guide-line--third.design-guide-line--vertical.design-guide-line--third-a {
  left: 33.333%;
  transform: translateX(-1px);
}

.design-guide-line--third.design-guide-line--vertical.design-guide-line--third-b {
  right: 33.333%;
  transform: translateX(1px);
}

.design-guide-line--third.design-guide-line--horizontal.design-guide-line--third-a {
  top: 33.333%;
  transform: translateY(-1px);
}

.design-guide-line--third.design-guide-line--horizontal.design-guide-line--third-b {
  bottom: 33.333%;
  transform: translateY(1px);
}

.design-canvas-board.is-ratio-1-1 {
  width: min(100%, 720px);
  aspect-ratio: 1 / 1;
}

.design-canvas-board.is-ratio-9-16 {
  width: min(100%, 440px);
  aspect-ratio: 9 / 16;
}

.design-canvas-board.is-ratio-16-9 {
  width: min(100%, 840px);
  aspect-ratio: 16 / 9;
}

.design-canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 18px;
  background: rgba(248, 250, 252, 0.8);
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  margin: 16px 0;
}

.design-canvas-toolbar-group {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.design-canvas-toolbar-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #334155;
}

.design-ratio-group {
  display: inline-flex;
  gap: 8px;
  padding: 6px;
  border-radius: 12px;
  background: rgba(226, 232, 240, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.design-ratio-btn {
  padding: 6px 14px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #1e3a8a;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.design-ratio-btn:hover {
  border-color: rgba(37, 99, 235, 0.35);
  color: #1d4ed8;
}

.design-ratio-btn.is-active {
  background: rgba(37, 99, 235, 0.18);
  border-color: rgba(37, 99, 235, 0.45);
  color: #0f172a;
  box-shadow: 0 8px 20px -16px rgba(37, 99, 235, 0.6);
}

.design-view-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  box-shadow: 0 18px 38px -32px rgba(15, 23, 42, 0.4);
}

.design-view-controls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.design-view-toggle,
.design-view-radio {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.85rem;
  color: #1f2937;
}

.design-view-toggle input[type='checkbox'],
.design-view-radio input[type='radio'] {
  accent-color: #2563eb;
}

.design-golden-settings {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: rgba(226, 232, 240, 0.45);
  border-radius: 12px;
}

.design-golden-settings[hidden] {
  display: none;
}

.design-golden-angles {
  display: inline-flex;
  gap: 10px;
}

.design-golden-settings .btn.is-active,
.design-golden-settings .btn[aria-pressed='true'] {
  background: rgba(59, 130, 246, 0.22);
  border-color: rgba(96, 165, 250, 0.65);
  color: #0f172a;
}

.design-actions-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  box-shadow: 0 18px 38px -32px rgba(15, 23, 42, 0.4);
}

.design-actions-card .design-actions-right {
  display: flex;
  justify-content: flex-end;
  min-width: 140px;
}

.design-layers-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.design-layers-panel {
  width: auto;
  background: transparent;
  border: none;
  padding: 0;
  max-height: none;
}

.design-layers-card {
  padding: 0 0 16px;
}

.design-layer-list {
  margin: 0;
  padding: 16px 20px 0;
}

#design-canvas {
  display: block;
  background-color: transparent;
  width: 100%;
  height: 100%;
}

.design-control-inline .design-inline-inputs {
  display: flex;
  align-items: center;
  gap: 8px;
}

.design-inline-inputs input {
  width: 56px;
  min-width: 56px;
  flex: 0 0 56px;
}

.design-inline-separator {
  font-size: 0.875rem;
  color: #64748b;
}

.design-control-inline.is-disabled {
  opacity: 0.5;
}

.design-control-inline.is-disabled input {
  pointer-events: none;
}

.design-layers-panel {
  width: 300px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  max-height: calc(100vh - 260px);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.design-layers-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.design-layers-header h3 {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
}

.design-layer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  overflow-y: auto;
}

.design-layer-empty {
  font-size: 0.85rem;
  color: #64748b;
}

.design-layer-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  background: #f8fafc;
  cursor: default;
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
}

.design-layer-item:hover {
  background: #e8f1ff;
  border-color: #2563eb;
}

.design-layer-item.is-active {
  background: #dbeafe;
  border-color: #1d4ed8;
}

.design-layer-item.is-type-text {
  border-left: 4px solid #2563eb;
}

.design-layer-item.is-type-color-text {
  border-left: 4px solid #7c3aed;
}

.design-layer-item.is-type-image {
  border-left: 4px solid #0f9d58;
}

.design-layer-item.is-type-emoji {
  border-left: 4px solid #f97316;
}

.design-layer-item.is-type-text .design-layer-type {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.design-layer-item.is-type-color-text .design-layer-type {
  background: rgba(124, 58, 237, 0.12);
  color: #7c3aed;
}

.design-layer-item.is-type-image .design-layer-type {
  background: rgba(15, 157, 88, 0.12);
  color: #0f9d58;
}

.design-layer-item.is-type-emoji .design-layer-type {
  background: rgba(249, 115, 22, 0.12);
  color: #f97316;
}

.design-layer-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1 1 auto;
  min-width: 0;
}

.design-layer-item.is-dragging {
  opacity: 0.75;
  background: #c7d2fe;
  border-color: #4338ca;
}

.design-layer-item.is-drop-target::after {
  content: '';
  position: absolute;
  left: -4px;
  right: -4px;
  height: 0;
  border-top: 2px dashed #2563eb;
  top: -6px;
}

.design-layer-item.is-drop-target.is-after::after {
  top: auto;
  bottom: -6px;
}

.design-layer-dragging {
  user-select: none;
  cursor: grabbing !important;
}

.design-layer-handle {
  cursor: grab;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  padding: 0 4px;
  user-select: none;
}

.design-layer-handle:active {
  cursor: grabbing;
}

.design-layer-controls {
  margin-left: auto;
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.design-layer-action {
  border: none;
  background: transparent;
  color: #94a3b8;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  transition: color 0.15s ease, background 0.15s ease, transform 0.15s ease;
  font-size: 1rem;
  line-height: 1;
  min-width: 28px;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.design-layer-action:hover,
.design-layer-action:focus-visible {
  transform: scale(1.05);
}

.design-layer-duplicate {
  color: #0ea5e9;
}

.design-layer-delete {
  color: #ef4444;
}

.design-layer-duplicate:hover,
.design-layer-duplicate:focus-visible {
  color: #0284c7;
  background: rgba(14, 165, 233, 0.1);
}

.design-layer-delete:hover,
.design-layer-delete:focus-visible {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
}

.design-layer-preview {
  flex: 0 0 auto;
}

.design-layer-preview-text {
  display: block;
  font-size: 0.9rem;
  max-width: 220px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #111827;
}

.design-layer-preview-thumb {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
}

.design-layer-preview-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.design-layer-type {
  font-size: 0.72rem;
  color: #475569;
  background: rgba(148, 163, 184, 0.18);
  border-radius: 999px;
  padding: 2px 8px;
  width: fit-content;
}

.design-layer-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0;
  cursor: pointer;
}

.design-layer-controls-panel {
  display: none;
  flex-direction: column;
  gap: 12px;
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.3);
}

.design-layer-item.is-expanded .design-layer-controls-panel {
  display: flex;
}

.design-layer-details {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.78rem;
  color: #475569;
  line-height: 1.4;
}

.design-layer-detail-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.design-layer-detail-label {
  font-weight: 600;
  color: #1f2937;
  min-width: 70px;
}

.design-layer-detail-value {
  flex: 1 1 auto;
  overflow-wrap: anywhere;
}

.design-control-actions {
  display: flex;
  justify-content: flex-end;
}

.design-actions {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
}

.design-status {
  font-size: 0.85rem;
  color: #0f172a;
}

.design-status.error {
  color: #dc2626;
}

.design-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.45);
  z-index: 1000;
}

.design-modal.is-hidden {
  display: none;
}

.design-modal-dialog {
  background: #ffffff;
  padding: 24px;
  border-radius: 16px;
  width: min(460px, 90%);
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.15);
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.design-modal-dialog--wide {
  width: min(780px, 95%);
}

.design-image-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-start;
}

.design-image-preview {
  flex: 1 1 400px;
  min-height: 320px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.design-image-cropper-controls {
  display: flex;
  justify-content: flex-start;
}

.design-image-preview img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.simple-cropper-container {
  position: relative;
  overflow: hidden;
  cursor: grab;
  touch-action: none;
}

.simple-cropper-container.is-cropping-dragging {
  cursor: grabbing;
}

.simple-cropper-frame {
  position: absolute;
  border: 2px dashed rgba(37, 99, 235, 0.85);
  border-radius: 12px;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(15, 23, 42, 0.35);
  z-index: 10;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
}

.simple-cropper-container img.simple-cropper-image {
  position: absolute;
  z-index: 5;
  user-select: none;
  pointer-events: none;
}

.design-image-tools {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.design-image-tools select {
  min-width: 0;
}

.design-image-note {
  margin: 0;
  font-size: 0.85rem;
  color: #64748b;
}

.design-emoji-modal {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 500px;
}

.design-emoji-toolbar input {
  width: 100%;
}

.design-emoji-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(56px, 1fr));
  gap: 8px;
  overflow-y: auto;
  padding-right: 4px;
}

.design-emoji-modal-item {
  border: 1px solid #cbd5f5;
  background: #f8fafc;
  border-radius: 10px;
  padding: 6px;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.design-emoji-modal-item:hover {
  background: #e0f2fe;
  transform: translateY(-1px);
}

.design-emoji-modal-item img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.design-template-library {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.design-template-library-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
}

.design-template-library-toolbar input[type="search"] {
  flex: 1 1 auto;
  padding: 8px 12px;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  font-size: 0.9rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.design-template-library-toolbar input[type="search"]:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.design-template-library-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 70vh;
  overflow-y: auto;
  padding-right: 4px;
}

.design-template-library-status {
  font-size: 0.85rem;
  color: #64748b;
  min-height: 18px;
}

.design-template-library-status.is-error {
  color: #dc2626;
}

.design-template-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.design-template-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: #f8fafc;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  cursor: pointer;
}

.design-template-card:hover {
  border-color: #2563eb;
  box-shadow: 0 12px 28px -20px rgba(37, 99, 235, 0.55);
  transform: translateY(-1px);
}

.design-template-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 14px 32px -20px rgba(37, 99, 235, 0.65);
}

.design-template-card:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.design-template-card-thumb {
  position: relative;
  padding-top: 56%;
  border-radius: 12px;
  background: #e2e8f0;
  overflow: hidden;
}

.design-template-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.design-template-card-thumb--empty {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.8rem;
}

.design-template-card-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.design-template-card-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.design-template-card-meta {
  font-size: 0.8rem;
  color: #64748b;
}

.design-template-library-empty {
  font-size: 0.85rem;
  color: #a1aec6;
  text-align: center;
  padding: 24px 0;
}

.design-template-library-empty.is-hidden {
  display: none;
}

.design-template-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
}

.design-template-page-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #0f172a;
}

.design-modal-dialog h3 {
  margin: 0;
  font-size: 1.1rem;
}

.design-modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  color: #475569;
}

.design-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}

.design-modal-status {
  margin: 8px 0 0;
  font-size: 0.9rem;
  color: #475569;
}

.design-modal-status.error {
  color: #dc2626;
}

.design-sticker-preview {
  margin: 12px 0;
  padding: 16px;
  border: 1px dashed #cbd5f5;
  border-radius: 12px;
  background: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.design-sticker-preview img {
  max-width: 100%;
  max-height: 320px;
  object-fit: contain;
}

.design-font-type-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.design-font-type-option {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.design-font-type-option input {
  margin: 0;
  accent-color: #2563eb;
}

.design-font-type-option span {
  font-size: 0.9rem;
  color: #1f2937;
}

.design-font-type-option.is-active {
  border-color: #2563eb;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2);
}

@media (max-width: 1024px) {
  .design-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .design-sideboard,
  .design-mainboard,
  .design-layers-column {
    order: 0;
  }

  #design-canvas {
    width: 420px;
    height: 420px;
  }
}

@media (max-width: 640px) {
  .design-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .design-toolbar-left {
    justify-content: flex-start;
  }

  #design-canvas {
    width: 320px;
    height: 320px;
  }

  .design-hero {
    padding: 20px;
  }
}
.pod-listing-product {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.pod-listing-text {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.85rem;
}

.pod-listing-field {
  margin-top: 10px;
  max-width: 240px;
}

@media (max-width: 1100px) {
  .pod-listing-grid-header {
    grid-template-columns: 1fr;
  }
}

.pod-detail-column ul {
  list-style: none;
  margin: 0;
  padding-left: 0;
}

.pod-detail-column ul li {
  margin-bottom: 6px;
}

.pod-detail-column ul li label {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pod-detail-page .form-actions {
  justify-content: flex-start;
}

.pod-ideas-list details {
  font-size: 0.85rem;
}

.pod-ideas-list details summary {
  cursor: pointer;
  color: #2563eb;
  font-weight: 600;
  margin-bottom: 6px;
}

.pod-ideas-list details summary::-webkit-details-marker {
  color: #2563eb;
}

.pod-ideas-list .pre {
  background: #0f172a;
  color: #f8fafc;
  padding: 12px;
  border-radius: 12px;
  max-height: 220px;
  overflow: auto;
}

.size-chart-form input[type="url"] {
  flex: 1 1 260px;
  min-width: 220px;
  padding: 9px 12px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
}

.size-chart-dropzone {
  position: relative;
  min-height: 160px;
  border: 2px dashed rgba(37, 99, 235, 0.25);
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: #475569;
  padding: 16px;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.size-chart-dropzone:focus,
.size-chart-dropzone:hover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
  outline: none;
}

.size-chart-dropzone.dragover {
  border-color: #1d4ed8;
  background: rgba(37, 99, 235, 0.12);
}

.size-chart-dropzone p {
  margin: 8px 0 12px;
  font-size: 0.85rem;
}

.dropzone-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #2563eb;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
}

.dropzone-button {
  margin-top: 4px;
}

.size-chart-preview {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #f8fafc;
}

.size-chart-preview img {
  max-width: 280px;
  max-height: 280px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  display: block;
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.35);
}

.size-chart-placeholder {
  font-size: 0.9rem;
  color: #94a3b8;
}

.title-push-row {
  margin-top: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.title-push-row label {
  font-weight: 600;
}

.title-push-row select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: #fff;
  font-size: 0.9rem;
}

.trendsi-search-form input[type="text"] {
  flex: 1 1 240px;
  min-width: 200px;
  padding: 9px 12px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 10px;
  font-size: 0.95rem;
  background: #fff;
}

.trendsi-search-form .btn-link.btn-small {
  padding: 0;
}

.list-toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.bulk-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.bulk-actions .btn[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}

.product-table table {
  min-width: 960px;
}

.product-cell {
  display: flex;
  align-items: center;
  gap: 16px;
}

.product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.product-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #64748b;
}

.product-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.shop-taglist {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}

.shop-taglist li {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
}

.table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.media-preview {
  width: 140px;
  max-width: 140px;
}

.media-preview img,
.media-preview video {
  display: block;
  width: 100%;
  max-height: 120px;
  border-radius: 10px;
  object-fit: cover;
  background: #0f172a;
}

.media-preview video {
  background: #0f172a;
}

.media-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  border: 2px dashed rgba(148, 163, 184, 0.7);
  border-radius: 12px;
  background: rgba(241, 245, 249, 0.6);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
  min-height: 80px;
  text-align: center;
  color: #475569;
  font-size: 0.95rem;
}

.media-dropzone:focus {
  outline: none;
  border-color: #2563eb;
  background: rgba(219, 234, 254, 0.8);
}

.media-dropzone.is-hovered {
  border-color: #2563eb;
  background: rgba(191, 219, 254, 0.6);
}

.media-dropzone-text {
  pointer-events: none;
}

.design-image-source {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 300px) minmax(0, 1fr);
  align-items: flex-start;
}

@media (max-width: 1100px) {
  .design-image-source {
    grid-template-columns: minmax(0, 1fr);
  }
}

.design-image-source-upload h4,
.design-image-source-library h4 {
  margin: 0 0 12px 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: #0f172a;
}

.design-image-dropzone {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  min-height: 110px;
  border-radius: 12px;
  border: 2px dashed rgba(148, 163, 184, 0.7);
  background: rgba(241, 245, 249, 0.65);
  color: #475569;
  text-align: center;
  line-height: 1.4;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}

.design-image-dropzone:focus {
  outline: none;
  border-color: #2563eb;
  background: rgba(219, 234, 254, 0.8);
}

.design-image-dropzone.is-hovered {
  border-color: #2563eb;
  background: rgba(191, 219, 254, 0.6);
}

.design-image-source-hint {
  font-size: 0.85rem;
  color: #64748b;
  margin-top: 8px;
}

.design-image-source-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.design-image-source-heading a {
  font-size: 0.85rem;
  color: #2563eb;
  text-decoration: none;
}

.design-image-source-heading a:hover {
  text-decoration: underline;
}

.design-image-library {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  max-height: 360px;
  overflow-y: auto;
  padding-right: 4px;
}

.design-image-library-item {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.design-image-library-item:hover,
.design-image-library-item:focus {
  border-color: #2563eb;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.18);
  outline: none;
}

.design-image-library-item figure {
  margin: 0;
  border-radius: 8px;
  overflow: hidden;
  background: #e2e8f0;
}

.design-image-library-item img {
  display: block;
  width: 100%;
  height: 90px;
  object-fit: cover;
}

.design-image-library-item span {
  font-size: 0.85rem;
  color: #1f2937;
  text-align: left;
}

.design-animation-preview {
  margin-bottom: 16px;
  border-radius: 12px;
  overflow: hidden;
  background: #0f172a;
}

.design-animation-preview video {
  display: block;
  width: 100%;
  max-height: 240px;
  background: #000;
}

.design-animation-config-note {
  margin-top: 0;
  margin-bottom: 16px;
  font-size: 0.92rem;
  color: #475569;
}

.design-animation-config-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
  margin-bottom: 16px;
}

.design-animation-config-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.9);
}

.design-animation-config-label {
  font-size: 0.9rem;
  color: #0f172a;
  flex: 1 1 auto;
  text-align: left;
}

.design-animation-config-select {
  flex: 0 0 180px;
  max-width: 220px;
}

.trend-keyword-cell {
  min-width: 220px;
}

.trend-keyword-main {
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #0f172a;
}

.trend-keyword-link {
  color: inherit;
  text-decoration: none;
}

.trend-keyword-link:hover {
  text-decoration: underline;
}

.trend-keyword-pill {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2563eb, #9333ea);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 8px 18px -12px rgba(79, 70, 229, 0.9);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.trend-keyword-link:hover .trend-keyword-pill {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -12px rgba(79, 70, 229, 0.7);
}

.trend-new-indicator {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.05em;
}

.trend-keyword-subtext {
  margin-left: 10px;
  font-size: 0.78rem;
  color: #94a3b8;
  display: inline-block;
}

.btn-extra {
  font-size: 0.78rem;
  padding: 4px 10px;
}

.trend-link-cell {
  min-width: 260px;
  vertical-align: top;
}

.trend-link-actions {
  margin-top: 6px;
}

.trend-link-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  background: rgba(248, 250, 252, 0.9);
}

.trend-link-form.is-hidden {
  display: none;
}

.trend-link-form-actions {
  display: flex;
  gap: 8px;
}

.trend-link-input {
  min-width: 220px;
  max-width: 280px;
  padding: 6px 10px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 8px;
  font-size: 0.85rem;
}

.trend-link-input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.trend-inline-message {
  font-size: 0.78rem;
  color: #0f172a;
}

.trend-inline-message.error {
  color: #ef4444;
}

.trend-link-list {
  margin: 4px 0 0;
  padding-left: 18px;
  font-size: 0.78rem;
  color: #475569;
  word-break: break-all;
}

.trend-link-list li {
  margin-bottom: 2px;
}

.trend-link-list a {
  color: #2563eb;
  text-decoration: none;
}

.trend-link-list a:hover {
  text-decoration: underline;
}

.trend-image-manager {
  margin-top: 24px;
}

.trend-image-manager__header {
  display: flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 12px;
}

.trend-image-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 16px;
}

.trend-image-gallery a {
  display: block;
  width: 92px;
  height: 92px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 8px 18px -12px rgba(15, 23, 42, 0.45);
}

.trend-image-gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.trend-image-dropzone {
  position: relative;
  border: 2px dashed rgba(100, 116, 139, 0.6);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  background-color: rgba(248, 250, 252, 0.8);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.trend-image-dropzone p {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.trend-image-dropzone__message {
  display: block;
  margin-top: 6px;
  font-size: 0.85rem;
  color: #64748b;
}

.trend-image-dropzone__message.error {
  color: #ef4444;
}

.trend-image-dropzone.is-hover {
  border-color: #2563eb;
  background-color: rgba(37, 99, 235, 0.06);
}

.trend-image-dropzone.is-uploading {
  opacity: 0.7;
  pointer-events: none;
}

.chart-card {
  margin-top: 24px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background-color: #fff;
  box-shadow: 0 12px 24px -16px rgba(15, 23, 42, 0.4);
}

.chart-card__header {
  padding: 16px 20px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.3);
}

.chart-card__body {
  position: relative;
  padding: 20px;
  min-height: 260px;
  max-height: 320px;
  overflow: hidden;
}

.chart-empty {
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  padding-top: 12px;
}

.trend-inline-uploader {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trend-inline-uploader__message {
  font-size: 0.78rem;
  color: #0f172a;
}

.trend-inline-uploader__message.error {
  color: #ef4444;
}

.trend-keyword-search {
  text-decoration: none;
  font-size: 0.95rem;
  line-height: 1;
}

.trend-image-strip {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 6px;
}
.trend-image-strip.is-hidden {
  display: none;
}

.trend-image-display {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.trend-image-strip img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.trend-image-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 6px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  background: rgba(148, 163, 184, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #64748b;
  font-size: 0.75rem;
}

.trend-image-placeholder::after {
  content: "+";
  font-weight: 600;
}

.trend-image-gallery {
  max-width: 120px;
}

.trend-image-gallery img,
.trend-image-gallery .trend-image-placeholder {
  width: 100%;
  height: auto;
  max-height: 120px;
  border-radius: 8px;
}

.trend-stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin-bottom: 24px;
}

.trend-stat {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(99, 102, 241, 0.08));
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 20px 32px -28px rgba(37, 99, 235, 0.6);
}

.trend-stat__label {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 6px;
}

.trend-stat__value {
  display: block;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0f172a;
}

.trend-stat__value--accent {
  color: #2563eb;
}

.checkbox-column {
  display: grid;
  gap: 6px;
  max-height: 220px;
  overflow-y: auto;
  padding: 4px 6px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.6);
}

.checkbox-column ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.checkbox-column li {
  margin: 0;
}

.checkbox-column .form-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.product-row.selected,
.analysis-row.selected {
  background: rgba(37, 99, 235, 0.05);
}

.inline-form {
  display: inline;
}

.inline-list {
  list-style: disc;
  margin: 6px 0 0 18px;
  padding: 0;
}

.inline-list li {
  font-size: 0.85rem;
  color: #475569;
}

.table-action-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.table-action-group form {
  display: inline;
}

.text-danger {
  color: #b91c1c;
}

.text-success {
  color: #15803d;
}

.col-actions {
  width: 160px;
}

.trendsi-results {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px 28px;
  display: grid;
  gap: 20px;
}

.trendsi-results-header h2 {
  margin: 0;
}

.trendsi-results-grid {
  display: grid;
  gap: 18px;
  justify-content: center;
  grid-template-columns: repeat(auto-fit, minmax(260px, 320px));
  align-items: stretch;
}

.trendsi-card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 14px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
}

.trendsi-card-image {
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  width: 100%;
  min-height: 220px;
}

.trendsi-card-image img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  background: #fff;
}

.trendsi-card-image .no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 220px;
  width: 100%;
  font-size: 0.8rem;
  color: #64748b;
  text-transform: uppercase;
  font-weight: 600;
}

.trendsi-card-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.trendsi-card-title {
  font-weight: 600;
  color: #0f172a;
  text-decoration: none;
}

.trendsi-card-title:hover {
  color: #2563eb;
}

.trendsi-card-id {
  font-size: 0.8rem;
  color: #475569;
}

.trendsi-card-price {
  font-size: 0.85rem;
  color: #2563eb;
  font-weight: 600;
}

.trendsi-card-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.trendsi-card-actions form {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-start;
}

.import-link-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.import-link-options select,
.import-link-options .import-link-input {
  padding: 6px 10px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 10px;
  background: #fff;
  font-size: 0.85rem;
}

.import-link-input {
  flex: 1 1 140px;
  min-width: 120px;
}

.video-sync-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}

.video-sync-controls .btn {
  flex-shrink: 0;
}

.video-sync-controls select {
  padding: 6px 10px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  border-radius: 10px;
  background: #fff;
  font-size: 0.85rem;
}

.video-sync-controls .form-message {
  margin: 0;
}

.analysis-row {
  display: none;
}

.analysis-row.active {
  display: table-row;
}

.analysis-card {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 14px;
  padding: 16px;
}

.analysis-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.95rem;
}

.analysis-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
}

.analysis-close:hover {
  color: #ef4444;
}

.analysis-body {
  position: relative;
  min-height: 200px;
}

.analysis-body canvas {
  width: 100% !important;
  height: 200px !important;
}

.analysis-empty {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #64748b;
  font-size: 0.85rem;
  pointer-events: none;
}

.col-select {
  width: 60px;
}

th.numeric,
td.cell-number {
  text-align: right;
}

.link-strong {
  color: #111827;
  font-weight: 600;
  text-decoration: none;
}

.link-strong:hover {
  color: #2563eb;
}

.tagline {
  margin-top: 4px;
  font-size: 0.85rem;
  color: #6b7280;
}

.status-pill {
  padding: 6px 12px;
  font-size: 0.75rem;
  border-radius: 999px;
  background: #e5e7eb;
  color: #111827;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.status-pill-success {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.status-active {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.status-review {
  background: rgba(59, 130, 246, 0.15);
  color: #1d4ed8;
}

.status-draft,
.status-paused {
  background: rgba(148, 163, 184, 0.18);
  color: #475569;
}

.status-archived {
  background: rgba(148, 163, 184, 0.24);
  color: #334155;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid transparent;
  white-space: nowrap;
}

.status-chip--success {
  color: #166534;
  background: rgba(34, 197, 94, 0.16);
  border-color: rgba(34, 197, 94, 0.25);
}

.status-chip--danger {
  color: #b91c1c;
  background: rgba(248, 113, 113, 0.16);
  border-color: rgba(248, 113, 113, 0.28);
}

.status-chip--muted {
  color: #475569;
  background: rgba(148, 163, 184, 0.18);
  border-color: rgba(148, 163, 184, 0.24);
}

.status-chip--warning {
  color: #92400e;
  background: rgba(251, 191, 36, 0.2);
  border-color: rgba(251, 191, 36, 0.3);
}

.status-chip--secondary {
  color: #1e293b;
  background: rgba(148, 163, 184, 0.15);
  border-color: rgba(148, 163, 184, 0.3);
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
  position: relative;
}

.status-chip--danger .status-dot::after {
  content: '\2715';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  font-size: 0.55rem;
  color: currentColor;
}

.status-chip--success .status-dot {
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.paginator {
  margin-top: 20px;
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 0.95rem;
}

.paginator a {
  color: #2563eb;
  text-decoration: none;
}

.flash-stack {
  margin-bottom: 18px;
}

.flash {
  padding: 12px 16px;
  border-radius: 12px;
  background: rgba(37, 99, 235, 0.12);
  color: #1e3a8a;
  margin-bottom: 8px;
}

.flash-success {
  background: rgba(16, 185, 129, 0.16);
  color: #065f46;
}

.flash-error {
  background: rgba(239, 68, 68, 0.15);
  color: #b91c1c;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 16px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.95rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn.is-loading {
  position: relative;
  pointer-events: none;
  opacity: 0.85;
  padding-right: 32px;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.5);
  border-top-color: #fff;
  animation: btn-spin 0.6s linear infinite;
}

.btn-outline.is-loading::after,
.btn-link.is-loading::after {
  border-color: rgba(37, 99, 235, 0.4);
  border-top-color: #2563eb;
}

@keyframes btn-spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

.pod-detail-page .btn {
  position: relative;
  overflow: hidden;
}

.pod-detail-page .btn::after {
  content: '';
  position: absolute;
  top: var(--ripple-y, 50%);
  left: var(--ripple-x, 50%);
  width: var(--ripple-size, 24px);
  height: var(--ripple-size, 24px);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.4);
  transform: translate(-50%, -50%) scale(0);
  opacity: 0;
  pointer-events: none;
}

.pod-detail-page .btn.is-rippling::after {
  animation: pod-button-ripple 0.45s ease-out forwards;
}

.pod-detail-page .btn.is-pressed {
  transform: scale(0.97);
}

@keyframes pod-button-ripple {
  0% {
    transform: translate(-50%, -50%) scale(0);
    opacity: 0.35;
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
    opacity: 0;
  }
}

@keyframes pod-copy-spinner {
  from {
    transform: rotate(0turn);
  }
  to {
    transform: rotate(1turn);
  }
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb, #1d4ed8);
  color: #fff;
  box-shadow: 0 10px 18px -12px rgba(37, 99, 235, 0.6);
}

.btn-secondary {
  background: #0f172a;
  color: #fff;
}

.btn-idea {
  background: #f97316;
  color: #fff;
  box-shadow: 0 12px 18px -12px rgba(249, 115, 22, 0.6);
}

.btn-images {
  background: #0ea5e9;
  color: #fff;
}

.btn-post {
  background: #22c55e;
  color: #022c22;
  font-weight: 600;
}

.btn-icon {
  display: inline-flex;
  margin-right: 4px;
}

.btn-rewrite-post {
  background: #16a34a;
  color: #fff;
  box-shadow: 0 10px 18px -12px rgba(22, 163, 74, 0.6);
}

.pod-rematch-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 12px;
  font-size: 0.9rem;
  color: #0f172a;
}
.btn-link {
  background: transparent;
  color: #2563eb;
  padding: 0;
}

.btn-small {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.form-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.form-grid.single {
  max-width: 420px;
  grid-template-columns: 1fr;
}

.form-control-wrapper {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-control-wrapper textarea {
  min-height: 100px;
}

.form-control-wrapper textarea.small {
  min-height: 70px;
}

label {
  font-weight: 600;
  font-size: 0.92rem;
  color: #1f2937;
}

input[type="text"],
input[type="url"],
input[type="number"],
input[type="search"],
input[type="date"],
input[type="datetime-local"],
select,
textarea {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font-size: 0.95rem;
  background: #fff;
  transition: border 0.15s ease, box-shadow 0.15s ease;
}

input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.18);
}

.input-flash {
  animation: inputFlash 1.2s ease;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.3);
}

@keyframes inputFlash {
  0% {
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.4);
  }
  60% {
    box-shadow: 0 0 0 5px rgba(59, 130, 246, 0.12);
  }
  100% {
    box-shadow: none;
  }
}

.required {
  color: #ef4444;
  margin-left: 4px;
}

.help-text {
  font-size: 0.78rem;
  color: #6b7280;
}

.error {
  color: #b91c1c;
  font-size: 0.82rem;
}

.error-block {
  background: rgba(185, 28, 28, 0.08);
  border-left: 3px solid #b91c1c;
  padding: 10px 12px;
  border-radius: 10px;
  display: grid;
  gap: 6px;
}

.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.form-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  background: rgba(59, 130, 246, 0.12);
  border-radius: 10px;
  font-size: 0.9rem;
  margin-bottom: 16px;
}

.detail-layout {
  display: grid;
  gap: 32px;
  grid-template-columns: minmax(240px, 320px) 1fr;
}

.detail-sidebar {
  background: #f8fafc;
  padding: 20px;
  border-radius: 16px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}

.detail-sidebar h2 {
  margin-top: 0;
}

.definition-list {
  margin: 0;
  padding: 0;
}

.definition-list dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: #64748b;
  margin-top: 12px;
}

.definition-list dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.pre {
  white-space: pre-wrap;
  background: #fff;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.meta-inline {
  list-style: none;
  padding: 0;
  margin: 8px 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: #475569;
  font-size: 0.9rem;
}

.detail-actions {
  display: flex;
  gap: 12px;
}

.videos-header {
  display: flex;
  align-items: center;
  gap: 12px;
}

.badge {
  background: rgba(15, 23, 42, 0.08);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  font-weight: 600;
}

.badge-success {
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
}

.badge-warning {
  background: rgba(249, 115, 22, 0.18);
  color: #c2410c;
}

.badge-primary {
  background: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
}

.pod-printify-generated-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 10px 0 6px;
}

.pod-printify-generated-meta .badge-rounded {
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
}

.pod-printify-generated-meta .badge-muted {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

.video-grid {
  margin-top: 20px;
  display: grid;
  gap: 16px;
}

.video-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 16px;
  padding: 18px;
  background: #fff;
  display: grid;
  gap: 14px;
}

.video-card.primary {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 14px 25px -18px rgba(37, 99, 235, 0.55);
}

.video-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.video-card h3 {
  margin: 0;
}

.video-meta {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 0.9rem;
  color: #475569;
}

.video-media {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.video-media video {
  width: 100%;
  max-width: 220px;
  border-radius: 12px;
  box-shadow: 0 16px 28px -24px rgba(15, 23, 42, 0.7);
}

.video-media .file-link {
  margin-top: 6px;
  font-size: 0.85rem;
}

.seed-preview {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  font-size: 0.78rem;
  color: #475569;
}

.seed-preview img {
  width: 110px;
  height: 110px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.35);
}

.video-media.compact {
  grid-template-columns: auto auto;
  gap: 14px;
}

.video-media.compact video {
  width: 180px;
  max-width: none;
}

.seed-preview.compact img {
  width: 80px;
  height: 80px;
}

.video-meta-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  font-size: 0.88rem;
  color: #475569;
}

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

.panel-subsection form .form-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.app-footer {
  padding: 16px 0;
  background: #0f172a;
  color: #94a3b8;
  text-align: center;
}

.breadcrumb {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  margin-bottom: 8px;
}

.detail-header h1 {
  margin-top: 0;
}

.panel-subsection h3 {
  margin-top: 0;
}

.small {
  font-size: 0.85rem;
}

.steps {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #475569;
}

.steps li {
  margin-bottom: 8px;
}

.product-detail-page {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.product-detail-page .breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  color: #64748b;
}

.product-detail-page .breadcrumb a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(260px, 360px) 1fr;
  gap: 40px;
  align-items: flex-start;
}

.detail-gallery {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gallery-main {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.gallery-main img {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
}

.gallery-count {
  position: absolute;
  bottom: 12px;
  right: 12px;
  font-size: 0.82rem;
  background: rgba(15, 23, 42, 0.75);
  color: #fff;
  padding: 4px 8px;
  border-radius: 999px;
}

.gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 10px;
}

.gallery-thumb {
  border: 1px solid transparent;
  background: #f1f5f9;
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  overflow: hidden;
  transition: border 0.2s ease, transform 0.2s ease;
}

.gallery-thumb img {
  width: 100%;
  height: 64px;
  object-fit: cover;
  display: block;
}

.gallery-thumb:hover {
  border-color: #2563eb;
  transform: translateY(-1px);
}

.gallery-thumb.active {
  border-color: #2563eb;
  box-shadow: 0 10px 20px -16px rgba(37, 99, 235, 0.6);
}

.gallery-placeholder {
  padding: 40px 20px;
  text-align: center;
  border: 1px dashed rgba(15, 23, 42, 0.15);
  border-radius: 16px;
  color: #94a3b8;
}

.gallery-actions {
  display: flex;
  justify-content: center;
  gap: 20px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.gallery-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.detail-summary {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.summary-header h1 {
  margin: 0;
  font-size: 1.9rem;
  color: #111827;
}

.image-title-suggest {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 16px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  background: #f8fafc;
}

.image-title-header {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.9rem;
}

.image-title-controls {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.image-title-controls select {
  padding: 8px 12px;
  border-radius: 10px;
  border: 1px solid rgba(17, 24, 39, 0.15);
  background: #fff;
  font-size: 0.9rem;
  min-width: 220px;
}

.image-title-result {
  min-height: 20px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1f2937;
}

.summary-sub {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 12px;
}

.trendsi-id-row {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
}

.trendsi-id-label {
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.75rem;
}

.trendsi-id-value {
  background: #0f172a;
  color: #e2e8f0;
  padding: 2px 8px;
  border-radius: 6px;
}

.brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 999px;
  font-weight: 600;
  margin-top: 12px;
}

.price-summary {
  display: flex;
  gap: 32px;
}

.price-block {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.price-block .label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.35px;
  color: #6b7280;
}

.price-block .value {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f172a;
}

.meta-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.meta-label {
  min-width: 90px;
  font-weight: 600;
  color: #475569;
  font-size: 0.92rem;
}

.meta-value {
  font-size: 0.95rem;
  color: #0f172a;
}

.quantity-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.inventory-analysis {
  margin-top: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px;
  height: 260px;
}

.title-suggest {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.title-suggest-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.title-suggest-row {
  display: flex;
  gap: 12px;
}

.title-suggest input {
  flex: 1;
  padding: 8px 10px;
  border-radius: 8px;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.title-suggestion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
  font-size: 0.9rem;
  color: #334155;
}

.title-suggestion-list.collapsed {
  display: none;
}

.title-suggestion-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 10px;
  padding: 8px 10px;
}

.title-suggestion-list li.used {
  opacity: 0.7;
}

.title-suggestion-list li .title-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.title-suggestion-list li .keywords {
  font-size: 0.75rem;
  color: #64748b;
}

.title-suggestion-list li .copy-title[disabled] {
  cursor: default;
  color: #94a3b8;
}

.pill-group {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.85rem;
  border: 1px solid transparent;
  background: rgba(148, 163, 184, 0.18);
  color: #1f2937;
}

.pill.active {
  background: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
  border-color: rgba(37, 99, 235, 0.35);
}

.pill-outline {
  background: #fff;
  border-color: rgba(15, 23, 42, 0.18);
}

.pill-outline.active {
  border-color: rgba(37, 99, 235, 0.4);
  color: #1d4ed8;
}

.pill-soft {
  background: rgba(244, 114, 182, 0.18);
  color: #be125d;
}

.size-guide-link {
  margin-left: auto;
  font-size: 0.82rem;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.shipping-panel {
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.25);
  padding: 16px;
}

.shipping-panel .panel-title {
  font-weight: 600;
  margin-bottom: 8px;
}

.shipping-panel ul {
  margin: 0;
  padding-left: 18px;
  color: #475569;
  font-size: 0.9rem;
}

.action-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

.action-buttons form {
  margin: 0;
}

.tiktok-linker-panel {
  margin-top: 12px;
  background: #f8fafc;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.35);
  padding: 18px;
}

.tiktok-link-form .form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}

.tiktok-link-form label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #1e293b;
}

.tiktok-link-form select,
.tiktok-link-form input {
  max-width: 280px;
}

.tiktok-link-form .form-actions.inline {
  margin-top: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.tiktok-link-form .btn-link.btn-small {
  color: #1f2937;
}

.form-message {
  font-size: 0.85rem;
  margin: 4px 0 0;
  color: #2563eb;
}

.form-message.error {
  color: #b91c1c;
}
.form-message.success {
  color: #047857;
}

.form-help {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 6px;
}

.tiktok-linked-shops {
  margin-top: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 18px;
}

.tiktok-linked-shops header {
  font-weight: 600;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: #0f172a;
}

.linked-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.linked-list li {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: baseline;
  padding: 10px 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: #f8fafc;
}

.linked-list li .link-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
}

.linked-list li .shop-name {
  font-weight: 600;
  color: #0f172a;
}

.linked-list li .product-id {
  font-size: 0.85rem;
  background: rgba(37, 99, 235, 0.08);
  padding: 2px 6px;
  border-radius: 6px;
  color: #1d4ed8;
}

.linked-list li .linked-meta {
  font-size: 0.78rem;
  color: #64748b;
}

.linked-list.compact li {
  padding: 8px 10px;
  gap: 8px;
}

.linked-list li.empty {
  border-style: dashed;
  justify-content: center;
  color: #64748b;
  background: transparent;
}

.btn-outline {
  background: #fff;
  color: #1f2937;
  border: 1px solid rgba(15, 23, 42, 0.2);
}

.btn-outline.btn-tiny {
  border: none;
  background: transparent;
  color: #2563eb;
  padding: 0;
}

.btn-outline.btn-tiny:hover {
  transform: none;
  color: #1d4ed8;
}

.btn-outline.is-active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.25);
}

.btn.is-disabled {
  opacity: 0.6;
  pointer-events: none;
  cursor: not-allowed;
}

.btn.btn-tiny,
.btn-tiny {
  padding: 4px 8px;
  font-size: 0.75rem;
  line-height: 1.2;
  border-radius: 8px;
}

.btn-link.is-disabled,
.btn-link[disabled] {
  color: rgba(15, 23, 42, 0.35);
  pointer-events: none;
  cursor: not-allowed;
}

.notes-card {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 14px;
  padding: 16px;
  background: #f9fafb;
}

.notes-title {
  font-weight: 600;
  margin-bottom: 6px;
}

.detail-sections {
  display: grid;
  gap: 24px;
}

.info-section {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  padding: 24px 28px;
}

.info-section > header {
  font-weight: 700;
  font-size: 1.1rem;
  margin-bottom: 16px;
}

.measurement-note {
  font-size: 0.82rem;
  color: #64748b;
  margin-top: 10px;
}

.video-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.video-form-step {
  margin-bottom: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seed-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}


.seed-option {
  position: relative;
  border: 2px solid transparent;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-items: stretch;
  width: 140px;
  min-height: 170px;
  background: #f8fafc;
  box-shadow: 0 10px 25px -20px rgba(15, 23, 42, 0.35);
}

.seed-option input {
  position: absolute;
  opacity: 0;
}

.seed-option img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 160px;
  object-fit: contain;
  background: #fff;
}

.seed-option span {
  padding: 6px 8px;
  font-size: 0.78rem;
  text-align: center;
  color: #1f2937;
}

.seed-option:hover {
  border-color: rgba(37, 99, 235, 0.4);
}

.seed-option.active {
  border-color: rgba(37, 99, 235, 0.6);
}

.seed-option input:checked ~ span {
  color: #1d4ed8;
  font-weight: 600;
}

.seed-option input:checked ~ img {
  outline: 2px solid rgba(37, 99, 235, 0.6);
  outline-offset: -2px;
}

.video-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
  margin-bottom: 20px;
}

.checkbox-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
  margin-top: 8px;
}

.prompt-view {
  display: grid;
  gap: 24px;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
}

.prompt-editor {
  border-left: 1px solid rgba(15, 23, 42, 0.08);
  padding-left: 24px;
}

.prompt-editor h4 {
  margin-top: 0;
  margin-bottom: 16px;
}

.prompt-list .actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.prompt-list .actions form {
  margin: 0;
}

.prompt-list .meta-table td {
  vertical-align: middle;
}

.prompt-type-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 72px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #fff;
}

.prompt-type-badge--image {
  background: linear-gradient(135deg, #0ea5e9, #6366f1);
  box-shadow: 0 6px 16px -8px rgba(14, 165, 233, 0.6);
}

.prompt-type-badge--video {
  background: linear-gradient(135deg, #fb7185, #f97316);
  box-shadow: 0 6px 16px -8px rgba(249, 115, 22, 0.55);
}

.default-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  margin-left: 8px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(16, 185, 129, 0.15);
  color: #047857;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.prompt-row--default {
  background: rgba(16, 185, 129, 0.05);
}

.table-row-default {
  background: rgba(59, 130, 246, 0.05);
}

.meta-table .table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.meta-table .table-actions form {
  margin: 0;
}

.prompt-history-table details summary {
  cursor: pointer;
  font-weight: 600;
  color: #0f172a;
}

.prompt-history-thumb {
  width: 60px;
  height: 60px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 12px -8px rgba(15, 23, 42, 0.4);
}

.prompt-history-meta {
  list-style: none;
  padding-left: 0;
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: #475569;
}

.prompt-history-meta li + li {
  margin-top: 2px;
}

.meta-table tr.is-editing {
  background: rgba(37, 99, 235, 0.08);
}

.meta-table tr.is-editing td {
  border-color: rgba(37, 99, 235, 0.25);
}

.prompt-editor .edit-banner {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

@media (max-width: 900px) {
  .prompt-view {
    grid-template-columns: 1fr;
  }
  .prompt-editor {
    border-left: none;
    padding-left: 0;
    border-top: 1px solid rgba(15, 23, 42, 0.08);
    padding-top: 20px;
  }
}

.dashboard-layout {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  align-items: flex-start;
}

.dashboard-sidebar {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 18px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: sticky;
  top: 100px;
  height: fit-content;
}

.dashboard-sidebar h2 {
  font-size: 1.1rem;
  margin: 0;
  color: #f8fafc;
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.sidebar-link {
  padding: 10px 14px;
  border-radius: 10px;
  color: #cbd5f5;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.15s ease;
}

.sidebar-link:hover {
  background: rgba(148, 163, 184, 0.18);
}

.sidebar-link.active {
  background: #2563eb;
  color: #fff;
}

.sidebar-meta {
  display: grid;
  gap: 12px;
}

.sidebar-hint {
  font-size: 0.85rem;
  color: #e2e8f0;
  line-height: 1.5;
}

.sidebar-stat {
  background: rgba(15, 23, 42, 0.45);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 12px;
  padding: 10px 14px;
}

.sidebar-stat .label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #a5b4fc;
}

.sidebar-stat .value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #f8fafc;
}

.sidebar-actions {
  margin-top: auto;
}

.sidebar-actions .btn {
  width: 100%;
}

.dashboard-main {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.dashboard-main--full {
  grid-column: 1 / -1;
  width: 100%;
}

@media (max-width: 1100px) {
  .dashboard-layout {
    grid-template-columns: 1fr;
  }
  .dashboard-sidebar {
    position: static;
    flex-direction: row;
    align-items: center;
    flex-wrap: wrap;
  }
  .sidebar-nav {
    flex-direction: row;
    flex-wrap: wrap;
  }
  .sidebar-actions {
    width: 100%;
  }
}

.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.media-grid a {
  display: block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: 0 10px 20px -18px rgba(15, 23, 42, 0.35);
}

.media-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  transition: transform 0.15s ease;
  display: block;
}

.media-grid a:hover img {
  transform: scale(1.03);
}

.richtext {
  font-size: 0.95rem;
  color: #374151;
  line-height: 1.6;
}

.richtext p {
  margin: 0 0 12px;
}

.richtext ul,
.richtext ol {
  margin: 0 0 12px 20px;
}

.richtext table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 12px;
  font-size: 0.9rem;
}

.richtext th,
.richtext td {
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 8px 10px;
}

.bullet-list {
  margin: 0;
  padding-left: 20px;
  color: #475569;
}

.bullet-list li {
  margin-bottom: 6px;
}

.meta-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.meta-table th,
.meta-table td {
  border: 1px solid rgba(15, 23, 42, 0.12);
  padding: 8px 10px;
}

.meta-table thead {
  background: #f8fafc;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  font-size: 0.82rem;
  color: #334155;
}

.printify-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  margin-top: 24px;
}

.printify-template-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  padding: 20px;
  overflow: visible;
}

.printify-edit-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.printify-edit-sections {
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.printify-edit-section {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 20px 40px rgba(15, 23, 42, 0.08);
}

.printify-edit-section-header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.printify-edit-section-header h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #0f172a;
}

.printify-edit-section-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.variant-color-tag-panel {
  border: 1px dashed rgba(15, 23, 42, 0.2);
  border-radius: 14px;
  padding: 12px;
  background: #f8fafc;
  margin-top: 10px;
}

.variant-color-tag-hint {
  margin: 0 0 10px;
  font-size: 0.85rem;
  color: #475569;
}

.variant-color-tag-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.variant-color-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(15, 23, 42, 0.12);
}

.variant-color-name {
  font-weight: 600;
  color: #0f172a;
}

.variant-color-toggle {
  display: inline-flex;
  gap: 12px;
  align-items: center;
}

.variant-color-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.85rem;
  color: #475569;
}

.variant-color-option input {
  margin: 0;
}

.variant-color-empty {
  margin: 0;
  font-size: 0.85rem;
}

.form-grid.two-column {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.mockup-checkbox-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.mockup-option {
  position: relative;
  display: block;
}

.mockup-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.mockup-inner {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 12px;
  display: flex;
  gap: 12px;
  align-items: center;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mockup-option input:checked + .mockup-inner {
  border-color: #4338ca;
  box-shadow: 0 10px 24px rgba(67, 56, 202, 0.15);
}

.mockup-visual {
  position: relative;
  width: 60px;
  height: 60px;
  flex-shrink: 0;
}

.mockup-thumb {
  width: 60px;
  height: 60px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  object-fit: cover;
  display: block;
}

.mockup-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  color: #94a3b8;
  background: #f8fafc;
}

.mockup-thumb-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: 18px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.mockup-inner:hover .mockup-thumb-hover {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.mockup-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mockup-name {
  font-weight: 600;
  color: #0f172a;
}

.mockup-category {
  font-size: 0.82rem;
  color: #94a3b8;
}

.size-chart-option-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 10px;
}

.size-chart-option {
  position: relative;
  display: block;
}

.size-chart-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.size-chart-inner {
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 16px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  text-align: center;
  background: #fff;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.size-chart-option input:checked + .size-chart-inner {
  border-color: #4338ca;
  box-shadow: 0 10px 24px rgba(67, 56, 202, 0.15);
}

.size-chart-visual {
  position: relative;
  width: 80px;
  height: 80px;
}

.size-chart-thumb {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  object-fit: cover;
  display: block;
}

.size-chart-thumb.placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: #94a3b8;
  background: #f8fafc;
}

.size-chart-thumb-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 220px;
  height: 220px;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  border-radius: 18px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.size-chart-inner:hover .size-chart-thumb-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.size-chart-title {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.9rem;
}

.pod-template-link {
  margin-top: 8px;
}

.pod-template-message {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #16a34a;
}

.pod-template-message.is-success {
  color: #16a34a;
}

.pod-template-message.is-error {
  color: #dc2626;
}

.pod-template-message.is-hidden {
  display: none;
}

.pod-template-message-link {
  margin-left: 6px;
  font-size: 0.85rem;
  text-decoration: underline;
}

.printify-template-card-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.printify-template-card-header h3 {
  margin: 0;
  font-size: 1.15rem;
  color: #0f172a;
}

.printify-template-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 6px;
}

.keyword-label {
  display: block;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  color: #94a3b8;
}

.keyword-value {
  font-weight: 600;
  color: #0f172a;
}

.printify-template-state {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  min-width: 110px;
}

.sort-label {
  font-size: 0.8rem;
  color: #94a3b8;
}

.printify-template-card-body {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 18px;
}

@media (max-width: 900px) {
  .printify-template-card-body {
    grid-template-columns: 1fr;
  }
}

.printify-template-section .section-title {
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0f172a;
}

.template-color-list {
  margin-top: 8px;
}

.template-color-list .label {
  font-size: 0.78rem;
  color: #94a3b8;
  margin-right: 6px;
}

.pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.pill-warning {
  background: #fef3c7;
  color: #92400e;
}

.size-chart-section {
  text-align: center;
}

.size-chart-preview {
  position: relative;
  width: 80px;
  height: 80px;
  margin: 0 auto;
  overflow: visible;
}

.size-chart-preview img {
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.1);
  object-fit: cover;
}

.size-chart-thumb {
  width: 80px;
  height: 80px;
  display: block;
  z-index: 1;
  position: relative;
}

.size-chart-hover {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 200px;
  height: 200px;
  transform: translate(-50%, -50%) scale(0.2);
  opacity: 0;
  z-index: 5;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.25);
}

.size-chart-preview:hover .size-chart-hover {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.size-chart-caption {
  margin-top: 6px;
  font-size: 0.82rem;
  color: #0f172a;
}

.printify-template-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 16px;
}

.printify-template-card-footer {
  margin-top: 18px;
  display: flex;
  justify-content: flex-end;
}

.printify-template-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.printify-template-actions form {
  margin: 0;
}

.tiktok-template-filter-wrapper {
  margin: 20px 0 10px;
  display: flex;
  justify-content: flex-end;
}

.tiktok-template-filter {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.tiktok-template-filter label {
  font-weight: 600;
  color: #0f172a;
}

.tiktok-template-filter select {
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  min-width: 200px;
}

.btn-clear-filter {
  padding: 0;
}

.tiktok-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  margin-top: 20px;
}

.tiktok-template-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
}

.tiktok-template-card-image img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.tiktok-template-card-placeholder {
  height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 0.85rem;
}

.tiktok-template-card-content {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.tiktok-template-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.tiktok-template-shop {
  font-weight: 600;
  color: #0f172a;
}

.tiktok-template-brand {
  background: #eef2ff;
  color: #4338ca;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
}

.tiktok-template-title {
  font-size: 1rem;
  margin: 0;
  color: #0f172a;
}

.tiktok-template-printify {
  margin: 0;
  color: #94a3b8;
}

.tiktok-template-brand-info {
  margin: 0;
  font-size: 0.9rem;
  color: #0f172a;
}

.tiktok-template-brand-info .tiktok-template-brand-id {
  margin-left: 8px;
  font-size: 0.78rem;
  color: #64748b;
}

.tiktok-template-colors {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.color-chip {
  background: #f1f5f9;
  border-radius: 999px;
  padding: 2px 10px;
  font-size: 0.78rem;
  color: #0f172a;
}

.tiktok-template-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
  margin: 4px 0 0;
}

.tiktok-template-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 2px;
}

.tiktok-template-meta dd {
  margin: 0;
  font-weight: 600;
  color: #0f172a;
}

.tiktok-template-id-block {
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tiktok-template-id-block .id-label {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.tiktok-template-card-footer {
  padding: 14px 18px 18px;
  margin-top: auto;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.tiktok-template-card-footer form {
  margin: 0;
}

.tiktok-template-inline-form {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.tiktok-template-inline-row {
  display: flex;
  gap: 8px;
}

.tiktok-template-inline-row input[type="text"],
.tiktok-template-inline-row input[type="search"],
.tiktok-template-inline-row input[type="tel"] {
  flex: 1 1 auto;
  min-width: 0;
}

.tiktok-template-inline-form small {
  font-size: 0.78rem;
  color: #94a3b8;
}

.tiktok-template-thumb {
  width: 70px;
  height: 70px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  display: block;
}

.studio-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}

.bulk-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bulk-post-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.bulk-post-controls .form-select,
.bulk-post-controls input[type="number"] {
  min-width: 160px;
}

.bulk-price-adjust {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.bulk-price-adjust input {
  padding: 6px 10px;
}

.studio-filter {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.studio-filter label {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
}

.studio-filter select {
  min-width: 210px;
}

.studio-count {
  font-weight: 600;
  color: var(--muted);
}

.tiktok-studio-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
  margin-top: 1rem;
}

.tiktok-studio-card {
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.tiktok-studio-card.is-template {
  background: #ecfdf3;
  border-color: #bbf7d0;
  box-shadow: 0 12px 26px rgba(34, 197, 94, 0.15);
}

.tiktok-studio-card.is-shopify {
  background: #fff1f2;
  border-color: #fecdd3;
  box-shadow: 0 12px 24px rgba(225, 29, 72, 0.12);
}

.tiktok-studio-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.12);
}

.tiktok-studio-card-link {
  display: flex;
  flex-direction: column;
  color: inherit;
  text-decoration: none;
  height: 100%;
}

.tiktok-studio-card-image {
  position: relative;
  padding-top: 66%;
  background: #f5f5f7;
}

.tiktok-studio-badges {
  position: absolute;
  top: 10px;
  left: 10px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  max-width: calc(100% - 20px);
  z-index: 2;
  pointer-events: none;
}

.tiktok-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(17, 24, 39, 0.85);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

.tiktok-studio-card-image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tiktok-studio-card-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  color: var(--muted);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.tiktok-studio-card-content {
  padding: 1rem 1.25rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
}

.tiktok-studio-card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  font-size: 0.92rem;
}

.studio-card-shop {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  font-weight: 600;
  color: #111322;
}

.studio-card-shop-name {
  font-size: 0.95rem;
}

.studio-card-source {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: #eef2ff;
  color: #4338ca;
  width: fit-content;
  text-transform: uppercase;
}

.studio-card-source.source-imported {
  background: #e0f2fe;
  color: #075985;
}

.studio-card-source.source-posted {
  background: #ecfdf3;
  color: #166534;
}

.tiktok-studio-card-title {
  font-size: 1.1rem;
  line-height: 1.4;
  color: #111322;
  margin: 0;
}

.tiktok-studio-card-id {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 0;
}

.tiktok-studio-card-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  font-size: 0.85rem;
  margin: 0;
}

.tiktok-studio-card-stats dt {
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.2rem;
}

.tiktok-studio-card-stats dd {
  margin: 0;
  font-weight: 600;
  color: #111322;
}

.studio-card-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.75rem;
}

.studio-card-actions form {
  margin: 0;
}

.studio-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  min-width: 0;
}

.studio-icon-btn .icon {
  font-size: 1rem;
  line-height: 1;
}

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

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.15rem 0.65rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.status-live {
  background: #e5f6ed;
  color: #0b8040;
}

.status-draft {
  background: #f4f5fb;
  color: #5d5f7a;
}

.status-paused {
  background: #fff4e5;
  color: #b35c01;
}

.status-review {
  background: #f0f6ff;
  color: #0b6ad0;
}

.status-error {
  background: #fdecef;
  color: #c62828;
}

.status-neutral {
  background: #f4f5f7;
  color: #6b6f76;
}

.studio-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.studio-modal.is-hidden {
  display: none;
}

.studio-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(12, 15, 28, 0.45);
}

.studio-modal-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  padding: 1.5rem;
  width: min(420px, 90vw);
  box-shadow: 0 30px 80px rgba(15, 23, 42, 0.45);
  z-index: 1;
}

.studio-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.studio-modal-close {
  border: none;
  background: transparent;
  font-size: 1.5rem;
  color: var(--muted);
  cursor: pointer;
}

.studio-modal-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.studio-modal-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 0.5rem;
  gap: 0.75rem;
}

.studio-modal-right-actions {
  display: flex;
  gap: 0.5rem;
}

.studio-copy-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
  margin-bottom: 1rem;
  max-height: 320px;
  overflow-y: auto;
}

.studio-copy-update {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  margin: 0.25rem 0 0.75rem;
}

.studio-copy-shop {
  border: 1px solid var(--border-muted);
  border-radius: 10px;
  padding: 0.6rem 0.8rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  background: #fafbfd;
}

.studio-copy-shop input {
  margin: 0;
}

.studio-copy-shop strong {
  display: block;
  font-size: 0.9rem;
  color: #111322;
}

.studio-copy-shop small {
  display: block;
  font-size: 0.75rem;
  color: var(--muted);
}

.tiktok-studio-detail {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 2rem 2rem 3rem;
}

.studio-detail-header {
  margin-bottom: 2rem;
}

.studio-detail-heading h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: 1.8rem;
}

.studio-detail-meta {
  color: var(--muted);
  font-size: 0.95rem;
}

.studio-detail-status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.studio-detail-updated,
.studio-detail-remote {
  font-size: 0.85rem;
  color: var(--muted);
}

.studio-detail-actions {
  margin-top: 0.75rem;
}

.studio-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.studio-side-card {
  background: #fff;
  border: 1px solid var(--border-muted);
  border-radius: 16px;
  padding: 1.25rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.05);
}

.studio-side-card h2 {
  margin-top: 0;
  font-size: 1.05rem;
}

.studio-suggestion-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.studio-suggestion-list li {
  display: flex;
  flex-direction: column;
  font-size: 0.9rem;
}

.studio-suggestion-list strong {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.studio-suggestion-list span {
  font-weight: 600;
  color: #111322;
}

.studio-preview-card img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  margin-bottom: 1rem;
}

.studio-preview-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 0;
}

.studio-preview-card dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.studio-preview-card dd {
  margin: 0;
  font-weight: 600;
  color: #111322;
}

.studio-detail-main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.studio-card {
  background: #fff;
  border-radius: 18px;
  border: 1px solid var(--border-muted);
  padding: 1.5rem;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.studio-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.studio-basic-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.studio-gallery-main {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--border-muted);
  margin-bottom: 0.75rem;
}

.studio-gallery-main img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.studio-gallery-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.6rem;
}

.studio-gallery-thumbs img {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--border-muted);
  object-fit: cover;
}

.studio-gallery-empty {
  border: 1px dashed var(--border-muted);
  border-radius: 12px;
  padding: 2rem;
  text-align: center;
  color: var(--muted);
}

.studio-basic-meta dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 0;
}

.studio-basic-meta dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.studio-basic-meta dd {
  margin: 0;
  font-weight: 600;
  color: #111322;
}

.studio-attributes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.studio-attribute-item {
  border: 1px dashed var(--border-muted);
  border-radius: 12px;
  padding: 0.9rem;
  background: #fafafd;
}

.studio-attribute-item strong {
  display: block;
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-attribute-item span {
  font-weight: 600;
  color: #111322;
}

.studio-description {
  line-height: 1.7;
  color: #111322;
}

.studio-description p {
  margin-bottom: 0.85rem;
}

.studio-variations {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 1.5rem;
}

.studio-variation-option h3 {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
}

.studio-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.studio-chip {
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: #f1f2f9;
  font-size: 0.85rem;
  font-weight: 600;
}

.studio-variation-table {
  overflow-x: auto;
}

.studio-variation-table table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  border: 1px solid var(--border-muted);
  border-radius: 14px;
  background: #fff;
}

.studio-variation-table th,
.studio-variation-table td {
  border-bottom: 1px solid var(--border-muted);
  border-right: 1px solid var(--border-muted);
  padding: 0.85rem 0.9rem;
  text-align: center;
  font-size: 0.9rem;
}

.studio-variation-table th {
  background: #f8fafc;
  font-weight: 600;
  text-transform: none;
  color: #1f2937;
}

.studio-variation-table tr:last-child td {
  border-bottom: none;
}

.studio-variation-table th:last-child,
.studio-variation-table td:last-child {
  border-right: none;
}

.studio-sku-input {
  display: flex;
  align-items: stretch;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  height: 38px;
  width: 100%;
  max-width: none;
  margin: 0;
}

.studio-sku-input input {
  border: 0;
  padding: 0 10px;
  width: 100%;
  font-size: 0.9rem;
  background: transparent;
  text-align: center;
}

.studio-sku-input input:focus {
  outline: none;
}

.studio-sku-input span {
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  background: #f8fafc;
  border-left: 1px solid #e2e8f0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.85rem;
}

.studio-sku-action {
  border: 0;
  background: transparent;
  color: #e11d48;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  line-height: 1;
}

.sku-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px -16px rgba(15, 23, 42, 0.45);
  display: block;
  margin: 0 auto;
  background: #fff;
}

.studio-size-chart img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--border-muted);
}

.studio-logistics dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin: 0 0 1rem;
}

.studio-logistics dt {
  font-size: 0.85rem;
  text-transform: uppercase;
  color: var(--muted);
}

.studio-logistics dd {
  margin: 0;
  font-weight: 600;
}

.studio-warehouse-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.75rem;
}

.studio-warehouse-card {
  border: 1px solid var(--border-muted);
  border-radius: 12px;
  padding: 0.75rem;
  text-align: center;
  background: #fdfdfd;
}

.studio-warehouse-card strong {
  display: block;
  font-size: 1.1rem;
}

.warehouse-label {
  font-size: 0.8rem;
  color: var(--muted);
  text-transform: uppercase;
}

@media (max-width: 960px) {
  .studio-detail-layout {
    grid-template-columns: 1fr;
  }
  .studio-basic-grid,
  .studio-variations {
    grid-template-columns: 1fr;
  }
  .studio-preview-card dl {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-summary {
    padding: 20px;
  }
  .price-summary {
    gap: 18px;
  }
  .product-detail-page .breadcrumb {
    gap: 4px;
  }
  .form-grid {
    grid-template-columns: 1fr;
  }
}
.video-prompt-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 220px;
}

.player-wrap {
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.prompt-box {
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: #334155;
  max-height: 150px;
  overflow: auto;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.prompt-box header {
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  margin-bottom: 6px;
  color: #1d4ed8;
}

.prompt-box p {
  margin: 0;
  white-space: pre-wrap;
}

.pod-listing-field input {
  width: 100%;
}

.panel-order-poll {
  margin-bottom: 32px;
  border-radius: 22px;
  padding: 1px;
  background: linear-gradient(135deg, #0f172a, #1e3a8a);
  box-shadow: 0 35px 80px -45px rgba(15, 23, 42, 0.85);
}

.panel-order-poll .panel-header,
.panel-order-poll .panel-body {
  background: #fff;
  border-radius: 22px;
}

.panel-order-poll .panel-header {
  padding: 28px 32px 18px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.05);
}

.panel-order-poll .panel-body {
  padding: 24px 32px 32px;
}

.order-poll-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.order-poll-body {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.order-poll-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.order-poll-control {
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border-radius: 16px;
  padding: 16px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.order-poll-label {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.92rem;
}

.order-poll-shop-list,
.order-poll-status-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.order-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #eef2ff;
  border: 1px solid rgba(99, 102, 241, 0.25);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.85rem;
  color: #1f2937;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.15s ease;
}

.order-chip:hover {
  background: #e0e7ff;
  transform: translateY(-1px);
}

.order-chip input {
  accent-color: #2563eb;
}
.order-chip--connected {
  background: #064e3b;
  border-color: #064e3b;
  color: #ecfccb;
}
.order-chip--connected:hover {
  background: #065f46;
}
.order-chip--connected input {
  accent-color: #bbf7d0;
}

.order-poll-interval-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.order-poll-interval-input input[type="number"] {
  width: 90px;
  padding: 6px 10px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 8px;
  font-size: 0.9rem;
}

.order-poll-status {
  font-size: 0.9rem;
  color: #1f2937;
  background: #eef2ff;
  border: 1px solid rgba(148, 163, 184, 0.35);
  border-radius: 12px;
  padding: 12px 16px;
}

.order-poll-results {
  display: grid;
  gap: 16px;
}

.order-empty {
  font-size: 0.9rem;
  color: #6b7280;
  text-align: center;
  padding: 18px;
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 12px;
}

.order-shop-card {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 14px;
  padding: 16px;
  background: #ffffff;
  box-shadow: 0 1px 1px rgba(15, 23, 42, 0.04);
}

.order-shop-card header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.order-shop-card h3 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.order-shop-card .order-count {
  font-size: 0.82rem;
  color: #64748b;
}

.order-meta-id {
  font-size: 0.78rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.order-shop-card .order-error {
  color: #dc2626;
  font-size: 0.85rem;
}

.order-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fafc;
}

.order-card-empty {
  border: 1px dashed rgba(148, 163, 184, 0.35);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
  color: #64748b;
  background: #f8fafc;
}

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.order-id {
  font-weight: 600;
  color: #1e293b;
  font-size: 0.92rem;
}

.order-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.order-status-AWAITING_SHIPMENT { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; }
.order-status-PARTIALLY_SHIPPING { background: rgba(29, 78, 216, 0.12); color: #1d4ed8; }
.order-status-AWAITING_COLLECTION { background: rgba(16, 185, 129, 0.12); color: #047857; }
.order-status-IN_TRANSIT { background: rgba(251, 191, 36, 0.18); color: #b45309; }
.order-status-DELIVERED { background: rgba(5, 122, 85, 0.16); color: #047857; }
.order-status-COMPLETED { background: rgba(16, 185, 129, 0.18); color: #0f766e; }
.order-status-CANCELLED { background: rgba(248, 113, 113, 0.16); color: #b91c1c; }

.order-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 0.82rem;
  color: #475569;
  margin-bottom: 10px;
}

.order-card-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.order-card-summary {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.order-summary-media img,
.order-summary-media .order-item-placeholder {
  width: 56px;
  height: 56px;
}

.order-summary-media .order-item-placeholder {
  border-radius: 10px;
  background: #e2e8f0;
}

.order-summary-info {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-summary-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.order-summary-meta {
  display: flex;
  flex-direction: column;
  font-size: 0.78rem;
  color: #475569;
  gap: 2px;
}

.order-summary-actions {
  align-self: stretch;
  display: flex;
  align-items: flex-start;
}

.order-detail-toggle {
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #fff;
  color: #1d4ed8;
  padding: 6px 10px;
  font-size: 0.78rem;
  border-radius: 20px;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.order-detail-toggle:hover {
  border-color: #1d4ed8;
  color: #1e40af;
}

.order-card-details {
  margin-top: 12px;
}

.order-card-details[hidden] {
  display: none;
}

.order-detail-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.order-table-wrapper {
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 20px;
  overflow-x: auto;
  overflow-y: hidden;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96), rgba(248, 250, 252, 0.96));
  box-shadow: 0 35px 70px -50px rgba(15, 23, 42, 0.8);
}

.order-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
  font-size: 0.9rem;
  color: #0f172a;
}

.order-table thead {
  background: linear-gradient(120deg, #f8fafc, #edf2ff);
  color: #0f172a;
}

.order-table th,
.order-table td {
  padding: 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.7);
  vertical-align: top;
}

.order-note-cell {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.order-note-cell .order-note-preview {
  font-size: 0.9rem;
  color: #0f172a;
  min-height: 20px;
  word-break: break-word;
}

.order-note-preview.is-empty {
  color: #94a3b8;
  font-style: italic;
}

.note-edit-button {
  align-self: flex-start;
  border: none;
  background: transparent;
  cursor: pointer;
  color: #64748b;
  font-size: 1rem;
  padding: 2px 4px;
}

.note-edit-button:hover {
  color: #111827;
}

.note-inline-input {
  display: none;
  width: 100%;
  border: 1px solid #cbd5f5;
  border-radius: 10px;
  padding: 6px 8px;
  font-size: 0.9rem;
  font-family: inherit;
  resize: vertical;
}

.order-note-cell.is-editing .note-inline-input {
  display: block;
}

.order-note-cell.is-editing .order-note-preview {
  display: none;
}

.note-inline-status {
  font-size: 0.8rem;
  color: #64748b;
}

.note-inline-status.error {
  color: #dc2626;
}

.order-track-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-track-provider {
  font-size: 0.78rem;
  font-weight: 600;
  color: #0f172a;
}

.order-track-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #0f172a;
}

.order-add-tracking {
  border: 1px dashed rgba(59, 130, 246, 0.5);
  background: rgba(191, 219, 254, 0.25);
  color: #1d4ed8;
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 0.75rem;
  cursor: pointer;
  margin-top: 4px;
}

.order-add-tracking:hover {
  background: rgba(59, 130, 246, 0.15);
}

.order-id-main {
  display: flex;
  align-items: center;
  gap: 6px;
}

.copy-button {
  border: none;
  background: rgba(148, 163, 184, 0.3);
  border-radius: 6px;
  padding: 2px 6px;
  cursor: pointer;
  color: #0f172a;
  line-height: 1;
  font-size: 0.7rem;
  transition: background 0.15s ease;
}

.copy-button:hover {
  background: rgba(59, 130, 246, 0.3);
  color: #0f172a;
}

.copy-button .icon-copy {
  font-size: 0.85rem;
}

.order-table th {
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #475569;
}

.order-tracking-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
}

.order-tracking-modal.is-hidden {
  display: none;
}

.order-tracking-dialog {
  background: #fff;
  border-radius: 16px;
  padding: 20px 24px;
  width: 360px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.3);
  position: relative;
}

.order-tracking-dialog h3 {
  margin-top: 0;
}

.order-tracking-dialog label {
  display: block;
  font-size: 0.82rem;
  font-weight: 600;
  margin-top: 12px;
}

.order-tracking-dialog select,
.order-tracking-dialog input[type="text"] {
  width: 100%;
  border: 1px solid #cbd5f5;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.9rem;
  margin-top: 4px;
}

.order-tracking-status {
  font-size: 0.8rem;
  color: #64748b;
  min-height: 18px;
  margin-top: 8px;
}

.order-tracking-status.error {
  color: #dc2626;
}

.order-tracking-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  margin-top: 16px;
}

.order-table {
  table-layout: fixed;
}

.order-table tbody tr:last-child td {
  border-bottom: none;
}

.order-col-select {
  width: 40px;
}

.order-col-index {
  width: 40px;
  text-align: center;
}

.order-col-id {
  width: 150px;
}

.order-col-track {
  width: 110px;
}

.order-col-ship {
  width: 180px;
}

.order-col-shop {
  width: 170px;
}

.order-col-address {
  width: 220px;
}

.order-col-preview {
  width: 120px;
}

.order-col-info {
  width: 220px;
}

.order-col-shopify {
  width: 140px;
}

.order-col-note {
  width: 140px;
}

.order-filter-select select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #fff;
  font-size: 0.78rem;
  color: #0f172a;
}

.order-filter-select select:focus {
  outline: none;
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15);
}

.order-table-row {
  background: #fff;
}

.order-table-row:nth-child(even) {
  background: #fbfdff;
}

.order-table-row[data-order-status="AWAITING_SHIPMENT"] {
  background: rgba(59, 130, 246, 0.08);
}

.order-table-row[data-order-status="PARTIALLY_SHIPPING"],
.order-table-row[data-order-status="AWAITING_COLLECTION"] {
  background: rgba(16, 185, 129, 0.08);
}

.order-table-row[data-order-status="IN_TRANSIT"] {
  background: rgba(251, 191, 36, 0.12);
}

.order-table-row[data-order-status="DELIVERED"],
.order-table-row[data-order-status="COMPLETED"] {
  background: rgba(16, 185, 129, 0.1);
}

.order-table-row[data-order-status="CANCELLED"],
.order-table-row[data-order-status="FAILED"],
.order-table-row[data-order-status="VOIDED"] {
  background: rgba(248, 113, 113, 0.14);
}

.order-cell-select {
  text-align: center;
}

.order-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.order-link:hover {
  text-decoration: underline;
}

.order-row-status {
  display: inline-block;
  margin-top: 6px;
  padding: 2px 10px;
  border-radius: 999px;
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.order-track-number {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.78rem;
  color: #0f172a;
}

.order-ship-tag {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(34, 197, 94, 0.12);
  color: #047857;
  font-size: 0.72rem;
  margin-bottom: 4px;
}

.order-ship-tag--muted {
  background: rgba(148, 163, 184, 0.2);
  color: #475569;
}

.order-designer-label {
  display: inline-block;
  font-weight: 600;
  margin-bottom: 4px;
  color: #0f172a;
}

.order-ship-provider {
  display: block;
  font-weight: 600;
  margin-bottom: 4px;
}

.order-ship-dates {
  font-size: 0.78rem;
  color: #475569;
}

.order-platform-badge {
  display: inline-flex;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #0f172a;
  margin-right: 6px;
}

.order-platform-tiktok {
  background: linear-gradient(135deg, #ff0050, #00f2ea);
}

.order-platform-shopify {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
}

.order-shop-name {
  font-weight: 600;
  color: #0f172a;
}
.order-shop-name.is-connected {
  color: #065f46;
}

.order-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-preview-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.order-item-thumb {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: cover;
  background: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.order-preview-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  background: #e2e8f0;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.order-info-block {
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px dashed rgba(226, 232, 240, 0.8);
}

.order-info-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 0;
}

.order-info-label {
  font-weight: 600;
  color: #475569;
  font-size: 0.78rem;
}

.order-info-value {
  color: #0f172a;
}

.order-info-quantity {
  color: #dc2626;
  font-weight: 700;
}

.order-error-list {
  margin-top: 16px;
  padding: 12px 16px;
  border-left: 4px solid #dc2626;
  background: #fef2f2;
  border-radius: 10px;
  color: #991b1b;
}

.order-error-entry {
  display: flex;
  flex-direction: column;
  margin-bottom: 8px;
}

.order-error-entry:last-child {
  margin-bottom: 0;
}

.order-error-entry strong {
  font-weight: 700;
}
.order-row-empty td {
  text-align: center;
  color: #94a3b8;
  font-style: italic;
}

.order-error-dismiss {
  margin-top: 12px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.75rem;
  cursor: pointer;
}

.bundle-panel__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.bundle-panel__actions {
  display: flex;
  gap: 8px;
}

.bundle-body {
  padding: 0;
}

.bundle-stage {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 24px;
  min-height: 520px;
}

.bundle-column {
  background: #f8fafc;
  border-radius: 16px;
  padding: 20px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  overflow: hidden;
}

.bundle-step-header {
  margin-bottom: 16px;
}

.bundle-step {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #0ea5e9;
  color: #fff;
  font-weight: 700;
  margin-right: 8px;
}

.bundle-step--secondary {
  background: #10b981;
}

.bundle-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.bundle-actions {
  margin-bottom: 12px;
}

.bundle-design-list {
  min-height: 200px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 12px;
  padding: 12px;
  background: #fff;
}

.bundle-design-card {
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 12px;
  padding: 10px;
  background: #fff;
  margin-bottom: 8px;
  display: flex;
  gap: 12px;
  cursor: grab;
}

.bundle-design-card:last-child {
  margin-bottom: 0;
}

.bundle-design-media {
  width: 80px;
  height: 80px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.4);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
}

.bundle-design-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.bundle-design-media img.is-placeholder {
  opacity: 0.4;
}

.bundle-design-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.bundle-design-name {
  font-weight: 600;
}

.bundle-design-notes {
  resize: vertical;
  min-height: 60px;
}
.bundle-template-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.bundle-template-card {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 14px;
  padding: 12px;
  background: #fff;
  min-height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.bundle-template-card.is-dragging {
  border-color: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
}

.bundle-connection-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.bundle-connection-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  padding: 4px 10px;
  background: #fff;
  font-size: 0.8rem;
}

.bundle-connection-chip strong {
  color: #0f172a;
}

.bundle-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.bundle-modal.is-hidden {
  display: none;
}

.bundle-modal-dialog {
  width: min(720px, 90vw);
  max-height: 80vh;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.35);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.bundle-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.1);
}

.bundle-modal-body {
  padding: 16px 20px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.printify-color-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fdfdff;
}

.printify-color-option {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border: 1px solid #e2e8f0;
  border-radius: 999px;
  background: #f8fafc;
  font-size: 0.9rem;
  color: #0f172a;
  cursor: pointer;
}

.printify-color-option input {
  margin: 0;
}

.bundle-modal-close {
  border: none;
  background: transparent;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.bundle-modal-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

.bundle-template-card--modal {
  cursor: pointer;
  transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.bundle-template-card--modal:hover {
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  transform: translateY(-1px);
}

.bundle-template-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.bundle-template-list-item {
  border: 1px solid rgba(15, 23, 42, 0.15);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #fff;
  cursor: pointer;
}

.bundle-template-list-item:hover {
  border-color: #2563eb;
  box-shadow: 0 10px 25px rgba(37, 99, 235, 0.15);
}

.bundle-selected-templates {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  border-radius: 12px;
  padding: 12px;
}

.bundle-selected-template {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.2);
  background: #f8fafc;
  cursor: pointer;
}

.bundle-connections {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.bundle-connection {
  stroke: #0ea5e9;
  stroke-width: 3;
  fill: none;
}

.order-action-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.order-printify-manual {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}

.order-printify-link-toggle {
  border: none;
  background: transparent;
  color: #475569;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.75rem;
  padding: 0;
}

.order-printify-manual.is-open .order-printify-link-toggle,
.order-printify-link-toggle:hover {
  color: #0f172a;
}

.order-printify-link-label {
  font-size: 0.68rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.order-printify-link-editor {
  width: 100%;
}

.order-printify-link-input {
  width: 100%;
  border: 1px dashed rgba(15, 23, 42, 0.35);
  border-radius: 8px;
  padding: 6px 8px;
  font-size: 0.78rem;
  font-family: inherit;
  color: #0f172a;
  resize: vertical;
  min-height: 48px;
  background: #fff;
}

.order-printify-link-editor small {
  display: block;
  margin-top: 3px;
  font-size: 0.68rem;
  color: #94a3b8;
}

.icon-pencil {
  font-style: normal;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.order-shopify-button,
.order-printify-button {
  border: 1px solid #0ea5e9;
  background: #0ea5e9;
  color: #fff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.78rem;
  cursor: pointer;
  transition: opacity 0.15s ease;
  width: 100%;
}

.order-printify-button {
  border-color: #10b981;
  background: #10b981;
}

.order-printify-button.is-created {
  background: #15803d;
  border-color: #15803d;
}

.order-printify-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #065f46;
  font-weight: 600;
  font-size: 0.78rem;
}

.order-printify-status-id {
  color: #047857;
}

.order-printify-status-link {
  color: #047857;
  text-decoration: underline;
  font-weight: 600;
}

.order-printify-status-link:hover {
  color: #065f46;
}

.order-shopify-button.is-loading,
.order-shopify-button:disabled,
.order-printify-button.is-loading,
.order-printify-button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.order-detail-link {
  display: inline-flex;
  margin-top: 6px;
  font-size: 0.72rem;
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 999px;
  padding: 2px 10px;
  background: transparent;
  cursor: pointer;
}

.order-detail-link:hover {
  border-color: #2563eb;
}

.order-detail-panel {
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.order-detail-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 20px;
}

.order-detail-panel-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #0f172a;
}

.order-detail-panel-subtitle {
  color: #64748b;
  font-size: 0.85rem;
}

.order-detail-close {
  border: none;
  background: #e2e8f0;
  color: #0f172a;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  font-size: 1.2rem;
  cursor: pointer;
}

.order-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 1fr);
  gap: 20px;
}

.order-detail-main > .order-detail-card:last-child {
  margin-bottom: 0;
}

.order-detail-sidebar {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.order-detail-card {
  background: #f8fafc;
  border-radius: 14px;
  padding: 16px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  margin-bottom: 16px;
}

.order-detail-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.order-detail-status-label {
  font-size: 0.75rem;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  margin: 0 0 4px;
}

.order-status-control {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 8px;
  font-size: 0.78rem;
}

.order-status-control select {
  border: 1px solid rgba(15, 23, 42, 0.2);
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.85rem;
  outline: none;
  background: #fff;
  color: #0f172a;
}

.order-detail-card h3,
.order-detail-card h4 {
  margin: 0;
  color: #0f172a;
}

.order-detail-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin: 0;
}

.order-detail-list-item {
  background: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}

.order-detail-term {
  font-size: 0.72rem;
  text-transform: uppercase;
  color: #94a3b8;
}

.order-detail-value-block {
  margin-top: 2px;
  font-weight: 600;
  color: #0f172a;
}

.order-detail-package {
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.order-detail-package-header {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  color: #475569;
  margin-bottom: 8px;
}

.order-detail-items {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.order-detail-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.order-detail-item-media {
  flex: 0 0 auto;
}

.order-detail-item-media img,
.order-detail-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  object-fit: cover;
  background: #e2e8f0;
}

.order-detail-item-info {
  flex: 1;
}

.order-detail-item-title {
  font-weight: 600;
  color: #0f172a;
}

.order-detail-item-variant,
.order-detail-item-sku {
  font-size: 0.78rem;
  color: #475569;
}

.order-detail-item-meta {
  text-align: right;
  min-width: 90px;
}

.order-detail-item-amount {
  display: block;
  font-weight: 600;
  color: #0f172a;
}

.order-detail-item-qty {
  font-size: 0.78rem;
  color: #475569;
}

.order-detail-history ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.order-detail-history li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.order-history-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #0ea5e9;
  margin-top: 5px;
}

.order-detail-payment h4,
.order-detail-earnings h4,
.order-detail-customer h4 {
  margin-bottom: 10px;
}

.order-detail-total {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 6px 0;
  color: #0f172a;
}

@media (max-width: 960px) {
  .order-detail-layout {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 720px) {
  .order-detail-grid {
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }
}

.order-detail-section {
  border: 1px solid rgba(148, 163, 184, 0.3);
  border-radius: 10px;
  padding: 10px 12px;
  background: #fff;
}

.order-detail-title {
  margin: 0 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.order-detail-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  font-size: 0.78rem;
  color: #475569;
  padding: 2px 0;
}

.order-detail-label {
  font-weight: 500;
  color: #0f172a;
  flex: 0 0 120px;
}

.order-detail-value {
  flex: 1 1 auto;
  text-align: right;
  color: #0f172a;
  word-break: break-word;
}

.order-detail-value--multiline {
  white-space: normal;
  text-align: left;
}

@media (max-width: 600px) {
  .order-detail-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .order-detail-label {
    flex: none;
  }
  .order-detail-value {
    text-align: left;
  }
}

.football-team-table .badge {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  border-radius: 12px;
  font-size: 0.72rem;
  padding: 2px 8px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.color-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-logo-thumb {
  width: 48px;
  height: 48px;
  object-fit: contain;
  border-radius: 6px;
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fff;
  padding: 4px;
}

.football-team-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 24px;
}

.toolbar-search-form {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
}

.toolbar-fields {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.toolbar-field {
  flex: 1 1 240px;
}

.toolbar-actions {
  display: flex;
  gap: 12px;
  align-items: center;
}

.toolbar-import-form {
  min-width: 240px;
  max-width: 300px;
  background: #f8fafc;
  border: 1px dashed #cbd5f5;
  border-radius: 14px;
  padding: 16px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 10px;
  justify-content: center;
}

.toolbar-import-form .form-help {
  margin: 0;
}

.import-btn {
  cursor: pointer;
  width: 100%;
  justify-content: center;
}

.import-file-input {
  display: none;
}

.football-team-grid {
  margin-top: 24px;
}

.team-table-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.05);
}

.card-heading {
  margin-bottom: 16px;
}

.team-table-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 16px;
}

.mockup-modal-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, 0.9fr);
  gap: 20px;
}

.mockup-modal-form {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mockup-meta-callout {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mockup-meta-chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.85rem;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
  font-weight: 500;
}

.mockup-meta-chip.secondary {
  background: #e2e8f0;
  color: #1f2937;
}

.mockup-section {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.mockup-section__title {
  margin-bottom: 12px;
}

.mockup-section__title h4 {
  margin: 0;
}

.mockup-section__title p {
  margin: 4px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.prompt-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.prompt-header .btn-link {
  font-size: 0.85rem;
  text-decoration: underline;
  padding: 0;
}

.rewrite-panel {
  border: 1px dashed #cbd5f5;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  background: #f8fafc;
}

.rewrite-panel__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.rewrite-panel__actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.rewrite-panel__message {
  font-size: 0.85rem;
  color: #475569;
}

.rewrite-panel__message.error {
  color: #dc2626;
}

.rewrite-panel__message.success {
  color: #15803d;
}

.rewrite-output textarea {
  background: #fffbea;
}

.video-modal-grid {
  display: grid;
  gap: 20px;
}

.video-modal-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-preview-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.mockup-preview-card {
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.mockup-preview-card figure {
  margin: 0;
  text-align: center;
}

.mockup-preview-card img {
  max-width: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.15);
  background: #f1f5f9;
}

.mockup-preview-card figcaption {
  margin-top: 10px;
  font-size: 0.85rem;
  color: #475569;
}

.mockup-preview-hints {
  border: 1px dashed #cbd5f5;
  border-radius: 14px;
  padding: 16px;
  background: rgba(226, 232, 240, 0.4);
}

.mockup-preview-hints h4 {
  margin-top: 0;
}

.mockup-preview-hints ul {
  padding-left: 18px;
  margin: 10px 0 0;
  color: #475569;
  font-size: 0.9rem;
}

.mockup-form-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.mockup-card {
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-card--split {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}

.mockup-card__column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.mockup-card__column .mockup-section__title {
  margin-bottom: 0;
}

.team-select-input {
  width: 100%;
  border-radius: 10px;
  border: 1px solid #cbd5f5;
  padding: 10px 14px;
}

.mockup-related-picker {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 12px;
  padding: 12px;
  background: rgba(226, 232, 240, 0.3);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mockup-related-picker-input {
  display: flex;
  gap: 8px;
  align-items: center;
}

.mockup-related-selected {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.mockup-related-empty {
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}

.mockup-related-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.12);
  color: #1d4ed8;
  font-size: 0.85rem;
}

.mockup-related-chip-label {
  font-weight: 600;
}

.mockup-related-chip-remove {
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  font-size: 0.9rem;
  line-height: 1;
  padding: 0;
}

.pod-team-picker {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px dashed rgba(59, 130, 246, 0.4);
  border-radius: 14px;
  padding: 16px;
  background: rgba(226, 232, 240, 0.35);
}

.pod-team-slot-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 8px;
}

.pod-team-slot[data-team-selected] .pod-team-slot-head span {
  color: #2563eb;
}

.pod-team-slot-input {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pod-team-slot + .pod-team-slot {
  border-top: 1px dashed rgba(148, 163, 184, 0.4);
  padding-top: 16px;
}

.pod-team-clear {
  background: transparent;
  border: none;
  color: #475569;
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}

.pod-team-clear:hover,
.pod-team-clear:focus {
  color: #b91c1c;
}

.team-hashtag-preview {
  border: 1px solid #cbd5f5;
  border-radius: 12px;
  padding: 12px;
  margin-top: 12px;
  background: rgba(226, 232, 240, 0.4);
}

.team-hashtag-headline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.team-hashtag-league {
  font-size: 0.8rem;
  color: #64748b;
  margin-left: 6px;
}

.team-hashtag-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.team-hashtag-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-size: 0.85rem;
}

.team-hashtag-copy {
  border: none;
  background: transparent;
  color: #2563eb;
  font-weight: 500;
  cursor: pointer;
}

.team-hashtag-note {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px;
  border: 1px dashed rgba(37, 99, 235, 0.4);
  border-radius: 10px;
  margin-top: 8px;
}

.team-hashtag-note .team-hashtag-chips {
  gap: 4px;
}

.team-extra-note {
  margin-top: 6px;
  font-size: 0.85rem;
  color: #5d6470;
  line-height: 1.3;
}

.team-extra-note strong {
  font-weight: 600;
  margin-right: 4px;
}

.logo-cell {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 200px;
  flex-wrap: wrap;
}

.logo-update-form {
  width: 80px;
}

.logo-actions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}

.logo-visual {
  display: flex;
  align-items: center;
  gap: 6px;
}

.logo-placeholder {
  width: 48px;
  height: 48px;
  border-radius: 6px;
  border: 1px dashed rgba(0, 0, 0, 0.2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.65rem;
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.1);
}

.logo-clipboard-btn {
  width: 70px;
  height: 70px;
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 10px;
  font-size: 0.65rem;
  background: rgba(15, 23, 42, 0.02);
  cursor: pointer;
  line-height: 1.2;
  padding: 6px;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.logo-clipboard-btn:hover {
  border-color: rgba(15, 23, 42, 0.4);
  background: rgba(15, 23, 42, 0.05);
}

.logo-dropzone {
  border: 2px dashed #94a3b8;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  background: rgba(148, 163, 184, 0.1);
  cursor: pointer;
  outline: none;
}

.logo-dropzone.dragover {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.08);
}

.logo-dropzone:focus {
  border-color: #1d4ed8;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.2);
}

.logo-file-input {
  display: none;
}

.logo-select-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 2px dashed rgba(15, 23, 42, 0.3);
  background: transparent;
  cursor: pointer;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.logo-select-btn.active {
  border-color: #2563eb;
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

[data-team-row].is-selected {
  background: rgba(59, 130, 246, 0.05);
}

[data-team-row].is-uploading {
  opacity: 0.6;
}

.logo-paste-note {
  font-size: 0.85rem;
  color: #475569;
}

.logo-paste-note kbd {
  background: #e2e8f0;
  border-radius: 4px;
  padding: 1px 4px;
  font-size: 0.8rem;
}

.logo-search-btn {
  display: inline-flex;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(15, 23, 42, 0.2);
  font-size: 1rem;
  text-decoration: none;
  background: #fff;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.logo-search-btn:hover {
  border-color: #1d4ed8;
  background: rgba(29, 78, 216, 0.08);
}


@media (max-width: 1024px) {
  .football-team-toolbar {
    flex-direction: column;
  }
  .toolbar-search-form,
  .toolbar-import-form {
    width: 100%;
  }
}

.color-chip {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: var(--team-color, #94a3b8);
  display: inline-flex;
}

.order-item {
  display: flex;
  align-items: center;
  gap: 10px;
}

.order-item img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 8px;
  background: #e2e8f0;
}

.order-item-placeholder {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.order-item-empty {
  font-size: 0.8rem;
  color: #94a3b8;
}

.order-item-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.order-item-title {
  font-size: 0.85rem;
  font-weight: 500;
  color: #1f2937;
}

.order-item-variant {
  font-size: 0.78rem;
  color: #64748b;
}

.order-item-qty {
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
}

.order-card-footer {
  margin-top: 10px;
  display: flex;
  justify-content: flex-end;
}

.order-card-footer a {
  font-size: 0.8rem;
  color: #2563eb;
  text-decoration: none;
}

.order-card-footer a:hover {
  text-decoration: underline;
}

.order-running .order-poll-status {
  border-color: rgba(37, 99, 235, 0.35);
  background: rgba(37, 99, 235, 0.08);
}

.pod-list-header {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-bottom: 24px;
}

.pod-summary {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pod-summary .summary-total {
  font-weight: 600;
  color: #1e3a8a;
}

.summary-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.summary-chip {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.8rem;
  background: rgba(37, 99, 235, 0.1);
  color: #1e40af;
}

.summary-chip.is-active {
  background: rgba(22, 101, 52, 0.12);
  color: #166534;
}

.pod-filter-form {
  background: rgba(226, 232, 240, 0.35);
  border-radius: 12px;
  padding: 16px;
}

.pod-filter-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: flex-end;
}

.pod-filter-form .filter-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 160px;
  font-size: 0.85rem;
  color: #475569;
}

.pod-filter-form .filter-field span {
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
}

.filter-search {
  flex: 1 1 240px;
}

.filter-search input {
  width: 100%;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: flex-end;
}

.pod-idea-results {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pod-idea-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pod-idea-item {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  box-shadow: 0 20px 35px -24px rgba(15, 23, 42, 0.3);
}

.pod-idea-item.bundle-pin-one {
  background: #ecfdf5;
  border-color: rgba(16, 185, 129, 0.45);
}

.pod-idea-item.bundle-pin-two {
  background: #fff7ed;
  border-color: rgba(251, 146, 60, 0.45);
}

.pod-idea-item.bundle-pin-many {
  background: #fef2f2;
  border-color: rgba(248, 113, 113, 0.5);
}

.pod-idea-layout {
  display: flex;
  gap: 18px;
  align-items: stretch;
}

.pod-idea-media {
  flex: 0 0 220px;
}

.pod-idea-content {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pod-idea-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pod-idea-header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.pod-idea-header h3 a {
  color: inherit;
}

.pod-idea-meta {
  margin-top: 4px;
  font-size: 0.78rem;
  color: #64748b;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.pod-status-badge {
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #1e1b4b;
  background: rgba(165, 180, 252, 0.25);
  white-space: nowrap;
}

.pod-idea-snippet {
  margin: 0;
  color: #1f2937;
}

.pod-idea-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 0.85rem;
}

.pod-idea-links a {
  color: #2563eb;
}

.pod-idea-bundles {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.pod-idea-bundles.is-empty {
  display: none;
}

.pod-idea-bundle-label {
  font-weight: 600;
  color: #0f172a;
}

.pod-idea-bundle-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pod-idea-bundle-chips a {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.8rem;
}

.pod-idea-bundle-chips a:hover {
  background: rgba(15, 23, 42, 0.12);
}

.pod-idea-shops {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  font-size: 0.85rem;
}

.pod-idea-shop-label {
  font-weight: 600;
  color: #475569;
}

.pod-idea-shop-chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.pod-idea-shop-chip {
  background: #e0f2fe;
  color: #0369a1;
  border-radius: 999px;
  padding: 2px 12px;
  font-size: 0.78rem;
  font-weight: 600;
}

.pod-idea-thumb {
  margin: 0;
  overflow: hidden;
  border-radius: 14px;
  max-height: 180px;
}

.pod-idea-thumb img {
  width: 100%;
  display: block;
  object-fit: cover;
}

.pod-idea-thumb--empty {
  border: 1px dashed rgba(148, 163, 184, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 180px;
  color: #94a3b8;
  font-size: 0.85rem;
}

.pod-idea-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pod-idea-progress-step {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  color: #94a3b8;
}

.pod-idea-progress-step.is-current {
  color: #1d4ed8;
  font-weight: 600;
}

.pod-idea-progress-step.is-complete {
  color: #15803d;
}

.pod-idea-progress-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 2px rgba(148, 163, 184, 0.25);
}

.pod-idea-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.pod-idea-footer-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.pod-idea-bundle-status {
  font-size: 0.85rem;
  color: #475569;
  font-weight: 500;
}

.bundle-pin-one .pod-idea-bundle-status {
  color: #15803d;
}

.bundle-pin-two .pod-idea-bundle-status {
  color: #b45309;
}

.bundle-pin-many .pod-idea-bundle-status {
  color: #b91c1c;
}

.pod-idea-status-form {
  display: flex;
  align-items: center;
  gap: 8px;
}

.form-select--compact {
  padding: 4px 8px;
  font-size: 0.85rem;
}

.pod-empty {
  background: rgba(226, 232, 240, 0.35);
  border: 1px dashed rgba(148, 163, 184, 0.6);
  padding: 24px;
  border-radius: 14px;
  text-align: center;
  color: #475569;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

@media (max-width: 768px) {
  .pod-idea-layout {
    flex-direction: column;
  }

  .pod-idea-media {
    flex: 0 0 auto;
  }

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

  .order-poll-grid {
    grid-template-columns: 1fr;
  }

  .pod-video-template-list {
    grid-template-columns: 1fr;
  }
}

.pod-video-template-section {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pod-video-template-groups {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pod-video-template {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  background: #ffffff;
  overflow: hidden;
}

.pod-video-template-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 18px;
  background: rgba(248, 250, 252, 0.85);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.pod-video-template-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.pod-video-template-actions .pod-video-template-slug {
  margin-right: 4px;
}

.pod-video-template-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  border: none;
  background: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
  padding: 0;
}

.pod-video-template-name {
  font-weight: 600;
}

.pod-video-template-count {
  font-size: 0.85rem;
  color: #475569;
}

.pod-video-template-slug {
  font-size: 0.8rem;
  color: #64748b;
  font-style: italic;
}

.pod-video-template-body {
  padding: 18px;
}

.pod-video-template-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 16px;
}

.pod-video-asset-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  position: relative;
}

.pod-video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 6;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.25);
}

.pod-video-badge--custom {
  background: linear-gradient(135deg, #14b8a6, #0ea5e9);
}

.pod-video-badge--combine {
  background: linear-gradient(135deg, #f97316, #ec4899);
}

.pod-asset-figure--video {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
}

.pod-asset-figure--video video {
  width: 100%;
  display: block;
  border-radius: 10px;
  background: #000;
  pointer-events: none;
}

.pod-video-play-button {
  position: absolute;
  right: 12px;
  bottom: 12px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.75);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.3);
}

.pod-video-play-button:hover,
.pod-video-play-button:focus-visible {
  transform: scale(1.05);
  background: rgba(37, 99, 235, 0.9);
  outline: none;
}

.pod-video-select {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 5;
}

.pod-video-select-label {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pod-video-select-label:hover,
.pod-video-select-label:focus-within {
  background: rgba(37, 99, 235, 0.82);
  border-color: rgba(255, 255, 255, 0.8);
}

.pod-video-select-label input[type='checkbox'] {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.pod-video-select-icon {
  width: 16px;
  height: 16px;
  border: 2px solid #ffffff;
  border-radius: 6px;
  display: inline-block;
  position: relative;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.pod-video-select-label input[type='checkbox']:checked + .pod-video-select-icon {
  background: #2563eb;
  border-color: #2563eb;
}

.pod-video-select-label input[type='checkbox']:checked + .pod-video-select-icon::after {
  content: '';
  position: absolute;
  left: 50%;
  top: 47%;
  width: 6px;
  height: 10px;
  border: 2px solid #ffffff;
  border-top: none;
  border-left: none;
  transform: translate(-50%, -50%) rotate(45deg);
}

.pod-video-play-icon {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #ffffff;
  margin-left: 3px;
  pointer-events: none;
}

.pod-video-asset-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #475569;
}

.pod-video-asset-meta a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.pod-video-asset-meta a:hover {
  text-decoration: underline;
}

.pod-video-variants-wrapper {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 14px;
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pod-video-variants-wrapper.is-hidden {
  display: none;
}

.pod-video-variants-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #0f172a;
  font-weight: 600;
}

.pod-video-variants-count {
  font-size: 0.78rem;
  color: #1d4ed8;
  font-weight: 600;
}

.pod-video-variants-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px;
}

.pod-video-asset-card--variant {
  padding: 10px;
  gap: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  background: #fff;
}

.pod-video-asset-card--variant .pod-video-asset-buttons {
  justify-content: space-between;
}

.pod-video-asset-card--variant .pod-video-product {
  width: 100%;
}

.pod-video-asset-card--variant .pod-asset-figure--video {
  max-height: 165px;
}

.pod-video-asset-card--variant .pod-asset-figure--video video {
  height: 130px;
  object-fit: cover;
}

.pod-video-asset-card--variant .pod-video-play-button {
  width: 40px;
  height: 40px;
  right: 8px;
  bottom: 8px;
}

.pod-video-note {
  font-size: 0.75rem;
  color: #6b7280;
  margin: 0;
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.pod-video-note--copyable {
  position: relative;
  padding-right: 10px;
}

.pod-video-note-text {
  flex: 1 1 auto;
  word-break: break-word;
  white-space: pre-wrap;
}

.pod-video-note-text--prompt {
  line-height: 1.4;
  max-height: calc(1.4em * 2);
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  white-space: normal;
}

.pod-video-note-copy {
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #fff;
  color: #334155;
  border-radius: 8px;
  padding: 2px 8px;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}

.pod-video-note-copy:hover {
  border-color: #2563eb;
  color: #1d4ed8;
}

.pod-video-asset-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pod-video-asset-select select {
  width: 100%;
}

.pod-video-asset-buttons {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pod-video-asset-note {
  font-size: 0.8rem;
  color: #9ca3af;
}

.pod-video-message {
  font-size: 0.82rem;
  color: #0f172a;
}

.pod-video-message.error {
  color: #b91c1c;
}

.overlay-editor {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 8px;
}

.overlay-stage-panel {
  flex: 1 1 260px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overlay-stage {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 16;
  background: #0f172a;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.25);
  background-size: cover;
  background-position: center;
  outline: none;
}

.overlay-stage:focus {
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.35);
}

.overlay-stage-layer {
  position: absolute;
  inset: 0;
}

.overlay-stage-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overlay-box {
  position: absolute;
  border: 1px dashed rgba(59, 130, 246, 0.8);
  border-radius: 8px;
  cursor: move;
  color: #ffffff;
  background: rgba(15, 23, 42, 0.1);
  backdrop-filter: blur(2px);
}

.overlay-box.is-selected {
  border: 2px solid #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.overlay-box .overlay-text {
  width: 100%;
  height: 100%;
  padding: 6px;
  white-space: pre-wrap;
  overflow-wrap: break-word;
  text-align: center;
  outline: none;
  user-select: text;
  cursor: text;
}

.overlay-box .overlay-text.overlay-text--color {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: center;
  gap: 0;
  letter-spacing: normal;
  cursor: default;
  user-select: none;
  white-space: normal;
}

.overlay-color-text-glyph,
.overlay-color-text-fallback,
.overlay-color-text-space {
  display: inline-block;
  background-repeat: no-repeat;
  background-size: contain;
  background-position: center;
  pointer-events: none;
}

.overlay-color-text-fallback {
  color: #f8fafc;
  font-weight: 600;
  text-shadow: 0 0 6px rgba(15, 23, 42, 0.5);
}

.overlay-color-text-space {
  background: none;
  color: transparent;
  display: inline-block;
}

.overlay-color-word {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: flex-end;
}

.overlay-color-line-break {
  flex-basis: 100%;
  height: 0;
}

.overlay-box .overlay-text.overlay-text--color[data-align="left"] {
  justify-content: flex-start;
  text-align: left;
}

.overlay-box .overlay-text.overlay-text--color[data-align="center"] {
  justify-content: center;
  text-align: center;
}

.overlay-box .overlay-text.overlay-text--color[data-align="right"] {
  justify-content: flex-end;
  text-align: right;
}

.overlay-box .overlay-text.overlay-text--color[data-align="justify"] {
  justify-content: space-between;
  text-align: justify;
}

.overlay-box .overlay-handle {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #111827;
  border: 2px solid #2563eb;
  border-radius: 50%;
  cursor: pointer;
}

.overlay-box .overlay-handle--resize {
  right: -12px;
  bottom: -12px;
  cursor: nwse-resize;
}

.overlay-box .overlay-handle--rotate {
  top: -28px;
  left: 50%;
  transform: translateX(-50%);
  cursor: grab;
}

.overlay-box .overlay-handle--rotate::after {
  content: '';
  position: absolute;
  top: 14px;
  left: 50%;
  width: 2px;
  height: 16px;
  background: #2563eb;
  transform: translateX(-50%);
}

.overlay-box .overlay-handle--rotate::before {
  content: '';
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  width: 6px;
  height: 6px;
  background: #2563eb;
  border-radius: 50%;
}

.overlay-box .overlay-text::selection {
  background: rgba(59, 130, 246, 0.35);
}

.overlay-box--emoji {
  background: rgba(15, 23, 42, 0.06);
}

.overlay-box--emoji .overlay-emoji-wrapper {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.overlay-box--emoji .overlay-emoji-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.overlay-stage-panel button.btn-link {
  padding-left: 0;
}

.video-customize-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}

.video-customize-overlay {
  flex: 1 1 380px;
  min-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-customize-controls {
  flex: 1 1 280px;
  min-width: 260px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-customize-tip {
  font-size: 0.85rem;
  line-height: 1.4;
  color: #475569;
  background: rgba(148, 163, 184, 0.12);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 10px;
  padding: 12px 14px;
}

.video-customize-tip strong {
  color: #1e293b;
}

.video-customize-audio {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.video-customize-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-music-preview {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-music-preview audio {
  flex: 1 1 auto;
  max-width: 260px;
}

.video-customize-template {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-customize-template-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.video-customize-template-row select {
  flex: 1 1 auto;
}

.video-customize-template-save {
  display: flex;
  gap: 8px;
  align-items: center;
}

.video-customize-template-save .form-control {
  flex: 1 1 auto;
}

.video-customize-style {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.video-customize-style h4 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: #1e293b;
}

.video-customize-style-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

.video-style-full-row {
  grid-column: 1 / -1;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #1f2937;
}

.video-style-full-row textarea {
  min-height: 56px;
  resize: vertical;
}

.video-style-column {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.overlay-style-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 0.82rem;
  color: #1f2937;
}

.overlay-style-row input[type="range"] {
  width: 100%;
}

.overlay-style-row input[type="color"] {
  width: 42px;
  height: 28px;
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 6px;
  padding: 0;
}

.video-customize-controls .pod-video-generator-message {
  margin-top: auto;
}

.video-overlay-layer-panel {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 12px;
  padding: 12px;
  background: #f8fafc;
}

.overlay-layer-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.35);
}

.overlay-layer-panel-header h4 {
  margin: 0;
  font-size: 1rem;
  color: #0f172a;
}

.overlay-layer-panel-header p {
  margin: 2px 0 0;
  font-size: 0.82rem;
  color: #475569;
}

.overlay-layer-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}

.overlay-layer-card {
  border: 1px solid rgba(148, 163, 184, 0.5);
  border-radius: 12px;
  padding: 12px;
  background: linear-gradient(180deg, #f8fbff 0%, #eef2ff 100%);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.overlay-layer-card.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.25);
}

.overlay-layer-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.overlay-layer-card-title {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.overlay-layer-card-title strong {
  font-size: 1rem;
  color: #0f172a;
}

.overlay-layer-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #4338ca;
  background: rgba(79, 70, 229, 0.12);
  border-radius: 999px;
  padding: 2px 10px;
}

.overlay-layer-actions {
  display: inline-flex;
  gap: 6px;
}

.overlay-layer-actions button {
  border: 1px solid rgba(148, 163, 184, 0.8);
  background: #fff;
  color: #1e293b;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease;
}

.overlay-layer-actions button:hover:not(:disabled) {
  background: #eef2ff;
}

.overlay-layer-actions button:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.overlay-layer-card-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.overlay-layer-field label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #475569;
  margin-bottom: 4px;
}

.overlay-layer-field textarea,
.overlay-layer-field input[type="text"],
.overlay-layer-field input[type="number"],
.overlay-layer-field select {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.8);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.9rem;
  background: #fff;
}

.overlay-layer-slider {
  display: flex;
  align-items: center;
  gap: 12px;
}

.overlay-layer-slider input[type="range"] {
  flex: 1;
}

.overlay-layer-slider-value {
  font-weight: 600;
  color: #0f172a;
  min-width: 56px;
  text-align: right;
}

.overlay-layer-color-row {
  display: flex;
  gap: 16px;
}

.overlay-layer-color-row .overlay-layer-field {
  flex: 1;
}

.overlay-layer-color-row label {
  margin-bottom: 4px;
}

.overlay-layer-color-row input[type="color"] {
  width: 48px;
  height: 32px;
  border: none;
  background: transparent;
  padding: 0;
}

.overlay-layer-field textarea {
  min-height: 56px;
}

.overlay-color-font-preview-row {
  display: flex;
  gap: 6px;
  margin-top: 6px;
  padding: 6px;
  border: 1px dashed rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  background: rgba(99, 102, 241, 0.05);
  min-height: 40px;
  align-items: center;
}

.overlay-color-font-preview-item img {
  max-height: 32px;
  border-radius: 4px;
  border: 1px solid rgba(148, 163, 184, 0.6);
  background: #fff;
  padding: 2px;
}

.overlay-color-font-preview-row.is-inline {
  border: none;
  background: transparent;
  padding: 0;
  min-height: auto;
}

.overlay-color-font-preview-row.is-inline .overlay-color-font-preview-item img {
  max-height: 28px;
}

.overlay-color-font-preview-empty {
  font-size: 0.8rem;
  color: #475569;
}

.overlay-color-font-select {
  display: none;
}

.overlay-color-font-picker {
  position: relative;
  margin-top: 6px;
}

.overlay-color-font-toggle {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.8);
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.9rem;
  cursor: pointer;
}

.overlay-color-font-toggle:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.overlay-color-font-picker.has-selection .overlay-color-font-toggle {
  border-color: rgba(99, 102, 241, 0.7);
  color: #312e81;
}

.overlay-color-font-label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overlay-color-font-picker.is-open .overlay-color-font-toggle {
  border-color: #4f46e5;
  box-shadow: 0 0 0 2px rgba(79, 70, 229, 0.2);
}

.overlay-color-font-caret {
  margin-left: auto;
  border: 5px solid transparent;
  border-top-color: #475569;
}

.overlay-color-font-picker.is-open .overlay-color-font-caret {
  transform: rotate(180deg);
}

.overlay-color-font-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 10px;
  box-shadow: 0 16px 24px rgba(15, 23, 42, 0.15);
  padding: 6px 0;
  max-height: 260px;
  overflow-y: auto;
  z-index: 40;
}

.overlay-color-font-option {
  width: 100%;
  border: none;
  background: transparent;
  padding: 8px 12px;
  text-align: left;
  cursor: pointer;
}

.overlay-color-font-option:not(.is-active):hover {
  background: rgba(99, 102, 241, 0.08);
}

.overlay-color-font-option.is-active,
.overlay-color-font-option.is-active:hover {
  background: rgba(99, 102, 241, 0.1);
}

.overlay-color-font-option-header {
  font-weight: 600;
  color: #0f172a;
  margin-bottom: 6px;
}

.overlay-color-font-option-preview .overlay-color-font-preview-row {
  border: none;
  background: transparent;
  padding: 0;
  min-height: auto;
}

.overlay-color-font-option-empty {
  padding: 8px 12px;
  font-size: 0.85rem;
  color: #475569;
}

.overlay-layer-delete {
  align-self: flex-start;
  padding-left: 0;
}

.overlay-layer-random-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.overlay-layer-random-row input[type="number"] {
  width: 80px;
  border: 1px solid rgba(148, 163, 184, 0.8);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.9rem;
}

.overlay-layer-random-arrow {
  font-weight: 600;
  color: #475569;
}

.overlay-layer-empty {
  padding: 16px 0;
  text-align: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.video-editor-wrapper {
  padding: 24px 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.video-editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.video-editor-header h1 {
  margin: 0;
  font-size: 1.6rem;
  font-weight: 700;
  color: #0f172a;
}

.video-editor-body {
  display: grid;
  gap: 20px;
  grid-template-columns: 280px 1fr;
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "sidebar preview"
    "timeline timeline";
  min-height: 70vh;
}

.video-editor-sidebar {
  grid-area: sidebar;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-editor-sidebar h2 {
  margin: 0 0 8px;
  font-size: 1rem;
  font-weight: 600;
  color: #1e293b;
}

.video-editor-group {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  overflow: hidden;
}

.video-editor-group summary {
  cursor: pointer;
  font-weight: 600;
  padding: 10px 14px;
  background: rgba(37, 99, 235, 0.08);
  color: #1d4ed8;
  list-style: none;
}

.video-editor-group summary::-webkit-details-marker {
  display: none;
}

.video-editor-group ul {
  margin: 0;
  padding: 8px;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-editor-library-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: #fff;
  cursor: pointer;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.video-editor-library-item:hover,
.video-editor-library-item:focus {
  border-color: rgba(37, 99, 235, 0.45);
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.15);
}

.video-editor-library-item.is-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.video-editor-thumb {
  width: 64px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  background: #0f172a;
}

.video-editor-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: #475569;
}

.video-editor-main {
  grid-area: preview;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-editor-preview {
  position: relative;
  background: #0f172a;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.2);
  aspect-ratio: 9 / 16;
}

.video-editor-preview video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.video-editor-preview-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-editor-preview-title {
  font-weight: 600;
  font-size: 1rem;
  margin-right: auto;
  color: #1f2937;
}

.video-editor-timeline {
  grid-area: timeline;
  border: 1px solid rgba(148, 163, 184, 0.4);
  border-radius: 16px;
  padding: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-editor-timeline-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.video-editor-timeline-list {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  min-height: 72px;
  border: 1px dashed rgba(148, 163, 184, 0.7);
  border-radius: 12px;
  padding: 12px;
  align-items: center;
}

.video-editor-timeline-item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.2);
  font-size: 0.8rem;
  color: #1d4ed8;
}

.video-editor-timeline-item button {
  border: none;
  background: transparent;
  color: #ef4444;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
}

.video-editor-empty {
  font-size: 0.85rem;
  color: #94a3b8;
}

.video-editor-actions {
  display: flex;
  gap: 10px;
}

@media (max-width: 1100px) {
  .video-editor-body {
    grid-template-columns: 1fr;
    grid-template-areas:
      "preview"
      "sidebar"
      "timeline";
  }

  .video-editor-sidebar {
    order: 2;
  }

  .video-editor-timeline {
    order: 3;
  }
}

.video-customize-controls .form-control-wrapper {
  margin: 0;
}

.video-customize-controls .form-control-wrapper + .form-control-wrapper {
  margin-top: 0;
}

.overlay-emoji-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
}

.overlay-emoji-modal.is-hidden {
  display: none;
}

.overlay-emoji-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.overlay-emoji-dialog {
  position: relative;
  margin: 40px auto;
  width: min(760px, calc(100vw - 32px));
  max-height: min(80vh, 660px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 25px 50px rgba(15, 23, 42, 0.22);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  z-index: 1;
}

.overlay-emoji-header,
.overlay-emoji-footer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overlay-emoji-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.overlay-emoji-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.overlay-emoji-close {
  background: none;
  border: none;
  color: #475569;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.overlay-emoji-close:hover {
  color: #1e293b;
}

.overlay-emoji-search {
  padding: 12px 20px 0;
}

.overlay-emoji-search input {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.overlay-emoji-search input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.18);
}

.overlay-emoji-grid {
  padding: 16px 20px;
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(78px, 1fr));
  gap: 12px;
  overflow-y: auto;
}

.overlay-emoji-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 10px 8px;
  border-radius: 12px;
  border: 1px solid transparent;
  background: #f8fafc;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.overlay-emoji-item:hover,
.overlay-emoji-item:focus {
  border-color: #2563eb;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.18);
  transform: translateY(-2px);
}

.overlay-emoji-thumb {
  width: 100%;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.overlay-emoji-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.overlay-emoji-name {
  font-size: 0.75rem;
  color: #0f172a;
  text-align: center;
  line-height: 1.2;
  word-break: break-word;
}

.overlay-emoji-empty {
  grid-column: 1 / -1;
  text-align: center;
  color: #64748b;
  font-size: 0.9rem;
  margin: 24px 0;
}

.overlay-emoji-footer .btn {
  min-width: 0;
}

.overlay-emoji-footer .btn[disabled],
.overlay-emoji-footer .btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.overlay-emoji-modal .btn-link {
  color: #2563eb;
}

.overlay-emoji-modal .btn-link:hover {
  color: #1d4ed8;
}

@media (max-width: 640px) {
  .overlay-emoji-dialog {
    width: calc(100vw - 24px);
    margin: 24px auto;
    max-height: min(85vh, 620px);
  }
  .overlay-emoji-grid {
    padding: 16px;
    grid-template-columns: repeat(auto-fill, minmax(68px, 1fr));
  }
}

.pod-video-player-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pod-video-player-modal.is-hidden {
  display: none;
}

.pod-video-player-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.pod-video-player-dialog {
  position: relative;
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  background: #000000;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
  z-index: 1;
  display: flex;
  flex-direction: column;
}

.pod-video-player {
  width: 100%;
  height: auto;
  display: block;
  background: #000;
  max-height: 100%;
  object-fit: contain;
}

.pod-video-player-close {
  position: absolute;
  top: 10px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(15, 23, 42, 0.6);
  color: #ffffff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease;
}

.pod-video-player-close:hover,
.pod-video-player-close:focus-visible {
  background: rgba(37, 99, 235, 0.85);
  outline: none;
}

@media (max-width: 640px) {
  .pod-video-player-dialog {
    width: calc(100vw - 20px);
    max-height: calc(100vh - 32px);
  }
}

.pod-video-combine-modal {
  position: fixed;
  inset: 0;
  z-index: 1450;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pod-video-combine-modal.is-hidden {
  display: none;
}

.pod-video-combine-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
}

.pod-video-combine-dialog {
  position: relative;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 80px);
  background: #ffffff;
  border-radius: 18px;
  box-shadow: 0 30px 60px rgba(15, 23, 42, 0.45);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  z-index: 1;
}

.pod-video-combine-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 20px 22px 16px;
  background: rgba(248, 250, 252, 0.92);
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
}

.pod-video-combine-header h3 {
  margin: 6px 0 0;
  font-size: 1.15rem;
  font-weight: 600;
  color: #0f172a;
}

.pod-video-combine-template {
  margin: 0;
  font-size: 0.85rem;
  color: #475569;
}

.pod-video-combine-close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease;
}

.pod-video-combine-close:hover,
.pod-video-combine-close:focus-visible {
  background: rgba(15, 23, 42, 0.2);
  outline: none;
}

.pod-video-combine-body {
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.pod-video-combine-intro {
  margin: 0;
  font-size: 0.9rem;
  color: #475569;
}

.pod-video-combine-list-wrapper {
  max-height: 300px;
  overflow-y: auto;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #ffffff;
}

.pod-video-combine-list {
  margin: 0;
  padding: 8px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pod-video-combine-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 16px;
  border-radius: 10px;
  transition: background 0.15s ease;
}

.pod-video-combine-item:nth-child(odd) {
  background: rgba(248, 250, 252, 0.65);
}

.pod-video-combine-item-main {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pod-video-combine-order {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(37, 99, 235, 0.12);
  color: #1d4ed8;
  font-weight: 600;
  font-size: 0.9rem;
}

.pod-video-combine-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.95rem;
  color: #0f172a;
}

.pod-video-combine-label input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: #2563eb;
}

.pod-video-combine-meta {
  grid-column: 1 / 3;
  margin-left: 40px;
  font-size: 0.8rem;
  color: #64748b;
}

.pod-video-combine-item-actions {
  display: inline-flex;
  flex-direction: column;
  gap: 6px;
}

.pod-video-combine-arrow {
  border: 1px solid rgba(148, 163, 184, 0.5);
  background: #ffffff;
  color: #1f2937;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.75rem;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.pod-video-combine-arrow:hover:not(:disabled) {
  background: rgba(37, 99, 235, 0.12);
  border-color: rgba(37, 99, 235, 0.5);
  color: #1d4ed8;
}

.pod-video-combine-arrow:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.pod-video-combine-transition {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pod-video-combine-transition label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #475569;
}

.pod-video-combine-transition select {
  border: 1px solid rgba(148, 163, 184, 0.6);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.95rem;
}

.pod-video-combine-message {
  min-height: 18px;
  font-size: 0.85rem;
  color: #1f2937;
}

.pod-video-combine-message.is-error {
  color: #dc2626;
}

.pod-video-combine-footer {
  padding: 16px 22px 20px;
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  background: rgba(248, 250, 252, 0.92);
  border-top: 1px solid rgba(148, 163, 184, 0.18);
}

@media (max-width: 900px) {
  .video-customize-layout {
    flex-direction: column;
  }
  .video-customize-overlay,
  .video-customize-controls {
    min-width: 100%;
  }
}

.pod-video-generator-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
}

.pod-video-generator-modal.is-hidden {
  display: none;
}

.pod-video-generator-dialog {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(960px, calc(100vw - 32px));
  max-height: min(92vh, 880px);
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pod-video-generator-header,
.pod-video-generator-footer {
  padding: 16px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.pod-video-generator-header {
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.pod-video-generator-footer {
  border-top: 1px solid rgba(148, 163, 184, 0.2);
}

.pod-video-generator-body {
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 1 1 auto;
  overflow-y: auto;
}

.video-modal-layout {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: stretch;
  width: 100%;
}

.video-modal-card {
  background: #fff;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}

.video-modal-card--team,
.video-modal-card--prompt,
.video-modal-card--model,
.video-modal-card--save {
  flex: 1 1 280px;
  min-width: 260px;
}

.video-modal-card--custom {
  margin-top: 12px;
}

.video-modal-card__header {
  margin-bottom: 4px;
}

.video-modal-card__header h4 {
  margin: 0;
  font-size: 1rem;
}

.video-modal-card__header p {
  margin: 4px 0 0;
  color: #6b7280;
  font-size: 0.85rem;
}

.video-modal-card__body {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.video-prompt-save {
  border: 1px dashed rgba(148, 163, 184, 0.6);
  border-radius: 12px;
  padding: 12px;
  background: rgba(15, 23, 42, 0.02);
}

.video-prompt-save-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: #0f172a;
  cursor: pointer;
}

.video-prompt-name {
  margin-top: 10px;
}

.video-prompt-name.is-hidden {
  display: none;
}

.video-prompt-name input {
  width: 100%;
}

@media (max-width: 768px) {
  .video-modal-card--team,
  .video-modal-card--prompt,
  .video-modal-card--save {
    flex: 1 1 100%;
  }
}

.design-control-scale .design-scale-inputs {
  display: flex;
  align-items: center;
  gap: 12px;
}

.design-control-scale .design-scale-inputs input[type='range'],
.design-control-scale .design-scale-inputs input[type='number'] {
  flex: 0 0 50%;
  max-width: 50%;
  width: 50%;
  box-sizing: border-box;
}

.design-control-scale input[type='range'] {
  min-width: 0;
}

.design-control-scale input[type='number'] {
  padding: 8px 10px;
  min-width: 0;
}

.pod-video-generator-message {
  font-size: 0.85rem;
  color: #0f172a;
}

.pod-video-generator-message.error {
  color: #b91c1c;
}

.pod-video-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pod-video-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 16px;
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pod-video-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.pod-video-title-block {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.pod-video-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
}

.pod-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pod-video-meta-line {
  margin: 0;
  font-size: 0.82rem;
  color: #475569;
}

.pod-video-meta-line.warning {
  color: #b45309;
  font-weight: 600;
}

.pod-video-header-actions {
  display: flex;
  align-items: center;
}

.pod-video-toggle {
  border: 1px solid rgba(15, 23, 42, 0.15);
  background: #fff;
  border-radius: 999px;
  padding: 4px 12px;
  font-size: 0.8rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.pod-video-card.is-collapsed .pod-video-toggle {
  background: #22c55e;
  color: #fff;
  border-color: #22c55e;
}

.pod-video-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.pod-video-controls {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pod-video-card.is-collapsed .pod-video-body {
  display: none;
}

.pod-video-card.is-collapsed [data-collapse-hide] {
  display: none;
}

.pod-video-seed {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  background: rgba(248, 250, 252, 0.85);
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
}

.pod-video-seed .pod-dropzone {
  width: 100%;
  margin: 0;
}

.pod-video-seed .pod-upload-message {
  font-size: 0.75rem;
  color: #0f172a;
}

.pod-video-seed .text-muted {
  margin: 0;
}

.pod-video-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
}

.pod-carousel {
  position: relative;
  width: 150px;
  max-width: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.1);
}

.pod-carousel-track {
  width: 100%;
}

.pod-carousel-slide {
  display: none;
}

.pod-carousel-slide.is-active {
  display: block;
}

.pod-carousel-slide img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 12px;
}

.pod-carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(15, 23, 42, 0.5);
  color: #fff;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 0.15s ease;
}

.pod-carousel-btn:hover {
  background: rgba(37, 99, 235, 0.8);
}

.pod-carousel-btn[disabled] {
  opacity: 0;
  pointer-events: none;
}

.pod-carousel-prev {
  left: 8px;
}

.pod-carousel-next {
  right: 8px;
}

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

.video-sync-log {
  margin-top: 16px;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  padding-top: 12px;
}

.video-sync-log header {
  font-size: 0.9rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.video-sync-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.video-sync-history li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: #475569;
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: 10px;
  background: #f8fafc;
  gap: 12px;
}

.video-sync-history li.is-posted {
  border-color: rgba(34, 197, 94, 0.28);
  background: rgba(240, 253, 244, 0.95);
}

.video-sync-info {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.video-posted-controls {
  display: flex;
  align-items: center;
  gap: 10px;
}

.video-posted-status {
  font-size: 0.78rem;
  font-weight: 600;
  color: #b91c1c;
}

.video-sync-history li.is-posted .video-posted-status {
  color: #166534;
}

.video-posted-switch {
  position: relative;
  display: inline-block;
  width: 36px;
  height: 18px;
}

.video-posted-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.video-posted-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(148, 163, 184, 0.6);
  transition: 0.2s ease;
  border-radius: 999px;
}

.video-posted-slider::before {
  content: '';
  position: absolute;
  height: 14px;
  width: 14px;
  left: 2px;
  bottom: 2px;
  background: #fff;
  border-radius: 50%;
  transition: 0.2s ease;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.25);
}

.video-posted-switch input:checked + .video-posted-slider {
  background: rgba(34, 197, 94, 0.85);
}

.video-posted-switch input:checked + .video-posted-slider::before {
  transform: translateX(16px);
}

.video-sync-history .product-id {
  font-size: 0.8rem;
  background: rgba(37, 99, 235, 0.1);
  padding: 2px 6px;
  border-radius: 6px;
  color: #1d4ed8;
}

.mockup-forms-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.mockup-import-form header h3 {
  margin: 0;
  font-size: 1.1rem;
}

.base-mockup-gallery {
  margin-top: 32px;
  display: grid;
  gap: 24px;
}

.base-mockup-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 18px;
  padding: 18px;
  background: #ffffff;
  box-shadow: 0 10px 30px -24px rgba(15, 23, 42, 0.45);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.base-mockup-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.base-mockup-actions {
  display: flex;
  gap: 10px;
}

.base-mockup-info {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.base-mockup-preview {
  width: 160px;
  height: 160px;
  object-fit: cover;
  border-radius: 14px;
  background: #f8fafc;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.25);
}

.base-mockup-preview--empty {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 0.85rem;
}

.base-mockup-notes {
  flex: 1;
  background: rgba(248, 250, 252, 0.8);
  border: 1px dashed rgba(148, 163, 184, 0.4);
  border-radius: 12px;
  padding: 12px;
}

.base-mockup-tone-form {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.base-mockup-tone-form label {
  font-size: 0.8rem;
  color: #475569;
}

.base-mockup-tone-form .form-select-sm {
  padding: 6px 8px;
  font-size: 0.85rem;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.base-mockup-templates {
  margin-top: 12px;
}

.base-mockup-templates strong {
  font-size: 0.85rem;
  color: #1f2937;
}

.base-mockup-templates ul {
  margin: 6px 0 0;
  padding-left: 18px;
  font-size: 0.85rem;
  color: #475569;
}

.base-mockup-image-list {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.base-mockup-image-card {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #f8fafc;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.base-mockup-image-card figure {
  margin: 0;
}

.base-mockup-image-card img {
  width: 100%;
  height: 120px;
  object-fit: cover;
}

.base-mockup-image-card figcaption {
  padding: 8px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #1f2937;
}

.image-card-actions {
  padding: 6px 10px 12px;
  display: flex;
  justify-content: flex-end;
}

.mockup-region-modal {
  position: fixed;
  inset: 0;
  z-index: 400;
  display: none;
}

.mockup-region-modal:not(.is-hidden) {
  display: block;
}

.mockup-region-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.mockup-region-dialog {
  position: relative;
  background: #fff;
  border-radius: 18px;
  max-width: 900px;
  margin: 40px auto;
  padding: 24px;
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.55);
}

.mockup-region-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.mockup-region-body {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.2fr 1fr;
}

.mockup-region-canvas {
  position: relative;
  background: #0f172a;
  border-radius: 12px;
  overflow: hidden;
  max-height: 520px;
  touch-action: none;
}

.mockup-region-canvas img {
  display: block;
  width: 100%;
  height: auto;
}

.mockup-region-box {
  position: absolute;
  top: 10%;
  left: 10%;
  width: 80%;
  height: 80%;
  border: 2px dashed #38bdf8;
  background: rgba(56, 189, 248, 0.18);
  transform-origin: center;
  pointer-events: auto;
  cursor: move;
}

.mockup-region-box.is-dragging {
  border-style: solid;
}

.mockup-region-handle {
  position: absolute;
  width: 16px;
  height: 16px;
  border-radius: 9999px;
  background: #0ea5e9;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 2px rgba(14, 165, 233, 0.35);
  cursor: pointer;
  pointer-events: auto;
}

.mockup-region-handle--rotate {
  top: -24px;
  left: 50%;
  transform: translate(-50%, 0);
  cursor: grab;
}

.mockup-region-handle--resize {
  right: -10px;
  bottom: -10px;
  cursor: nwse-resize;
}

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

.mockup-region-grid label {
  display: flex;
  flex-direction: column;
  font-size: 0.85rem;
  color: #1f2937;
  gap: 4px;
}

.mockup-region-grid input {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, 0.4);
}

.mockup-region-actions {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.video-sync-history li.empty {
  color: #94a3b8;
  border: 1px dashed rgba(148, 163, 184, 0.25);
  background: transparent;
}

.pod-video-status {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.82rem;
  color: #475569;
}

.pod-video-status a {
  color: #2563eb;
  text-decoration: none;
}

.pod-video-status a:hover {
  text-decoration: underline;
}

.pod-video-message {
  font-size: 0.82rem;
  min-height: 18px;
  color: #1f2937;
}

.pod-video-message.error {
  color: #b91c1c;
}

.pod-cropper-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pod-cropper-modal.is-hidden {
  display: none;
}

.pod-cropper-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
}

.pod-cropper-dialog {
  position: relative;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 30px 60px -40px rgba(15, 23, 42, 0.6);
  max-width: 720px;
  width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.pod-cropper-body {
  padding: 20px;
  background: #f8fafc;
  display: flex;
  justify-content: center;
  align-items: center;
}

.pod-cropper-body img {
  max-width: 100%;
  max-height: 70vh;
  display: block;
}

.pod-cropper-actions {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
  padding: 16px 20px;
  background: #fff;
  border-top: 1px solid rgba(15, 23, 42, 0.08);
}

.pod-mockup-generator-modal .pod-cropper-dialog {
  max-width: 1080px;
}

.pod-mockup-generator-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
}

.pod-mockup-generator-body {
  padding: 24px;
  display: grid;
  gap: 20px;
  grid-template-columns: 320px 1fr;
}

.pod-mockup-generator-sidebar select {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  margin-bottom: 12px;
}

.pod-mockup-generator-sidebar label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 6px;
}

.pod-mockup-generator-sidebar label:not(:first-of-type) {
  margin-top: 14px;
}

.pod-mockup-variant-hint {
  font-size: 0.9rem;
  margin-bottom: 14px;
  color: #0f172a;
}

.pod-pin-lightbox[hidden] {
  display: none;
}

.pod-pin-lightbox {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pod-pin-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.8);
}

.pod-pin-lightbox-content {
  position: relative;
  z-index: 1;
  background: #0f172a;
  border-radius: 14px;
  padding: 12px;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.45);
  max-width: 85vw;
  max-height: 85vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pod-pin-lightbox-content img {
  max-width: 80vw;
  max-height: 80vh;
  object-fit: contain;
  display: block;
}

.pod-pin-lightbox-close {
  position: absolute;
  top: 6px;
  right: 6px;
  color: #fff;
  font-size: 1.6rem;
}

.pod-mockup-variant-hint.warning {
  color: #c2410c;
}

.pod-mockup-generator-body .text-muted {
  font-size: 0.85rem;
}

.pod-mockup-actions {
  display: flex;
  gap: 10px;
  margin: 16px 0;
  align-items: center;
}

.pod-mockup-generator-preview {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  max-height: 520px;
  overflow: auto;
  padding: 4px;
  background: rgba(248, 250, 252, 0.7);
  border-radius: 12px;
}

.pod-mockup-preview-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  font-size: 0.9rem;
  color: #64748b;
  text-align: center;
  padding: 16px;
}

.pod-mockup-generator-preview figure {
  margin: 0;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.mockup-select-option {
  display: block;
  position: relative;
}

.mockup-select-option input[type="checkbox"] {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 18px;
  height: 18px;
  border-radius: 4px;
  border: 2px solid rgba(15, 23, 42, 0.4);
}

.mockup-select-option img {
  display: block;
  width: 100%;
  height: 140px;
  object-fit: cover;
  border-radius: 0;
}

.pod-mockup-generator-preview img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.pod-mockup-generator-preview figcaption {
  padding: 6px 8px;
  font-size: 0.8rem;
  color: #1f2937;
}

@media (max-width: 768px) {
  .pod-video-card {
    padding: 14px;
  }

  .pod-video-actions {
    flex-direction: column;
    align-items: stretch;
  }
}
.pod-mockup-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  background: rgba(15, 23, 42, 0.55);
}

.pod-mockup-modal[hidden] {
  display: none;
}

.pod-mockup-modal__dialog {
  width: min(960px, 95vw);
  max-height: 90vh;
  background: #fff;
  border-radius: 18px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.3);
  display: flex;
  flex-direction: column;
}

.pod-mockup-modal__header,
.pod-mockup-modal__footer {
  padding: 20px 24px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.pod-mockup-modal__header {
  justify-content: space-between;
  border-bottom: 1px solid rgba(148, 163, 184, 0.25);
}

.pod-mockup-modal__footer {
  justify-content: flex-end;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
}

.pod-mockup-modal__close {
  border: none;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  color: #334155;
  cursor: pointer;
}

.pod-mockup-modal__close:hover {
  color: #1d4ed8;
}

.pod-mockup-modal__body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 300px);
  gap: 28px;
  padding: 24px;
  overflow-y: auto;
}

.pod-mockup-modal__body .form-control-wrapper {
  margin-bottom: 16px;
}

.pod-mockup-modal__preview figure {
  margin: 0;
  background: #f1f5f9;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.22);
}

.pod-mockup-modal__preview img {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
}

.pod-mockup-modal__preview figcaption {
  padding: 12px;
  font-size: 0.85rem;
  text-align: center;
  color: #475569;
  background: linear-gradient(180deg, rgba(241, 245, 249, 0.95), rgba(226, 232, 240, 0.95));
}

.pod-mockup-modal__message {
  padding: 14px 24px;
  font-size: 0.9rem;
  border-top: 1px solid rgba(148, 163, 184, 0.25);
  color: #475569;
}

.pod-mockup-modal__message.error {
  color: #dc2626;
}

.pod-mockup-modal__message.success {
  color: #047857;
}

@media (max-width: 960px) {
  .pod-mockup-modal__body {
    grid-template-columns: 1fr;
  }

  .pod-mockup-modal__preview {
    order: -1;
  }
}
.pod-modal-open {
  overflow: hidden;
}

.pod-mockup-generator-modal {
  position: fixed;
  inset: 0;
  z-index: 1300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.pod-mockup-generator-modal.is-hidden {
  display: none;
}
.pod-one-line {
  display: flex;
  align-items: center;
  gap: 12px;
}

.pod-one-line img {
  max-width: 120px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.15);
}


/* CapCut style video editor */
.capcut-editor {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px;
}

.capcut-editor__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.capcut-editor__title h1 {
  margin: 0;
  font-size: 1.6rem;
}

.capcut-editor__layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 16px;
  min-height: 600px;
}

.capcut-editor__sidebar {
  background: rgba(15, 23, 42, 0.04);
  border-radius: 16px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capcut-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.capcut-tab {
  padding: 8px 6px;
  border-radius: 10px;
  border: none;
  background: rgba(37, 99, 235, 0.08);
  color: #1e3a8a;
  font-weight: 600;
  cursor: pointer;
}

.capcut-tab.is-active {
  background: rgba(37, 99, 235, 0.18);
  color: #1d4ed8;
}

.capcut-panel {
  display: none;
  flex: 1;
  overflow: auto;
}

.capcut-panel.is-active {
  display: block;
}

.capcut-panel__group {
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  margin-bottom: 12px;
  background: #fff;
}

.capcut-panel__group > summary {
  padding: 10px 14px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.capcut-asset-list,
.capcut-asset-grid {
  list-style: none;
  padding: 12px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 10px;
}

.capcut-asset {
  width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.25);
  border-radius: 12px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 8px;
  cursor: pointer;
  align-items: flex-start;
  text-align: left;
}

.capcut-asset img {
  width: 100%;
  border-radius: 10px;
  object-fit: cover;
}

.capcut-asset.is-active {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.capcut-transition-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.4), rgba(191, 219, 254, 0.4));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: #1e3a8a;
}

.capcut-emoji-library {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.capcut-emoji {
  border: none;
  background: #fff;
  border-radius: 12px;
  padding: 6px;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

.capcut-emoji img {
  width: 100%;
}

.capcut-editor__workspace {
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: #fff;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 20px 55px -34px rgba(15, 23, 42, 0.35);
}

.capcut-preview {
  display: flex;
  gap: 16px;
}

.capcut-preview__screen {
  flex: 1 1 auto;
  background: #000;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
}

.capcut-preview__screen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.capcut-preview__overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.capcut-overlay-preview {
  position: absolute;
  color: #ffffff;
  font-weight: 700;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.6);
}

.capcut-overlay-preview img {
  width: 48px;
  height: 48px;
}

.capcut-preview__controls {
  flex: 0 0 220px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capcut-preview__buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.capcut-inspector {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capcut-inspector__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.capcut-inspector__body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.capcut-inspector__section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

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

.capcut-inspector__actions {
  display: flex;
  gap: 10px;
}

.capcut-timeline {
  border-top: 1px solid rgba(148, 163, 184, 0.18);
  padding-top: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capcut-timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.capcut-timeline__tracks {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capcut-track {
  display: grid;
  grid-template-columns: 80px minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.capcut-track__label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
  text-transform: uppercase;
}

.capcut-track__lane {
  background: rgba(241, 245, 249, 0.7);
  border-radius: 12px;
  padding: 8px;
  min-height: 60px;
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
}

.capcut-track__placeholder {
  font-size: 0.85rem;
  color: #94a3b8;
}

.capcut-clip {
  background: #fff;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 90px;
  position: relative;
  cursor: pointer;
}

.capcut-clip.is-active {
  border-color: rgba(37, 99, 235, 0.6);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

.capcut-clip button {
  position: absolute;
  top: 4px;
  right: 4px;
  border: none;
  background: rgba(15, 23, 42, 0.15);
  color: #fff;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  cursor: pointer;
}

.capcut-transition {
  background: rgba(37, 99, 235, 0.1);
  border: 1px solid rgba(37, 99, 235, 0.3);
  border-radius: 8px;
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.75rem;
  cursor: pointer;
}

.capcut-editor__sidebar,
.capcut-editor__workspace {
  max-height: calc(100vh - 180px);
  overflow: hidden;
}

.capcut-editor__sidebar .capcut-panel,
.capcut-editor__workspace {
  overflow-y: auto;
}

.capcut-empty {
  background: rgba(15, 23, 42, 0.05);
  border-radius: 12px;
  padding: 16px;
  text-align: center;
  color: #64748b;
}

@media (max-width: 1024px) {
  .capcut-editor__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .capcut-editor__sidebar {
    order: 2;
  }
}

/* CapCut layout refresh overrides */
.capcut-editor {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 24px 28px 32px;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.22), transparent 46%),
    radial-gradient(circle at 86% 12%, rgba(59, 130, 246, 0.18), transparent 44%),
    linear-gradient(145deg, #060916, #10182d 62%, #0b1327);
  color: #e5e7eb;
  border-radius: 24px;
  box-shadow: 0 48px 120px -42px rgba(3, 7, 18, 0.85);
}

.capcut-editor__topbar {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 320px;
  align-items: center;
  gap: 18px;
  padding-bottom: 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

.capcut-topbar__menu {
  background: rgba(17, 24, 39, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.22);
  color: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.capcut-topbar__menu:hover {
  border-color: rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.32);
}

.capcut-editor__layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1.55fr) 320px;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 22px;
  min-height: 720px;
  align-items: stretch;
}

.capcut-editor__sidebar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px 18px 22px;
  background: rgba(10, 14, 28, 0.92);
  border: 1px solid rgba(48, 61, 97, 0.7);
  border-radius: 20px;
  box-shadow: inset 0 0 0 1px rgba(12, 18, 36, 0.45);
  overflow: hidden;
}

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

.capcut-nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 16px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(24, 32, 52, 0.75);
  color: #cbd5f5;
  font-weight: 600;
  font-size: 0.85rem;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.capcut-nav-btn__icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: rgba(148, 163, 184, 0.18);
  color: #f8fafc;
}

.capcut-nav-btn:hover {
  border-color: rgba(96, 165, 250, 0.4);
  box-shadow: 0 12px 20px -14px rgba(59, 130, 246, 0.6);
  transform: translateY(-2px);
}

.capcut-nav-btn.is-active {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.65), rgba(37, 99, 235, 0.45));
  border-color: rgba(96, 165, 250, 0.6);
  color: #f8fafc;
  box-shadow: 0 18px 28px -16px rgba(37, 99, 235, 0.75);
}

.capcut-nav-btn.is-active .capcut-nav-btn__icon {
  background: rgba(15, 23, 42, 0.65);
}

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

.capcut-subnav-btn {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(51, 65, 85, 0.6);
  background: rgba(17, 24, 39, 0.7);
  color: #94a3b8;
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capcut-subnav-btn.is-active {
  background: rgba(37, 99, 235, 0.32);
  color: #e5e7eb;
  border-color: rgba(96, 165, 250, 0.45);
}

.capcut-library__content {
  flex: 1;
  overflow-y: auto;
  margin-top: 4px;
  padding-right: 6px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.capcut-panel {
  background: rgba(12, 18, 36, 0.78);
  border: 1px solid rgba(51, 65, 85, 0.45);
  border-radius: 18px;
  padding: 16px;
  display: none;
}

.capcut-panel.is-active {
  display: block;
}

.capcut-panel__group {
  border: 1px solid rgba(63, 78, 110, 0.6);
  border-radius: 16px;
  margin-bottom: 14px;
  background: rgba(15, 23, 42, 0.82);
  overflow: hidden;
}

.capcut-panel__group > summary {
  padding: 12px 18px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #e2e8f0;
  background: rgba(10, 17, 33, 0.9);
}

.capcut-panel__group[open] > summary {
  background: rgba(37, 99, 235, 0.22);
  border-bottom: 1px solid rgba(59, 130, 246, 0.25);
}

.capcut-asset-list,
.capcut-asset-grid {
  list-style: none;
  padding: 16px 18px 20px;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.capcut-asset {
  width: 100%;
  border: 1px solid rgba(63, 78, 110, 0.55);
  border-radius: 14px;
  background: rgba(12, 18, 36, 0.92);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  cursor: pointer;
  align-items: flex-start;
  color: #f8fafc;
  transition: transform 0.15s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.capcut-asset img {
  width: 100%;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 18px -12px rgba(15, 23, 42, 0.6);
}

.capcut-asset strong {
  font-size: 0.92rem;
}

.capcut-asset small {
  font-size: 0.78rem;
  color: #94a3b8;
}

.capcut-asset:hover,
.capcut-asset.is-active {
  border-color: rgba(96, 165, 250, 0.7);
  box-shadow: 0 18px 28px -18px rgba(59, 130, 246, 0.9);
  transform: translateY(-3px);
}

.capcut-editor__main {
  grid-column: 2;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

.capcut-preview {
  width: 100%;
  max-width: 640px;
  background: rgba(11, 17, 33, 0.92);
  border: 1px solid rgba(52, 74, 124, 0.55);
  border-radius: 22px;
  padding: 24px 32px 28px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  box-shadow: 0 36px 64px -42px rgba(37, 99, 235, 0.7);
}

.capcut-preview__header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.capcut-preview__label {
  display: block;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
  margin-bottom: 4px;
}

.capcut-preview__settings {
  display: flex;
  align-items: center;
  gap: 12px;
}

.capcut-preview__ratio {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 12px;
  border: 1px solid rgba(96, 165, 250, 0.55);
  background: rgba(37, 99, 235, 0.22);
  color: #bfdbfe;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.capcut-preview__quality {
  padding: 6px 14px;
  border-radius: 12px;
  border: 1px solid rgba(71, 85, 105, 0.55);
  background: rgba(17, 24, 39, 0.7);
  color: #cbd5f5;
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.capcut-preview__quality:hover {
  border-color: rgba(148, 163, 184, 0.85);
  background: rgba(59, 130, 246, 0.18);
}

.capcut-preview__screen {
  width: min(100%, 340px);
  aspect-ratio: 9 / 16;
  background: #000;
  border-radius: 16px;
  border: 1px solid rgba(59, 130, 246, 0.55);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  box-shadow: 0 30px 52px -34px rgba(30, 64, 175, 0.55);
}

.capcut-preview__screen video {
  position: relative;
  z-index: 1;
}

.capcut-preview__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capcut-preview__golden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  mix-blend-mode: screen;
  z-index: 2;
}

.capcut-preview__golden.is-active {
  opacity: 0.45;
}

.capcut-preview__guides {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.capcut-guide-line {
  position: absolute;
  background: linear-gradient(180deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.55), rgba(148, 163, 184, 0.2));
  display: none;
}

.capcut-guide-line--vertical {
  top: 0;
  bottom: 0;
  width: 2px;
}

.capcut-guide-line--horizontal {
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, rgba(148, 163, 184, 0.2), rgba(148, 163, 184, 0.55), rgba(148, 163, 184, 0.2));
}

.capcut-guide-line--center.capcut-guide-line--vertical {
  left: 50%;
  transform: translateX(-50%);
}

.capcut-guide-line--center.capcut-guide-line--horizontal {
  top: 50%;
  transform: translateY(-50%);
}

.capcut-guide-line--third.capcut-guide-line--vertical.capcut-guide-line--third-a {
  left: 33.333%;
  transform: translateX(-1px);
}

.capcut-guide-line--third.capcut-guide-line--vertical.capcut-guide-line--third-b {
  right: 33.333%;
  transform: translateX(1px);
}

.capcut-guide-line--third.capcut-guide-line--horizontal.capcut-guide-line--third-a {
  top: 33.333%;
  transform: translateY(-1px);
}

.capcut-guide-line--third.capcut-guide-line--horizontal.capcut-guide-line--third-b {
  bottom: 33.333%;
  transform: translateY(1px);
}

.capcut-preview__guides.is-center-active .capcut-guide-line--center,
.capcut-preview__guides.is-thirds-active .capcut-guide-line--third {
  display: block;
  box-shadow: 0 0 12px rgba(96, 165, 250, 0.35);
}

.capcut-preview__overlays {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 4;
}

.capcut-preview__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.capcut-preview__info {
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: #94a3b8;
}

.capcut-preview__info span {
  color: #64748b;
}

.capcut-preview__buttons {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.capcut-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #cbd5f5;
}

.capcut-toggle input[type="checkbox"] {
  accent-color: #60a5fa;
}

.capcut-radio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #cbd5f5;
}

.capcut-radio input[type="radio"] {
  accent-color: #60a5fa;
}

.capcut-inspector__label {
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #64748b;
}

.capcut-golden-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
}

.capcut-golden-options__row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.capcut-golden-options[hidden] {
  display: none;
}

.capcut-inspector {
  grid-column: 3;
  grid-row: 1;
  background: rgba(11, 17, 33, 0.92);
  border: 1px solid rgba(52, 74, 124, 0.55);
  border-radius: 22px;
  padding: 22px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}

.capcut-inspector__header h2 {
  margin: 0;
  color: #f8fafc;
}

.capcut-timeline {
  grid-column: 1 / -1;
  grid-row: 2;
  background: rgba(11, 17, 33, 0.92);
  border: 1px solid rgba(52, 74, 124, 0.55);
  border-radius: 22px;
  padding: 22px 24px 26px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  box-shadow: 0 28px 64px -36px rgba(2, 6, 23, 0.85);
}

.capcut-timeline__header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.capcut-timeline__header h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #f8fafc;
}

.capcut-timeline__hint {
  color: #64748b;
  font-size: 0.85rem;
}

.capcut-timeline__actions {
  display: flex;
  gap: 10px;
}

.capcut-timeline__scrubber {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.capcut-timeline__bar {
  position: relative;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(59, 130, 246, 0.4), rgba(59, 130, 246, 0.08));
  overflow: hidden;
}

.capcut-timeline__playhead {
  position: absolute;
  top: 50%;
  left: 12%;
  width: 2px;
  height: 18px;
  background: #f8fafc;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25);
  border-radius: 999px;
}

.capcut-timeline__tracks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.capcut-track {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.capcut-track__label {
  color: #8b9cc0;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.capcut-track__lane {
  background: rgba(17, 24, 39, 0.82);
  border: 1px solid rgba(63, 78, 110, 0.55);
  border-radius: 16px;
  padding: 12px;
  min-height: 78px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow-x: auto;
}

.capcut-track__lane::-webkit-scrollbar {
  height: 6px;
}

.capcut-track__lane::-webkit-scrollbar-thumb {
  background: rgba(59, 130, 246, 0.35);
  border-radius: 999px;
}

.capcut-track__placeholder {
  font-size: 0.88rem;
  color: #64748b;
}

.capcut-clip {
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.6);
  border-radius: 12px;
  min-width: 120px;
  color: #e2e8f0;
  padding: 10px 12px;
}

.capcut-clip strong {
  font-size: 0.92rem;
}

.capcut-clip span {
  color: rgba(226, 232, 240, 0.82);
  font-size: 0.78rem;
}

.capcut-clip.is-active {
  border-color: rgba(191, 219, 254, 0.9);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.4);
}

.capcut-empty {
  background: rgba(17, 24, 39, 0.78);
  color: #94a3b8;
  padding: 20px;
  border-radius: 18px;
  text-align: center;
}

@media (max-width: 1280px) {
  .capcut-editor__layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .capcut-inspector {
    display: none;
  }
}

@media (max-width: 1024px) {
  .capcut-editor {
    padding: 18px;
  }

  .capcut-editor__layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto;
    gap: 16px;
  }

  .capcut-editor__main,
  .capcut-editor__sidebar,
  .capcut-timeline {
    grid-column: 1;
  }

  .capcut-editor__main {
    grid-row: 1;
  }

  .capcut-editor__sidebar {
    grid-row: 2;
  }

  .capcut-timeline {
    grid-row: 3;
  }
}

/* CapCut video editor dark theme overrides */
.capcut-editor {
  gap: 20px;
  padding: 20px 24px 28px;
  background: linear-gradient(145deg, #0b0e1d, #111629);
  color: #e5e7eb;
  border-radius: 20px;
  box-shadow: 0 40px 80px rgba(4, 6, 15, 0.5);
}

.capcut-editor__topbar {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 320px;
  align-items: center;
  gap: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.capcut-topbar__left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.capcut-topbar__menu {
  background: rgba(30, 41, 59, 0.6);
  border: 1px solid rgba(148, 163, 184, 0.15);
  color: #f8fafc;
  border-radius: 12px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  cursor: pointer;
}

.capcut-topbar__menu .icon {
  font-size: 1.1rem;
}

.capcut-topbar__autosave {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 0.78rem;
  color: #94a3b8;
}

.capcut-topbar__center h1 {
  margin: 0;
  font-size: 1.5rem;
  color: #f8fafc;
}

.capcut-topbar__center p {
  margin: 2px 0 0;
  color: #9ca3af;
  font-size: 0.9rem;
}

.capcut-topbar__right {
  display: flex;
  align-items: center;
  gap: 10px;
  justify-self: end;
}

.capcut-editor__layout {
  grid-template-columns: 280px minmax(0, 1.6fr) 320px;
  gap: 20px;
  min-height: 640px;
}

.capcut-editor__sidebar {
  background: rgba(13, 19, 35, 0.9);
  border: 1px solid rgba(42, 51, 79, 0.8);
  box-shadow: inset 0 0 0 1px rgba(15, 23, 42, 0.35);
  border-radius: 18px;
  padding: 18px 16px;
  gap: 14px;
}

.capcut-editor__main {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.capcut-inspector {
  background: rgba(13, 19, 35, 0.9);
  border: 1px solid rgba(42, 51, 79, 0.8);
  border-radius: 18px;
  padding: 18px;
  gap: 16px;
  max-height: calc(100vh - 240px);
  overflow-y: auto;
}

.capcut-tabs {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.capcut-tab {
  padding: 10px 8px;
  border-radius: 12px;
  background: rgba(31, 41, 55, 0.85);
  color: #dbeafe;
  transition: background 0.2s ease, color 0.2s ease;
}

.capcut-tab.is-active {
  background: linear-gradient(145deg, rgba(59, 130, 246, 0.5), rgba(59, 130, 246, 0.25));
  color: #f1f5f9;
}

.capcut-panel {
  padding-bottom: 6px;
}

.capcut-panel__group {
  border: 1px solid rgba(59, 70, 99, 0.65);
  border-radius: 14px;
  background: rgba(24, 30, 48, 0.75);
}

.capcut-panel__group > summary {
  padding: 12px 16px;
  color: #e2e8f0;
}

.capcut-asset-list,
.capcut-asset-grid {
  padding: 14px;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 12px;
}

.capcut-asset {
  border: 1px solid rgba(60, 72, 106, 0.6);
  border-radius: 14px;
  background: rgba(22, 28, 44, 0.85);
  gap: 8px;
  padding: 10px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.capcut-asset strong {
  color: #f8fafc;
}

.capcut-asset small {
  color: #9ca3af;
}

.capcut-asset.is-active,
.capcut-asset:hover {
  border-color: rgba(59, 130, 246, 0.7);
  box-shadow: 0 8px 16px -12px rgba(59, 130, 246, 0.8);
  transform: translateY(-2px);
}

.capcut-emoji {
  background: rgba(31, 41, 55, 0.88);
  box-shadow: 0 2px 6px rgba(2, 6, 23, 0.45);
}

.capcut-preview {
  background: rgba(13, 19, 35, 0.9);
  border: 1px solid rgba(42, 51, 79, 0.8);
  border-radius: 18px;
  padding: 18px;
  gap: 14px;
}

.capcut-preview__screen {
  width: min(100%, 360px);
  aspect-ratio: 9 / 16;
  background: #010307;
  border-radius: 18px;
  border: 1px solid rgba(59, 106, 196, 0.5);
  box-shadow: 0 18px 38px -24px rgba(56, 189, 248, 0.45);
  margin: 0 auto;
}

.capcut-preview__screen video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capcut-preview__controls {
  flex: 0 0 auto;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.capcut-preview__info span {
  color: #94a3b8;
}

.capcut-preview__buttons {
  gap: 10px;
  flex-wrap: wrap;
}

.capcut-inspector__header h2 {
  color: #e2e8f0;
}

.capcut-timeline {
  background: rgba(13, 19, 35, 0.9);
  border: 1px solid rgba(42, 51, 79, 0.8);
  border-radius: 18px;
  padding: 18px;
  gap: 16px;
}

.capcut-track {
  grid-template-columns: 90px minmax(0, 1fr);
  gap: 10px;
}

.capcut-track__label {
  color: #9ca3af;
}

.capcut-track__lane {
  background: rgba(24, 30, 48, 0.78);
  border: 1px solid rgba(59, 70, 99, 0.55);
  padding: 10px;
  min-height: 68px;
  gap: 10px;
}

.capcut-clip {
  background: rgba(59, 130, 246, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.6);
  border-radius: 12px;
  min-width: 110px;
  color: #e2e8f0;
}

.capcut-clip.is-active {
  border-color: rgba(147, 197, 253, 0.9);
  box-shadow: 0 0 0 2px rgba(147, 197, 253, 0.4);
}

.capcut-clip button {
  background: rgba(15, 23, 42, 0.35);
}

.capcut-transition {
  background: rgba(79, 70, 229, 0.14);
  border: 1px solid rgba(129, 140, 248, 0.45);
  border-radius: 10px;
  color: #cbd5f5;
}

.capcut-editor__sidebar,
.capcut-editor__main,
.capcut-inspector {
  max-height: calc(100vh - 200px);
}

.capcut-editor__sidebar .capcut-panel,
.capcut-preview,
.capcut-timeline,
.capcut-inspector {
  overflow-y: auto;
}

.capcut-empty {
  background: rgba(31, 41, 55, 0.6);
  color: #94a3b8;
  padding: 18px;
}

@media (max-width: 1024px) {
  .capcut-editor__layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .capcut-editor__sidebar {
    order: 2;
  }
}
.design-cropper-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.6);
  z-index: 1100;
}

.design-cropper-modal.is-hidden {
  display: none;
}

.design-cropper-dialog {
  width: min(860px, 96%);
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid #dbeafe;
  box-shadow: 0 28px 52px -32px rgba(15, 23, 42, 0.6);
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 20px;
}

.design-cropper-body {
  display: flex;
  gap: 20px;
  align-items: stretch;
}

.design-cropper-stage {
  flex: 1 1 auto;
  min-height: 420px;
  background: #0f172a;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.design-cropper-stage img {
  max-width: 100%;
  max-height: 100%;
  display: block;
}

.design-cropper-controls {
  flex: 0 0 200px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.design-cropper-ratio label {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.design-cropper-ratio-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}

.design-cropper-actions-column {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.design-cropper-footer {
  display: flex;
  justify-content: flex-end;
  gap: 12px;
}
.tiktok-post-history-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.order-printify-actions {
  margin-top: 12px;
  display: flex;
  justify-content: flex-start;
}
.table-filter-control {
  display: inline-flex;
  background: rgba(15, 23, 42, 0.05);
  border-radius: 999px;
  padding: 4px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.3);
}

.table-filter-control label.order-filter-select {
  margin: 0;
}

.table-filter-control select {
  background: #fff;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.15);
  padding: 6px 12px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.1);
  min-width: 140px;
}

/* Gen AI Image */
.gen-ai-page .panel {
  border-radius: 24px;
}

.gen-ai-body {
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.gen-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.gen-ai-card {
  background: #f9fbff;
  border: 1px solid #e0e6f0;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.04);
}

.gen-ai-card-header {
  margin-bottom: 16px;
}

.gen-ai-dropzone {
  border: 2px dashed #cbd5f5;
  border-radius: 16px;
  padding: 32px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.gen-ai-dropzone.is-hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
}

.gen-ai-dropzone-cta strong {
  display: block;
  font-size: 1.1rem;
  margin-bottom: 4px;
  color: #111827;
}

.gen-ai-dropzone-cta span {
  color: #6366f1;
}

.gen-ai-seed-list {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.gen-ai-seed {
  position: relative;
  padding: 12px;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
}

.gen-ai-seed-thumb {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  background: #f3f4f6;
  flex-shrink: 0;
}

.gen-ai-seed-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gen-ai-seed-meta {
  font-size: 0.85rem;
  color: #4b5563;
}

.gen-ai-seed-meta strong {
  display: block;
  font-size: 0.95rem;
  color: #111827;
  margin-bottom: 4px;
}

.gen-ai-seed .seed-width-control {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gen-ai-seed .seed-width-control label {
  font-size: 0.75rem;
  color: #6b7280;
}

.gen-ai-seed .seed-width-control input {
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 0.85rem;
}

.gen-ai-seed-remove {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(17, 24, 39, 0.08);
  color: #111827;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  cursor: pointer;
  line-height: 1;
}

.gen-ai-seed-remove:hover {
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
}

.gen-ai-form-grid {
  display: grid;
  gap: 16px;
}

.gen-ai-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
}

.gen-ai-status.error {
  color: #dc2626;
}

.gen-ai-result-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.gen-ai-result-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 16px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.gen-ai-result-thumb {
  width: 120px;
  height: 120px;
  border-radius: 14px;
  overflow: hidden;
  background: #f3f4f6;
}

.gen-ai-result-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gen-ai-result-meta {
  font-size: 0.95rem;
  color: #374151;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gen-ai-result-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  justify-content: center;
}

.gen-ai-empty {
  padding: 20px;
  border: 1px dashed #d1d5db;
  border-radius: 16px;
  text-align: center;
  color: #6b7280;
}

.sticker-actions {
  margin-bottom: 12px;
}

.sticker-dropzone {
  border: 2px dashed #cbd5f5;
  border-radius: 16px;
  padding: 18px;
  background: #f8fafc;
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

.sticker-dropzone.is-hover {
  border-color: #6366f1;
  background: #eef2ff;
}

.sticker-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  min-height: 80px;
}

.sticker-grid-empty {
  width: 100%;
  text-align: center;
}

.sticker-library-modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.sticker-library-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.sticker-library-backdrop {
  position: absolute;
  inset: 0;
}

.sticker-library-modal .sticker-library-panel {
  position: relative;
  background: #fff;
  border-radius: 20px;
  padding: 24px;
  width: min(720px, 90vw);
  max-height: 80vh;
  overflow: auto;
  box-shadow: 0 25px 55px rgba(15, 23, 42, 0.2);
}

.sticker-library-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.sticker-library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
}

.library-card {
  position: relative;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 10px;
  background: #f9fafb;
  display: flex;
  flex-direction: column;
  gap: 8px;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.library-card:hover {
  border-color: #7c3aed;
  box-shadow: 0 10px 20px rgba(99, 102, 241, 0.2);
}

.library-card img {
  width: 100%;
  height: 110px;
  border-radius: 12px;
  object-fit: cover;
  background: #fff;
}

.library-card__label {
  font-size: 0.85rem;
  color: #1f2937;
}

.library-card__delete {
  position: absolute;
  top: 6px;
  right: 6px;
  border: none;
  background: rgba(15, 23, 42, 0.4);
  color: #fff;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  line-height: 22px;
  cursor: pointer;
}

.library-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}

.pattern-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
}

.pattern-card {
  border: 1px solid #e5e7eb;
  border-radius: 20px;
  padding: 20px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.pattern-card-header {
  margin-bottom: 16px;
}

.pattern-dropzone {
  border: 2px dashed #cbd5f5;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
  cursor: pointer;
  margin-bottom: 16px;
}

.pattern-dropzone.is-hover {
  border-color: #7c3aed;
  background: rgba(124, 58, 237, 0.05);
}

.pattern-preview img,
.pattern-output-preview img {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  margin-top: 12px;
  display: block;
}

.pattern-actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 16px;
}

.modal-close {
  border: none;
  background: rgba(15, 23, 42, 0.08);
  color: #111827;
  border-radius: 999px;
  width: 32px;
  height: 32px;
  font-size: 20px;
  cursor: pointer;
}

.sticker-library-footer {
  margin-top: 18px;
  text-align: right;
}

.nav-user {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: 18px;
}

.user-chip {
  background: #e0e7ff;
  color: #1f2937;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 14px;
}

.page-login {
  background: radial-gradient(circle at 10% 20%, rgba(120, 82, 246, 0.15), rgba(15, 23, 42, 0.9)),
    linear-gradient(135deg, #0f172a 0%, #1f2a44 60%, #030712 100%);
  min-height: 100vh;
  color: #f8fafc;
}

.page-login .app-header,
.page-login .app-footer {
  display: none;
}

.page-login main {
  min-height: 100vh;
  padding: 40px 16px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.auth-hero {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.auth-blur {
  position: absolute;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(99, 102, 241, 0.45), transparent 60%);
  top: -150px;
  right: -140px;
  filter: blur(40px);
}

.auth-simple-wrapper {
  position: relative;
  z-index: 2;
  width: min(420px, 100%);
}

.auth-card {
  background: #0b1120;
  border-radius: 20px;
  padding: 36px;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.55);
  border: 1px solid rgba(59, 130, 246, 0.15);
}

.auth-card-simple {
  width: 100%;
}

.auth-card-simple .auth-card-header {
  text-align: center;
  margin-bottom: 24px;
}

.auth-card-header h2 {
  margin: 0;
  font-size: 1.8rem;
  color: #fff;
}

.auth-form {
  margin-top: 24px;
}

.auth-form-compact {
  margin-top: 0;
}

.auth-form-compact {
  margin-top: 0;
}

.auth-card .form-control {
  margin-bottom: 20px;
}

.auth-form-compact {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.95rem;
  color: #cbd5f5;
}

.form-field input[type="text"],
.form-field input[type="password"] {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.3);
  background: rgba(15, 23, 42, 0.65);
  color: #f8fafc;
  font-size: 1rem;
}

.form-field input:focus {
  outline: none;
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.25);
}

.auth-card .btn-block {
  width: 100%;
  margin-top: 8px;
}

.btn-large {
  padding: 14px 0;
  font-size: 1rem;
}

.auth-form-compact .btn-block {
  max-width: 220px;
  margin: 4px auto 0;
  width: 100%;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.text-error {
  color: #f87171;
  display: block;
  margin-top: 6px;
}

.auth-logo-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 16px;
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  font-weight: 600;
  letter-spacing: 0.05em;
  font-size: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.3);
  margin: 0 auto 16px;
}

@media (max-width: 768px) {
  .auth-card {
    padding: 28px;
  }

  .page-login main {
    padding: 24px 16px;
  }

  .gen-ai-result-card {
    grid-template-columns: 1fr;
  }

  .gen-ai-result-actions {
    flex-direction: row;
    flex-wrap: wrap;
  }
}
