/*
 * Ajustes / Settings — layout alinhado ao Figma (card perfil, accordions, logout).
 * Fundo da página continua o .bg-green-football do body; aqui só estrutura e cartões.
 */

/* Header do lobby (widget nav): oculto no slide Ajustes e em /user/preference — ver main_controller.js */
html.lobby-hide-top-nav turbo-frame#nav {
  display: none !important;
}

.lobby-settings {
  --ls-card: rgba(16, 43, 16, 0.92);
  --ls-card-border: rgba(125, 192, 135, 0.18);
  --ls-line: rgba(255, 255, 255, 0.08);
  --ls-gold: #f1dc22;
  --ls-gold-soft: #e9b636;
  --ls-lime: var(--cx-accent-lime, #a6d90f);
  --ls-lime-inner: #031207;
  --ls-muted: rgba(251, 252, 252, 0.72);
  --ls-radius: 1.35rem;
  /* Barras Ajustes (accordion + sair): Figma */
  --ls-bar-bg: #0a421b;
  --ls-bar-icon: #a6d90f;
  /* Toggles Idioma / Música / Efeitos — Figma */
  --ls-toggle-track: #7dc087;
  --ls-toggle-thumb: #1c5228;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  font-family: var(
    --cx-font-sans,
    "Inter",
    ui-sans-serif,
    system-ui,
    sans-serif
  );
}

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

.lobby-settings__inner {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  width: 100%;
  max-width: 24rem;
  margin: 0 auto;
  padding: 0.35rem 1rem 0.5rem;
  min-height: 0;
}

/*
 * Host wrapper: flex column only; height follows content so the slide scroller
 * does not inherit a forced full-viewport min-height chain (extra blank scroll).
 */
.lobby-settings-host {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 0;
  box-sizing: border-box;
}

/* Settings column — natural height inside the slide scroller (dock padding lives on the slide). */
.lobby-settings.lobby-scroll-root {
  display: flex;
  flex-direction: column;
  flex: 0 1 auto;
  min-height: 0;
  box-sizing: border-box;
}

/* Override global `.lobby-scroll-root { min-height: 100% }` from lobby-dock.css for this tab only. */
html:not(.registration-fullbleed).lobby-scroll-shell .lobby-settings.lobby-scroll-root {
  min-height: 0;
}

/* --- Perfil --- */
.lobby-settings__profile {
  position: relative;
  margin-top: 3.35rem;
  margin-bottom: 1.1rem;
  padding: 2.85rem 1.1rem 1.1rem;
  border-radius: var(--ls-radius);
  background: linear-gradient(180deg, #0a421b 0%, #336c3e 100%);
  border: none;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

.lobby-settings__avatar-wrap {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -52%);
  width: 6.25rem;
  height: 6.25rem;
  border-radius: 9999px;
  padding: 4px;
  background: linear-gradient(
    135deg,
    var(--ls-gold) 0%,
    var(--ls-gold-soft) 55%,
    #fff6a8 100%
  );
  box-shadow:
    0 0 0 2px rgba(3, 18, 7, 0.65),
    0 0 22px rgba(241, 220, 34, 0.45),
    0 10px 28px rgba(0, 0, 0, 0.5);
}

.lobby-settings__avatar {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
  display: block;
  background: #0b2414;
}

.lobby-settings__top-actions {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 0.35rem;
  padding: 0 0.15rem;
}

.lobby-settings__top-action {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.28rem;
  text-decoration: none;
  color: var(--cx-text-primary, #fbfcfc);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  -webkit-tap-highlight-color: transparent;
}

.lobby-settings__top-action-icon {
  width: 1.85rem;
  height: 1.85rem;
  color: var(--ls-gold);
  filter: drop-shadow(0 0 6px rgba(241, 220, 34, 0.35));
}

/* Ranking + Editar — Figma: ícones lima #A6D90F (sem glow dourado) */
.lobby-settings__top-action-icon--ranking,
.lobby-settings__top-action-icon--edit {
  color: #a6d90f;
  filter: none;
}

.lobby-settings__id {
  text-align: center;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--ls-muted);
  font-variant-numeric: tabular-nums;
  margin-bottom: 0.2rem;
}

.lobby-settings__name {
  text-align: center;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--cx-text-primary, #fbfcfc);
  margin: 0 0 0.85rem;
}

.lobby-settings__rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-bottom: 1rem;
}

.lobby-settings__row {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.62rem 0;
  border-bottom: 1px solid var(--ls-line);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--cx-text-primary, #fbfcfc);
}

.lobby-settings__row:last-of-type {
  border-bottom: none;
}

.lobby-settings__row-icon {
  flex: 0 0 auto;
  width: 1.35rem;
  height: 1.35rem;
  color: var(--ls-lime);
}

.lobby-settings__row-main {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}

.lobby-settings__row-text {
  min-width: 0;
  word-break: break-word;
}

.lobby-settings__badge {
  flex-shrink: 0;
  margin-left: auto;
  padding: 0.18rem 0.55rem;
  border-radius: 9999px;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--ls-lime-inner);
  background: var(--ls-lime);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12);
}

.lobby-settings__actions-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.lobby-settings__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  min-height: 2.65rem;
  padding: 0.45rem 0.5rem;
  border-radius: 16px;
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--cx-text-primary, #fbfcfc);
  border: none;
  background: #488453;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

.lobby-settings__btn svg {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--ls-lime, #a6d90f);
}

.lobby-settings__btn:active {
  transform: scale(0.98);
}

/* --- Accordions (expand_controller + button trigger) --- */
.lobby-settings__accordion {
  margin-bottom: 0.75rem;
  border-radius: 16px;
  border: none;
  background: var(--ls-bar-bg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  /* Closed: clip shadow/corners. Open: avoid clipping the accordion body (WebKit overflow quirks). */
  overflow: hidden;
  /* Helps programmatic scroll leave space above the fixed dock */
  scroll-margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px) + 16px);
}

.lobby-settings__accordion.is-expanded {
  overflow: visible;
}

button.lobby-settings__accordion-trigger {
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  min-height: 3.15rem;
  width: 100%;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  color: inherit;
  text-align: left;
  appearance: none;
  -webkit-tap-highlight-color: transparent;
}

.lobby-settings__accordion-trigger:focus-visible {
  outline: 2px solid rgba(251, 252, 252, 0.45);
  outline-offset: 2px;
}

.lobby-settings__accordion-title {
  flex: 1 1 auto;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cx-text-primary, #fbfcfc);
}

.lobby-settings__accordion-ico {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--ls-bar-icon);
}

.lobby-settings__chev {
  width: 1.1rem;
  height: 1.1rem;
  flex-shrink: 0;
  color: var(--ls-bar-icon);
  transition: transform 0.2s ease;
}

.lobby-settings__chev.lobby-settings__chev--open {
  transform: rotate(180deg);
}

.lobby-settings__accordion-body {
  padding: 0 1rem 1rem;
}

.lobby-settings__accordion-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid var(--ls-line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cx-text-primary, #fbfcfc);
}

.lobby-settings__accordion-row:first-child {
  border-top: none;
  padding-top: 0.25rem;
}

/* Toggles (Daisy) — paleta lobby */
.lobby-settings__row-tools {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-shrink: 0;
}

.lobby-settings__row-tools--locale {
  flex-shrink: 0;
}

.lobby-settings__visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/*
 * Idioma — Figma: trilho #7DC087, bolinha #1C5228, sigla só na metade livre (nunca sob a bolinha).
 * Mesmo tamanho que .toggle.toggle-sm (3.15×1.65rem). PT = checked = bolinha à direita + “PT” à esquerda.
 */
.lobby-settings__locale-track {
  --locale-knob-size: calc(1.65rem - 6px);
  position: relative;
  display: block;
  width: 3.15rem;
  height: 1.65rem;
  margin: 0;
  padding: 3px;
  border: none;
  border-radius: 9999px;
  background: var(--ls-toggle-track);
  cursor: pointer;
  flex-shrink: 0;
  box-sizing: border-box;
  outline: none;
  box-shadow: none;
  -webkit-tap-highlight-color: transparent;
}

/* Anel só com teclado (Tab) — evita “borda” cinza após toque no WebView */
.lobby-settings__locale-track:has(
    .lobby-settings__locale-input:focus-visible
  ) {
  box-shadow: 0 0 0 2px rgba(251, 252, 252, 0.45);
}

.lobby-settings__locale-input {
  outline: none;
}

.lobby-settings__locale-knob {
  position: absolute;
  top: 50%;
  left: 3px;
  z-index: 2;
  width: var(--locale-knob-size);
  height: var(--locale-knob-size);
  border-radius: 50%;
  background: var(--ls-toggle-thumb);
  transform: translateY(-50%);
  transition: left 0.2s ease;
  pointer-events: none;
}

.lobby-settings__locale-track:has(.lobby-settings__locale-input:checked)
  .lobby-settings__locale-knob {
  left: calc(100% - 3px - var(--locale-knob-size));
}

.lobby-settings__locale-text {
  position: absolute;
  top: 50%;
  z-index: 1;
  transform: translateY(-50%);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  line-height: 1;
  color: var(--ls-toggle-thumb);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

.lobby-settings__locale-text--pt {
  left: 0.38rem;
}

.lobby-settings__locale-text--en {
  right: 0.38rem;
}

.lobby-settings__locale-track:has(.lobby-settings__locale-input:checked)
  .lobby-settings__locale-text--pt {
  opacity: 1;
}

.lobby-settings__locale-track:has(.lobby-settings__locale-input:not(:checked))
  .lobby-settings__locale-text--en {
  opacity: 1;
}

.lobby-settings .toggle.toggle-sm {
  height: 1.65rem;
  width: 3.15rem;
  border: none;
  background-color: var(--ls-toggle-track);
  --tglbg: var(--ls-toggle-track);
  color: var(--ls-toggle-thumb);
  background-image: none;
}

.lobby-settings .toggle.toggle-sm::before {
  background-color: var(--ls-toggle-thumb);
  box-shadow: none;
}

.lobby-settings .toggle.toggle-sm:checked,
.lobby-settings .toggle.toggle-primary.toggle-sm:checked {
  background-color: var(--ls-toggle-track);
  border: none;
  color: var(--ls-toggle-thumb);
  background-image: none;
}

/* --- Lista links (accordion 2) --- */
.lobby-settings__nav-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.78rem 0;
  border-top: 1px solid var(--ls-line);
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--cx-text-primary, #fbfcfc);
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
}

.lobby-settings__nav-item:first-child {
  border-top: none;
  padding-top: 0.2rem;
}

.lobby-settings__nav-arrow {
  width: 1rem;
  height: 1rem;
  flex-shrink: 0;
  color: var(--ls-bar-icon);
}

.lobby-settings__nav-item--muted {
  cursor: default;
  color: var(--ls-muted);
}

/* --- Logout --- */
.lobby-settings__logout {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-shrink: 0;
  margin: 1.15rem 0 0.35rem;
  padding: 0.95rem 1rem;
  border-radius: 16px;
  border: none;
  background: var(--ls-bar-bg);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--cx-text-primary, #fbfcfc);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  -webkit-tap-highlight-color: transparent;
  scroll-margin-bottom: calc(84px + env(safe-area-inset-bottom, 0px) + 16px);
}

.lobby-settings__logout svg {
  width: 1.35rem;
  height: 1.35rem;
  flex-shrink: 0;
  color: var(--ls-bar-icon);
}

.lobby-settings__logout:active {
  transform: scale(0.99);
}

/* Visitante */
.lobby-settings--guest {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2rem 1.25rem 3rem;
  min-height: 0;
}

.lobby-settings--guest h1 {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--cx-text-primary, #fbfcfc);
  margin-bottom: 1rem;
}

.lobby-settings--guest .btn {
  margin-top: 0.5rem;
}

/* --- Lista Informações — botões (mesmo visual que links) ---------------- */
button.lobby-settings__nav-item {
  appearance: none;
  width: 100%;
  margin: 0;
  font: inherit;
  cursor: pointer;
  text-align: start;
  background: transparent;
  border: none;
}

button.lobby-settings__nav-item:focus-visible {
  outline: 2px solid var(--ls-bar-icon);
  outline-offset: 2px;
}

/* Bottom sheet estrutura: support-page.css (carregado no layout). Estilos abaixo: conteúdo dos panes em Ajustes. */

/* Settings info bottom sheet — panel + handle match Figma (certificate sheet reference). */
.lobby-settings-host .bottom-sheet__panel {
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

/* Version pane — Figma (Versão sheet): 360×590, fill #0A421B, top radius 16px,
   body text 12px Inter #FBFCFC in a 310px-wide column (25px inline padding). */
.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] {
  height: 590px;
  max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 48px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] .lobby-settings-sheet {
  padding: 20px 25px 24px;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] .lobby-settings-sheet__pane-title-lime {
  margin: 0 0 12px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  color: #a6d90f;
  text-align: center;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] .lobby-settings-sheet__version-intro {
  margin: 0 0 16px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 0;
  color: #fbfcfc;
  text-align: center;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] .lobby-settings-sheet__numbered {
  max-width: 310px;
  margin: 0 auto;
  padding-left: 0;
  list-style-position: outside;
  padding-inline-start: 1.15rem;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 12px;
  letter-spacing: 0;
  color: #fbfcfc;
  text-align: left;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] .lobby-settings-sheet__numbered li {
  margin-bottom: 12px;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] .lobby-settings-sheet__numbered li:last-child {
  margin-bottom: 0;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] .lobby-settings-sheet__numbered li strong {
  display: block;
  margin-bottom: 4px;
  font-size: 12px;
  font-weight: 700;
  line-height: 12px;
  color: #fbfcfc;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="version"] .lobby-settings-sheet__numbered li p {
  margin: 0;
  font-size: 12px;
  font-weight: 400;
  /* Figma lists 12px line-height for the block; wrapped PT-BR needs a touch more leading. */
  line-height: 14px;
  color: #fbfcfc;
}

.lobby-settings-host .bottom-sheet__handle::before {
  background: #7dc087;
}

/* Certificate sheet — Figma: neutral drag pill (not lime). */
.lobby-settings-host .bottom-sheet__panel[data-active-pane="certificate"] > .bottom-sheet__handle::before {
  background: rgba(251, 252, 252, 0.22);
}

/* Backdrop blur when info sheet is open (Figma profile behind certificate). */
.lobby-settings-host .bottom-sheet__backdrop {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

/* Sheet de Ajustes — conteúdo por painel (Certificado / Versão / Termos / … ) */
.lobby-settings-sheet {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0 1rem 1rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
}

.lobby-settings-sheet__pane-title-subtle {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 800;
  color: var(--cx-text-primary, #fbfcfc);
}

.lobby-settings-sheet__pane-title-lime {
  margin: 0 0 0.85rem;
  font-size: 1.06rem;
  font-weight: 800;
  color: var(--ls-lime);
  text-align: center;
}

.lobby-settings-sheet__mono {
  margin: 0 0 1rem;
  font-size: 0.88rem;
  line-height: 1.5;
  color: rgba(251, 252, 252, 0.9);
}

/* GLI certificate pane — Figma: sheet 360×357, fill #0A421B; text on panel;
   image block = lighter green #1C5228 pad with #D9D9D9 296×108 (radius 16) inside. */
.lobby-settings-host .bottom-sheet__panel[data-active-pane="certificate"] {
  height: 357px;
  max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 24px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="certificate"] .lobby-settings-sheet {
  padding: 14px 16px 18px;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="certificate"] section[data-pane="certificate"] {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

/* Terms sheet — Figma (791-2821): compact sheet ~360×198; neutral handle; lime title; pill buttons. */
.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] {
  height: auto;
  max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 24px);
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] > .bottom-sheet__handle::before {
  background: rgba(251, 252, 252, 0.22);
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] .bottom-sheet__body {
  flex: 0 0 auto;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] .lobby-settings-sheet {
  flex: 0 0 auto;
  min-height: 0;
  padding: 6px 16px 18px;
  overflow: visible;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] section[data-pane="terms"] {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  width: 100%;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] .lobby-settings-sheet__pane-title-lime {
  margin: 0 0 14px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
  letter-spacing: 0;
  color: #a6d90f;
  text-align: center;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] .lobby-settings-sheet__terms-actions {
  gap: 12px;
  margin-top: 0;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] .lobby-settings-sheet__terms-actions .lobby-settings-sheet__link-btn {
  box-sizing: border-box;
  width: 100%;
  min-height: 44px;
  padding: 12px 16px;
  border-radius: 9999px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
  color: #fbfcfc;
  background: #336c3e;
  border: none;
  box-shadow: none;
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="terms"] .lobby-settings-sheet__terms-actions .lobby-settings-sheet__link-btn:active {
  opacity: 0.94;
  transform: scale(0.992);
}

.lobby-settings-sheet__certificate-intro {
  box-sizing: border-box;
  width: 100%;
  max-width: 310px;
  margin: 0 0 14px;
  padding: 0;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 14px;
  letter-spacing: 0;
  color: #fbfcfc;
  text-align: center;
}

.lobby-settings-sheet__certificate-media {
  box-sizing: border-box;
  width: 100%;
  max-width: 328px;
  margin: 0 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #1c5228;
}

.lobby-settings-sheet__certificate-image {
  box-sizing: border-box;
  width: 100%;
  max-width: 296px;
  height: 108px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  background: #d9d9d9;
}

.lobby-settings-sheet__certificate-image-label {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: #000;
  text-transform: lowercase;
}

.lobby-settings-sheet__link-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.92rem 1rem;
  border-radius: 14px;
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  color: var(--cx-text-primary, #fbfcfc);
  background: rgba(28, 82, 40, 0.95);
  border: 1px solid rgba(125, 192, 135, 0.35);
  -webkit-tap-highlight-color: transparent;
}

.lobby-settings-sheet__link-btn:active {
  transform: scale(0.995);
}

.lobby-settings-sheet__link-btn--primary {
  background: linear-gradient(180deg, #3d9249 0%, #2d6f38 100%);
  border-color: rgba(166, 217, 15, 0.35);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

/* Certificate CTA — Figma: full content width (328), #488453, radius 10. */
a.lobby-settings-sheet__link-btn--certificate,
.lobby-settings-sheet__link-btn--certificate {
  box-sizing: border-box;
  width: 100%;
  max-width: 328px;
  margin: 0;
  min-height: 40px;
  padding: 11px 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  background: #488453;
  border: none;
  box-shadow: none;
}

a.lobby-settings-sheet__link-btn--certificate:active,
.lobby-settings-sheet__link-btn--certificate:active {
  transform: scale(0.995);
  opacity: 0.96;
}

.lobby-settings-sheet__version-intro {
  margin: 0 0 0.85rem;
  font-size: 0.82rem;
  color: rgba(251, 252, 252, 0.78);
}

.lobby-settings-sheet__numbered {
  margin: 0;
  padding-left: 1.35rem;
  color: rgba(251, 252, 252, 0.95);
  font-size: 0.86rem;
  line-height: 1.45;
}

.lobby-settings-sheet__numbered li {
  margin-bottom: 1rem;
}

.lobby-settings-sheet__numbered li strong {
  display: block;
  margin-bottom: 0.3rem;
  font-weight: 700;
}

.lobby-settings-sheet__numbered li p {
  margin: 0;
  color: rgba(251, 252, 252, 0.86);
}

.lobby-settings-sheet__terms-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

/* Ranking / Editar: botões com mesmo visual dos links ------------------- */
button.lobby-settings__top-action {
  appearance: none;
  margin: 0;
  border: none;
  background: transparent;
  font: inherit;
  cursor: pointer;
}

button.lobby-settings__top-action:focus-visible {
  outline: 2px solid var(--ls-bar-icon);
  outline-offset: 2px;
  border-radius: 8px;
}

/* Bottom sheet Editar perfil — Figma (node 835-3235 / frame 835-3079) */
.profile-edit-sheet-host {
  /* Same stack as lobby / palette so the sheet matches Ajustes typography. */
  font-family: var(--cx-font-sans, "Inter", ui-sans-serif, system-ui, sans-serif);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  --pes-panel: #0a421b;
  --pes-panel-top: #0f4a24;
  /* Figma: input interiors use the same fill as the modal (#0A421B), bordered by #C4FFCB. */
  --pes-input-fill: #0a421b;
  --pes-submit-fill: #488453;
  --pes-input-border: #c4ffcb;
  --pes-lime: #a6d90f;
  --pes-text: #fbfcfc;
  --pes-text-muted: rgba(196, 255, 203, 0.55);
  /* Inner “card” matches profile card gradient end (Figma secondary surface). */
  --pes-card: #336c3e;
  --pes-card-border: rgba(196, 255, 203, 0.22);
  --pes-popover: #336c3e;
  --pes-warm: #fefec3;
  --pes-gold: #f1dc22;
  --pes-gold-soft: #e9b636;
}

.profile-edit-sheet-host .bottom-sheet {
  z-index: 72;
}

/* Hug content like Figma sheet (generic bottom-sheet is 75% height — looks wrong here). */
.profile-edit-sheet-host .bottom-sheet__panel {
  height: auto;
  max-height: min(88vh, calc(100dvh - 72px - env(safe-area-inset-bottom, 0px)));
  min-height: 0;
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  border-top: 1px solid rgba(196, 255, 203, 0.14);
  background: linear-gradient(
    180deg,
    var(--pes-panel-top) 0%,
    var(--pes-panel) 42%,
    var(--pes-panel) 100%
  );
}

.profile-edit-sheet-host .bottom-sheet__handle::before {
  background: rgba(251, 252, 252, 0.22);
}

.profile-edit-sheet {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  font-family: inherit;
  color: var(--pes-text);
}

.profile-edit-sheet__scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  /* Avoid clipping the email notch (overflow-x: hidden forces overflow-y: auto and clips abs children). */
  overflow-x: clip;
  -webkit-overflow-scrolling: touch;
  padding: 12px 16px 20px;
  background: transparent;
}

.profile-edit-sheet__title {
  margin: 0 0 16px;
  max-width: 328px;
  margin-inline: auto;
  font-family: inherit;
  font-size: 15px;
  font-weight: 800;
  line-height: 22px;
  letter-spacing: 0;
  color: var(--pes-lime);
  text-align: start;
}

.profile-edit-sheet__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 328px;
  width: 100%;
  margin: 0 auto;
}

.profile-edit-sheet__field {
  margin-bottom: 0;
}

.profile-edit-sheet__label {
  display: block;
  margin: 0 0 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--pes-lime);
}

.profile-edit-sheet__outline-field--email {
  position: relative;
  /* Reserve vertical space so the floating “E-mail” notch sits on the border without clipping. */
  padding-top: 8px;
}

.profile-edit-sheet__outline-field--email .profile-edit-sheet__input-floating {
  position: absolute;
  left: 14px;
  top: 8px;
  z-index: 2;
  transform: translateY(-50%);
  padding: 0 5px;
  font-family: inherit;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--pes-text);
  /* Match input + modal base so the “E-mail” notch blends with the field. */
  background: var(--pes-input-fill);
  pointer-events: none;
}

.profile-edit-sheet__input-shell {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  width: 100%;
  height: 48px;
  min-height: 48px;
  max-height: 48px;
  padding: 0 14px;
  border-radius: 16px;
  border: 1px solid var(--pes-input-border);
  background: var(--pes-input-fill);
  overflow: visible;
}

.profile-edit-sheet__input-shell--phone {
  gap: 10px;
  padding-top: 0;
  padding-bottom: 0;
}

/* No standalone .input-floating here — only used inside .outline-field--email. */

.profile-edit-sheet__phone-flag-text {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
}

.profile-edit-sheet__phone-divider {
  width: 1px;
  height: 1.25rem;
  flex-shrink: 0;
  background: rgba(196, 255, 203, 0.45);
}

.profile-edit-sheet__phone-prefix {
  flex-shrink: 0;
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.02em;
  color: var(--pes-text);
}

.profile-edit-sheet__input {
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  outline: none;
  font-family: inherit;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--pes-text);
}

.profile-edit-sheet__input::placeholder {
  color: var(--pes-text-muted);
}

.profile-edit-sheet__input:-webkit-autofill,
.profile-edit-sheet__input:-webkit-autofill:hover,
.profile-edit-sheet__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--pes-text);
  caret-color: var(--pes-text);
  box-shadow: 0 0 0 1000px var(--pes-input-fill) inset;
  transition: background-color 99999s ease-out 0s;
}

.profile-edit-sheet__input--phone {
  flex: 1 1 auto;
  min-width: 0;
}

.profile-edit-sheet__section-title {
  max-width: 328px;
  width: 100%;
  margin: 4px auto 8px;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: 0;
  color: var(--pes-text);
}

.profile-edit-sheet__picker-card .profile-edit-sheet__section-title {
  max-width: none;
  width: 100%;
  margin-left: 0;
  margin-right: 0;
  color: var(--pes-warm);
}

.profile-edit-sheet__section-title--picker-top {
  margin: 0 0 8px;
}

.profile-edit-sheet__section-title--in-card {
  margin: 14px 0 8px;
}

.profile-edit-sheet__picker-card {
  box-sizing: border-box;
  width: 100%;
  max-width: 328px;
  margin: 0 auto 0;
  padding: 14px 12px 12px;
  border-radius: 16px;
  background: var(--pes-card);
  border: 1px solid var(--pes-card-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.profile-edit-sheet__preview-row {
  display: flex;
  justify-content: center;
  margin-bottom: 12px;
}

.profile-edit-sheet__preview-frame {
  box-sizing: border-box;
  width: 5.25rem;
  height: 5.25rem;
  padding: 3px;
  border-radius: 9999px;
  background: linear-gradient(
    135deg,
    var(--pes-gold) 0%,
    var(--pes-gold-soft) 55%,
    #fff6a8 100%
  );
  box-shadow:
    0 0 0 2px rgba(3, 18, 7, 0.55),
    0 0 18px rgba(241, 220, 34, 0.35);
}

.profile-edit-sheet__preview-img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 9999px;
  object-fit: cover;
  background: rgba(3, 18, 7, 0.45);
}

.profile-edit-sheet__hscroll {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  overflow-y: visible;
  padding-bottom: 4px;
  margin-bottom: 0;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.profile-edit-sheet__hscroll::-webkit-scrollbar {
  height: 4px;
}

.profile-edit-sheet__avatar-tile {
  flex: 0 0 auto;
  width: 3.05rem;
  height: 3.05rem;
  padding: 0;
  margin: 0;
  appearance: none;
  border-radius: 12px;
  border: 2px solid transparent;
  background: rgba(10, 66, 27, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.profile-edit-sheet__avatar-tile.is-picked {
  border-color: var(--pes-lime);
  box-shadow: 0 0 10px rgba(166, 217, 15, 0.28);
}

.profile-edit-sheet__avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}

.profile-edit-sheet__add-slot {
  position: relative;
  flex: 0 0 auto;
}

.profile-edit-sheet__add-btn {
  box-sizing: border-box;
  width: 3.05rem;
  height: 3.05rem;
  border-radius: 12px;
  border: none;
  background: rgba(125, 192, 135, 0.42);
  padding: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
}

.profile-edit-sheet__add-btn:active {
  opacity: 0.92;
  transform: scale(0.98);
}

.profile-edit-sheet__add-btn-visual {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.profile-edit-sheet__add-btn-ring {
  box-sizing: border-box;
  width: 1.38rem;
  height: 1.38rem;
  border-radius: 9999px;
  border: 2px solid #0a421b;
  display: grid;
  place-items: center;
  color: #0a421b;
}

.profile-edit-sheet__add-btn-plus {
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  margin-top: -1px;
}

/* Figma: 154×98, fill #336C3E, radius 16, light border; pills #1C5228. Fixed so overflow scroll does not clip. */
.profile-edit-sheet__media-popover {
  position: fixed;
  top: 0;
  left: 0;
  box-sizing: border-box;
  width: 154px;
  min-height: 98px;
  padding: 8px;
  border-radius: 16px;
  background: #336c3e;
  border: 1px solid rgba(196, 255, 203, 0.28);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  z-index: 300;
  display: flex;
  flex-direction: column;
  gap: 8px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
  transition:
    opacity 0.18s ease,
    transform 0.18s ease,
    visibility 0.18s;
}

.profile-edit-sheet__media-popover[data-open="true"] {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.profile-edit-sheet__media-option {
  width: 100%;
  appearance: none;
  border: none;
  margin: 0;
  box-sizing: border-box;
  min-height: 37px;
  padding: 8px 10px;
  border-radius: 9999px;
  background: #1c5228;
  font-family: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.25;
  color: #fbfcfc;
  text-align: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-edit-sheet__media-option:active {
  opacity: 0.92;
  transform: scale(0.99);
}

.profile-edit-sheet__frame-opt {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.42rem;
  width: 4.05rem;
  padding: 0;
  appearance: none;
  border: none;
  margin: 0;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-edit-sheet__frame-ring {
  width: 3rem;
  height: 3rem;
  border-radius: 9999px;
  box-sizing: border-box;
  border: 2px solid transparent;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.12);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.profile-edit-sheet__frame-opt.is-picked .profile-edit-sheet__frame-ring {
  border-color: var(--pes-lime);
  box-shadow:
    inset 0 0 0 2px rgba(166, 217, 15, 0.35),
    0 0 12px rgba(166, 217, 15, 0.25);
}

.profile-edit-sheet__frame-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.profile-edit-sheet__frame-caption {
  font-size: 0.62rem;
  font-weight: 700;
  color: rgba(251, 252, 252, 0.92);
  text-align: center;
  line-height: 1.2;
  font-family: inherit;
}

.profile-edit-sheet__frame-cost {
  font-size: 0.58rem;
  font-weight: 700;
  color: rgba(251, 252, 252, 0.78);
}

.profile-edit-sheet__footer {
  position: sticky;
  bottom: 0;
  margin-top: 4px;
  padding-top: 16px;
  padding-bottom: 6px;
  max-width: 328px;
  width: 100%;
  margin-inline: auto;
  background: linear-gradient(
    180deg,
    transparent 0%,
    var(--pes-panel-top) 28%,
    var(--pes-panel) 55%
  );
}

.profile-edit-sheet__submit {
  box-sizing: border-box;
  display: block;
  width: 100%;
  max-width: 327px;
  margin: 0 auto;
  appearance: none;
  border: none;
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  padding: 0 40px;
  border-radius: 10px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--pes-text);
  background: var(--pes-submit-fill);
  box-shadow: none;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-edit-sheet__submit:active {
  transform: scale(0.992);
  opacity: 0.95;
}

.profile-edit-sheet__sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* --------------------------------------------------------------------------
 * Bottom sheet "Alterar senha" — Figma node 857-2569.
 * Panel: 360×268, fill #0A421B, 1px black stroke, top-radius 16px, padding
 * 15px/20px. Layered above profile-edit so it can be opened on top.
 * ------------------------------------------------------------------------ */
.password-change-sheet-host .bottom-sheet {
  z-index: 73;
}

/* Figma panel is 268px (no submit button); we keep the submit visible so the
   panel grows to fit it. Visual chrome (fill, stroke, radius, padding) still
   matches Figma node 857-2569. */
.password-change-sheet-host .bottom-sheet__panel {
  height: auto;
  border: 1px solid #000;
}

.password-change-sheet {
  display: flex;
  flex-direction: column;
  padding: 15px 20px;
}

.password-change-sheet__title {
  margin: 0 0 12px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  letter-spacing: 0;
  color: #a6d90f;
  text-align: center;
}

.password-change-sheet__form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.password-change-sheet__field {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.password-change-sheet__input-shell {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  height: 48px;
  padding: 0 16px;
  border-radius: 999px;
  border: 1px solid #7dc087;
  background: transparent;
  transition: border-color 0.15s ease;
}

.password-change-sheet__input-shell:focus-within {
  border-color: var(--ls-lime, #a6d90f);
}

.password-change-sheet__input-shell--error {
  border-color: #ff6b6b;
}

.password-change-sheet__input {
  flex: 1 1 auto;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: var(--cx-text-primary, #fbfcfc);
  outline: none;
  text-align: center;
}

.password-change-sheet__input::placeholder {
  color: #979797;
  font-weight: 500;
}

.password-change-sheet__eye {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: transparent;
  color: var(--ls-lime, #a6d90f);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.password-change-sheet__eye:active {
  transform: scale(0.95);
}

.password-change-sheet__eye-icon {
  width: 1.25rem;
  height: 1.25rem;
}

.password-change-sheet__hint {
  margin: 0;
  padding: 0 0.6rem;
  font-size: 0.7rem;
  font-weight: 500;
  color: rgba(251, 252, 252, 0.7);
  line-height: 1.35;
}

.password-change-sheet__error {
  margin: 0;
  padding: 0 0.6rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: #ff8e8e;
  line-height: 1.3;
}

.password-change-sheet__footer {
  margin-top: 0.45rem;
  padding-top: 0.4rem;
}

.password-change-sheet__submit {
  width: 100%;
  appearance: none;
  border: none;
  padding: 0.95rem 1rem;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--cx-text-primary, #fbfcfc);
  background: linear-gradient(180deg, #3d9249 0%, #2d6f38 100%);
  box-shadow:
    0 4px 14px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.password-change-sheet__submit:active {
  transform: scale(0.992);
}

.password-change-sheet__submit:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.password-change-sheet__submit[data-submitting="true"] {
  opacity: 0.65;
}

/* --- Export data sheet (Figma ~836-2469) -------------------------------- */
.lobby-settings-host .bottom-sheet__panel[data-active-pane="export_history"] {
  max-height: calc(100dvh - 72px - env(safe-area-inset-bottom, 0px) - 28px);
  border-top-left-radius: 20px;
  border-top-right-radius: 20px;
}

.lobby-settings-host
  .bottom-sheet__panel[data-active-pane="export_history"]
  > .bottom-sheet__handle::before {
  background: rgba(251, 252, 252, 0.22);
}

.lobby-settings-host .bottom-sheet__panel[data-active-pane="export_history"] .lobby-settings-sheet {
  padding: 6px 16px 18px;
}

.export-data-sheet-host {
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
  box-sizing: border-box;
}

.export-data-sheet__step {
  display: flex;
  flex-direction: column;
  gap: 0;
  padding-bottom: 4px;
}

.export-data-sheet__title {
  margin: 0 0 8px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  letter-spacing: 0;
  color: #a6d90f;
  text-align: center;
}

.export-data-sheet__subtitle {
  margin: 0 0 16px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 400;
  line-height: 16px;
  color: #fbfcfc;
  text-align: center;
}

.export-data-sheet__field {
  margin-bottom: 12px;
}

.export-data-sheet__field--half {
  flex: 1 1 0;
  min-width: 0;
  margin-bottom: 0;
}

.export-data-sheet__field--search {
  margin-bottom: 12px;
}

.export-data-sheet__date-row {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.export-data-sheet__input-shell {
  position: relative;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0 12px;
  border-radius: 16px;
  border: 1px solid #7dc087;
  background: #1c5228;
}

.export-data-sheet__input-shell--search {
  padding-right: 40px;
}

.export-data-sheet__floating {
  position: absolute;
  left: 12px;
  top: -7px;
  padding: 0 4px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  color: #fbfcfc;
  background: #0a421b;
  border-radius: 4px;
}

.export-data-sheet__input {
  width: 100%;
  border: none;
  background: transparent;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.25;
  color: #fbfcfc;
  outline: none;
}

.export-data-sheet__input::placeholder {
  color: rgba(251, 252, 252, 0.45);
}

.export-data-sheet__search-ico {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  width: 22px;
  height: 22px;
  color: #a6d90f;
  pointer-events: none;
}

.export-data-sheet__search-ico svg {
  width: 100%;
  height: 100%;
}

.export-data-sheet__segmented {
  display: flex;
  box-sizing: border-box;
  width: 100%;
  max-width: 328px;
  margin: 0 auto 14px;
  padding: 3px;
  border-radius: 9999px;
  border: 1px solid rgba(251, 252, 252, 0.35);
  background: rgba(10, 66, 27, 0.65);
  gap: 2px;
}

.export-data-sheet__segment {
  flex: 1 1 0;
  min-width: 0;
  appearance: none;
  margin: 0;
  border: none;
  border-radius: 9999px;
  padding: 8px 6px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: 0.01em;
  color: #fbfcfc;
  background: transparent;
  cursor: pointer;
  transition:
    background 0.15s ease,
    color 0.15s ease;
  -webkit-tap-highlight-color: transparent;
}

.export-data-sheet__segment.is-active {
  color: #031207;
  background: linear-gradient(90deg, #a6d90f 0%, #00f2ff 100%);
  box-shadow: 0 2px 10px rgba(0, 242, 255, 0.18);
}

.export-data-sheet__segment:focus-visible {
  outline: 2px solid #7dc087;
  outline-offset: 2px;
}

.export-data-sheet__custom[hidden] {
  display: none !important;
}

.export-data-sheet__cal {
  margin-top: 4px;
  margin-bottom: 6px;
}

.export-data-sheet__cal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}

.export-data-sheet__cal-month {
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: #a6d90f;
  text-transform: capitalize;
}

.export-data-sheet__cal-nav {
  appearance: none;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: rgba(28, 82, 40, 0.85);
  color: #a6d90f;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.export-data-sheet__cal-nav:active {
  transform: scale(0.96);
}

.export-data-sheet__cal-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
  text-align: center;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: rgba(251, 252, 252, 0.88);
}

.export-data-sheet__cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px 2px;
  justify-items: center;
}

.export-data-sheet__cal-day {
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 9999px;
  border: 1px solid rgba(251, 252, 252, 0.28);
  background: transparent;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 600;
  color: #fbfcfc;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.export-data-sheet__cal-day.is-outside {
  opacity: 0.35;
  border-color: rgba(255, 255, 255, 0.12);
}

.export-data-sheet__cal-day.is-in-range {
  background: rgba(125, 192, 135, 0.28);
  border-color: rgba(125, 192, 135, 0.45);
  color: #031207;
}

.export-data-sheet__cal-day.is-endpoint {
  background: #7dc087;
  border-color: #7dc087;
  color: #031207;
  font-weight: 800;
}

.export-data-sheet__actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
  padding-top: 4px;
}

.export-data-sheet__btn {
  appearance: none;
  width: 100%;
  max-width: 328px;
  margin: 0 auto;
  box-sizing: border-box;
  min-height: 48px;
  padding: 12px 16px;
  border-radius: 16px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
  cursor: pointer;
  border: none;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.1s ease, opacity 0.15s ease;
}

.export-data-sheet__btn:active {
  transform: scale(0.992);
}

.export-data-sheet__btn--primary {
  color: #fbfcfc;
  background: #488453;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.export-data-sheet__btn--outline {
  color: #fbfcfc;
  background: #1c5228;
  border: 1px solid #7dc087;
}

.export-data-sheet__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(280px, 42dvh);
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 4px;
  padding-right: 2px;
}

.export-data-sheet__card {
  box-sizing: border-box;
  width: 100%;
  padding: 12px 14px 14px;
  border-radius: 16px;
  border: 1px solid #488453;
  background: #1c5228;
}

.export-data-sheet__card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.export-data-sheet__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 12px;
  font-weight: 500;
  color: rgba(251, 252, 252, 0.88);
}

.export-data-sheet__meta-ico {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #7dc087;
}

.export-data-sheet__card-rule {
  height: 1px;
  margin: 0 0 10px;
  border: none;
  background: rgba(125, 192, 135, 0.22);
}

.export-data-sheet__card-line {
  margin: 0 0 6px;
  font-family: "Inter", ui-sans-serif, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 600;
  line-height: 24px;
  color: #fbfcfc;
}

.export-data-sheet__card-line strong {
  font-weight: 700;
}

.export-data-sheet__card-line--muted {
  margin-bottom: 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 20px;
  color: rgba(251, 252, 252, 0.78);
}
