:root {
  /* Чистый светлый дизайн Shopify + macOS Liquid Glass (без зелёного шума) */
  --sh-shell: #141414;
  --sh-sidebar: #141414;
  --sh-sidebar-hover: rgba(255, 255, 255, 0.07);
  --sh-sidebar-active: rgba(255, 255, 255, 0.13);
  --sh-sidebar-text: #b5b5b5;
  --sh-sidebar-text-active: #ffffff;
  --sh-search-bg: #262626;
  --sh-search-border: rgba(255, 255, 255, 0.09);

  /* Светлое полотно и Liquid Glass карточки */
  --sh-canvas: #f6f6f7;
  --sh-glass-card: rgba(255, 255, 255, 0.88);
  --sh-glass-card-strong: rgba(255, 255, 255, 0.95);
  --sh-glass-border: rgba(0, 0, 0, 0.07);
  --sh-glass-highlight: inset 0 1px 0 rgba(255, 255, 255, 0.95);
  --sh-card-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --sh-card-shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);

  /* Текст и кнопки Shopify */
  --sh-text: #1a1a1a;
  --sh-text-sub: #616161;
  --sh-text-muted: #8a8a8a;
  --sh-btn-primary: #1a1a1a;
  --sh-btn-primary-hover: #303030;
  --sh-btn-secondary: #f1f1f2;
  --sh-btn-secondary-hover: #e4e5e7;
  --sh-border-subtle: #e3e3e3;

  /* Статусные бейджи (как на скриншоте Shopify: Action required / Not eligible / Neutral) */
  --sh-amber-bg: #fde68a;
  --sh-amber-text: #78350f;
  --sh-orange-bg: #fed7aa;
  --sh-orange-text: #9a3412;
  --sh-blue-bg: #e0f2fe;
  --sh-blue-text: #0369a1;
  --sh-neutral-bg: #f1f1f2;
  --sh-neutral-text: #303030;

  --sh-radius-card: 16px;
  --sh-radius-pill: 999px;
  --sh-radius-input: 10px;
  --sh-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}

body {
  font-family: var(--sh-font);
  background: var(--sh-shell);
  color: var(--sh-text);
  font-size: 13.5px;
  line-height: 1.45;
  min-height: 100vh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* Внешняя рамка Shopify (#141414 слева, светлый скруглённый лист справа) */
.sh-app-frame {
  display: grid;
  grid-template-columns: 248px 1fr;
  min-height: 100vh;
  background: var(--sh-shell);
}

/* Левое меню 1-в-1 как на скриншоте Shopify */
.sh-sidebar {
  background: var(--sh-sidebar);
  color: var(--sh-sidebar-text);
  display: flex;
  flex-direction: column;
  padding: 12px 10px 14px;
  user-select: none;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.sh-sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 6px 10px;
}

.sh-brand-logo {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  letter-spacing: -0.01em;
}

.sh-brand-bag {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: linear-gradient(145deg, #ffffff 0%, #dcdcdc 100%);
  color: #141414;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 13px;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

.sh-collapse-btn {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: transparent;
  color: #a3a3a3;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

/* Поле поиска внутри тёмного сайдбара (как на скриншоте Shopify) */
.sh-sidebar-search {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--sh-search-bg);
  border: 1px solid var(--sh-search-border);
  border-radius: 10px;
  padding: 7px 10px;
  margin: 0 2px 12px;
  cursor: text;
  transition: border-color 0.15s, background 0.15s;
}

.sh-sidebar-search:focus-within {
  border-color: rgba(255, 255, 255, 0.28);
  background: #2f2f2f;
}

.sh-sidebar-search input {
  background: transparent;
  border: none;
  outline: none;
  color: #ffffff;
  font-size: 13px;
  width: 100%;
  font-family: inherit;
}

.sh-sidebar-search input::placeholder {
  color: #9a9a9a;
}

.sh-search-kbd {
  font-size: 11px;
  color: #8e8e8e;
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 5px;
  border-radius: 4px;
  margin-left: 6px;
  white-space: nowrap;
}

.sh-nav-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sh-nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
  padding: 7px 10px;
  border-radius: 9px;
  color: var(--sh-sidebar-text);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: none;
  background: transparent;
  width: 100%;
  text-align: left;
  font-family: inherit;
  transition: background 0.12s, color 0.12s;
}

.sh-nav-item:hover {
  background: var(--sh-sidebar-hover);
  color: #ffffff;
}

.sh-nav-item.active {
  background: var(--sh-sidebar-active);
  color: var(--sh-sidebar-text-active);
  font-weight: 600;
}

.sh-nav-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.sh-nav-icon {
  width: 18px;
  text-align: center;
  font-size: 14px;
  opacity: 0.9;
  flex-shrink: 0;
}

.sh-nav-pill {
  background: rgba(255, 255, 255, 0.14);
  color: #e5e5e5;
  font-size: 11.5px;
  font-weight: 600;
  padding: 1px 8px;
  border-radius: 999px;
}

.sh-nav-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 10px 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #8a8a8a;
  letter-spacing: 0.01em;
}

/* Подпункты активного канала продаж (Posts, Advertising, Reviews, Promise, Settings) */
.sh-subnav-list {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-left: 28px;
  margin: 2px 0 4px;
}

.sh-subnav-item {
  padding: 5px 10px;
  border-radius: 7px;
  color: #9e9e9e;
  font-size: 12.5px;
  font-weight: 500;
  cursor: pointer;
  background: transparent;
  border: none;
  text-align: left;
  font-family: inherit;
}

.sh-subnav-item:hover,
.sh-subnav-item.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
}

.sh-sidebar-footer {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sh-store-badge-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 13px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.sh-store-avatar {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.sh-notif-dot {
  background: #e11d48;
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
}

/* Правая светлая рабочая область со скруглением верхнего левого угла как в Shopify */
.sh-main-sheet {
  background: var(--sh-canvas);
  background-image:
    radial-gradient(at 15% 0%, rgba(255, 255, 255, 0.9) 0px, transparent 55%),
    radial-gradient(at 85% 10%, rgba(226, 232, 240, 0.45) 0px, transparent 50%);
  border-top-left-radius: 16px;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Верхняя шапка листа (как в Shopify: иконка раздела + название + быстрые кнопки справа) */
.sh-sheet-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 28px;
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  position: sticky;
  top: 0;
  z-index: 30;
}

.sh-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sh-section-badge-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
}

.sh-topbar-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--sh-text);
  letter-spacing: -0.01em;
}

.sh-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Контейнер контента по центру */
.sh-content-wrap {
  max-width: 1060px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 28px 96px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Карточка macOS Liquid Glass + Shopify Clean White */
.sh-card {
  background: var(--sh-glass-card);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid var(--sh-glass-border);
  box-shadow: var(--sh-card-shadow), var(--sh-glass-highlight);
  border-radius: var(--sh-radius-card);
  padding: 20px 22px;
  transition: box-shadow 0.18s ease, transform 0.18s ease;
}

.sh-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.sh-card-title {
  font-size: 15px;
  font-weight: 650;
  color: var(--sh-text);
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.sh-card-desc {
  font-size: 13.5px;
  color: var(--sh-text-sub);
  margin-bottom: 14px;
  max-width: 760px;
}

/* Кнопки-таблетки Shopify (Чёрная primary и Светло-серая secondary) */
.sh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 15px;
  border-radius: var(--sh-radius-pill);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
  font-family: inherit;
  text-decoration: none;
  transition: background 0.14s, transform 0.1s, box-shadow 0.14s;
  white-space: nowrap;
}

.sh-btn:active {
  transform: scale(0.985);
}

.sh-btn-primary {
  background: var(--sh-btn-primary);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.18);
}

.sh-btn-primary:hover {
  background: var(--sh-btn-primary-hover);
}

.sh-btn-secondary {
  background: var(--sh-btn-secondary);
  color: var(--sh-text);
  border-color: rgba(0, 0, 0, 0.06);
}

.sh-btn-secondary:hover {
  background: var(--sh-btn-secondary-hover);
}

.sh-btn-glass {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(16px);
  color: var(--sh-text);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.sh-btn-glass:hover {
  background: #ffffff;
}

/* Статусные плашки (1-в-1 как на скриншоте Shopify) */
.sh-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 600;
}

.sh-badge-amber {
  background: var(--sh-amber-bg);
  color: var(--sh-amber-text);
}

.sh-badge-orange {
  background: var(--sh-orange-bg);
  color: var(--sh-orange-text);
}

.sh-badge-neutral {
  background: var(--sh-neutral-bg);
  color: var(--sh-neutral-text);
}

.sh-badge-blue {
  background: var(--sh-blue-bg);
  color: var(--sh-blue-text);
}

/* Полоса аналитики 30 days / Shop orders / Shop sales UZS (как на скриншоте Shopify) */
.sh-stats-bar {
  display: grid;
  grid-template-columns: auto 1fr 1fr 1fr;
  align-items: center;
  gap: 16px;
  background: var(--sh-glass-card);
  backdrop-filter: blur(24px);
  border: 1px solid var(--sh-glass-border);
  box-shadow: var(--sh-card-shadow), var(--sh-glass-highlight);
  border-radius: var(--sh-radius-card);
  padding: 14px 20px;
}

.sh-period-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 9px;
  background: #ffffff;
  border: 1px solid var(--sh-border-subtle);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--sh-text);
}

.sh-stat-cell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-left: 16px;
  border-left: 1px solid var(--sh-border-subtle);
}

.sh-stat-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sh-text);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 3px;
  margin-bottom: 2px;
}

.sh-stat-val {
  font-size: 15px;
  font-weight: 700;
  color: var(--sh-text);
}

.sh-sparkline {
  width: 68px;
  height: 3px;
  border-radius: 2px;
  background: #38bdf8;
}

/* Плитки 5 типов сайтов с ИИ (Магазин, Визитка, Букинг, Каталог без покупок, Лендинг) */
.sh-site-types-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.sh-site-type-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 13px;
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--sh-border-subtle);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
  transition: all 0.15s ease;
}

.sh-site-type-btn:hover,
.sh-site-type-btn.active {
  border-color: #1a1a1a;
  background: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
  transform: translateY(-1px);
}

.sh-site-type-icon {
  font-size: 18px;
}

.sh-site-type-name {
  font-size: 12.5px;
  font-weight: 650;
  color: var(--sh-text);
  line-height: 1.25;
}

.sh-site-type-hint {
  font-size: 11px;
  color: var(--sh-text-sub);
  line-height: 1.3;
}

/* Большая карточка Store с мобильным превью справа (1-в-1 как на скриншоте Shopify) */
.sh-store-showcase {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 22px;
  align-items: center;
  margin-top: 8px;
}

.sh-phone-preview-card {
  background: linear-gradient(160deg, #dbeafe 0%, #ede9fe 50%, #fce7f3 100%);
  border-radius: 26px;
  padding: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.sh-phone-statusbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: #1a1a1a;
}

.sh-phone-follow-pill {
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(10px);
  color: #ffffff;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
}

.sh-phone-center {
  text-align: center;
  margin: 16px 0;
}

.sh-phone-logo-box {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: #e11d48;
  color: #ffffff;
  font-weight: 800;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 18px rgba(225, 29, 72, 0.35);
  margin-bottom: 8px;
}

/* Таблица товаров и заказов в стиле Shopify (с главной миниатюрой первой колонкой) */
.sh-table-wrap {
  width: 100%;
  overflow-x: auto;
  border-radius: 12px;
  border: 1px solid var(--sh-border-subtle);
  background: #ffffff;
}

.sh-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

.sh-table th {
  background: #fafafa;
  color: var(--sh-text-sub);
  font-weight: 600;
  font-size: 12px;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 1px solid var(--sh-border-subtle);
  white-space: nowrap;
}

.sh-table td {
  padding: 12px 14px;
  border-bottom: 1px solid #f1f1f2;
  vertical-align: middle;
}

.sh-table tr:last-child td {
  border-bottom: none;
}

.sh-table tr:hover td {
  background: #fcfcfd;
}

.sh-thumb-box {
  width: 52px;
  height: 52px;
  border-radius: 10px;
  border: 1px solid var(--sh-border-subtle);
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sh-thumb-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sh-thumb-main-tag {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.82);
  color: #ffffff;
  font-size: 8.5px;
  font-weight: 700;
  text-align: center;
  padding: 1px 0;
  letter-spacing: 0.03em;
}

/* Плавающая кнопка Work with Sidekick / ИИ-Ассистент в правом нижнем углу (как на скриншоте Shopify) */
.sh-sidekick-fab {
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 10px 18px;
  border-radius: var(--sh-radius-pill);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12), inset 0 1px 0 #ffffff;
  color: var(--sh-text);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.sh-sidekick-avatar {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #4f46e5;
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

/* Модальные окна Liquid Glass (Студия товара, Печать этикетки, ИИ-Онбординг) */
.sh-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(20, 20, 20, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.sh-modal-backdrop.open {
  display: flex;
}

.sh-modal-dialog {
  background: var(--sh-glass-card-strong);
  backdrop-filter: blur(28px) saturate(190%);
  -webkit-backdrop-filter: blur(28px) saturate(190%);
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.18), inset 0 1px 0 #ffffff;
  border-radius: 20px;
  max-width: 780px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  padding: 22px 24px;
}

.sh-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 12px;
}

.sh-field label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--sh-text-sub);
  margin-bottom: 4px;
}

.sh-input,
.sh-select,
.sh-textarea {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--sh-radius-input);
  border: 1px solid var(--sh-border-subtle);
  background: #ffffff;
  font-size: 13.5px;
  color: var(--sh-text);
  font-family: inherit;
  outline: none;
}

.sh-input:focus,
.sh-select:focus,
.sh-textarea:focus {
  border-color: #1a1a1a;
}

/* Мобильная нижняя навигация (для 50% пользователей со смартфона) */
.sh-mobile-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(20, 20, 20, 0.96);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  z-index: 80;
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom));
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}

.sh-mob-btn {
  background: transparent;
  border: none;
  color: #a3a3a3;
  font-size: 10.5px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 5px 2px;
  border-radius: 8px;
  cursor: pointer;
  font-family: inherit;
}

.sh-mob-btn.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.sh-mobile-menu-btn {
  display: none;
  padding: 5px 10px;
  font-size: 15px;
  line-height: 1;
}

.sh-mobile-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  z-index: 990;
}

@media (max-width: 960px) {
  .sh-app-frame {
    grid-template-columns: 1fr;
  }
  .sh-sidebar {
    display: none;
  }
  body.sh-sidebar-open .sh-sidebar {
    display: flex;
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 272px;
    z-index: 999;
    overflow-y: auto;
    box-shadow: 12px 0 40px rgba(0, 0, 0, 0.45);
  }
  body.sh-sidebar-open .sh-mobile-backdrop {
    display: block;
  }
  .sh-mobile-menu-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }
  .sh-main-sheet {
    border-top-left-radius: 0;
    min-width: 0;
  }
  .sh-sheet-topbar {
    padding: 10px 12px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .sh-topbar-left {
    min-width: 0;
    flex: 1 1 100%;
  }
  .sh-topbar-title {
    font-size: 14px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .sh-topbar-right {
    width: 100%;
    flex-wrap: wrap;
    gap: 6px;
  }
  .sh-content-wrap {
    padding: 16px 14px 100px;
  }
  .sh-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .sh-stats-bar {
    grid-template-columns: 1fr 1fr;
  }
  .sh-site-types-grid {
    grid-template-columns: 1fr 1fr;
  }
  .sh-store-showcase {
    grid-template-columns: 1fr;
  }
  .sh-form-grid {
    grid-template-columns: 1fr;
  }
  .sh-mobile-nav {
    display: grid;
  }
  .sh-sidekick-fab {
    bottom: 72px;
    right: 14px;
  }
}

.sh-studio-actions-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin: 12px 0;
}

.sh-studio-body-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  align-items: start;
}

.sh-studio-preview-box {
  width: 100%;
  max-width: 220px;
  height: 220px;
  border-radius: 14px;
  border: 1px solid var(--sh-border-subtle);
  background: #f8fafc;
  overflow: hidden;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 8px;
}

.sh-studio-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.sh-studio-gallery-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
  margin-top: 8px;
  margin-bottom: 8px;
}

.sh-studio-gthumb {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1.5px solid var(--sh-border-subtle);
  background: #f8fafc;
  overflow: hidden;
  cursor: pointer;
}

.sh-studio-gthumb.active {
  border-color: var(--sh-brand-black, #141414);
  box-shadow: 0 0 0 2px rgba(20, 20, 20, 0.16);
}

.sh-studio-gthumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.sh-studio-gthumb-main {
  position: absolute;
  left: 3px;
  top: 3px;
  background: #141414;
  color: #fde047;
  font-size: 9px;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 4px;
}

.sh-studio-gthumb-del {
  position: absolute;
  right: 2px;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 0;
  background: rgba(15, 23, 42, 0.78);
  color: #fff;
  font-size: 12px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.sh-studio-gthumb-add {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 8px;
  border: 1.5px dashed #94a3b8;
  background: #f8fafc;
  color: #0f172a;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.sh-studio-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--sh-border-subtle);
}

@media (max-width: 768px) {
  .sh-card {
    padding: 14px 12px;
  }
  .sh-card-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .sh-btn {
    white-space: normal;
    max-width: 100%;
    height: auto;
    line-height: 1.3;
    text-align: center;
  }
  .sh-modal-dialog {
    padding: 16px;
    max-height: 92vh;
  }
  .sh-studio-actions-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .sh-studio-body-grid {
    grid-template-columns: 1fr;
  }
  .sh-studio-preview-box {
    max-width: 240px;
    height: 210px;
  }
  .sh-studio-gallery-strip {
    grid-template-columns: repeat(5, 1fr);
  }
  .sh-studio-footer > div {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sh-studio-footer .sh-btn {
    flex: 1 1 auto;
  }
  .sh-sec-responsive-grid {
    grid-template-columns: 1fr !important;
  }
  #sec-settings [style*="grid-template-columns:"] {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 480px) {
  .sh-stats-bar {
    grid-template-columns: 1fr;
  }
  .sh-site-types-grid {
    grid-template-columns: 1fr;
  }
  .sh-topbar-right .sh-btn {
    font-size: 11.5px;
    padding: 5px 9px;
  }
}
