/* Theme tokens and light-theme overrides */

:root {
  --accent-lime: #c6ff3d;
  --accent-contrast: #0b1005;
  --input-bg: rgba(255, 255, 255, 0.035);
  --input-border: var(--line-strong);
  --input-hover-border: rgba(255, 255, 255, 0.22);
  --input-focus-bg: rgba(198, 255, 61, 0.035);
  --input-placeholder: var(--muted-2);
  --focus-ring: rgba(198, 255, 61, 0.1);
  --panel-bg: var(--surface);
  --panel-border: var(--line);
  --panel-shadow: 0 22px 54px rgba(0, 0, 0, 0.24);
  --card-bg: var(--surface);
  --card-border: var(--line);
  --card-hover-border: var(--line-strong);
  --card-media-bg: var(--surface-2);
  --card-shadow: 0 2px 10px rgba(0, 0, 0, 0.14);
  --card-hover-shadow: 0 18px 42px rgba(0, 0, 0, 0.26);
  --image-badge-bg: rgba(7, 10, 13, 0.74);
  --image-badge-text: #eaf0ed;
  --image-badge-hover-bg: rgba(7, 10, 13, 0.92);
  --condition-stock-bg: rgba(111, 227, 154, 0.15);
  --condition-stock-text: #8df0b2;
  --condition-transit-bg: rgba(255, 183, 77, 0.15);
  --condition-transit-text: #ffd28a;
  --condition-order-bg: rgba(198, 255, 61, 0.12);
  --condition-order-text: #d8ff7f;
  --condition-sold-bg: rgba(255, 255, 255, 0.08);
  --condition-sold-text: var(--muted);
  --theme-header-bg: rgba(7, 10, 13, 0.86);
  --theme-header-scrolled-bg: rgba(7, 10, 13, 0.96);
  --theme-header-shadow: 0 12px 34px rgba(0, 0, 0, 0.32);
  --theme-overlay-bg: rgba(3, 5, 7, 0.78);
  --theme-mobile-bg: rgba(5, 8, 10, 0.98);
  --theme-toast-bg: #10171e;
  color-scheme: dark;
}

/* Shared semantic colors, customizable from the site settings editor. */
.btn--accent,
.icon-btn--accent,
.floating-cta__btn--accent {
  border-color: var(--button-bg, var(--accent));
  background: var(--button-bg, var(--accent));
  color: var(--button-text, var(--bg));
}
.btn--accent:hover,
.icon-btn--accent:hover,
.floating-cta__btn--accent:hover {
  border-color: color-mix(in srgb, var(--button-bg, var(--accent)) 84%, white);
  background: color-mix(in srgb, var(--button-bg, var(--accent)) 84%, white);
  color: var(--button-text, var(--bg));
}
.accent,
.logo__name span { color: var(--accent); }

:root[data-theme="light"] {
  --bg: #f5f7f3;
  --bg-soft: #eef1ea;
  --surface: #ffffff;
  --surface-2: #f0f3ec;
  --surface-3: #e6eae0;
  --text: #141a16;
  --muted: #536059;
  --muted-2: #626d65;
  --line: rgba(16, 24, 17, 0.1);
  --line-strong: rgba(16, 24, 17, 0.18);
  --accent: #567b00;
  --accent-contrast: #ffffff;
  --accent-dark: #476900;
  --accent-soft: rgba(86, 123, 0, 0.12);
  --cyan: #087c8d;
  --danger: #c73d3d;
  --success: #24804a;
  --shadow: 0 24px 60px rgba(20, 35, 20, 0.13);
  --input-bg: #ffffff;
  --input-border: rgba(16, 24, 17, 0.16);
  --input-hover-border: rgba(16, 24, 17, 0.3);
  --input-focus-bg: #ffffff;
  --input-placeholder: var(--muted-2);
  --focus-ring: rgba(92, 132, 0, 0.14);
  --panel-bg: #ffffff;
  --panel-border: rgba(16, 24, 17, 0.1);
  --panel-shadow: 0 18px 46px rgba(20, 35, 20, 0.09);
  --card-bg: #ffffff;
  --card-border: rgba(16, 24, 17, 0.1);
  --card-hover-border: rgba(16, 24, 17, 0.2);
  --card-media-bg: #eef1ea;
  --card-shadow: 0 2px 8px rgba(20, 35, 20, 0.05);
  --card-hover-shadow: 0 18px 42px rgba(20, 35, 20, 0.14);
  --image-badge-bg: rgba(255, 255, 255, 0.94);
  --image-badge-text: #3e4942;
  --image-badge-hover-bg: #ffffff;
  --condition-stock-bg: #e3f6e9;
  --condition-stock-text: #226b3e;
  --condition-transit-bg: #fdf0dd;
  --condition-transit-text: #8b5a12;
  --condition-order-bg: #eef8d4;
  --condition-order-text: #4d6e05;
  --condition-sold-bg: #eef1ea;
  --condition-sold-text: #67736b;
  --theme-header-bg: rgba(255, 255, 255, 0.9);
  --theme-header-scrolled-bg: rgba(255, 255, 255, 0.97);
  --theme-header-shadow: 0 12px 34px rgba(20, 35, 20, 0.09);
  --theme-overlay-bg: rgba(20, 30, 22, 0.46);
  --theme-mobile-bg: #f5f7f3;
  --theme-toast-bg: #ffffff;
  color-scheme: light;
}

[data-theme="light"] body {
  background:
    radial-gradient(800px 500px at 85% -10%, color-mix(in srgb, var(--accent) 7%, transparent), transparent 70%),
    radial-gradient(700px 500px at -10% 22%, color-mix(in srgb, var(--accent) 5%, transparent), transparent 70%),
    var(--bg);
}

[data-theme="light"] ::selection {
  background: var(--accent);
  color: var(--accent-contrast, #ffffff);
}

[data-theme="light"] .topbar { background: #ffffff; }
[data-theme="light"] .header { background: var(--theme-header-bg); }
[data-theme="light"] .header.is-scrolled {
  background: var(--theme-header-scrolled-bg);
  box-shadow: var(--theme-header-shadow);
}

[data-theme="light"] .mega,
[data-theme="light"] .dropdown,
[data-theme="light"] .modal,
[data-theme="light"] .modal__dialog,
[data-theme="light"] .search-panel,
[data-theme="light"] .toast {
  background: var(--surface);
}

[data-theme="light"] .modal__aside {
  background:
    radial-gradient(320px 220px at 20% 10%, rgba(198, 255, 61, 0.16), transparent 70%),
    #0a1015;
  border-right-color: rgba(255, 255, 255, 0.09);
  color: #f2f7f2;
}

[data-theme="light"] .modal__aside h2 { color: #f2f7f2; }

[data-theme="light"] .modal__aside p,
[data-theme="light"] .modal__list li {
  color: rgba(242, 247, 242, 0.72);
}

[data-theme="light"] .modal__aside .eyebrow,
[data-theme="light"] .modal__list .icon {
  color: var(--accent-lime);
}

[data-theme="light"] .modal__contact span {
  color: rgba(242, 247, 242, 0.52);
}

[data-theme="light"] .modal__contact a {
  color: #f2f7f2;
}

[data-theme="light"] .modal__contact a:hover {
  color: var(--accent-lime);
}

[data-theme="light"] .mobile-nav { background: var(--theme-mobile-bg); }
[data-theme="light"] .footer { background: var(--bg-soft); }
[data-theme="light"] .stats-band { background: linear-gradient(180deg, rgba(16, 24, 17, 0.03), transparent); }
[data-theme="light"] .stats-band__item { background: var(--surface); }
[data-theme="light"] .section--alt { background: linear-gradient(180deg, rgba(92, 132, 0, 0.045), transparent); }
[data-theme="light"] .form--inline { background: rgba(255, 255, 255, 0.82); }
[data-theme="light"] .cookie { background: rgba(255, 255, 255, 0.97); }
[data-theme="light"] .search-panel__form { background: var(--surface-2); }
[data-theme="light"] .overlay,
[data-theme="light"] .modal { background: var(--theme-overlay-bg); }

/* Поиск на планшете и телефоне: оверлей перекрывает всю страницу, поэтому
   на светлой теме он должен быть светлым. Иначе подсказки и текст поля
   (они лежат прямо на подложке) оказываются тёмными на тёмном фоне. */
[data-theme="light"] .search-overlay { background: rgba(245, 247, 243, 0.94); }
[data-theme="light"] .search-overlay__close {
  background: var(--surface);
  border-color: var(--line-strong);
}
[data-theme="light"] .search-suggestion__item:hover { background: rgba(16, 24, 17, 0.05); }

[data-theme="light"] .nav__link:hover,
[data-theme="light"] .nav__item.is-open > .nav__link,
[data-theme="light"] .mega__link:hover,
[data-theme="light"] .mega__main:hover,
[data-theme="light"] .dropdown a:hover,
[data-theme="light"] .dropdown button:hover,
[data-theme="light"] .mobile-nav__body > a:hover {
  background: rgba(16, 24, 17, 0.05);
}

/* Neutral surface buttons first: accent modifiers and active states below must win. */
[data-theme="light"] .btn--outline,
[data-theme="light"] .btn--ghost,
[data-theme="light"] .icon-btn {
  background: var(--surface);
}

[data-theme="light"] .btn--outline:hover,
[data-theme="light"] .btn--ghost:hover,
[data-theme="light"] .icon-btn:hover {
  background: var(--surface-2);
}

[data-theme="light"] .btn--accent,
[data-theme="light"] .icon-btn--accent,
[data-theme="light"] .floating-cta__btn--accent,
[data-theme="light"] .floating__btn--accent,
[data-theme="light"] .chip--active,
[data-theme="light"] .chip.is-active,
[data-theme="light"] .pagination__page--active,
[data-theme="light"] .pagination__link.is-active,
[data-theme="light"] .car-card__fav.is-active,
[data-theme="light"] .car-card__favorite.is-active,
[data-theme="light"] .car-card--v2 .car-card__fav.is-active,
[data-theme="light"] [data-favorite].is-active,
[data-theme="light"] .cfilter-quick.is-active,
[data-theme="light"] .header__edit-toggle--active {
  border-color: var(--button-bg);
  background: var(--button-bg);
  color: var(--button-text);
}

[data-theme="light"] .btn--accent:hover,
[data-theme="light"] .icon-btn--accent:hover,
[data-theme="light"] .floating-cta__btn--accent:hover,
[data-theme="light"] .floating__btn--accent:hover,
[data-theme="light"] [data-favorite].is-active:hover,
[data-theme="light"] .header__edit-toggle--active:hover {
  border-color: color-mix(in srgb, var(--button-bg) 88%, black);
  background: color-mix(in srgb, var(--button-bg) 88%, black);
  color: var(--button-text);
}

[data-theme="light"] .car-card__year,
[data-theme="light"] .car-card__specs li {
  background: var(--surface-2);
}

[data-theme="light"] .hero__form .field__input,
[data-theme="light"] .calc-form .field__input,
[data-theme="light"] .calc-mini .field__input,
[data-theme="light"] .calc-quick-form .field__input,
[data-theme="light"] .form--inline .field__input {
  background: var(--input-bg);
}

[data-theme="light"] .hero__form .field__input:focus {
  background: var(--input-focus-bg);
}

[data-theme="light"] .badge--in_stock {
  border-color: rgba(34, 107, 62, 0.28);
  background: rgba(111, 227, 154, 0.18);
  color: #226b3e;
}

[data-theme="light"] .badge--transit {
  border-color: rgba(139, 90, 18, 0.28);
  background: rgba(255, 183, 77, 0.18);
  color: #8b5a12;
}

[data-theme="light"] .badge--order {
  border-color: rgba(77, 110, 5, 0.26);
  background: rgba(198, 255, 61, 0.28);
  color: #4d6e05;
}

[data-theme="light"] .badge--featured {
  border-color: rgba(139, 90, 18, 0.25);
  background: rgba(255, 201, 77, 0.22);
  color: #7d520d;
}

[data-theme="light"] .badge--sold {
  border-color: var(--line-strong);
  background: var(--surface-2);
  color: var(--muted);
}

[data-theme="light"] .calc-teaser {
  border-color: rgba(92, 132, 0, 0.18);
  background:
    radial-gradient(520px 360px at 88% 20%, rgba(198, 255, 61, 0.18), transparent 70%),
    linear-gradient(135deg, #ffffff, #f1f5ea);
  box-shadow: 0 22px 52px rgba(20, 35, 20, 0.08);
}

[data-theme="light"] .calc-teaser__card {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 44px rgba(20, 35, 20, 0.1);
}

[data-theme="light"] .cta-block {
  border-color: rgba(92, 132, 0, 0.18);
  background:
    radial-gradient(600px 380px at 85% 15%, rgba(198, 255, 61, 0.2), transparent 68%),
    #f1f5ea;
}

[data-theme="light"] .quick-view__panel {
  background: var(--surface);
}

[data-theme="light"] .floating-cta__btn:not(.floating-cta__btn--accent),
[data-theme="light"] .floating__btn:not(.floating__btn--accent) {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--text);
  box-shadow: 0 10px 30px rgba(20, 35, 20, 0.16);
}

[data-theme="light"] .floating-cta__btn:not(.floating-cta__btn--accent):hover,
[data-theme="light"] .floating__btn:not(.floating__btn--accent):hover {
  border-color: var(--accent);
  color: var(--accent);
}

/* Keep heading colors consistent even in components that set their own size. */
[data-theme] h1,
[data-theme] h2,
[data-theme] h3,
[data-theme] h4,
[data-theme] h5,
[data-theme] h6 {
  color: var(--heading, var(--text));
}

/* Typography roles configured in the CMS. */
.logo {
  font-family: var(--font-logo, var(--font-heading, var(--font)));
}

.btn,
.icon-btn,
.nav,
.topbar,
.mobile-nav,
.pagination,
.search-panel,
.dropdown,
.mega {
  font-family: var(--font-ui, var(--font));
}


.mobile-nav__actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.theme-toggle {
  position: relative;
  flex: 0 0 auto;
}

.theme-toggle__sun,
.theme-toggle__moon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.theme-toggle__moon { display: none; }
[data-theme="light"] .theme-toggle__sun { display: none; }
[data-theme="light"] .theme-toggle__moon { display: inline-flex; }

@media (max-width: 1100px) {
  .theme-toggle { width: 38px; height: 38px; }
}

/* ==========================================================================
   Кнопки быстрой прокрутки (Наверх / К следующему блоку)
   ========================================================================== */
/* Кнопки стоят отдельной колонкой над контактными кнопками (CTA),
   а на страницах с музыкальным плеером — над ним. */
.scroll-controls {
  position: fixed;
  right: 22px;
  bottom: 138px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 44px;
}

body.has-music-player .scroll-controls {
  bottom: 213px;
}

.scroll-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--button-bg, var(--accent));
  color: var(--button-text, var(--bg));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s, color 0.2s;
}

.scroll-btn svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.scroll-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.4);
}

.scroll-btn:active {
  transform: translateY(0);
}

/* Кнопка «Наверх» скрыта по умолчанию, показывается после скролла */
.scroll-to-top {
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  pointer-events: none;
}

.scroll-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

/* Адаптив */
@media (max-width: 767px) {
  .scroll-controls {
    right: 14px;
  }

  .scroll-btn {
    width: 40px;
    height: 40px;
  }
}

@media (max-width: 700px) {
  .scroll-controls {
    bottom: 116px;
  }
}

@media (max-width: 640px) {
  body.has-music-player .scroll-controls {
    bottom: 180px;
  }
}

/* Виджеты нижнего правого угла (плавный контакт-CTA) должны оставаться
   кликабельными поверх кнопок быстрой прокрутки. */
.floating,
.floating-cta {
  z-index: 75;
}

/* ==========================================================================
   Характеристики автомобиля в карточке товара
   Подпись и значение стоят друг под другом (а не в одну строку),
   значения переносятся и не обрезаются по правому краю.
   ========================================================================== */
.specs-grid {
  align-items: stretch;
}

.spec {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  align-items: start;
  column-gap: 9px;
  row-gap: 2px;
  min-width: 0;
  padding: 13px 14px;
  background: var(--surface-2);
}

.spec > .spec__icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin: 1px 0 0;
  color: var(--accent);
  line-height: 1;
}

.spec > span:not(.spec__icon) {
  grid-column: 2;
  display: block;
  margin: 0;
  color: var(--muted-2);
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  letter-spacing: 0.01em;
}

.spec > strong {
  grid-column: 2;
  display: block;
  color: var(--text);
  font-size: 12.5px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

@media (max-width: 700px) {
  .specs-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .spec {
    grid-template-columns: 20px minmax(0, 1fr);
    column-gap: 10px;
    row-gap: 3px;
    padding: 11px 10px;
  }

  .spec > span:not(.spec__icon) {
    font-size: 11px;
    line-height: 1.25;
  }

  .spec > strong {
    font-size: 13.5px;
    line-height: 1.3;
  }
}

@media (max-width: 420px) {
  .specs-grid {
    grid-template-columns: 1fr;
    gap: 0;
    border: 0;
    background: transparent;
    overflow: visible;
    border-radius: 0;
  }

  .spec {
    padding: 11px 2px;
    background: transparent;
    border-bottom: 1px solid var(--line);
  }

  .spec:last-child {
    border-bottom: 0;
  }

  .spec > span:not(.spec__icon) {
    font-size: 11.5px;
  }

  .spec > strong {
    font-size: 14.5px;
  }
}

/* ==========================================================================
   Фото автомобиля в карточке каталога
   Показываем снимок целиком: cover обрезал машину по краям,
   contain вписывает фото в плитку без потери частей изображения.
   ========================================================================== */
.car-card--v2 .car-card__media img:not(.watermark-img) {
  object-fit: contain;
  object-position: center;
}

.car-card--v2:hover .car-card__media img:not(.watermark-img) {
  transform: scale(1.02);
}

/* ==========================================================================
   Кнопка «Поделиться» в карточке товара
   ========================================================================== */
.car-card--v2 .car-card__share {
  position: absolute;
  top: 11px;
  right: 49px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: var(--image-badge-bg);
  color: var(--image-badge-text);
  box-shadow: 0 2px 8px rgba(10, 14, 20, 0.12);
  backdrop-filter: blur(5px);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, transform 0.15s;
}

.car-card--v2 .car-card__share:hover {
  background: var(--image-badge-hover-bg);
  color: var(--text);
  transform: translateY(-1px);
}

.car-card--v2 .car-card__share:active { transform: translateY(0); }

.car-card--v2 .car-card__share:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* Метка источника не должна залезать под две кнопки в правом верхнем углу */
.car-card--v2 .car-card__source {
  max-width: calc(100% - 100px);
}

@media (max-width: 560px) {
  .car-card--v2 .car-card__share,
  .car-card--v2 .car-card__fav {
    top: 9px;
    width: 30px;
    height: 30px;
  }

  .car-card--v2 .car-card__fav { right: 9px; }
  .car-card--v2 .car-card__share { right: 45px; }
}

/* ==========================================================================
   Галерея автомобиля: свайпы на мобильных и полноэкранный просмотр с зумом
   ========================================================================== */
.gallery-lightbox__frame {
  /* Жесты обрабатываем сами: пинч-зум и панорамирование фото */
  touch-action: none;
  transform-origin: center center;
  will-change: transform;
}

.gallery-lightbox__hint {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  transform: translateX(-50%);
  padding: 7px 13px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11.5px;
  line-height: 1.3;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.2s;
}

@media (hover: none) and (pointer: coarse) {
  .gallery-lightbox.is-open .gallery-lightbox__hint { opacity: 1; }
}

@media (max-width: 600px) {
  .gallery-lightbox { padding: 10px; }
  .gallery-lightbox__arrow { width: 38px; height: 38px; }
  .gallery-lightbox__arrow--prev { left: 8px; }
  .gallery-lightbox__arrow--next { right: 8px; }
  .gallery-lightbox__hint { bottom: 10px; font-size: 10.5px; }
}

/* ==========================================================================
   Панель «Поделиться»: выбор мессенджера (fallback для браузеров без
   Web Share API — в частности, Android без системного меню)
   ========================================================================== */
.share-sheet {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 16px;
  /* Прозрачность не анимируем: панель должна быть видима сразу,
     даже если в браузере не работают анимации. */
  opacity: 1;
  visibility: hidden;
  transition: visibility 0s linear 0.22s;
}

.share-sheet.is-open {
  visibility: visible;
  transition: visibility 0s linear 0s;
}

.share-sheet__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(3, 5, 7, 0.72);
  backdrop-filter: blur(3px);
  opacity: 0;
  transition: opacity 0.22s ease;
}

.share-sheet.is-open .share-sheet__backdrop { opacity: 1; }

.share-sheet__panel {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 460px;
  padding: 20px 18px calc(18px + env(safe-area-inset-bottom));
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.5);
  transform: translateY(18px);
  transition: transform 0.22s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.share-sheet.is-open .share-sheet__panel { transform: translateY(0); }

.share-sheet__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.share-sheet__head h2 { margin: 4px 0 0; font-size: 19px; letter-spacing: -0.03em; }

.share-sheet__close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
}
.share-sheet__close:hover { color: var(--text); border-color: var(--line-strong); background: rgba(255, 255, 255, 0.05); }
.share-sheet__close:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.share-sheet__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 9px;
  margin-bottom: 14px;
}

.share-sheet__item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  padding: 12px 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 10.5px;
  font-weight: 600;
  text-align: center;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.15s ease;
}
.share-sheet__item:hover { border-color: var(--line-strong); background: var(--surface-3); transform: translateY(-2px); }
.share-sheet__item .icon { color: var(--accent); }

.share-sheet__action { margin-top: 8px; }
.share-sheet__action .icon { flex: 0 0 auto; }

.share-sheet__url {
  margin: 14px 0 0;
  color: var(--muted-2);
  font-size: 11px;
  line-height: 1.4;
  word-break: break-all;
}

@media (max-width: 560px) {
  .share-sheet { padding: 0; align-items: flex-end; }
  .share-sheet__panel { border-radius: var(--radius-lg) var(--radius-lg) 0 0; }
  .share-sheet__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; }
  .share-sheet__item { padding: 10px 4px; font-size: 9.5px; }
}
