/* Tile grid and active-state styling */
.tiles {
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
  align-items: start;
  margin-bottom: 8px;
}

#accordion-panel {
  margin-top: 0;
  padding-top: 0;
}

.section-load-shell {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 14px 16px;
  border: 1px solid rgba(37, 99, 235, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.08);
}

.section-load-copy {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.section-load-title {
  font-size: 0.98rem;
  font-weight: 700;
  color: #0f172a;
}

.section-load-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.84rem;
  color: #334155;
}

.section-load-percent {
  font-weight: 800;
  color: #1d4ed8;
}

.section-load-eta {
  color: #475569;
}

.section-load-track {
  width: 100%;
  height: 12px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(148, 163, 184, 0.22);
}

.section-load-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
  transition: width 180ms ease;
}

.section-load-shell.is-complete .section-load-bar {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

.tile {
  position: relative;
  text-align: left;
  background: linear-gradient(165deg, rgba(22, 55, 98, 0.94) 0%, rgba(17, 27, 49, 0.98) 100%);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 16px;
  padding: 18px 18px 16px;
  color: var(--text);
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transition: transform 0.15s ease, border-color 0.15s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.tile:hover {
  transform: translateY(-2px);
  border-color: rgba(255,255,255,0.24);
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.24);
}

.tile.tile-unread {
  border-color: rgba(255, 149, 0, 0.72);
  box-shadow: 0 0 12px rgba(255, 149, 0, 0.2);
}

.tile.tile-unread::before {
  content: '';
  position: absolute;
  top: 10px;
  right: 10px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff9500;
  box-shadow: 0 0 0 rgba(255, 149, 0, 0.8);
  animation: pulse 2s infinite;
  z-index: 3;
  pointer-events: none;
}

.tile.tile-unread.tile-active::before {
  display: none;
}

.tile.tile-active {
  border-color: var(--green);
  border-width: 2px;
  box-shadow: 0 0 0 1px rgba(0, 184, 148, 0.2), 0 18px 30px rgba(0, 184, 148, 0.14);
  background: linear-gradient(165deg, rgba(0, 184, 148, 0.16) 0%, rgba(17, 27, 49, 0.98) 100%);
  transform: translateY(0);
}

.tile.tile-active:hover {
  border-color: var(--yellow);
  box-shadow: 0 0 12px rgba(253, 203, 110, 0.2);
}

.tile.tile-active::after {
  content: '';
  position: absolute;
  bottom: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-top: 7px solid var(--green);
  z-index: 2;
}

.tile:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}

.tile h3 { margin: 0 0 6px; font-size: 17px; }
.tile h3 { line-height: 1.3; }
.tile .stat { font-size: 1.35rem; font-weight: 700; margin-bottom: 6px; }
.tile .stat.tile-stat-loading-active { display: flex; align-items: center; }
.tile .stat .tile-stat-loading-shell { display: inline-flex; align-items: center; gap: 8px; width: min(190px, 100%); }
.tile .stat .tile-stat-loading-track {
  position: relative;
  flex: 1;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(37, 99, 235, 0.16);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.14);
}
.tile .stat .tile-stat-loading-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3b82f6 0%, #60a5fa 55%, #93c5fd 100%);
  box-shadow: 0 0 10px rgba(59, 130, 246, 0.35);
  transition: width 300ms ease;
}
.tile .stat .tile-stat-loading-fill.is-indeterminate {
  width: 45% !important;
  animation: tile-loading-indeterminate 1s ease-in-out infinite alternate;
}
.tile .stat .tile-stat-loading-percent {
  min-width: 34px;
  text-align: right;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  color: #2563eb;
}
.tile .stat .tile-stat-loading-percent.tile-stat-loading-status {
  min-width: 64px;
}
@keyframes tile-loading-indeterminate {
  from { transform: translateX(-45%); }
  to { transform: translateX(45%); }
}
.tile .hint { color: #bcd2f7; font-size: 0.88rem; }

.tile.tile-planned {
  background: linear-gradient(165deg, rgba(58, 64, 80, 0.94) 0%, rgba(34, 40, 54, 0.98) 100%);
  border-color: rgba(255,255,255,0.09);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.tile.tile-planned:hover {
  transform: none;
  border-color: rgba(255,255,255,0.14);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.14);
}

.tile-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255,255,255,0.12);
  color: #eef3fb;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(255,255,255,0.1);
}

.tile.tile-planned .stat,
.tile.tile-planned .hint {
  color: #a6b0c0;
}

.section-view {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  border-color: rgba(255,255,255,0);
  padding-top: 0;
  padding-bottom: 0;
  margin-bottom: 0;
  transition: max-height 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease, padding 350ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms ease;
}

.section-view.active {
  opacity: 1;
  padding-top: 18px;
  padding-bottom: 20px;
  border-color: var(--border);
  transition: max-height 350ms cubic-bezier(0.4, 0, 0.2, 1), opacity 300ms ease 50ms, padding 350ms cubic-bezier(0.4, 0, 0.2, 1), border-color 200ms ease;
}

.section-view.collapsing {
  max-height: 0 !important;
  opacity: 0;
  padding-top: 0;
  padding-bottom: 0;
  transition: max-height 250ms cubic-bezier(0.4, 0, 0.2, 1), opacity 200ms ease, padding 250ms cubic-bezier(0.4, 0, 0.2, 1);
}

.tile {
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--text);
  box-shadow: var(--shadow-soft);
}

.tile:hover {
  border-color: #93c5fd;
  box-shadow: 0 18px 34px rgba(37, 99, 235, 0.12);
}

.tile.tile-unread {
  border-color: rgba(245, 158, 11, 0.55);
  box-shadow: 0 0 0 1px rgba(245, 158, 11, 0.18), var(--shadow-soft);
}

.tile.tile-active {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18), 0 20px 36px rgba(37, 99, 235, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.tile.tile-active:hover {
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.2), 0 20px 36px rgba(37, 99, 235, 0.14);
}

.tile.tile-active::after {
  border-top-color: #2563eb;
}

.tile:focus-visible {
  outline-color: #2563eb;
}

.tile .hint {
  color: #64748b;
}

.tile.tile-planned {
  background: #f8fafc;
  border-color: #dbe5f1;
  box-shadow: none;
}

.tile.tile-planned:hover {
  border-color: #dbe5f1;
  box-shadow: none;
}

.tile-badge {
  background: #eff6ff;
  color: #2563eb;
  border-color: #bfdbfe;
}

.tile.tile-planned .stat,
.tile.tile-planned .hint {
  color: #64748b;
}

.tile[data-target="map-violations"],
.tile.tile-alert {
  background: #ffffff;
  border-color: rgba(239, 68, 68, 0.3) !important;
}

.tile[data-target="map-violations"]:hover,
.tile.tile-alert:hover {
  border-color: rgba(239, 68, 68, 0.55) !important;
  box-shadow: 0 18px 34px rgba(239, 68, 68, 0.12) !important;
}

.tile[data-target="map-violations"] h3,
.tile.tile-alert h3,
.tile[data-target="map-violations"] .stat,
.tile.tile-alert .stat {
  color: #b91c1c;
}

.warehouse-host .tiles {
  grid-template-columns: repeat(auto-fit, minmax(220px, 280px));
  gap: 14px;
  justify-content: start;
  align-items: stretch;
}

.warehouse-host .tile-section-block {
  display: contents;
}

.warehouse-host .tile-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  grid-column: 1 / -1;
  margin: 2px 0 4px;
  padding: 0 0 10px;
  border-bottom: 1px solid #dbe5f1;
  background: transparent;
  box-shadow: none;
}

.warehouse-host .tile-section-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #eff6ff;
  color: #1d4ed8;
  font-size: 14px;
}

.warehouse-host .tile-section-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: 0;
  text-transform: none;
}

.warehouse-host .tile-section-note {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0;
  text-transform: none;
}

.warehouse-host .tile {
  min-height: 0;
  padding: 14px 15px 13px;
  border-radius: 14px;
  border-color: #dbe5f1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.warehouse-host .tile:hover {
  transform: translateY(-1px);
  border-color: #bfdbfe;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.warehouse-host .tile h3 {
  margin: 0 0 4px;
  font-size: 0.98rem;
  line-height: 1.3;
  font-weight: 700;
  color: #0f172a;
}

.warehouse-host .tile .stat {
  margin-bottom: 4px;
  font-size: 1.02rem;
  line-height: 1.2;
  font-weight: 700;
  color: #111827;
}

.warehouse-host .tile .hint {
  font-size: 0.79rem;
  line-height: 1.45;
  color: #526277;
}

.warehouse-host .tile.tile-active {
  background: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.18), 0 12px 28px rgba(37, 99, 235, 0.1);
}

.warehouse-host .tile.tile-active::after {
  bottom: -6px;
}

@media (max-width: 720px) {
  .warehouse-host .tiles {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .warehouse-host .tile-section-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }
}

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

.lq-subtitle,
.lq-updated,
.lq-results-meta {
  color: #64748b;
  font-size: 0.88rem;
}

.lq-updated {
  white-space: nowrap;
}

.lq-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

#view-seller-profile .si-card-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

#view-seller-profile .si-card-title {
  margin: 0 0 12px;
  font-size: 15px;
  color: #0f172a;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

#view-seller-profile .si-card-kicker {
  color: #64748b;
  font-size: 12px;
  font-weight: 500;
}

#view-seller-profile .si-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

#view-seller-profile .si-badge,
#view-seller-profile .si-marketplace-pill,
#view-seller-profile .si-platform-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid #dbe5f1;
  background: #f8fafc;
  color: #334155;
}

#view-seller-profile .si-badge {
  padding: 4px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

#view-seller-profile .si-badge.active {
  background: #ecfdf5;
  border-color: #86efac;
  color: #166534;
}

#view-seller-profile .si-badge.inactive {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}

#view-seller-profile .si-badge.neutral {
  background: #f8fafc;
  border-color: #dbe5f1;
  color: #475569;
}

#view-seller-profile .si-marketplace-pill {
  padding: 5px 10px;
  min-width: 74px;
}

#view-seller-profile .si-marketplace-pill.is-walmart {
  background: #dbeafe;
  border-color: #93c5fd;
  color: #1d4ed8;
}

#view-seller-profile .si-marketplace-pill.is-ebay {
  background: #fef3c7;
  border-color: #fcd34d;
  color: #a16207;
}

#view-seller-profile .si-marketplace-pill.is-etsy {
  background: #ffedd5;
  border-color: #fdba74;
  color: #c2410c;
}

#view-seller-profile .si-marketplace-pill.is-shopify {
  background: #dcfce7;
  border-color: #86efac;
  color: #15803d;
}

#view-seller-profile .si-marketplace-pill.is-facebook {
  background: #e0e7ff;
  border-color: #a5b4fc;
  color: #4338ca;
}

#view-seller-profile .si-list {
  display: grid;
  gap: 10px;
}

#view-seller-profile .si-list-item {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px;
  background: #f8fafc;
}

#view-seller-profile .si-list-item-title {
  margin: 0 0 4px;
  font-size: 14px;
  color: #0f172a;
  font-weight: 600;
}

#view-seller-profile .si-list-item-meta {
  color: #475569;
  font-size: 12px;
  line-height: 1.6;
}

#view-seller-profile .si-platform-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

#view-seller-profile .si-platform-icon {
  width: 28px;
  height: 28px;
  padding: 0;
  flex: 0 0 28px;
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

#view-seller-profile .si-source-links,
#view-seller-profile .si-meta-footer {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #e2e8f0;
}

#view-seller-profile .si-source-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#view-seller-profile .si-meta-footer {
  color: #64748b;
  font-size: 12px;
}

#view-seller-profile .si-inline-details summary {
  cursor: pointer;
  color: #2563eb;
  font-size: 12px;
  font-weight: 600;
}

#view-seller-profile .si-inline-details[open] summary {
  margin-bottom: 10px;
}

@media (max-width: 900px) {
  #view-seller-profile .si-card-grid {
    grid-template-columns: 1fr;
  }
}

.amazon-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-left: 8px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  vertical-align: middle;
}

.amazon-indicator--critical {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fdba74;
  box-shadow: inset 0 0 0 1px rgba(245, 158, 11, 0.08);
}

.amazon-listing-row td:first-child,
.amazon-listing-row td:nth-child(2) {
  position: relative;
}

.amazon-listing-row td:first-child::before,
.amazon-listing-row td:nth-child(2)::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f59e0b 0%, #ef4444 100%);
}

.amazon-summary-metric {
  background: linear-gradient(180deg, #fff7ed 0%, #ffffff 100%);
  border-color: #fdba74;
}

.amazon-summary-value {
  color: #c2410c;
}

.amazon-summary-copy {
  margin-top: 4px;
  color: #9a3412;
  font-size: 0.75rem;
  line-height: 1.35;
}

.lq-summary-card {
  background: #ffffff;
  border: 1px solid #dbe5f1;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.05);
}

.lq-summary-card-issues {
  border-color: #bfdbfe;
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
}

.lq-summary-label {
  color: #64748b;
  font-size: 0.82rem;
  margin-bottom: 8px;
}

.lq-summary-value {
  color: #0f172a;
  font-size: 1.9rem;
  font-weight: 700;
  line-height: 1;
}

.lq-summary-note {
  margin-top: 8px;
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 600;
}

.lq-clean-value {
  color: #15803d;
}

.lq-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.lq-filters {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
}

.lq-filter-btn,
.lq-sort-btn {
  font: inherit;
}

.lq-filter-btn {
  border: 1px solid #dbe5f1;
  background: #ffffff;
  color: #334155;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: border-color 0.16s ease, color 0.16s ease, background 0.16s ease, box-shadow 0.16s ease;
}

.lq-filter-btn:hover,
.lq-filter-btn.active {
  border-color: #93c5fd;
  color: #1d4ed8;
  background: #eff6ff;
  box-shadow: 0 0 0 1px rgba(37, 99, 235, 0.08);
}

.lq-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.lq-table {
  width: 100%;
  border-collapse: collapse;
}

.lq-table thead th {
  background: #f8fafc;
  padding: 0;
  border-bottom: 1px solid #e2e8f0;
  text-align: left;
}

.lq-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #eef2f7;
  vertical-align: top;
  font-size: 0.92rem;
}

.lq-table tbody tr:last-child td {
  border-bottom: 0;
}

.lq-row-high {
  box-shadow: inset 4px 0 0 #dc2626;
}

.lq-row-medium {
  box-shadow: inset 4px 0 0 #d97706;
}

.lq-row-low {
  box-shadow: inset 4px 0 0 #16a34a;
}

.lq-sort-btn {
  width: 100%;
  border: 0;
  background: transparent;
  padding: 14px 16px;
  text-align: left;
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.lq-sort-btn:hover,
.lq-sort-btn.active {
  color: #1d4ed8;
}

.lq-col-count,
.lq-count-cell,
.lq-col-severity {
  white-space: nowrap;
}

.lq-count-cell {
  font-weight: 700;
  color: #0f172a;
}

.lq-product-cell {
  min-width: 240px;
  color: #0f172a;
  font-weight: 600;
}

.lq-asin {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.84rem;
  color: #1e3a8a;
}

.lq-issues-text {
  min-width: 280px;
  color: #334155;
  line-height: 1.45;
}

.lq-severity-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 76px;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  font-weight: 700;
  border: 1px solid transparent;
}

.lq-severity-high {
  color: #b91c1c;
  background: #fef2f2;
  border-color: #fecaca;
}

.lq-severity-medium {
  color: #a16207;
  background: #fffbeb;
  border-color: #fde68a;
}

.lq-severity-low,
.lq-severity-clean {
  color: #166534;
  background: #f0fdf4;
  border-color: #bbf7d0;
}

.lq-empty {
  padding: 24px 16px !important;
  text-align: center;
  color: #64748b;
}

.lq-error {
  color: #b91c1c;
}

/* ===== Tile Section Headers (Production Ready / Under Construction) ===== */
.tile-section-header {
  grid-column: 1 / -1;
  padding: 12px 20px;
  margin: 16px 0 8px 0;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.tile-section-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(220px, 1fr));
  gap: 20px;
}

.tile-section-block .tile-section-header {
  margin: 0;
}

.tile-section-block-ceremony,
.tile-section-block-new-tiles {
  padding: 18px;
  margin: 0 0 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(59, 130, 246, 0.12) 0%, rgba(14, 165, 233, 0.08) 100%);
  border: 1px solid rgba(59, 130, 246, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.tile-section-block-production {
  padding: 18px;
  margin: 8px 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(240, 253, 244, 0.98) 0%, rgba(220, 252, 231, 0.88) 100%);
  border: 1px solid rgba(34, 197, 94, 0.2);
  box-shadow: 0 12px 28px rgba(20, 83, 45, 0.06);
}

.tile-section-block-brand-tools {
  padding: 18px;
  margin: 8px 0;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(245, 243, 255, 0.98) 0%, rgba(237, 233, 254, 0.9) 100%);
  border: 1px solid rgba(139, 92, 246, 0.22);
  box-shadow: 0 12px 28px rgba(88, 28, 135, 0.08);
}

.tile-section-block-warehouse {
  padding: 14px;
  margin: 0 0 8px;
  border-radius: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border: 1px solid #dbe5f1;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.04);
}

.tile-section-block-inventory-management {
  padding: 16px;
  margin: 16px 0 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(236, 253, 245, 0.95) 0%, rgba(209, 250, 229, 0.82) 100%);
  border: 1px solid rgba(16, 185, 129, 0.22);
  box-shadow: 0 12px 28px rgba(6, 78, 59, 0.06);
}

.tile-section-header.tile-section-production {
  background: rgba(255, 255, 255, 0.58);
  border-left: 3px solid #22c55e;
  color: #15803d;
}

.tile-section-header.tile-section-brand-tools {
  background: rgba(245, 243, 255, 0.9);
  border-left: 3px solid #8b5cf6;
  color: #6d28d9;
}

.tile-section-block-production .tile[data-section="production"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 255, 250, 0.94) 100%);
  border-color: rgba(34, 197, 94, 0.16);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.tile-section-block-production .tile[data-section="production"]:hover {
  border-color: rgba(34, 197, 94, 0.28);
  box-shadow: 0 14px 28px rgba(20, 83, 45, 0.1);
}

.tile-section-block-production .tile h3 {
  color: #0f172a;
}

.tile-section-block-production .tile .stat {
  color: #166534;
}

.tile-section-block-production .tile .hint,
.tile-section-block-production .tile .tile-hint,
.tile-section-block-production .tile p {
  color: #4b6358;
}

.tile-section-block-brand-tools .tile[data-section="brand-tools"] {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(250, 245, 255, 0.96) 100%);
  border-color: rgba(139, 92, 246, 0.18);
  box-shadow: 0 10px 24px rgba(88, 28, 135, 0.06);
}

.tile-section-block-brand-tools .tile[data-section="brand-tools"]:hover {
  border-color: rgba(139, 92, 246, 0.34);
  box-shadow: 0 14px 28px rgba(88, 28, 135, 0.12);
}

.tile-section-block-brand-tools .tile h3 {
  color: #312e81;
}

.tile-section-block-brand-tools .tile .stat {
  color: #6d28d9;
}

.tile-section-block-brand-tools .tile .hint,
.tile-section-block-brand-tools .tile .tile-hint,
.tile-section-block-brand-tools .tile p {
  color: #5b5675;
}

.tile-section-header.tile-section-ceremony,
.tile-section-header.tile-section-new-tiles {
  background: rgba(239, 246, 255, 0.72);
  border-left: 3px solid #3b82f6;
  color: #1d4ed8;
}

.tile-section-header.tile-section-warehouse {
  background: #f8fbff;
  border-left: 3px solid #2563eb;
  color: #1e3a8a;
}

.tile-section-header.tile-section-inventory-management {
  background: rgba(236, 253, 245, 0.9);
  border-left: 3px solid #10b981;
  color: #047857;
}

.tile-section-block-ceremony .tile[data-section="ceremony"],
.tile-section-block-new-tiles .tile[data-section="new-tiles"] {
  background: linear-gradient(165deg, rgba(12, 74, 110, 0.94) 0%, rgba(15, 23, 42, 0.98) 100%);
  border-color: rgba(125, 211, 252, 0.3);
  box-shadow: 0 12px 22px rgba(2, 6, 23, 0.16);
}

.tile-section-block-ceremony .tile[data-section="ceremony"]:hover,
.tile-section-block-new-tiles .tile[data-section="new-tiles"]:hover {
  border-color: rgba(125, 211, 252, 0.5);
  box-shadow: 0 16px 26px rgba(2, 6, 23, 0.2);
}

.tile-section-block-ceremony .tile .stat,
.tile-section-block-ceremony .tile .hint,
.tile-section-block-new-tiles .tile .stat,
.tile-section-block-new-tiles .tile .hint {
  color: #dbeafe;
}

.tile-section-block-warehouse .tile[data-section="warehouse"] {
  background: #ffffff;
  border-color: #dbe5f1;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.05);
}

.tile-section-block-warehouse .tile[data-section="warehouse"]:hover {
  border-color: #bfdbfe;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.1);
}

.tile-section-block-warehouse .tile h3 {
  color: #0f172a;
}

.tile-section-block-warehouse .tile .stat {
  color: #111827;
}

.tile-section-block-warehouse .tile .hint {
  color: #526277;
}

.tile-section-block-inventory-management .tile[data-section="inventory-management"] {
  background: linear-gradient(180deg, #ffffff 0%, #f8fffc 100%);
  border-color: rgba(16, 185, 129, 0.18);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
}

.tile-section-block-inventory-management .tile[data-section="inventory-management"]:hover {
  border-color: rgba(16, 185, 129, 0.34);
  box-shadow: 0 14px 28px rgba(6, 78, 59, 0.1);
}

.tile-section-block-inventory-management .tile h3 {
  color: #0f172a;
}

.tile-section-block-inventory-management .tile .stat {
  color: #065f46;
}

.tile-section-block-inventory-management .tile .hint {
  color: #4b6358;
}

.tile-section-block-construction {
  padding: 16px;
  margin: 16px 0 8px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(251, 191, 36, 0.16) 0%, rgba(217, 119, 6, 0.12) 100%);
  border: 1px solid rgba(251, 191, 36, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.tile-section-header.tile-section-construction {
  background: rgba(255, 247, 237, 0.45);
  border-left: 3px solid #f59e0b;
  color: #b45309;
}

.tile-section-block-construction .tile[data-section="construction"] {
  background: linear-gradient(165deg, rgba(74, 52, 12, 0.88) 0%, rgba(53, 35, 8, 0.96) 100%);
  border-color: rgba(251, 191, 36, 0.24);
}

.tile-section-block-construction .tile[data-section="construction"]:hover {
  border-color: rgba(251, 191, 36, 0.38);
}

.tile-section-header .tile-section-note {
  font-weight: 400;
  opacity: 0.7;
  font-size: 11px;
  text-transform: none;
}

@media (max-width: 1000px) {
  .tile-section-block {
    grid-template-columns: 1fr 1fr;
  }
}

#brandPreviewSection {
  margin-top: 24px;
}

#brandPreviewSection:empty {
  display: none !important;
}

.tile-section-block-preview {
  margin-top: 0;
}

#brandPreviewSection .tile {
  background: linear-gradient(165deg, rgba(74, 52, 12, 0.88) 0%, rgba(53, 35, 8, 0.96) 100%);
  border-color: rgba(251, 191, 36, 0.24);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

#brandPreviewSection .tile:hover {
  transform: translateY(-1px);
  border-color: rgba(251, 191, 36, 0.38);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.16);
}

#brandPreviewSection .tile .stat,
#brandPreviewSection .tile .hint {
  color: #f3e4b5;
}

#brandPreviewSection .tile-badge {
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.16);
  color: #fef3c7;
}

@media (max-width: 700px) {
  .tile-section-block {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 920px) {
  .lq-header {
    flex-direction: column;
  }

  .lq-updated {
    white-space: normal;
  }

  .lq-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .tiles,
  .tile-section-block,
  .tile-section-block-preview {
    grid-template-columns: 1fr !important;
    gap: 12px;
  }

  .tile {
    width: 100%;
    min-width: 0;
    padding: 16px 14px 14px;
    border-radius: 14px;
  }

  .tile h3 {
    font-size: 1.05rem;
    line-height: 1.3;
    margin-bottom: 8px;
    padding-right: 0;
  }

  .tile .stat {
    font-size: 1.55rem;
    line-height: 1.08;
    word-break: break-word;
  }

  .tile .hint {
    font-size: 0.92rem;
    line-height: 1.35;
  }

  .tile-section-header {
    margin: 10px 0 4px;
    padding: 10px 12px;
    gap: 8px;
    align-items: flex-start;
    flex-wrap: wrap;
    font-size: 0.76rem;
    line-height: 1.3;
  }

  .tile-section-block-construction {
    padding: 12px;
    margin: 12px 0 6px;
    border-radius: 14px;
  }

  .tile-section-block-construction {
    background: linear-gradient(180deg, #fffaf0 0%, #ffffff 100%);
    border-color: #fde68a;
    box-shadow: none;
  }

  .tile-section-block-construction .tile[data-section="construction"] {
    background: #ffffff;
    border-color: #fcd34d;
    box-shadow: var(--shadow-soft);
  }

  .tile-section-block-construction .tile[data-section="construction"] h3,
  .tile-section-block-construction .tile[data-section="construction"] .stat {
    color: #92400e;
  }

  .tile-section-block-construction .tile[data-section="construction"] .hint {
    color: #78716c;
  }

  .tile.tile-active::after {
    display: none;
  }
}
