*, *::before, *::after { box-sizing: border-box; }

html {
  overflow-x: hidden;
  max-width: 100%;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  overflow-x: hidden;
  max-width: 100vw;
  min-width: 0;
}

img, video, svg {
  max-width: 100%;
  height: auto;
}

.sg-container {
  width: 100%;
  max-width: 72rem;
  margin-inline: auto;
  padding-inline: clamp(0.75rem, 3vw, 1.25rem);
}

.sg-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  min-width: 0;
}

.sg-nav-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.375rem 0.5rem;
  min-width: 0;
}

.sg-logo {
  height: clamp(2rem, 6vw, 3rem);
  width: auto;
  flex-shrink: 0;
}

.sg-modal-wrap {
  padding: max(0.75rem, env(safe-area-inset-top)) max(0.75rem, env(safe-area-inset-right)) max(0.75rem, env(safe-area-inset-bottom)) max(0.75rem, env(safe-area-inset-left));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.sg-modal-panel {
  width: 100%;
  max-width: 28rem;
  max-height: min(92vh, 680px);
  overflow-y: auto;
  margin-inline: auto;
}

.sg-toast {
  left: 1rem;
  right: 1rem;
  bottom: max(1rem, env(safe-area-inset-bottom));
  max-width: none;
}

@media (min-width: 640px) {
  .sg-toast {
    left: auto;
    right: 1.5rem;
    max-width: 24rem;
  }
}

.sg-break {
  overflow-wrap: anywhere;
  word-break: break-word;
}

.sg-toolbar {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .sg-toolbar {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
  }
}

.sg-toolbar-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .sg-toolbar-controls {
    width: auto;
    justify-content: flex-end;
  }
}

.sg-field {
  min-width: 0;
  width: 100%;
}

@media (min-width: 640px) {
  .sg-field-sm { width: auto; min-width: 8rem; flex: 1 1 8rem; max-width: 14rem; }
  .sg-field-md { flex: 1 1 10rem; max-width: 16rem; }
}

.sg-grid-stickers {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(4.75rem, 1fr));
  gap: 0.5rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .sg-grid-stickers { grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr)); }
}

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

.sg-hero-title {
  font-size: clamp(1.875rem, 5vw, 4.5rem);
  line-height: 1.05;
}

.sg-section-title {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
}

.sg-hide-mobile { display: none; }
@media (min-width: 640px) { .sg-hide-mobile { display: flex; } }

.sg-stack-header {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-width: 0;
}

@media (min-width: 640px) {
  .sg-stack-header {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
  }
}
