:root {
  --bg: #f7f7f7;
  --bg-strong: #ffffff;
  --surface: rgba(255, 255, 255, 0.9);
  --surface-solid: #ffffff;
  --surface-2: #f1f1f1;
  --text: #111111;
  --muted: #666666;
  --line: rgba(16, 22, 28, 0.08);
  --accent: #fe8512;
  --accent-2: #ff8a36;
  --accent-soft: rgba(252, 102, 26, 0.12);
  --accent-strong: rgba(252, 102, 26, 0.92);
  --accent-shadow: rgba(252, 102, 26, 0.24);
  --accent-shadow-strong: rgba(252, 102, 26, 0.28);
  --accent-shadow-heavy: rgba(252, 102, 26, 0.22);
  --danger: #cb3a31;
  --shadow: 0 18px 40px rgba(16, 22, 28, 0.1);
  --nav-h: 52px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --vvh: 100dvh;
  --vv-top: 0px;
  --vv-bottom: 0px;
  --chat-header-h: 72px;
  --chat-compose-h: 86px;
  --chat-panel: #ffffff;
  --chat-panel-2: #f3f4f6;
  --chat-header-bg: #ffffff;
  --chat-header-text: #111111;
  --chat-subtitle: #6b7280;
  --chat-avatar-bg: #e5e7eb;
  --chat-box-bg:
    radial-gradient(circle at top, color-mix(in srgb, var(--accent) 8%, transparent), transparent 28%),
    linear-gradient(180deg, rgba(255,255,255,0.35), rgba(255,255,255,0)),
    linear-gradient(90deg, rgba(17,17,17,0.03) 1px, transparent 1px),
    linear-gradient(rgba(17,17,17,0.03) 1px, transparent 1px),
    #f7f7f7;
  --chat-bubble-other: #ffffff;
  --chat-bubble-other-text: #111111;
  --chat-day-bg: rgba(255, 255, 255, 0.94);
  --chat-day-border: rgba(17, 24, 39, 0.08);
  --chat-day-text: #4b5563;
  --sheet-bg: #ffffff;
  --sheet-panel: #f3f4f6;
  --sheet-panel-2: #ffffff;
  --sheet-text-strong: #111111;
  --sheet-text-muted: #6b7280;
  --sheet-header-text: #111111;
  --sheet-scrim: rgba(17, 24, 39, 0.28);
  --sheet-grab: rgba(17, 24, 39, 0.14);
  --sheet-divider: rgba(17, 24, 39, 0.08);
  --sheet-shadow: 0 24px 48px rgba(15, 23, 42, 0.16);
}

html.dark {
  --bg: #1a1a1e;
  --bg-strong: #1a1a1e;
  --surface: rgba(34, 35, 39, 0.94);
  --surface-solid: #222327;
  --surface-2: #222327;
  --text: #f5f5f5;
  --muted: #9a9a9a;
  --line: rgba(233, 237, 239, 0.08);
  --shadow: 0 18px 40px rgba(0, 0, 0, 0.35);
  --chat-panel: #1a1a1e;
  --chat-panel-2: #222327;
  --chat-header-bg: #1a1a1e;
  --chat-header-text: #ffffff;
  --chat-subtitle: rgba(255,255,255,0.7);
  --chat-avatar-bg: #314149;
  --chat-box-bg:
    radial-gradient(circle at top, rgba(21, 42, 49, 0.22), transparent 28%),
    linear-gradient(180deg, rgba(10,20,25,0.18), rgba(10,20,25,0)),
    linear-gradient(90deg, rgba(77,101,110,0.08) 1px, transparent 1px),
    linear-gradient(rgba(77,101,110,0.08) 1px, transparent 1px),
    #1a1a1e;
  --chat-bubble-other: #202c33;
  --chat-bubble-other-text: #e9edef;
  --chat-day-bg: rgba(17, 27, 33, 0.92);
  --chat-day-border: rgba(255,255,255,0.06);
  --chat-day-text: #c7d1d7;
  --sheet-bg: #111111;
  --sheet-panel: #1c1c1f;
  --sheet-panel-2: #222327;
  --sheet-text-strong: #ffffff;
  --sheet-text-muted: #a5a5a8;
  --sheet-header-text: #ffffff;
  --sheet-scrim: rgba(0,0,0,0.4);
  --sheet-grab: rgba(255,255,255,0.18);
  --sheet-divider: rgba(255,255,255,0.06);
  --sheet-shadow: 0 24px 48px rgba(0,0,0,0.38);
}

html.dark .hero-card {
  background: linear-gradient(135deg, #1a1a1e, #222327);
  color: #f5f5f5;
}

html.dark .hero-card p {
  color: rgba(247, 248, 248, 0.82);
}

html.dark .hero-badge {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.08);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", "SF Pro Display", "Helvetica Neue", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(254, 133, 18, 0.08), transparent 32%),
    radial-gradient(circle at bottom right, rgba(254, 133, 18, 0.06), transparent 34%),
    var(--bg);
  color: var(--text);
  touch-action: manipulation;
}

body { overflow: hidden; }
button, input, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }

.mobile-shell {
  min-height: 100vh;
  height: 100dvh;
  display: block;
  padding-bottom: calc(var(--nav-h) + var(--safe-bottom) + 8px);
}

.home-news-layout {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface-solid);
}

.app-section-layout {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: var(--surface-solid);
}

.home-news-screen {
  position: sticky;
  top: 0;
  z-index: 6;
  padding: calc(4px + env(safe-area-inset-top, 0px)) 12px 0;
  margin: 0;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}

.section-screen {
  position: sticky;
  top: 0;
  z-index: 6;
  background: var(--surface-solid);
  border-bottom: 1px solid var(--line);
}

.home-news-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 0 16px calc(var(--nav-h) + var(--safe-bottom) + 18px);
  background: var(--surface-solid);
}

.app-section-body {
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  padding: 10px 16px calc(var(--nav-h) + var(--safe-bottom) + 18px);
  background: var(--surface-solid);
}

.app-section-body--planner {
  padding: 0;
  min-height: 0;
  overflow: hidden;
}
.hero-card h2,
.info-card h3,
.section-head h3 { margin: 0; }

.eyebrow {
  display: inline-block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.app-main {
  position: relative;
  height: calc(100dvh - var(--nav-h) - var(--safe-bottom));
  overflow: clip;
}

.tab-panel {
  display: none;
  position: relative;
  inset: auto;
  height: 100%;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: contain;
  touch-action: pan-y;
  padding: 14px 16px 16px;
  opacity: 0;
  transform: translateY(18px);
  pointer-events: none;
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.tab-panel.is-active {
  display: block;
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.tab-panel[data-tab-panel="chat"] {
  padding: 0;
}

.tab-panel[data-tab-panel="home"],
.tab-panel[data-tab-panel="kalender"],
.tab-panel[data-tab-panel="planer"],
.tab-panel[data-tab-panel="artikelabfrage"],
.tab-panel[data-tab-panel="einstellungen"] {
  padding: 0;
}

.tab-panel:not([data-tab-panel="chat"]) {
  background: var(--surface-solid);
}

.hero-card, .info-card, .chat-app, .bottom-nav, .quick-app, .chat-drawer,
.ghost-btn, .chat-compose, .chat-app__topbar, .embedded-frame,
#context-menu, #chatlist-context-menu, .reaction-menu, .dialog-box, .toast {
  backdrop-filter: blur(18px);
}

.hero-card {
  background: linear-gradient(135deg, #fc661a, #ff9348);
  color: #f4fbf7;
  border-radius: 30px;
  padding: 22px 20px;
  box-shadow: var(--shadow);
}

.hero-card p {
  margin: 10px 0 0;
  color: rgba(244, 251, 247, 0.88);
}

.hero-badges {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 13px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 22px 2px 12px;
}

.section-head a {
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.quick-apps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.quick-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  min-height: 104px;
  padding: 14px 8px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  text-align: center;
}

.quick-app__icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 16px;
  background: linear-gradient(145deg, rgba(254, 133, 18, 0.12), rgba(254, 133, 18, 0.2));
}

.quick-app__icon img {
  width: 26px;
  height: 26px;
  object-fit: contain;
}

.quick-app__label {
  font-size: 12px;
  line-height: 1.3;
}

.home-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

html.dark .info-card {
  background: rgba(34, 35, 39, 0.94);
  border-color: rgba(255, 255, 255, 0.06);
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.news-list .preview {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  white-space: normal;
  overflow: hidden;
  line-height: 1.42;
  max-height: 2.84em;
  margin-top: 6px;
  font-size: 15px;
  color: var(--muted);
}

.news-avatar {
  text-transform: uppercase;
  color: #fff;
}

.news-avatar svg {
  width: 22px;
  height: 22px;
}

.news-list li {
  display: block;
  position: relative;
  overflow: hidden;
  margin: 0 0 12px;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--line) 92%, transparent);
  background: var(--surface);
  transition: box-shadow 0.2s ease, border-color 0.2s ease, background-color 0.2s ease;
}

.news-list li::after {
  display: none;
}

.news-item-card {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 12px;
  align-items: start;
  padding: 16px 16px;
  border-radius: 22px;
  background: var(--surface);
  border: 1px solid color-mix(in srgb, var(--line) 88%, transparent);
  transform: translateX(var(--news-swipe-offset, 0));
  transition: transform 0.22s ease, background-color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

.news-item-card .info {
  min-width: 0;
  align-self: center;
}

.news-swipe-action {
  position: absolute;
  top: 50%;
  right: 28px;
  z-index: 1;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease;
}

.news-swipe-action svg {
  width: 20px;
  height: 20px;
}

.news-swipe-action[data-news-toggle-state="unread"] {
  background: linear-gradient(135deg, color-mix(in srgb, var(--news-item-color, var(--accent)) 84%, white), var(--news-item-color, var(--accent)));
  color: #fff;
  box-shadow: 0 12px 24px color-mix(in srgb, var(--news-item-color, var(--accent)) 24%, transparent);
}

.news-swipe-action[data-news-toggle-state="read"] {
  background: rgba(255, 255, 255, 0.94);
  color: var(--text);
}

.news-list li.is-swipe-open .news-item-card {
  transform: translateX(-102px);
}

.news-list li.is-swipe-open .news-swipe-action {
  opacity: 1;
  pointer-events: auto;
}

.news-list li.unread {
  border-color: color-mix(in srgb, var(--news-item-color, var(--accent)) 42%, white);
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--news-item-color, var(--accent)) 26%, transparent),
    0 10px 24px color-mix(in srgb, var(--news-item-color, var(--accent)) 18%, transparent),
    0 0 18px color-mix(in srgb, var(--news-item-color, var(--accent)) 24%, transparent);
  animation: newsUnreadGlow 2.3s ease-in-out infinite;
}

.news-list li.unread .news-item-card {
  box-shadow:
    0 0 0 1px color-mix(in srgb, var(--news-item-color, var(--accent)) 22%, transparent),
    0 14px 28px color-mix(in srgb, var(--news-item-color, var(--accent)) 16%, transparent);
}

.news-list li.unread .name {
  font-weight: 900;
}

.news-list li.unread .preview,
.news-list li.unread .time {
  color: color-mix(in srgb, var(--text) 82%, var(--news-item-color, var(--accent)));
}

@keyframes newsUnreadGlow {
  0%, 100% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--news-item-color, var(--accent)) 24%, transparent),
      0 10px 22px color-mix(in srgb, var(--news-item-color, var(--accent)) 14%, transparent),
      0 0 10px color-mix(in srgb, var(--news-item-color, var(--accent)) 12%, transparent);
  }
  50% {
    box-shadow:
      0 0 0 1px color-mix(in srgb, var(--news-item-color, var(--accent)) 34%, transparent),
      0 14px 30px color-mix(in srgb, var(--news-item-color, var(--accent)) 22%, transparent),
      0 0 18px color-mix(in srgb, var(--news-item-color, var(--accent)) 22%, transparent);
  }
}

.news-list .top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
}

.news-list .name {
  flex: 1 1 auto;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 800;
}

.news-list .time {
  flex: 0 0 auto;
  white-space: nowrap;
  text-align: right;
  font-size: 11px;
  color: var(--muted);
}

.news-detail-sheet .contact-info-sheet__body {
  padding-top: 16px;
}

.news-detail-card {
  display: grid;
  gap: 16px;
}

.news-detail-card__hero {
  display: flex;
  align-items: center;
  gap: 14px;
}

.news-detail-card__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.news-detail-card__icon svg {
  width: 26px;
  height: 26px;
}

.news-detail-card__eyebrow {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.news-detail-card__title {
  margin: 4px 0 0;
  font-size: 28px;
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.news-detail-card__time {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.news-detail-card__text {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  line-height: 1.6;
  white-space: pre-wrap;
}

.news-detail-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.news-detail-card__meta-grid {
  display: grid;
  gap: 10px;
}

.news-detail-meta {
  padding: 16px 18px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.news-detail-meta span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.news-detail-meta strong {
  display: block;
  margin-top: 6px;
  font-size: 15px;
}

.news-detail-readers-btn {
  width: 100%;
  margin-top: 10px;
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
  text-align: left;
}

.news-readers-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.news-reader-sections {
  display: grid;
  gap: 14px;
}

.news-readers-list[hidden] {
  display: none !important;
}

.news-reader-pill {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
}

.news-reader-pill--empty {
  opacity: 0.7;
}

.news-reader-pill--unread {
  opacity: 0.45;
  background: color-mix(in srgb, var(--surface-2) 78%, var(--bg));
  color: var(--muted);
}

.news-compose-form {
  display: grid;
  gap: 14px;
}

.news-compose-field {
  display: grid;
  gap: 8px;
}

.news-compose-field span {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.news-compose-field input,
.news-compose-field select,
.news-compose-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  color: var(--text);
  padding: 14px 16px;
  outline: 0;
}

.news-compose-field textarea {
  resize: vertical;
  min-height: 220px;
}

.news-compose-field select {
  appearance: none;
}

.info-card {
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow);
}

.info-card p {
  color: var(--muted);
  margin: 10px 0 16px;
  line-height: 1.5;
}

.inline-action, .ghost-btn, .send-btn, .dialog-buttons button {
  appearance: none;
  border: 0;
  cursor: pointer;
}

.inline-action, .send-btn, .dialog-buttons .save-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: 0 12px 24px var(--accent-shadow);
}

.inline-action {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.chat-app {
  min-height: calc(100dvh - var(--nav-h) - var(--safe-bottom));
  height: calc(100dvh - var(--nav-h) - var(--safe-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  border-radius: 0;
  background: var(--bg-strong);
  border: 0;
  box-shadow: none;
  overflow: hidden;
}

html.dark .chat-app {
  background: #1a1a1e;
  border-color: rgba(255,255,255,0.06);
}

.chat-app__topbar {
  position: sticky;
  top: 0;
  z-index: 8;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: var(--chat-header-bg);
  border-bottom: 0;
  color: var(--chat-header-text);
}

.ghost-btn {
  padding: 10px 12px;
  border-radius: 14px;
  background: transparent;
  color: inherit;
  font-weight: 700;
}

.chat-app__partner-wrap {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.chat-app__avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--chat-avatar-bg);
  color: var(--chat-header-text);
  overflow: hidden;
  display: grid;
  place-items: center;
  font-weight: 700;
  flex: 0 0 auto;
}

.chat-app__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.chat-app__partner { min-width: 0; }
.chat-app__title {
  font-weight: 800;
  font-size: 16px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-app__subtitle {
  font-size: 12px;
  color: var(--chat-subtitle);
  margin-top: 2px;
}

.chat-app__subtitle.is-online {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chat-app__subtitle.is-online::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.18);
  flex: 0 0 auto;
}

.chat-app__menu-btn,
.chat-app__refresh-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
}

.chat-app__menu-btn svg,
.chat-app__refresh-btn svg {
  width: 22px;
  height: 22px;
}

.chat-app__actions {
  display: flex;
  align-items: center;
  gap: 2px;
}

.chat-app__icon-btn.is-disabled {
  opacity: 0.35;
}

.chat-app__icon-btn {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
}

.chat-app__icon-btn svg {
  width: 20px;
  height: 20px;
  pointer-events: none;
}

.chat-box-wrap { position: relative; min-height: 0; }

.chat-box {
  height: 100%;
  overflow-y: auto;
  padding: 18px 14px 22px;
  overscroll-behavior: contain;
  background: var(--chat-box-bg);
  background-size: auto, auto, 28px 28px, 28px 28px, auto;
}

.chat-empty-state {
  min-height: 100%;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--muted);
  padding: 24px;
}

.chat-compose {
  padding: 10px 12px calc(12px + var(--safe-bottom));
  border-top: 0;
  background: var(--chat-panel);
}

.chat-compose__row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
}

.send-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  display: grid;
  place-items: center;
}

.chat-input-wrap {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: end;
  gap: 10px;
  min-height: 48px;
  padding: 0 8px 0 16px;
  border-radius: 24px;
  background: var(--chat-panel-2);
  box-shadow: none;
}

#nachricht {
  min-height: 48px;
  max-height: 140px;
  resize: none;
  padding: 14px 0;
  border: 0;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

html.dark #nachricht {
  background: transparent;
}

.compose-icon-btn {
  width: 38px;
  height: 38px;
  margin-bottom: 5px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8696a0;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.compose-icon-btn svg,
.send-btn svg {
  width: 21px;
  height: 21px;
}

.send-btn {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  box-shadow: none;
}

.send-btn.is-recording {
  background: #b33737;
}

.send-icon {
  display: none;
}

.send-btn.is-send .send-icon--send,
.send-btn.is-mic .send-icon--mic {
  display: inline-flex;
}

.attach-preview {
  margin-bottom: 10px;
  padding: 10px 14px;
  border-radius: 16px;
  background: var(--surface-2);
  color: var(--muted);
}

.attach-preview .remove {
  float: right;
  color: var(--danger);
  cursor: pointer;
  font-weight: 700;
}

.chat-drawer {
  position: absolute;
  inset: 0;
  width: 100%;
  background: var(--chat-panel);
  box-shadow: none;
  transform: translateX(0);
  transition: opacity 0.18s ease;
  z-index: 3;
  display: grid;
  grid-template-rows: auto 1fr;
  border-top: 0;
}

.chat-drawer.is-open {
  opacity: 1;
  pointer-events: auto;
}

.chat-app.is-conversation-view .chat-drawer {
  opacity: 0;
  pointer-events: none;
}

.chat-app.is-list-view .chat-app__actions {
  visibility: hidden;
}

.chat-app.is-list-view .chat-app__topbar {
  display: none;
}

.chat-app.is-list-view .chat-box-wrap,
.chat-app.is-list-view .chat-compose {
  display: none;
}

.chat-app.is-conversation-view .chat-box-wrap,
.chat-app.is-conversation-view .chat-compose {
  display: block;
}

.chat-list-screen {
  padding: calc(4px + env(safe-area-inset-top, 0px)) 12px 0;
  background: var(--chat-panel);
}

.chat-list-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 44px;
  margin-bottom: 0;
}

.chat-list-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-list-topbar__plus {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
}

.chat-list-topbar__plus {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #ffffff;
  box-shadow: 0 10px 22px var(--accent-shadow-strong);
}

.chat-list-topbar__news-btn {
  text-decoration: none;
}

.chat-list-topbar__actions {
  display: flex;
  align-items: center;
  gap: 0;
  margin-left: auto;
  height: 36px;
}

.chat-list-header {
  padding-bottom: 6px;
}

.chat-list-title-row h2 {
  margin: 0;
  color: var(--text);
  font-size: 34px;
  font-weight: 800;
  letter-spacing: -0.04em;
}

.chat-search {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--chat-panel-2);
  color: var(--muted);
}

.chat-search svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.chat-search input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
}

.chat-search input::placeholder {
  color: var(--muted);
}

.chat-filter-row {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.chat-filter-row::-webkit-scrollbar {
  display: none;
}

.chat-filter-chip {
  border: 0;
  border-radius: 999px;
  padding: 8px 13px;
  background: var(--chat-panel-2);
  color: var(--muted);
  font-weight: 700;
  white-space: nowrap;
  font-size: 13px;
}

.chat-filter-chip.is-active {
  background: rgba(254, 133, 18, 0.18);
  color: #ffd9b3;
}

.chat-filter-chip--round {
  width: 33px;
  padding: 0;
}

.chat-drawer__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 16px 14px;
  border-bottom: 1px solid rgba(90, 57, 38, 0.08);
}

.chat-drawer__head h3 {
  margin: 0;
  font-size: 22px;
}

.chat-drawer__eyebrow {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.chat-drawer__body {
  overflow-y: auto;
  padding: 0 16px calc(var(--nav-h) + var(--safe-bottom) + 18px);
  background: var(--surface-solid);
}

.konv-liste {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0;
}

.konv-liste li {
  display: grid;
  grid-template-columns: 52px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 14px 0;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
}

.konv-liste li.unread {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-radius: 18px;
  padding-left: 10px;
  padding-right: 10px;
}

.konv-liste li.unread .name {
  color: var(--text);
  font-weight: 800;
}

.konv-liste li.unread .preview {
  color: color-mix(in srgb, var(--text) 82%, var(--muted));
  font-weight: 600;
}

.konv-liste li::after {
  content: "";
  position: absolute;
  left: 68px;
  right: 0;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.konv-liste img,
.avatar-fallback,
.avatar-group {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 700;
  grid-row: 1 / span 2;
}

.konv-liste .info {
  min-width: 0;
}

.konv-liste .top-row {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.konv-liste .name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.konv-liste .time,
.konv-liste .preview {
  color: var(--muted);
  font-size: 12px;
}

.konv-liste .preview {
  margin-top: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.konv-liste li:last-child::after {
  display: none;
}

.konv-liste .badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #1fa855;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  box-shadow: 0 10px 22px rgba(220, 38, 38, 0.22);
}

.konv-liste li.unread::before {
  content: "";
  position: absolute;
  left: -2px;
  top: 50%;
  width: 8px;
  height: 8px;
  margin-top: -4px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
}

.konv-empty {
  padding: 18px 12px;
  color: #8f8f8f;
}

.chat-message {
  display: flex;
  margin: 0 0 8px;
  align-items: flex-end;
  gap: 8px;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.chat-message.du {
  justify-content: flex-end;
}

.chat-message .avatar,
.chat-message .avatar-fallback {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.bubble {
  position: relative;
  max-width: min(78vw, 420px);
  padding: 12px 16px 28px;
  border-radius: 18px;
  background: var(--chat-bubble-other);
  box-shadow: none;
  word-break: break-word;
  color: var(--chat-bubble-other-text);
}

.chat-message.du .bubble {
  background: var(--bubble-own);
  color: #e9edef;
  border-bottom-right-radius: 8px;
  -webkit-touch-callout: none;
  -webkit-user-select: none;
  user-select: none;
}

html.dark .chat-message.du .bubble {
  background: var(--bubble-own);
  color: #e9edef;
}

.chat-message.anderer .bubble {
  border-bottom-left-radius: 8px;
}

body.chat-context-open .chat-box > * {
  filter: blur(8px);
  opacity: 0.42;
  transition: filter 0.18s ease, opacity 0.18s ease;
}

body.chat-context-open .chat-box > .chat-message.is-context-focus {
  filter: none;
  opacity: 1;
  position: relative;
  z-index: 261;
}

body.chat-context-open .chat-box > .chat-message.is-context-focus .bubble {
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.chat-day-divider {
  margin: 16px auto 10px;
  width: fit-content;
  padding: 7px 14px;
  border-radius: 999px;
  background: var(--chat-day-bg);
  border: 1px solid var(--chat-day-border);
  color: var(--chat-day-text);
  font-size: 12px;
}

.msg-text strong { font-weight: 800; }
.msg-text em { font-style: italic; }
.msg-text a.chat-link { color: #0d63ff; }
.msg-text a.chat-email { color: #d65315; }

.absender-name {
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 800;
}

.msg-text,
.msg-text * {
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}

.bubble-time {
  position: absolute;
  right: 12px;
  bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: rgba(233, 237, 239, 0.72);
}

html.dark .bubble-time {
  color: rgba(233, 237, 239, 0.72);
}

.checkmarks,
.checkmarks.gelesen {
  color: #25d366;
}

.attachment {
  margin-top: 10px;
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border-radius: 16px;
  background: rgba(0, 0, 0, 0.05);
}

html.dark .attachment {
  background: rgba(255, 255, 255, 0.06);
}

.att-thumb img {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  object-fit: cover;
}

.att-meta {
  flex: 1;
  min-width: 0;
}

.att-audio {
  max-width: 100%;
}

.att-audio audio {
  width: min(240px, 100%);
  display: block;
}

.voice-note {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: min(72vw, 310px);
  padding: 4px 0 2px;
}

.voice-note__play {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.18);
  color: #fff;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  cursor: pointer;
}

.chat-message.eigen .voice-note__play {
  background: rgba(255, 255, 255, 0.22);
}

.voice-note__play-icon {
  width: 22px;
  height: 22px;
  display: none;
}

.voice-note__play-icon--play {
  display: block;
}

.voice-note.is-playing .voice-note__play-icon--play {
  display: none;
}

.voice-note.is-playing .voice-note__play-icon--pause {
  display: block;
}

.voice-note__body {
  flex: 1;
  min-width: 0;
}

.voice-note__wave {
  height: 26px;
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 4px;
}

.voice-note__wave span {
  flex: 1 1 auto;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.38);
  min-width: 3px;
  transform-origin: center;
}

.chat-message.eigen .voice-note__wave span {
  background: rgba(255, 255, 255, 0.65);
}

.voice-note__wave span:nth-child(1),
.voice-note__wave span:nth-child(8) { height: 8px; }
.voice-note__wave span:nth-child(2),
.voice-note__wave span:nth-child(12) { height: 14px; }
.voice-note__wave span:nth-child(3),
.voice-note__wave span:nth-child(10) { height: 18px; }
.voice-note__wave span:nth-child(4),
.voice-note__wave span:nth-child(14) { height: 11px; }
.voice-note__wave span:nth-child(5),
.voice-note__wave span:nth-child(11) { height: 20px; }
.voice-note__wave span:nth-child(6),
.voice-note__wave span:nth-child(9) { height: 13px; }
.voice-note__wave span:nth-child(7),
.voice-note__wave span:nth-child(13) { height: 17px; }

.voice-note__meta-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.76);
}

.voice-note__time {
  font-weight: 700;
  letter-spacing: 0.02em;
}

.voice-note__audio {
  display: none;
}

.voice-note__mic {
  width: 20px;
  height: 20px;
  color: rgba(255, 255, 255, 0.72);
  flex: 0 0 auto;
}

.voice-note__mic svg {
  width: 100%;
  height: 100%;
}

.voice-note.is-playing .voice-note__wave span {
  animation: voice-wave 1.05s ease-in-out infinite;
}

.voice-note.is-playing .voice-note__wave span:nth-child(2n) {
  animation-duration: 0.9s;
}

.voice-note.is-playing .voice-note__wave span:nth-child(3n) {
  animation-duration: 1.2s;
}

.voice-note.is-playing .voice-note__wave span:nth-child(4n) {
  animation-delay: -0.25s;
}

@keyframes voice-wave {
  0%, 100% {
    transform: scaleY(0.72);
    opacity: 0.5;
  }
  50% {
    transform: scaleY(1.32);
    opacity: 1;
  }
}

.att-title,
.att-sub {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.att-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.att-dl {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(254, 133, 18, 0.14);
}

.reactions {
  position: absolute;
  bottom: -12px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 7px;
  border-radius: 999px;
  background: var(--surface-solid);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.chat-message.du .reactions {
  right: 10px;
}

.chat-message.anderer .reactions {
  left: 10px;
}

.chat-message.has-reactions {
  margin-bottom: 16px;
}

.reaction-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 14px;
  cursor: pointer;
}

.reaction-count {
  font-size: 11px;
  color: var(--muted);
}

.new-chat-sheet {
  position: absolute;
  inset: 0;
  z-index: 15;
  background: var(--sheet-bg);
  color: var(--sheet-text-strong);
  transform: translateX(100%);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  display: grid;
  grid-template-rows: auto auto 1fr;
}

.new-chat-sheet.is-open {
  transform: translateX(0);
  opacity: 1;
}

.new-chat-sheet__header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 8px;
}

.new-chat-sheet__title {
  font-size: 22px;
  font-weight: 800;
}

.new-chat-sheet__subtitle {
  font-size: 12px;
  color: var(--sheet-text-muted);
  margin-top: 2px;
}

.new-chat-sheet__search {
  padding: 0 14px 10px;
}

.new-chat-sheet__body {
  overflow-y: auto;
  padding: 0 10px 12px;
}

.contact-info-sheet {
  position: fixed;
  inset: 0;
  z-index: 260;
  background: var(--sheet-bg);
  color: var(--sheet-text-strong);
  transform: translateX(26px);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), opacity 0.24s ease;
  display: grid;
  grid-template-rows: auto 1fr;
}

.contact-info-sheet[hidden] {
  display: none !important;
}

.contact-info-sheet.is-open {
  transform: translateX(0);
  opacity: 1;
}

.contact-info-sheet__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 10px;
  background: var(--sheet-bg);
  color: var(--sheet-header-text);
}

.contact-info-sheet__spacer {
  width: 42px;
  height: 42px;
}

.contact-info-sheet__body {
  overflow-y: auto;
  padding: 10px 14px 18px;
}

.contact-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 10px 12px 20px;
  animation: contact-fade-up 0.34s cubic-bezier(.22,1,.36,1);
}

.contact-profile__avatar {
  width: 108px;
  height: 108px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--sheet-panel-2);
  display: grid;
  place-items: center;
  color: var(--sheet-text-strong);
  font-size: 34px;
  font-weight: 800;
  margin-bottom: 14px;
}

.contact-profile__avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.contact-profile__name {
  font-size: 20px;
  font-weight: 800;
  color: var(--sheet-text-strong);
}

.contact-profile__meta {
  margin-top: 6px;
  color: var(--sheet-text-muted);
  font-size: 14px;
}

.contact-quick-actions {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 14px;
  animation: contact-fade-up 0.4s cubic-bezier(.22,1,.36,1);
}

.contact-quick-action {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 88px;
  border: 0;
  border-radius: 16px;
  background: var(--sheet-panel);
  color: var(--sheet-text-strong);
}

.contact-quick-action__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 20px var(--accent-shadow);
}

.contact-quick-action__icon svg {
  width: 20px;
  height: 20px;
}

.contact-info-card {
  border-radius: 18px;
  background: var(--sheet-panel);
  overflow: hidden;
  animation: contact-fade-up 0.46s cubic-bezier(.22,1,.36,1);
}

.contact-info-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 16px;
  border-bottom: 1px solid var(--sheet-divider);
}

.contact-info-row span {
  font-size: 14px;
  color: var(--sheet-text-muted);
  flex: 0 0 40%;
}

.contact-info-row strong {
  font-size: 16px;
  color: var(--sheet-text-strong);
  text-align: right;
}

.contact-info-empty {
  color: var(--sheet-text-muted);
  padding: 18px 16px;
}

.contact-info-sheet--mini {
  background: transparent;
  transform: none;
  opacity: 0;
  pointer-events: none;
  display: block;
  transition: opacity 0.2s ease;
}

.contact-info-sheet--mini.is-open {
  opacity: 1;
  pointer-events: auto;
}

.contact-info-sheet__scrim {
  position: absolute;
  inset: 0;
  background: var(--sheet-scrim);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.call-options-card {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  border-radius: 24px;
  background: var(--sheet-panel);
  color: var(--sheet-text-strong);
  box-shadow: var(--sheet-shadow);
  overflow: hidden;
  transform: translateY(24px) scale(0.98);
  opacity: 0;
  transition: transform 0.28s cubic-bezier(.22,1,.36,1), opacity 0.22s ease;
}

.contact-info-sheet--mini.is-open .contact-info-sheet__scrim {
  opacity: 1;
}

.contact-info-sheet--mini.is-open .call-options-card {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.call-options-card__grab {
  width: 42px;
  height: 4px;
  border-radius: 999px;
  background: var(--sheet-grab);
  margin: 10px auto 6px;
}

.call-options-card__head {
  padding: 4px 18px 10px;
  text-align: center;
}

.call-options-card__body {
  padding: 4px 14px 14px;
}

.call-option-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 6px;
  border: 0;
  border-bottom: 1px solid var(--sheet-divider);
  background: transparent;
  color: var(--sheet-text-strong);
  text-align: left;
}

.call-option-btn:last-child {
  border-bottom: 0;
}

.call-option-btn__icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: grid;
  place-items: center;
  color: #fff;
  flex: 0 0 auto;
}

.call-option-btn__icon svg {
  width: 20px;
  height: 20px;
}

.call-option-btn__meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.call-option-btn__meta span {
  font-size: 12px;
  color: var(--sheet-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.call-option-btn__meta strong {
  font-size: 18px;
  color: var(--sheet-text-strong);
}

@keyframes contact-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

#context-menu,
#chatlist-context-menu,
.reaction-menu {
  position: fixed;
  display: none;
  z-index: 260;
  min-width: 200px;
  padding: 6px;
  border-radius: 18px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

#context-menu-backdrop {
  position: fixed;
  inset: 0;
  z-index: 259;
  background: rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(8px);
}

#context-menu div,
#chatlist-context-menu div {
  padding: 12px 14px;
  border-radius: 12px;
  cursor: pointer;
}

#context-menu div:hover,
#chatlist-context-menu div:hover {
  background: var(--surface-2);
}

#context-menu {
  min-width: 230px;
  padding: 8px;
  border-radius: 18px;
  background: rgba(36, 36, 38, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.32);
}

#context-menu.is-arming {
  pointer-events: none;
}

#context-menu .context-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #f2f4f5;
  font-size: 16px;
  line-height: 1.2;
}

#context-menu .context-action + .context-action {
  margin-top: 2px;
}

#context-menu .context-action svg {
  width: 18px;
  height: 18px;
  opacity: 0.82;
  flex: 0 0 auto;
}

#context-menu .context-action.danger {
  color: #ff6b6b;
}

.context-reactions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(36, 36, 38, 0.96);
  border: 1px solid rgba(255,255,255,0.06);
  box-shadow: 0 12px 28px rgba(0,0,0,0.28);
}

.context-reaction-btn,
.context-reaction-more {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  font-size: 22px;
}

.context-reaction-more {
  background: rgba(255,255,255,0.12);
  font-size: 20px;
}

.reaction-menu[hidden] {
  display: none !important;
}

.reaction-menu {
  display: block;
}

.rm-top {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}

.rm-tab,
.rm-emoji {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
}

.rm-emoji-strip {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.rm-list {
  max-height: 240px;
  overflow: auto;
  margin-top: 8px;
}

.rm-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
}

.rm-avatar,
.rm-avatar-fallback {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  display: grid;
  place-items: center;
  background: var(--surface-2);
}

.rm-name {
  flex: 1;
}

.rm-hint,
.rm-myhint {
  color: var(--muted);
  font-size: 12px;
}

.dialog-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(16, 10, 7, 0.48);
  z-index: 320;
}

.dialog-box {
  width: min(100%, 460px);
  padding: 22px;
  border-radius: 24px;
  background: var(--surface-solid);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.dialog-box h3 {
  margin: 0 0 14px;
}

.dialog-box textarea {
  width: 100%;
  min-height: 140px;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--bg-strong);
  color: var(--text);
  padding: 14px;
  resize: vertical;
}

.dialog-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 14px;
}

.dialog-buttons button {
  padding: 12px 16px;
  border-radius: 14px;
  font-weight: 700;
}

.dialog-buttons .cancel-btn {
  background: var(--surface-2);
  color: var(--text);
}

.dialog-buttons .delete-btn {
  background: var(--danger);
  color: #fff;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 18px);
  transform: translateX(-50%);
  padding: 12px 16px;
  border-radius: 999px;
  background: rgba(34, 35, 39, 0.96);
  color: #fff;
  z-index: 140;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.toast.show {
  opacity: 1;
}

.tab-panel--iframe {
  padding: 0;
  min-height: calc(100dvh - var(--nav-h) - var(--safe-bottom) - 110px);
}

.embedded-frame {
  width: 100%;
  height: calc(100dvh - var(--nav-h) - var(--safe-bottom) - 126px);
  border: 0;
  background: var(--surface-solid);
  border-radius: 24px;
}

.embedded-frame--planner {
  border-radius: 0;
  background: transparent;
  height: 100%;
  overflow: hidden;
}

.tab-panel[data-tab-panel="planer"] .app-section-layout {
  min-height: calc(100dvh - var(--nav-h) - var(--safe-bottom));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}

.tab-panel[data-tab-panel="planer"] .tab-panel--iframe {
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.article-screen {
  display: grid;
  gap: 12px;
}

.article-searchbar {
  display: flex;
  gap: 8px;
  align-items: center;
  min-height: 52px;
  padding: 0 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.article-searchbar input {
  flex: 1;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  font-size: 16px;
}

.article-meta {
  color: var(--muted);
  font-size: 13px;
  padding: 0 2px;
}

.article-empty {
  padding: 18px;
  border-radius: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--muted);
}

.article-results {
  display: grid;
  gap: 12px;
}

.article-card {
  padding: 0;
  border-radius: 22px;
  background: var(--surface-solid);
  border: 2px solid rgba(17, 24, 39, 0.65);
  box-shadow: none;
  overflow: hidden;
}

.article-card__title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  color: var(--accent);
}

.article-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid var(--line);
}

.article-card__price-wrap {
  text-align: right;
  white-space: nowrap;
}

.article-card__price-main {
  font-weight: 800;
  color: var(--text);
}

.article-card__price-old {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: line-through;
}

.article-card__section {
  padding: 12px 14px;
  border-top: 1px solid var(--line);
}

.article-card__section:first-of-type {
  border-top: 0;
}

.article-card__section--topstats,
.article-card__section--duo,
.article-card__section--flags {
  display: grid;
  gap: 12px;
}

.article-card__section--topstats {
  grid-template-columns: 1.15fr 1fr 1fr;
}

.article-card__section--duo {
  grid-template-columns: 1fr 1fr;
}

.article-card__section--flags {
  grid-template-columns: repeat(3, 1fr);
  text-align: center;
}

.article-stat,
.article-flag {
  min-width: 0;
}

.article-stat span,
.article-flag span,
.article-line span,
.article-sales-grid span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}

.article-stat strong,
.article-flag strong,
.article-line strong,
.article-sales-grid strong {
  display: block;
  margin-top: 4px;
  font-size: 15px;
  font-weight: 800;
  color: var(--text);
}

.article-stat strong small {
  font-size: 0.95em;
  color: var(--muted);
}

.article-stat--center,
.article-stat--right,
.article-flag {
  text-align: center;
}

.article-line strong {
  margin-top: 2px;
}

.article-section-title {
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
  margin-bottom: 10px;
}

.article-sales-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px 8px;
  text-align: center;
}

.article-sales-grid--years {
  grid-template-columns: repeat(5, 1fr);
  margin-top: 12px;
}

.article-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  font-weight: 800;
}

html.dark .article-card {
  border-color: rgba(255, 255, 255, 0.24);
}

.article-scan-box {
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  background: #000;
  min-height: 320px;
  box-shadow: var(--shadow);
}

.article-scan-video {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

.article-scan-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,0.18), rgba(0,0,0,0.28));
}

.article-scan-frame {
  width: min(72vw, 260px);
  height: min(42vw, 160px);
  border: 3px solid var(--accent-strong);
  border-radius: 18px;
  box-shadow: 0 0 0 999px rgba(0,0,0,0.2);
}

.article-scan-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 14px;
}

.article-scan-close {
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.12);
}

.bottom-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 4px;
  padding: 2px 10px calc(2px + var(--safe-bottom));
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px rgba(0, 0, 0, 0.08);
}

.bottom-nav__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 34px;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

.bottom-nav__item.is-active {
  color: var(--accent);
}

body.chat-tab-active .bottom-nav {
  transform: translateY(calc(100% + var(--safe-bottom) + 10px));
  opacity: 0;
  pointer-events: none;
}

body.chat-tab-active {
  background: var(--chat-panel);
}

body.chat-tab-active .app-main {
  height: var(--vvh);
  background: var(--chat-panel);
}

body.chat-tab-active .tab-panel[data-tab-panel="chat"] {
  position: fixed;
  padding: 0;
  overflow: hidden;
  background: var(--chat-panel);
  inset: 0;
  z-index: 190;
}

body.chat-tab-active .mobile-shell {
  padding-bottom: 0;
}

body.chat-tab-active .chat-app {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  min-height: var(--vvh);
  height: var(--vvh);
  border-radius: 0;
  border: 0;
  box-shadow: none;
  z-index: 200;
  padding-top: 0;
}

body.chat-tab-active .chat-app__topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 205;
}

body.chat-tab-active .chat-box-wrap {
  position: fixed;
  top: var(--chat-header-h);
  left: 0;
  right: 0;
  bottom: var(--chat-compose-h);
  min-height: 0;
}

body.chat-tab-active .chat-box {
  height: 100%;
  padding-bottom: 18px;
}

body.chat-tab-active .chat-compose {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 205;
  padding-bottom: calc(12px + var(--safe-bottom));
}

.chat-app.animate-to-conversation .chat-drawer {
  animation: list-to-chat 0.28s cubic-bezier(.22,1,.36,1) forwards;
}

.chat-app.animate-to-conversation .chat-box-wrap,
.chat-app.animate-to-conversation .chat-compose,
.chat-app.animate-to-conversation .chat-app__topbar {
  animation: chat-in 0.28s cubic-bezier(.22,1,.36,1) forwards;
}

.chat-app.animate-to-list .chat-drawer {
  animation: list-back-in 0.28s cubic-bezier(.22,1,.36,1) forwards;
}

.chat-app.animate-to-list .chat-box-wrap,
.chat-app.animate-to-list .chat-compose,
.chat-app.animate-to-list .chat-app__topbar {
  animation: chat-to-list 0.28s cubic-bezier(.22,1,.36,1) forwards;
}

@keyframes list-to-chat {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(-18%); opacity: 0; }
}

@keyframes chat-in {
  from { transform: translateX(18%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes list-back-in {
  from { transform: translateX(-18%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

@keyframes chat-to-list {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(18%); opacity: 0; }
}

.bottom-nav__icon {
  width: 19px;
  height: 19px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 19px;
}

.bottom-nav__icon svg {
  width: 100%;
  height: 100%;
  display: block;
}

.bottom-nav__label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  text-align: center;
  white-space: nowrap;
}

.bottom-nav__badge {
  position: absolute;
  top: 1px;
  right: 16px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 8px 18px rgba(239, 68, 68, 0.28);
}

.bottom-nav__badge[hidden] {
  display: none !important;
}

.settings-screen {
  min-height: 100%;
  padding: 0;
  position: relative;
}

.settings-stack {
  position: relative;
  min-height: 100%;
}

.settings-page {
  display: none;
  min-height: 100%;
  animation: settings-page-in 0.2s ease;
}

.settings-page.is-active {
  display: block;
}

.settings-page--embed.is-active {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: calc(100dvh - var(--nav-h) - var(--safe-bottom) - 20px);
  margin: -10px -16px calc(-1 * (var(--nav-h) + var(--safe-bottom) + 18px));
  position: relative;
}

.settings-page--embed .settings-subpage-head {
  padding: 0 16px;
  margin: 2px 0 10px;
}

.settings-profile-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 8px 18px;
}

.settings-profile-card__avatar {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 34px;
  font-weight: 800;
  box-shadow: 0 16px 28px var(--accent-shadow-heavy);
}

.settings-profile-card__name {
  font-size: 30px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: var(--text);
}

.settings-profile-card__meta {
  font-size: 14px;
  color: var(--muted);
}

.settings-section-title {
  margin: 6px 2px 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.settings-menu + .settings-section-title {
  margin-top: 18px;
}

.settings-hero h2 {
  margin: 6px 0 8px;
  font-size: 32px;
  letter-spacing: -0.04em;
}

.settings-hero p {
  margin: 0;
  color: var(--muted);
}

.settings-menu {
  display: grid;
  gap: 10px;
}

.settings-menu__item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
}

.settings-menu__icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--accent-soft);
  color: var(--accent);
}

.settings-menu__item--danger {
  border-color: color-mix(in srgb, #d94841 18%, var(--line));
}

.settings-menu__icon--danger {
  background: color-mix(in srgb, #d94841 12%, transparent);
  color: #d94841;
}

.settings-menu__icon svg,
.settings-menu__chevron svg {
  width: 20px;
  height: 20px;
}

.settings-menu__content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.settings-menu__content > span {
  font-weight: 800;
}

.settings-menu__content small {
  color: var(--muted);
}

.settings-menu__chevron {
  color: var(--muted);
}

.settings-subpage-head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  margin: 2px 0 14px;
}

.settings-subpage-title {
  font-size: 20px;
  font-weight: 800;
  text-align: center;
  color: var(--text);
}

.settings-back-btn {
  color: var(--text);
}

.settings-subpage-head::after {
  content: "";
  width: 42px;
  height: 42px;
}

.settings-panel {
  display: none;
  margin-top: 14px;
}

.settings-panel.is-active {
  display: block;
}

.settings-card {
  padding: 20px;
  border-radius: 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.settings-embed-shell {
  min-height: 0;
  height: 100%;
}

.settings-embed-frame {
  height: 100%;
  min-height: calc(100dvh - var(--nav-h) - var(--safe-bottom) - 154px);
  border-radius: 22px;
  overflow: hidden;
}

.settings-embed-frame--full {
  min-height: calc(100dvh - var(--nav-h) - var(--safe-bottom));
  border-radius: 0;
  background: transparent;
}

.settings-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.settings-card__head h3 {
  margin: 4px 0 0;
}

.settings-status {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
}

.settings-toggle-list {
  display: grid;
  gap: 12px;
}

.settings-toggle {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
}

.settings-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.settings-toggle__copy strong,
.settings-toggle__copy small {
  display: block;
}

.settings-toggle__copy small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.settings-toggle__ui {
  width: 50px;
  height: 30px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  position: relative;
  transition: background .18s ease;
}

.settings-toggle__ui::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform .18s ease;
}

.settings-toggle input:checked + .settings-toggle__ui {
  background: color-mix(in srgb, var(--accent) 72%, white);
}

.settings-toggle input:checked + .settings-toggle__ui::after {
  transform: translateX(20px);
}

.settings-toggle input:disabled + .settings-toggle__ui {
  opacity: .45;
}

.settings-note {
  margin-top: 14px;
  color: var(--muted);
  line-height: 1.5;
  font-size: 13px;
}

.settings-inline-actions {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.settings-secondary-btn {
  border: 0;
  border-radius: 14px;
  padding: 12px 14px;
  background: var(--surface-2);
  color: var(--text);
  font-weight: 800;
}

.settings-secondary-btn:disabled {
  opacity: .5;
}

.theme-choice-grid {
  display: grid;
  gap: 12px;
}

.theme-choice {
  display: grid;
  grid-template-columns: 62px 1fr;
  grid-template-areas:
    "preview title"
    "preview text";
  column-gap: 14px;
  row-gap: 4px;
  width: 100%;
  padding: 16px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: var(--bg-strong);
  color: var(--text);
  text-align: left;
}

.theme-choice strong {
  grid-area: title;
}

.theme-choice small {
  grid-area: text;
  color: var(--muted);
}

.theme-choice.is-selected {
  border-color: color-mix(in srgb, var(--accent) 55%, transparent);
  box-shadow: 0 14px 26px color-mix(in srgb, var(--accent) 14%, transparent);
}

.theme-choice__preview {
  grid-area: preview;
  width: 62px;
  height: 62px;
  border-radius: 18px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: block;
}

.theme-choice__preview--light {
  background: linear-gradient(180deg, #ffffff 0 35%, #f1f1f1 35% 100%);
}

.theme-choice__preview--dark {
  background: linear-gradient(180deg, #1a1a1e 0 35%, #222327 35% 100%);
  border-color: rgba(255, 255, 255, 0.08);
}

.settings-save-btn {
  width: 100%;
  margin-top: 16px;
}

@keyframes settings-page-in {
  from {
    opacity: 0;
    transform: translateX(12px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.chat-color-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.chat-color-choice {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 20px;
  border: 2px solid transparent;
  background: linear-gradient(135deg, var(--chat-color-choice), color-mix(in srgb, var(--chat-color-choice) 72%, white));
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.chat-color-choice.is-selected {
  border-color: #fff;
  outline: 2px solid color-mix(in srgb, var(--accent) 38%, transparent);
}

.chat-bubble-preview {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.chat-bubble-preview__left,
.chat-bubble-preview__right {
  max-width: 84%;
  padding: 14px 16px;
  border-radius: 18px;
  font-size: 14px;
}

.chat-bubble-preview__left {
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 8px;
}

.chat-bubble-preview__right {
  margin-left: auto;
  background: var(--bubble-own);
  color: #fff;
  border-bottom-right-radius: 8px;
}

@media (max-width: 390px) {
  .quick-apps {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

/* Customer app rebuild */
:root {
  --customer-bg: #fbf8f3;
  --customer-paper: #ffffff;
  --customer-paper-2: #fff7ef;
  --customer-text: #25201c;
  --customer-muted: #776f67;
  --customer-line: rgba(48, 39, 31, 0.11);
  --customer-accent: #f06c2e;
  --customer-accent-2: #ff9d53;
  --customer-green: #2d8a62;
  --customer-blue: #3177b7;
  --customer-teal: #278787;
  --customer-rose: #c75174;
  --customer-yellow: #bc7b16;
  --customer-shadow: 0 18px 44px rgba(58, 38, 21, 0.12);
}

html.dark {
  --customer-bg: #171719;
  --customer-paper: #222327;
  --customer-paper-2: #2b2723;
  --customer-text: #f6f1eb;
  --customer-muted: #bbb0a5;
  --customer-line: rgba(255, 255, 255, 0.08);
  --customer-shadow: 0 18px 44px rgba(0, 0, 0, 0.3);
}

html,
body {
  background: var(--customer-bg);
}

.customer-app-shell {
  background: var(--customer-bg);
}

.mobile-shell,
.app-main,
.tab-panel:not([data-tab-panel="chat"]),
.customer-scroll {
  background: var(--customer-bg);
}

.customer-panel {
  padding: 0;
  background: var(--customer-bg);
  overflow: hidden;
}

.customer-panel.tab-panel.is-active {
  display: block;
}

.customer-scroll {
  min-height: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  padding: env(safe-area-inset-top, 0px) 16px calc(var(--nav-h) + var(--safe-bottom) + 24px);
}

.catalog-screen {
  max-width: 100%;
  overflow-x: hidden;
}

.catalog-home-view,
.catalog-category-view,
.catalog-products-panel {
  max-width: none;
  overflow-x: clip;
}

.catalog-products-panel {
  overflow: visible;
  overflow-x: visible;
}

.customer-home-head,
.customer-page-head {
  display: grid;
  gap: 14px;
  color: var(--customer-text);
}

.customer-home-head {
  padding: 0 0 8px;
}

.customer-home-head__brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.customer-profile-btn,
.customer-icon-btn,
.customer-sheet__close {
  width: 44px;
  height: 44px;
  border: 1px solid var(--customer-line);
  border-radius: 16px;
  background: var(--customer-paper);
  color: var(--customer-text);
  display: grid;
  place-items: center;
  box-shadow: 0 10px 24px rgba(58, 38, 21, 0.08);
}

.customer-profile-btn svg,
.customer-icon-btn svg,
.customer-sheet__close svg {
  width: 21px;
  height: 21px;
}

.customer-home-head h1,
.customer-page-head h1 {
  margin: 0;
  font-size: 34px;
  line-height: 1.06;
  letter-spacing: 0;
  color: var(--customer-text);
}

.customer-home-head p,
.customer-page-head p {
  margin: 8px 0 0;
  color: var(--customer-muted);
  line-height: 1.48;
  font-size: 15px;
}

.customer-home-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.customer-primary-btn,
.customer-secondary-btn {
  min-height: 50px;
  border: 0;
  border-radius: 17px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
}

.customer-primary-btn {
  background: linear-gradient(135deg, var(--customer-accent), var(--customer-accent-2));
  color: #fff;
  box-shadow: 0 16px 30px rgba(240, 108, 46, 0.24);
}

.customer-secondary-btn {
  background: var(--customer-paper);
  color: var(--customer-text);
  border: 1px solid var(--customer-line);
}

.customer-primary-btn svg {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.customer-section,
.catalog-block {
  margin-top: 22px;
}

.customer-section__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.customer-section__head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.16;
  color: var(--customer-text);
}

.customer-section__head button,
.customer-section__head span {
  border: 0;
  background: transparent;
  color: var(--customer-accent);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.offer-list,
.catalog-results {
  display: grid;
  gap: 12px;
}

.offer-card,
.catalog-product-card,
.cart-row,
.customer-empty-card {
  background: var(--customer-paper);
  border: 1px solid var(--customer-line);
  box-shadow: var(--customer-shadow);
}

.offer-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 13px;
  align-items: center;
  border-radius: 22px;
  padding: 12px;
  cursor: pointer;
}

.offer-card:active,
.catalog-product-card:active {
  transform: scale(0.992);
}

.offer-card__visual,
.catalog-product-card__visual {
  display: grid;
  place-items: center;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.16), transparent),
    linear-gradient(135deg, var(--customer-accent), var(--customer-accent-2));
  font-weight: 900;
  overflow: hidden;
}

.offer-card__visual img,
.catalog-product-card__visual img,
.product-detail__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
  background: #fff;
}

.offer-card__visual.has-image,
.catalog-product-card__visual.has-image,
.product-detail__image.has-image {
  background: #fff;
  color: transparent;
}

.offer-card__visual.has-image span,
.catalog-product-card__visual.has-image span,
.product-detail__image.has-image span {
  display: none;
}

.offer-card__visual {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  font-size: 26px;
}

.offer-card h3,
.catalog-product-card h3,
.customer-empty-card h3 {
  margin: 0;
  color: var(--customer-text);
}

.offer-card h3 {
  font-size: 16px;
  line-height: 1.22;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.offer-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0;
}

.offer-card__meta span {
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 750;
}

.offer-card__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex-wrap: wrap;
}

.offer-card__price strong {
  color: var(--customer-accent);
  font-size: 19px;
  line-height: 1;
}

.offer-card__price del {
  color: var(--customer-muted);
  font-size: 13px;
}

.offer-card__price span {
  padding: 4px 7px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--customer-green) 14%, transparent);
  color: var(--customer-green);
  font-size: 12px;
  font-weight: 900;
}

.customer-empty-card {
  border-radius: 22px;
  padding: 18px;
}

.customer-empty-card p {
  margin: 8px 0 0;
  color: var(--customer-muted);
  line-height: 1.5;
}

.customer-page-head {
  padding-top: 0;
}

.customer-page-head--with-action {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.catalog-home-view {
  display: grid;
  gap: 16px;
  margin: calc(-1 * env(safe-area-inset-top, 0px)) -16px 0;
  width: calc(100% + 32px);
  padding-bottom: 80px;
}

.catalog-home-sticky,
.catalog-category-sticky,
.catalog-products-sticky {
  position: sticky;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  z-index: 30;
  background: var(--customer-bg);
}

.catalog-home-sticky,
.catalog-products-sticky {
  border-bottom: 1px solid var(--customer-line);
  box-shadow: 0 10px 24px rgba(58, 38, 21, 0.06);
}

.catalog-products-sticky {
  position: sticky;
  top: calc(-1 * env(safe-area-inset-top, 0px));
  align-self: start;
  z-index: 140;
  max-width: 100dvw;
  overflow: hidden;
  background: var(--customer-bg);
  transform: translateZ(0);
}

.catalog-products-hero {
  min-height: 76px;
  border-bottom: 0;
}

.catalog-products-hero strong {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-products-sticky .catalog-filter-row {
  background: var(--customer-bg);
  border-bottom: 1px solid var(--customer-line);
  box-shadow: 0 10px 24px rgba(58, 38, 21, 0.06);
}

.catalog-home-top {
  min-height: 52px;
  padding: calc(1px + env(safe-area-inset-top, 0px)) 0 6px;
  display: grid;
  place-items: end center;
  background: var(--customer-bg);
  color: var(--customer-text);
}

.catalog-home-top h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.15;
  font-weight: 900;
}

.category-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
  padding: 0 14px;
}

.category-tile {
  --tile-color: var(--customer-accent);
  --tile-soft: color-mix(in srgb, var(--tile-color) 24%, white);
  --tile-icon-gradient: linear-gradient(135deg, color-mix(in srgb, var(--tile-color) 94%, #17233a), color-mix(in srgb, var(--tile-color) 42%, #fff));
  position: relative;
  width: 100%;
  min-height: 80px;
  border: 0;
  border-radius: 18px;
  padding: 0 72px 0 17px;
  overflow: hidden;
  display: flex;
  align-items: center;
  text-align: left;
  color: #192d4d;
  background:
    linear-gradient(90deg, var(--tile-soft), color-mix(in srgb, var(--tile-color) 12%, white));
  box-shadow: 0 10px 22px rgba(30, 46, 72, .045);
}

.category-tile::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 0;
  right: -34px;
  width: 88px;
  height: 100%;
  border-radius: 999px;
  background: rgba(255,255,255,.7);
  box-shadow: -14px 0 24px rgba(255,255,255,.28);
  pointer-events: none;
}

.category-tile.is-active {
  box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--tile-color) 52%, white);
}

.category-tile[hidden] {
  display: none;
}

.category-tile[data-tone="deko"] { --tile-color: #e3a000; --tile-icon-gradient: linear-gradient(135deg, #8d6800, #ffcf4c); }
.category-tile[data-tone="genuss"] { --tile-color: #9f8ad1; --tile-icon-gradient: linear-gradient(135deg, #5b4696, #d7c8ff); }
.category-tile[data-tone="spiel"] { --tile-color: #2d92c5; --tile-icon-gradient: linear-gradient(135deg, #07547f, #86d9ff); }
.category-tile[data-tone="schreib"] { --tile-color: #ed884d; --tile-icon-gradient: linear-gradient(135deg, #a24208, #ffc08c); }
.category-tile[data-tone="handarbeit"] { --tile-color: #7bb8c2; --tile-icon-gradient: linear-gradient(135deg, #367984, #c7f3f7); }
.category-tile[data-tone="kreativ"] { --tile-color: #b5cb3d; --tile-icon-gradient: linear-gradient(135deg, #627a00, #e7f47a); }

.category-tile strong {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: 62%;
  color: #192d4d;
  font-size: 22px;
  line-height: 1.03;
  font-weight: 950;
}

.category-tile__art {
  position: absolute;
  right: 58px;
  top: 50%;
  width: 126px;
  height: 74px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  transform: translateY(-50%);
  opacity: .92;
}

.category-tile__icon {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: block;
  background: var(--tile-icon-gradient);
  -webkit-mask: var(--icon-url) center / contain no-repeat;
  mask: var(--icon-url) center / contain no-repeat;
  filter: drop-shadow(0 10px 10px rgba(30, 46, 72, .12));
}

.category-tile__icon:first-child {
  transform: translateY(-4px) rotate(-3deg);
}

.category-tile__icon:nth-child(2) {
  margin-left: 0;
  transform: translateY(7px) rotate(5deg);
}

.category-tile__arrow {
  position: absolute;
  z-index: 3;
  right: 12px;
  top: 50%;
  width: 36px;
  height: 36px;
  transform: translateY(-50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: transparent;
  color: #192d4d;
}

.category-tile__arrow svg {
  width: 23px;
  height: 23px;
}

.catalog-category-view {
  display: grid;
  gap: 16px;
  position: relative;
  margin: calc(-1 * env(safe-area-inset-top, 0px)) -16px 0;
  width: calc(100% + 32px);
  padding-bottom: 76px;
  color: var(--customer-text);
}

.catalog-home-view[hidden],
.catalog-category-view[hidden],
.catalog-products-panel[hidden] {
  display: none !important;
}

.catalog-category-view__top {
  min-height: 78px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 56px;
  align-items: center;
  border-bottom: 1px solid var(--customer-line);
  background: var(--customer-bg);
}

.catalog-category-view__top--overlay {
  position: absolute;
  inset: 0 0 auto;
  z-index: 4;
  border-bottom: 0;
  background: transparent;
  pointer-events: none;
}

.catalog-category-view__top--overlay .catalog-back-btn {
  pointer-events: auto;
}

.catalog-category-view__top h1 {
  grid-column: 2;
  margin: 0;
  color: var(--customer-text);
  font-size: 22px;
  line-height: 1.15;
  text-align: center;
  font-weight: 900;
}

.catalog-back-btn {
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: var(--customer-paper);
  color: var(--customer-text);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 30px rgba(48, 39, 31, 0.12);
}

.catalog-back-btn svg {
  width: 31px;
  height: 31px;
}

.catalog-search {
  min-height: 58px;
  margin: 0;
  padding: 0 17px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  border-radius: 30px;
  background: color-mix(in srgb, var(--customer-muted) 11%, var(--customer-paper));
  color: var(--customer-text);
}

.catalog-home-sticky .catalog-search,
.catalog-category-sticky .catalog-search {
  margin-top: 10px;
  margin-bottom: 12px;
}

.catalog-home-sticky .catalog-search,
.catalog-category-sticky .catalog-search {
  min-height: 46px;
  margin: 8px 16px 10px;
  padding: 0 14px;
  gap: 10px;
}

.catalog-home-sticky .catalog-search input,
.catalog-category-sticky .catalog-search input {
  font-size: 17px;
}

.catalog-home-sticky .catalog-search svg,
.catalog-category-sticky .catalog-search svg {
  width: 21px;
  height: 21px;
}

.catalog-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 20px;
  line-height: 1.2;
  font-weight: 850;
}

.catalog-search input::placeholder {
  color: color-mix(in srgb, var(--customer-text) 92%, transparent);
  opacity: 1;
}

.catalog-search svg {
  width: 25px;
  height: 25px;
}

.catalog-search__scan {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  padding: 0;
  display: grid;
  place-items: center;
  background: transparent;
  color: inherit;
  cursor: pointer;
}

.catalog-search__scan:active {
  background: color-mix(in srgb, var(--customer-text) 8%, transparent);
}

.catalog-scan-box {
  margin: 0 16px;
}

.catalog-hero {
  --tile-color: var(--customer-accent);
  min-height: 70px;
  margin: 0;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  overflow: hidden;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--tile-color) 28%, white), color-mix(in srgb, var(--tile-color) 18%, white));
  color: var(--customer-text);
}

.catalog-hero[data-tone="deko"] { --tile-color: #e3a000; }
.catalog-hero[data-tone="genuss"] { --tile-color: #9478c8; }
.catalog-hero[data-tone="spiel"] { --tile-color: #0f6fa8; }
.catalog-hero[data-tone="schreib"] { --tile-color: #d45600; }
.catalog-hero[data-tone="handarbeit"] { --tile-color: #66aab7; }
.catalog-hero[data-tone="kreativ"] { --tile-color: #7b9d00; }

.catalog-hero strong {
  min-width: 0;
  flex: 1 1 auto;
  max-width: none;
  font-size: 20px;
  line-height: 1.12;
  font-weight: 900;
}

.catalog-back-btn--hero {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  box-shadow: none;
  background: rgba(255,255,255,.62);
}

.catalog-hero__mark {
  width: 86px;
  height: 54px;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  border-radius: 50%;
  background: transparent;
  color: color-mix(in srgb, var(--tile-color) 82%, #1d2633);
}

.catalog-hero__mark .category-tile__icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  background: linear-gradient(135deg, color-mix(in srgb, var(--tile-color) 88%, #17233a), color-mix(in srgb, var(--tile-color) 44%, #fff));
  filter: drop-shadow(0 7px 9px rgba(30, 46, 72, .11));
}

.catalog-hero__mark .category-tile__icon:first-child {
  transform: translateY(-3px) rotate(-3deg);
}

.catalog-hero__mark .category-tile__icon:nth-child(2) {
  margin-left: 0;
  transform: translateY(4px) rotate(5deg);
}

.catalog-subcategory-list {
  display: grid;
  margin: 0;
  border-top: 1px solid var(--customer-line);
  background: var(--customer-paper);
}

.catalog-subcategory-row {
  min-height: 66px;
  border: 0;
  border-bottom: 1px solid var(--customer-line);
  padding: 0 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: transparent;
  color: var(--customer-text);
  font: inherit;
  font-size: 20px;
  line-height: 1.18;
  text-align: left;
}

.catalog-subcategory-row span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-subcategory-row svg {
  width: 25px;
  height: 25px;
  flex: 0 0 auto;
  color: color-mix(in srgb, var(--customer-muted) 78%, transparent);
}

.catalog-subcategory-row.is-active {
  color: var(--customer-accent);
  font-weight: 900;
}

.catalog-products-panel {
  display: grid;
  gap: 16px;
  margin: calc(-1 * env(safe-area-inset-top, 0px)) -16px 0;
  width: calc(100% + 32px);
  max-width: 100dvw;
  overflow: visible;
  overflow-x: visible;
  padding-bottom: 86px;
  color: var(--customer-text);
}

.catalog-filter-row {
  display: flex;
  gap: 9px;
  max-width: 100dvw;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 10px 16px 8px;
  scrollbar-width: none;
}

.catalog-filter-row::-webkit-scrollbar {
  display: none;
}

.catalog-filter-round,
.catalog-filter-chip {
  flex: 0 0 auto;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: color-mix(in srgb, var(--customer-muted) 10%, var(--customer-paper));
  color: var(--customer-text);
  font-weight: 900;
}

.catalog-filter-round {
  width: 58px;
}

.catalog-filter-round svg {
  width: 25px;
  height: 25px;
}

.catalog-filter-chip {
  max-width: 230px;
  padding: 0 17px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 17px;
}

.catalog-filter-round.is-active,
.catalog-filter-chip.is-active {
  background: #192d4d;
  color: #fff;
}

.catalog-filter-sheet {
  z-index: 430;
}

.catalog-filter-card {
  width: min(100%, 560px);
  max-height: min(88dvh, 760px);
  padding: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border-radius: 30px 30px 0 0;
}

.catalog-filter-sheet__head {
  min-height: 74px;
  padding: 14px 18px 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--customer-line);
}

.catalog-filter-sheet__head h2 {
  margin: 0;
  color: #192d4d;
  font-size: 28px;
  line-height: 1.08;
  font-weight: 950;
  text-align: center;
}

.catalog-filter-sheet__clear,
.catalog-filter-sheet__close {
  border: 0;
  background: transparent;
  color: #192d4d;
  font-weight: 850;
}

.catalog-filter-sheet__clear {
  justify-self: start;
  padding: 8px 0;
  font-size: 18px;
}

.catalog-filter-sheet__close {
  justify-self: end;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
}

.catalog-filter-sheet__close svg {
  width: 30px;
  height: 30px;
}

.catalog-filter-body {
  min-height: 0;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.catalog-filter-section {
  padding: 18px;
  border-bottom: 1px solid var(--customer-line);
}

.catalog-filter-section__title {
  width: 100%;
  min-height: 36px;
  border: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: transparent;
  color: #192d4d;
  text-align: left;
  font-size: 23px;
  line-height: 1.16;
  font-weight: 930;
}

.catalog-filter-section__title svg {
  width: 27px;
  height: 27px;
  flex: 0 0 auto;
}

.catalog-filter-section__title--static {
  pointer-events: none;
}

.catalog-filter-chip-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 18px 0 6px;
  scrollbar-width: none;
}

.catalog-filter-chip-row::-webkit-scrollbar {
  display: none;
}

.catalog-filter-chip-row--wrap {
  flex-wrap: wrap;
  overflow: visible;
  padding-top: 14px;
}

.catalog-filter-pill {
  flex: 0 0 auto;
  min-height: 48px;
  border: 0;
  border-radius: 999px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #eef1f5;
  color: #192d4d;
  font-size: 18px;
  font-weight: 850;
  white-space: nowrap;
}

.catalog-filter-pill.is-active {
  background: #192d4d;
  color: #fff;
}

.catalog-filter-pill:disabled {
  opacity: .45;
}

.catalog-filter-search {
  min-height: 56px;
  margin-top: 16px;
  padding: 0 17px;
  border-radius: 999px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  background: #eef1f5;
  color: #192d4d;
}

.catalog-filter-search svg {
  width: 25px;
  height: 25px;
}

.catalog-filter-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font-size: 20px;
  font-weight: 850;
}

.catalog-filter-price-row {
  margin-top: 16px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 48px minmax(0, 1fr);
  align-items: end;
  gap: 12px;
}

.catalog-filter-price-row label {
  display: grid;
  gap: 7px;
  color: #192d4d;
  font-size: 17px;
  font-weight: 650;
}

.catalog-filter-price-row label > div {
  min-height: 56px;
  border: 2px solid #192d4d;
  border-radius: 18px;
  padding: 0 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  color: #192d4d;
  background: var(--customer-paper);
  font-size: 20px;
  font-weight: 850;
}

.catalog-filter-price-row input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.catalog-filter-price-row i {
  height: 2px;
  margin-bottom: 27px;
  background: var(--customer-line);
}

.catalog-filter-empty {
  color: var(--customer-muted);
  font-size: 15px;
  font-weight: 800;
}

.catalog-filter-apply {
  min-height: 58px;
  margin: 18px;
  border: 0;
  border-radius: 999px;
  background: #192d4d;
  color: #fff;
  font-size: 19px;
  font-weight: 900;
}

.catalog-product-count {
  padding: 2px 16px 0;
  color: var(--customer-text);
  font-size: 19px;
  line-height: 1.2;
  font-weight: 750;
}

.catalog-results--products {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
  padding: 0;
  width: min(calc(100% - 32px), calc(100dvw - 32px));
  min-width: 0;
  max-width: calc(100dvw - 32px);
  margin: 0 auto;
  overflow: clip;
}

.subcategory-row {
  display: flex;
  gap: 9px;
  overflow-x: hidden;
  padding: 2px 2px 8px;
  scrollbar-width: none;
}

.subcategory-row::-webkit-scrollbar {
  display: none;
}

.subcategory-chip {
  flex: 0 0 auto;
  min-height: 42px;
  border: 1px solid var(--customer-line);
  border-radius: 999px;
  padding: 0 14px;
  background: var(--customer-paper);
  color: var(--customer-text);
  font-weight: 800;
  white-space: nowrap;
}

.subcategory-chip.is-active {
  background: var(--customer-text);
  color: var(--customer-paper);
  border-color: var(--customer-text);
}

.catalog-product-card {
  border-radius: 22px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  min-height: 132px;
}

.catalog-product-card__visual {
  min-height: 132px;
  font-size: 30px;
  border: 0;
  cursor: pointer;
}

.catalog-product-card__body {
  min-width: 0;
  display: grid;
  gap: 9px;
  padding: 13px;
}

.catalog-product-card h3 {
  font-size: 16px;
  line-height: 1.2;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.catalog-product-card__meta,
.cart-row__meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 750;
}

.catalog-product-card__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.catalog-price {
  display: grid;
  gap: 2px;
}

.catalog-price strong {
  color: var(--customer-accent);
  font-size: 18px;
}

.catalog-price del {
  color: var(--customer-muted);
  font-size: 12px;
}

.catalog-actions {
  display: flex;
  gap: 6px;
}

.catalog-action-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 14px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--customer-accent), var(--customer-accent-2));
}

.catalog-action-btn--ghost {
  color: var(--customer-text);
  background: color-mix(in srgb, var(--customer-text) 7%, transparent);
}

.catalog-action-btn--wishlist.is-active {
  color: #fff;
  background: linear-gradient(135deg, var(--customer-rose), #ee8ba8);
}

.catalog-action-btn svg {
  width: 19px;
  height: 19px;
}

.catalog-results--products .catalog-product-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  width: 100%;
  min-width: 0;
  min-height: 0;
  border-radius: 20px;
  overflow: hidden;
  background: var(--customer-paper);
  box-shadow: none;
}

.catalog-product-card__media {
  position: relative;
  min-width: 0;
  min-height: 194px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--customer-muted) 7%, var(--customer-paper));
}

.catalog-results--products .catalog-product-card__visual {
  width: 100%;
  max-width: 100%;
  height: 194px;
  min-height: 194px;
  border: 0;
  background: transparent;
  color: var(--customer-accent);
  font-size: 44px;
  cursor: pointer;
}

.catalog-results--products .catalog-product-card__visual img {
  width: 82%;
  height: 82%;
  margin: auto;
  object-fit: contain;
  background: transparent;
}

.catalog-results--products .catalog-product-card__visual.has-image {
  background: transparent;
}

.catalog-product-card__badge {
  position: absolute;
  z-index: 2;
  top: 12px;
  left: 12px;
  min-width: 50px;
  border-radius: 5px;
  padding: 4px 7px;
  background: #235ea8;
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 900;
  text-transform: uppercase;
}

.catalog-card-wish,
.catalog-card-cart {
  position: absolute;
  z-index: 3;
  border: 0;
  display: grid;
  place-items: center;
  max-width: 100%;
}

.catalog-card-wish {
  top: 12px;
  right: 12px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: rgba(255,255,255,.76);
  color: #192d4d;
}

.catalog-card-wish.is-active {
  color: var(--customer-rose);
}

.catalog-card-wish svg {
  width: 31px;
  height: 31px;
}

.catalog-card-cart {
  right: 12px;
  bottom: -28px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #192d4d;
  color: #fff;
  box-shadow: 0 12px 22px rgba(25,45,77,.24);
}

.catalog-card-cart svg {
  width: 29px;
  height: 29px;
}

.catalog-card-cart:disabled {
  opacity: .44;
  filter: grayscale(.4);
}

.catalog-results--products .catalog-product-card__body {
  display: grid;
  gap: 7px;
  width: 100%;
  min-width: 0;
  padding: 19px 13px 15px;
  background: var(--customer-paper);
  border-radius: 20px 20px 0 0;
  transform: translateY(-12px);
}

.catalog-results--products .catalog-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  min-width: 0;
  max-width: calc(100% - 52px);
  white-space: nowrap;
}

.catalog-results--products .catalog-price strong {
  color: #192d4d;
  font-size: 24px;
  line-height: 1;
  font-weight: 950;
}

.catalog-results--products .catalog-price del {
  color: var(--customer-muted);
  font-size: 12px;
}

.catalog-results--products .catalog-product-card__meta {
  display: block;
  min-height: 17px;
  color: #7a8495;
  font-size: 13px;
  font-weight: 750;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-results--products .catalog-product-card p {
  margin: 0;
  min-width: 0;
  color: #273a5a;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-results--products .catalog-product-card h3 {
  min-height: 57px;
  max-width: 100%;
  color: #192d4d;
  font-size: 16px;
  line-height: 1.18;
  font-weight: 900;
  -webkit-line-clamp: 3;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.catalog-product-card__stock {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  color: #7a8495;
  font-size: 14px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-product-card__stock span {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #5db23e;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.catalog-product-card__stock.is-ordered {
  color: #9a6a00;
}

.catalog-product-card__stock.is-ordered span {
  background: #d89a16;
}

.catalog-product-card__stock.is-unavailable {
  color: #b7382e;
}

.catalog-product-card__stock.is-unavailable span {
  background: #d64535;
}

.catalog-action-btn:disabled,
.customer-primary-btn:disabled {
  opacity: .45;
  filter: grayscale(.45);
}

.catalog-action-btn.is-added,
.catalog-card-cart.is-added,
.customer-primary-btn.is-added,
.product-detail-page__cart.is-added {
  animation: add-button-pop .82s cubic-bezier(.2,1,.3,1);
}

.catalog-card-cart.is-added svg,
.product-detail-page__cart.is-added svg {
  opacity: 0;
}

.catalog-card-cart.is-added::before,
.product-detail-page__cart.is-added::before {
  content: "\2713";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 28px;
  font-weight: 950;
}

.product-detail-page__cart.is-added {
  position: relative;
}

.product-detail-page__cart.is-added::before {
  inset: auto auto auto 18px;
  width: 27px;
  height: 27px;
  font-size: 25px;
}

@keyframes add-button-pop {
  0% { transform: scale(1); }
  28% { transform: scale(.88); }
  58% { transform: scale(1.04); }
  100% { transform: scale(1); }
}

.cart-fab {
  position: fixed !important;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(var(--nav-h) + var(--safe-bottom) + 10px);
  z-index: 320;
  width: 60px;
  height: 60px;
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--customer-accent), var(--customer-accent-2));
  box-shadow: 0 18px 34px rgba(240, 108, 46, 0.3);
}

.cart-fab.is-pulsing {
  animation: cart-fab-pulse .42s cubic-bezier(.2,1,.3,1);
}

@keyframes cart-fab-pulse {
  0% { transform: scale(1); }
  45% { transform: scale(1.13); }
  100% { transform: scale(1); }
}

.cart-fab svg {
  width: 27px;
  height: 27px;
}

.cart-fab span {
  position: absolute;
  top: -3px;
  right: -3px;
  min-width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 6px;
  background: #111;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  line-height: 22px;
}

.cart-fab span[hidden] {
  display: none;
}

.loyalty-card {
  margin-top: 24px;
  border-radius: 30px;
  min-height: 440px;
  padding: 24px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 18px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.14), transparent),
    linear-gradient(145deg, #f06c2e, #d74d17 55%, #92320f);
  box-shadow: 0 24px 48px rgba(134, 54, 18, 0.28);
  overflow: hidden;
  position: relative;
}

.loyalty-card::after {
  content: "";
  position: absolute;
  inset: auto -40px -90px auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 34px solid rgba(255,255,255,0.08);
}

.loyalty-card__top {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  position: relative;
  z-index: 1;
}

.loyalty-card__top img {
  width: 78px;
  height: auto;
  filter: brightness(0) invert(1);
}

.loyalty-card__top span {
  font-weight: 850;
}

.loyalty-card__circle {
  width: min(58vw, 220px);
  aspect-ratio: 1;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin-top: 16px;
  background: rgba(255,255,255,0.96);
  color: var(--customer-accent);
  font-size: clamp(42px, 16vw, 74px);
  font-weight: 950;
  box-shadow: inset 0 0 0 10px rgba(240,108,46,0.1), 0 22px 46px rgba(79,31,10,.24);
  position: relative;
  z-index: 1;
}

.loyalty-card h2 {
  margin: 8px 0 0;
  font-size: 25px;
  line-height: 1.15;
  text-align: center;
  position: relative;
  z-index: 1;
}

.loyalty-card p {
  margin: -8px 0 0;
  color: rgba(255,255,255,.84);
  font-weight: 750;
  position: relative;
  z-index: 1;
}

.loyalty-card__barcode {
  width: min(100%, 260px);
  height: 58px;
  border-radius: 14px;
  background: rgba(255,255,255,.96);
  display: flex;
  justify-content: center;
  gap: 5px;
  padding: 10px 18px;
  position: relative;
  z-index: 1;
}

.loyalty-card__barcode span {
  display: block;
  width: 5px;
  background: #211812;
  border-radius: 2px;
}

.loyalty-card__barcode span:nth-child(2),
.loyalty-card__barcode span:nth-child(5) { width: 10px; }
.loyalty-card__barcode span:nth-child(3),
.loyalty-card__barcode span:nth-child(7) { width: 3px; }

.customer-article-screen {
  margin-top: 18px;
}

.customer-sheet {
  position: fixed;
  inset: 0;
  z-index: 260;
  display: grid;
  align-items: end;
}

.customer-sheet[hidden] {
  display: none !important;
}

.customer-sheet__scrim {
  position: absolute;
  inset: 0;
  background: rgba(21, 16, 12, 0.34);
}

.customer-sheet__card {
  position: relative;
  z-index: 1;
  width: min(100%, 520px);
  max-height: min(82dvh, 720px);
  overflow-y: auto;
  margin: 0 auto;
  border-radius: 28px 28px 0 0;
  padding: 22px 18px calc(20px + var(--safe-bottom));
  background: var(--customer-paper);
  color: var(--customer-text);
  box-shadow: 0 -20px 60px rgba(0,0,0,.18);
}

.customer-sheet__card--product-detail {
  padding-top: 14px;
}

#product-detail-sheet {
  align-items: stretch;
  background: var(--customer-bg);
  z-index: 420;
}

#product-detail-sheet .customer-sheet__scrim,
#product-detail-sheet > .customer-sheet__card--product-detail > .customer-sheet__close {
  display: none;
}

#product-detail-sheet .customer-sheet__card--product-detail {
  width: 100%;
  max-width: none;
  max-height: none;
  height: 100dvh;
  margin: 0;
  border-radius: 0;
  padding: 0 0 calc(var(--nav-h) + var(--safe-bottom) + 18px);
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--customer-bg);
  box-shadow: none;
}

.product-detail-page {
  min-height: 100%;
  display: grid;
  align-content: start;
  color: var(--customer-text);
}

.product-detail-page__top {
  position: sticky;
  top: 0;
  z-index: 5;
  min-height: 78px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 16px 8px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 10px;
  background: var(--customer-bg);
  border-bottom: 1px solid var(--customer-line);
}

.product-detail-page__top h1 {
  grid-column: 2;
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 900;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-detail-page__back,
.product-detail-page__wish {
  border: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--customer-paper);
  color: #192d4d;
}

.product-detail-page__back {
  width: 48px;
  height: 48px;
  box-shadow: 0 12px 24px rgba(48, 39, 31, 0.1);
}

.product-detail-page__back svg {
  width: 30px;
  height: 30px;
}

.product-detail-page__hero {
  position: relative;
  min-height: 390px;
  display: grid;
  place-items: center;
  padding: 22px 20px 24px;
  background: color-mix(in srgb, var(--customer-paper) 46%, var(--customer-bg));
}

.product-detail-page__wish {
  position: absolute;
  top: 24px;
  right: 18px;
  z-index: 2;
  width: 50px;
  height: 50px;
  background: rgba(255,255,255,.76);
}

.product-detail-page__wish.is-active {
  color: var(--customer-rose);
}

.product-detail-page__wish svg {
  width: 34px;
  height: 34px;
}

.product-detail-page__image {
  width: min(78vw, 340px);
  height: min(78vw, 340px);
  min-height: 240px;
  border-radius: 26px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 92px;
  font-weight: 950;
  background: linear-gradient(135deg, var(--customer-accent), var(--customer-accent-2));
  overflow: hidden;
}

.product-detail-page__image.has-image {
  background: transparent;
}

.product-detail-page__image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.product-detail-page__image.has-image span {
  display: none;
}

.product-detail-page__intro {
  margin-top: -18px;
  border-radius: 28px 28px 0 0;
  padding: 22px 18px 18px;
  background: var(--customer-paper);
}

.product-detail-page__intro p,
.product-detail-page__intro span {
  margin: 0;
  color: #273a5a;
  font-size: 17px;
  line-height: 1.25;
}

.product-detail-page__intro h2 {
  margin: 8px 0 10px;
  color: #192d4d;
  font-size: 28px;
  line-height: 1.12;
  font-weight: 950;
}

.product-detail-page__buy {
  margin: 0 16px 22px;
  border: 2px solid color-mix(in srgb, #9aa8bd 42%, transparent);
  border-radius: 24px;
  padding: 18px;
  background: var(--customer-paper);
}

.product-detail-page__price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 16px;
}

.product-detail-page__price strong {
  color: #192d4d;
  font-size: 34px;
  line-height: 1;
  font-weight: 950;
}

.product-detail-page__price del {
  color: var(--customer-muted);
}

.product-detail-page__buy-row {
  display: grid;
  grid-template-columns: minmax(104px, .55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.product-detail-page__qty {
  min-height: 54px;
  border: 2px solid #192d4d;
  border-radius: 999px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  justify-items: center;
  color: #192d4d;
  font-size: 21px;
  font-weight: 900;
}

.product-detail-page__qty button {
  width: 100%;
  min-height: 54px;
  border: 0;
  background: transparent;
  color: inherit;
  font-size: 27px;
  font-weight: 900;
}

.product-detail-page__qty button:disabled {
  opacity: .32;
}

.product-detail-page__qty-input {
  width: 48px;
  border: 0;
  outline: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 900;
  text-align: center;
  appearance: textfield;
}

.product-detail-page__qty-input::-webkit-outer-spin-button,
.product-detail-page__qty-input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
  -webkit-appearance: none;
}

.product-detail-page__cart {
  min-height: 56px;
  border: 0;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 0 18px;
  background: #192d4d;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.product-detail-page__cart svg {
  width: 27px;
  height: 27px;
}

.product-detail-page__stock {
  margin-top: 14px;
  color: var(--customer-muted);
  font-size: 17px;
  font-weight: 850;
}

.product-detail-page__stock.is-available {
  color: #4d9f32;
}

.product-detail-page__stock.is-ordered {
  color: #b57a00;
}

.product-detail-page__stock.is-unavailable {
  color: #c53a32;
}

.product-detail-page__info {
  padding: 0 16px 24px;
}

.product-detail-page__info > h2 {
  margin: 0 0 14px;
  color: #192d4d;
  font-size: 28px;
  line-height: 1.1;
  font-weight: 950;
}

.product-detail-page__info-card {
  border: 2px solid color-mix(in srgb, #9aa8bd 42%, transparent);
  border-radius: 22px;
  padding: 18px;
  background: var(--customer-paper);
}

.product-detail-page__info-card h3 {
  margin: 0 0 14px;
  color: #192d4d;
  font-size: 22px;
  line-height: 1.15;
}

.product-detail-page__info-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.product-detail-page__info-card dl div {
  display: grid;
  grid-template-columns: minmax(0, .42fr) minmax(0, 1fr);
  gap: 12px;
}

.product-detail-page__info-card dt,
.product-detail-page__info-card dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.product-detail-page__info-card dt {
  color: var(--customer-muted);
  font-weight: 800;
}

.product-detail-page__info-card dd {
  color: var(--customer-text);
  font-weight: 850;
}

.customer-sheet__card--product-detail .customer-sheet__close {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 2;
  margin: 0;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(10px);
}

html.dark .customer-sheet__card--product-detail .customer-sheet__close {
  background: rgba(34, 35, 39, 0.9);
}

.customer-sheet__close {
  margin-left: auto;
  margin-bottom: 8px;
}

.customer-sheet__head h2,
.product-detail h2 {
  margin: 0;
  font-size: 26px;
  line-height: 1.12;
  color: var(--customer-text);
}

.customer-sheet__head p,
.product-detail p {
  margin: 8px 0 0;
  color: var(--customer-muted);
  line-height: 1.5;
}

.product-detail {
  display: grid;
  gap: 12px;
}

.product-detail__summary {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  padding-right: 48px;
}

.product-detail__title {
  min-width: 0;
}

.product-detail h2 {
  font-size: 21px;
  line-height: 1.14;
}

.product-detail p {
  margin-top: 6px;
  font-size: 14px;
  line-height: 1.35;
}

.product-detail__actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
}

.product-detail__image {
  width: 112px;
  height: 112px;
  min-height: 112px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(135deg, rgba(255,255,255,.16), transparent),
    linear-gradient(135deg, var(--customer-accent), var(--customer-accent-2));
  color: #fff;
  font-size: 64px;
  font-weight: 950;
  overflow: hidden;
}

.product-detail__image.has-image {
  height: 112px;
}

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

.product-fact {
  border: 1px solid var(--customer-line);
  border-radius: 18px;
  padding: 13px;
  background: color-mix(in srgb, var(--customer-paper) 82%, var(--customer-bg));
}

.product-fact span {
  display: block;
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 750;
}

.product-fact strong {
  display: block;
  margin-top: 5px;
  color: var(--customer-text);
  font-size: 15px;
  overflow-wrap: anywhere;
}

.cart-screen {
  display: grid;
  align-content: start;
  gap: 16px;
}

.cart-page-head {
  padding: 4px 0 0;
}

.cart-list {
  display: grid;
  gap: 12px;
}

.cart-row {
  border-radius: 20px;
  padding: 14px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.cart-row h3 {
  margin: 0 0 7px;
  font-size: 15px;
  line-height: 1.22;
}

.cart-row__controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.cart-row__controls button {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 11px;
  background: color-mix(in srgb, var(--customer-text) 8%, transparent);
  color: var(--customer-text);
  font-weight: 900;
}

.cart-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  margin: 2px 0 0;
  border-radius: 20px;
  padding: 16px;
  background: var(--customer-paper);
  border: 1px solid var(--customer-line);
  box-shadow: var(--customer-shadow);
  color: var(--customer-text);
  font-weight: 900;
}

.cart-total strong {
  color: var(--customer-accent);
  font-size: 22px;
}

.cart-next-btn {
  width: 100%;
  min-height: 50px;
  margin-top: -4px;
  border: 0;
  border-radius: 16px;
  background: color-mix(in srgb, var(--customer-text) 10%, transparent);
  color: var(--customer-muted);
  font-weight: 850;
}

.pull-refresh {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 0;
  z-index: 320;
  display: grid;
  place-items: start center;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-72px);
  transition: opacity .16s ease, transform .16s ease;
}

.pull-refresh.is-visible {
  opacity: 1;
}

.pull-refresh.is-ready .pull-refresh__bubble {
  box-shadow: 0 16px 38px rgba(240, 108, 46, .28);
}

.pull-refresh__bubble {
  width: 74px;
  height: 74px;
  margin-top: calc(10px + env(safe-area-inset-top, 0px));
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--customer-paper);
  border: 1px solid var(--customer-line);
  box-shadow: 0 10px 24px rgba(58, 38, 21, .14);
}

.pull-refresh__bubble img {
  width: 54px;
  height: auto;
}

.customer-sheet__card--settings {
  max-height: min(88dvh, 760px);
}

.customer-settings-list {
  display: grid;
  gap: 12px;
  margin-top: 10px;
}

.customer-section__head--compact {
  margin-bottom: 0;
}

.wishlist-list {
  display: grid;
  gap: 10px;
}

.wishlist-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--customer-line);
  border-radius: 18px;
  padding: 13px;
  background: color-mix(in srgb, var(--customer-paper) 88%, var(--customer-bg));
}

.wishlist-row h3 {
  margin: 0 0 6px;
  font-size: 15px;
  line-height: 1.22;
  color: var(--customer-text);
}

.wishlist-row p {
  margin: 0;
  color: var(--customer-muted);
  font-size: 12px;
  font-weight: 750;
}

.wishlist-row button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--customer-text) 8%, transparent);
  color: var(--customer-text);
}

.wishlist-row button svg {
  width: 19px;
  height: 19px;
}

.customer-bottom-nav {
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 2px;
  padding: 2px 8px calc(2px + var(--safe-bottom));
  background: color-mix(in srgb, var(--customer-paper) 92%, transparent);
}

.customer-bottom-nav .bottom-nav__item {
  min-width: 0;
  min-height: 34px;
}

.customer-bottom-nav .bottom-nav__label {
  font-size: 9px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.customer-bottom-nav .bottom-nav__item--card {
  transform: translateY(-7px);
  color: #fff;
}

.customer-bottom-nav .bottom-nav__item--card .bottom-nav__icon {
  width: 40px;
  height: 40px;
  flex-basis: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--customer-accent), var(--customer-accent-2));
  color: #fff;
  box-shadow: 0 18px 30px rgba(240, 108, 46, 0.28);
}

.customer-bottom-nav .bottom-nav__item--card .bottom-nav__icon svg {
  width: 20px;
  height: 20px;
}

.customer-bottom-nav .bottom-nav__item--card .bottom-nav__label {
  color: var(--customer-accent);
  font-weight: 900;
}

.customer-bottom-nav .bottom-nav__item.is-active:not(.bottom-nav__item--card) {
  color: var(--customer-accent);
}

body.chat-tab-active .customer-bottom-nav {
  transform: translateY(calc(100% + var(--safe-bottom) + 10px));
}

@media (max-width: 370px) {
  .customer-home-head h1,
  .customer-page-head h1 {
    font-size: 30px;
  }

  .customer-home-actions {
    grid-template-columns: 1fr;
  }

  .catalog-product-card {
    grid-template-columns: 84px minmax(0, 1fr);
  }

  .product-detail__summary {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 12px;
    padding-right: 44px;
  }

  .product-detail__image,
  .product-detail__image.has-image {
    width: 96px;
    height: 96px;
    min-height: 96px;
  }

  .customer-bottom-nav .bottom-nav__label {
    font-size: 9.5px;
  }
}
