/* AgroTermo — base: reset, tipografia, grade das mesas e casca da aplicação
   (faixa da mesa com as abas, linha de contexto, cotações em linha, conteúdo e rodapé). */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scrollbar-color: var(--border-strong) transparent;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: var(--fs-md);
  line-height: var(--lh);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1, "calt" 1;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-family: var(--font-display);
  line-height: var(--lh-tight);
  color: var(--ink);
  text-wrap: balance;
}

h1 {
  font-size: var(--fs-xl);
  font-weight: var(--fw-semibold);
}

h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-semibold);
}

h3 {
  font-size: var(--fs-md);
  font-weight: var(--fw-semibold);
}

p {
  margin: 0;
}

a {
  color: var(--link);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-thickness: 1px;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
}

img,
svg {
  display: block;
}

table {
  border-collapse: collapse;
}

strong,
b {
  font-weight: var(--fw-semibold);
}

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  padding: 1px 4px;
  border-radius: var(--r-sm);
  background: var(--surface-sunken);
}

:focus {
  outline: none;
}

:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
  border-radius: var(--r-sm);
}

::selection {
  background: var(--gold-soft);
  color: var(--ink);
}

::placeholder {
  color: var(--ink-3);
  opacity: 1;
}

/* Barras de rolagem no tom do papel (Chromium e WebKit). */
::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 8px;
  background: var(--border-strong);
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

[hidden] {
  display: none !important;
}

.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;
}

.skip-link {
  position: absolute;
  left: var(--sp-4);
  top: -48px;
  z-index: 100;
  padding: var(--sp-2) var(--sp-4);
  border-radius: var(--r-sm);
  background: var(--brand);
  color: var(--on-brand);
  font-weight: var(--fw-semibold);
}

.skip-link:focus {
  top: var(--sp-3);
}

.icon {
  width: 18px;
  height: 18px;
  flex: none;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.icon-sm {
  width: 15px;
  height: 15px;
}

.icon-lg {
  width: 22px;
  height: 22px;
}

.flip {
  transform: scaleX(-1);
}

.num {
  font-variant-numeric: tabular-nums;
}

.muted {
  color: var(--ink-3);
}

.note {
  font-size: var(--fs-sm);
}

/* ------------------------------------------------------------------ glifos das commodities */

.glyph {
  stroke-width: 1.6;
}

.glyph-xs {
  width: 13px;
  height: 13px;
}

.glyph-sm {
  width: 16px;
  height: 16px;
}

/* ------------------------------------------------------------------ grade das mesas */

/*
 * Mesa: cartões brancos numa grade de 12 colunas, separados por um vão (o visual da prancheta
 * Campo). Cada cartão tem filete de 1 px e canto de cartão; cada linha da mesa precisa fechar as
 * 12 colunas; em telas estreitas tudo empilha. `overflow: clip` arredonda os cantos sem virar
 * área de rolagem (o que quebraria os painéis fixos por `position: sticky`).
 */
.sheet {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: var(--gap);
}

.sheet > *,
.sheet > .col > * {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: var(--r-card);
  overflow: clip;
}

.sheet > * {
  grid-column: span 12;
}

.sheet > .span-2 { grid-column: span 2; }
.sheet > .span-3 { grid-column: span 3; }
.sheet > .span-4 { grid-column: span 4; }
.sheet > .span-5 { grid-column: span 5; }
.sheet > .span-6 { grid-column: span 6; }
.sheet > .span-7 { grid-column: span 7; }
.sheet > .span-8 { grid-column: span 8; }
.sheet > .span-9 { grid-column: span 9; }
.sheet > .span-10 { grid-column: span 10; }
.sheet > .span-12 { grid-column: span 12; }

/* Coluna de cartões empilhados dentro de uma célula da mesa (com o mesmo vão entre eles). */
.sheet > .col {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
  background: none;
  border: 0;
  border-radius: 0;
  overflow: visible;
}

.sheet > .col > * {
  flex: 1 1 auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.row {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
  flex-wrap: wrap;
}

.row-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-3);
  flex-wrap: wrap;
}

/* ------------------------------------------------------------------ casca: a mesa */

/* A faixa superior é verde lavoura nos dois temas: marca, abas das telas, relógio do pregão e
   ações. Fica presa ao topo junto com a linha de contexto da tela. */
.appbar {
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar {
  background: var(--chrome);
  color: var(--on-chrome);
}

.topbar-in {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: stretch;
  column-gap: var(--sp-5);
  max-width: var(--content-max);
  min-height: var(--appbar-h);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
}

.brand:hover {
  text-decoration: none;
}

.brand-mark {
  width: 28px;
  height: 28px;
  flex: none;
}

.brand-name {
  font-size: 16px;
  font-weight: var(--fw-semibold);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Abas das telas: a ativa leva o fio dourado na borda de baixo da faixa. */
.appnav {
  position: relative;
  display: flex;
  align-items: stretch;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.appnav::-webkit-scrollbar {
  display: none;
}

.appnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  color: var(--on-chrome-2);
  font-size: var(--fs-md);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}

.appnav a:hover {
  color: var(--on-chrome);
  background: var(--chrome-2);
  text-decoration: none;
}

.appnav a[aria-current="page"] {
  color: var(--on-chrome);
}

/* O fio dourado é um só e desliza até a aba ativa (posição medida em JS). */
.appnav::after {
  content: "";
  position: absolute;
  left: var(--ind-x, 0px);
  bottom: 0;
  width: var(--ind-w, 0px);
  height: 2px;
  background: var(--gold);
  opacity: var(--ind-o, 0);
  pointer-events: none;
}

.appnav.is-ready::after {
  transition: left 300ms var(--ease), width 300ms var(--ease), opacity 200ms var(--ease);
}


.topbar-side {
  display: flex;
  align-items: center;
  gap: var(--sp-2);
}

/* Relógio do pregão: data, hora de Brasília e a situação das bolsas pela forma do ponto
   (cheio aberta, meio eletrônico, vazado fechada): nunca depende só da cor. */
.session {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  margin-right: var(--sp-2);
  font-size: var(--fs-xs);
  color: var(--on-chrome-2);
  white-space: nowrap;
}

.session [data-clock] {
  color: var(--on-chrome);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
}

.sl-market {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.sl-market b {
  font-weight: var(--fw-medium);
  color: var(--on-chrome);
}

.sl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex: none;
  border: 1.5px solid var(--on-chrome-2);
}

.sl-dot.is-open {
  border-color: var(--gold);
  background: var(--gold);
}

.sl-dot.is-night {
  border-color: var(--gold);
  background: linear-gradient(90deg, var(--gold) 50%, transparent 50%);
}

.topbar .tb-btn,
.topbar .fresh,
.topbar .tb-icon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid var(--chrome-line);
  border-radius: var(--r-md);
  background: transparent;
  color: var(--on-chrome);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease);
}

.topbar .tb-icon {
  width: 32px;
  padding: 0;
  justify-content: center;
  position: relative;
}

.topbar .tb-btn:hover,
.topbar .fresh:hover,
.topbar .tb-icon:hover {
  background: var(--chrome-2);
  border-color: var(--chrome-3);
  text-decoration: none;
}

/* Buscar, frescor e ícones são pílulas; o atalho Ctrl K fica na dica. */
.topbar .search-trigger,
.topbar .fresh,
.topbar .tb-icon {
  border-radius: var(--r-pill);
}

.topbar .search-trigger {
  padding-right: 14px;
  color: var(--on-chrome-2);
}

.topbar .fresh .fresh-alert {
  color: var(--gold);
}

.topbar .search-trigger:hover {
  color: var(--on-chrome);
}


.topbar .fresh .dot {
  border: 1.5px solid var(--on-chrome-2);
  background: transparent;
}

.topbar .fresh .dot-ok {
  border-color: var(--chrome-up);
  background: var(--chrome-up);
}

.topbar .fresh .dot-warn {
  border-color: var(--gold);
  background: var(--gold);
}

.topbar .fresh .dot-critical {
  border-color: var(--chrome-down);
  background: var(--chrome-down);
}

.topbar .tb-icon .badge-alert {
  position: absolute;
  top: -6px;
  right: -6px;
  box-shadow: 0 0 0 2px var(--chrome);
}

/* Contador na aba: em linha com o nome, nunca fora da faixa. */
.appnav .badge-alert {
  position: static;
  min-width: 16px;
  height: 16px;
  margin-left: 6px;
  padding: 0 4px;
  font-size: 10px;
}

/* ------------------------------------------------------------------ casca: linha de contexto */

/* Subabas da tela à esquerda, controles da tela no meio e as commodities (com preço e variação
   do dia) à direita. Só aparece quando a tela tem algum desses itens. */
.appbar-context {
  background: var(--surface);
  border-bottom: 1px solid var(--rule);
}

.appbar-context-inner {
  display: flex;
  align-items: center;
  gap: var(--sp-4);
  width: 100%;
  max-width: var(--content-max);
  min-height: var(--context-h);
  margin: 0 auto;
  padding: 0 var(--sp-6);
}

.subnav {
  position: relative;
  display: flex;
  align-items: stretch;
  align-self: stretch;
  gap: 2px;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
}

.subnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 var(--sp-3);
  color: var(--ink-2);
  font-weight: var(--fw-medium);
  white-space: nowrap;
}

.subnav a:hover {
  color: var(--ink);
  text-decoration: none;
}

.subnav a[aria-current="page"] {
  color: var(--ink);
  font-weight: var(--fw-semibold);
}

.subnav::after {
  content: "";
  position: absolute;
  left: var(--ind-x, 0px);
  bottom: 0;
  width: var(--ind-w, 0px);
  height: 2px;
  background: var(--brand);
  opacity: var(--ind-o, 0);
  pointer-events: none;
}

.subnav.is-ready::after {
  transition: left 260ms var(--ease), width 260ms var(--ease), opacity 200ms var(--ease);
}

.context-tools {
  display: flex;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.context-tools > div {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: var(--sp-2);
}

.context-tools:has(> div:not(:empty)) + [data-commodity-slot]:not(:empty) {
  padding-left: var(--sp-4);
  border-left: 1px solid var(--rule);
}

.context-tools:not(:has(> div:not(:empty))) + [data-commodity-slot] {
  margin-left: auto;
}

[data-commodity-slot] {
  min-width: 0;
  max-width: 100%;
}

/* Commodities como cotações: cor de identidade, nome, último preço e variação do dia. */
.tickers {
  display: flex;
  gap: 6px;
}

.tk {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 32px;
  padding: 0 5px 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink-2);
  white-space: nowrap;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease);
}

.tk:not(:has(.tk-chg)) {
  padding-right: 12px;
}

.tk::before {
  content: "";
  width: 8px;
  height: 8px;
  flex: none;
  border-radius: 50%;
  background: var(--tk-color, var(--ink-3));
}

.tk[data-value="soja"] { --tk-color: var(--sec-soja); }
.tk[data-value="milho"] { --tk-color: var(--sec-milho); }
.tk[data-value="boi"] { --tk-color: var(--sec-boi); }
.tk[data-value="cafe"] { --tk-color: var(--sec-cafe); }

.tk:hover:not(:disabled):not([aria-pressed="true"]) {
  background: var(--surface-2);
  color: var(--ink);
}

.tk-name {
  font-weight: var(--fw-medium);
}

/* Variação do dia: selo com sinal e cor dentro da pílula. */
.tk-chg {
  display: inline-flex;
  align-items: center;
  height: 22px;
  padding: 0 7px;
  border-radius: var(--r-pill);
  background: var(--surface-2);
  font-family: var(--font-num);
  font-size: var(--fs-xs);
  font-weight: var(--fw-medium);
}

.tk-chg.up { background: var(--up-soft); color: var(--up); }
.tk-chg.down { background: var(--down-soft); color: var(--down); }
.tk-chg.flat { color: var(--ink-3); }

.tk[aria-pressed="true"] {
  background: var(--brand);
  border-color: var(--brand);
  color: var(--on-brand);
}

.tk[aria-pressed="true"]::before {
  box-shadow: 0 0 0 1.5px var(--on-brand);
}

.tk:disabled {
  cursor: not-allowed;
  opacity: 0.42;
}

/* ------------------------------------------------------------------ conteúdo e rodapé */

.content {
  flex: 1 0 auto;
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--sp-4) var(--sp-6) var(--sp-6);
  display: flex;
  flex-direction: column;
  gap: var(--gap);
}

.content:focus {
  outline: none;
}

.appfoot {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-2) var(--sp-6);
  width: 100%;
  max-width: var(--content-max);
  margin: 0 auto;
  padding: var(--sp-3) var(--sp-6) var(--sp-5);
  font-size: var(--fs-xs);
  color: var(--ink-3);
}

.appfoot a,
.appfoot .link-button {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
}

.appfoot a {
  color: var(--ink-2);
}

/* Contêiner de cada tela (e do painel da aba): não entra no layout, só agrupa os ouvintes. */
.view,
.view-panel {
  display: contents;
}

/* Títulos de tela ficam para leitores de tela: o nome já está na aba ativa. */
.page-head {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.link-button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ink-2);
  font-size: inherit;
}

.link-button:hover {
  color: var(--ink);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ------------------------------------------------------------------ transição entre telas */

/* Só o conteúdo troca com um esmaecer curto; abas e linha de contexto ficam paradas. */
/* ------------------------------------------------------------------ celular: barra de telas no rodapé */

/* No computador as telas ficam no topo; no celular, numa barra presa ao rodapé, ao alcance do
   polegar (Fitts), com ícone e nome (nunca só ícone). "Mais" abre as outras telas numa folha. */
.tabbar {
  display: none;
}

.more-sheet {
  margin: auto 0 0;
  width: 100%;
}

.more-sheet-body {
  padding: var(--sp-2) var(--sp-2) calc(var(--sp-2) + env(safe-area-inset-bottom));
  border-top: 2px solid var(--gold);
  border-radius: var(--r-xl) var(--r-xl) 0 0;
  background: var(--surface);
  box-shadow: var(--shadow-2);
}

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

.more-list a,
.more-list button {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  min-height: 52px;
  padding: 0 var(--sp-4);
  border: 0;
  border-radius: var(--r-md);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: var(--fs-lg);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.more-list a:hover,
.more-list button:hover {
  background: var(--surface-hover);
}

.more-list a[aria-current="page"] {
  background: var(--brand-softer);
  font-weight: var(--fw-semibold);
}

.more-list .icon {
  color: var(--ink-3);
}

.more-list a[aria-current="page"] .icon {
  color: var(--brand);
}

.more-list .badge {
  margin-left: auto;
}

@media (prefers-reduced-motion: no-preference) {
  .content {
    view-transition-name: page;
  }

  ::view-transition-old(root),
  ::view-transition-new(root) {
    animation: none;
  }

  ::view-transition-old(page) {
    animation: vt-out 120ms ease-in both;
  }

  ::view-transition-new(page) {
    animation: vt-in 280ms var(--ease) both;
  }
}

@keyframes vt-out {
  to {
    opacity: 0;
    transform: translateY(-4px);
  }
}

@keyframes vt-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    transition-duration: 1ms !important;
  }
}

/* ------------------------------------------------------------------ responsivo */

@media (max-width: 1300px) {
  .topbar-in {
    grid-template-columns: auto minmax(0, 1fr);
    grid-template-rows: var(--appbar-h) 40px;
  }

  .brand {
    grid-row: 1;
    grid-column: 1;
  }

  .topbar-side {
    grid-row: 1;
    grid-column: 2;
    justify-self: end;
  }

  .appnav {
    grid-row: 2;
    grid-column: 1 / -1;
    border-top: 1px solid var(--chrome-line);
  }

}

@media (max-width: 1180px) {
  .sheet > .span-3,
  .sheet > .span-4 {
    grid-column: span 6;
  }

  .sheet > .span-2 {
    grid-column: span 4;
  }

  .sheet > .span-5,
  .sheet > .span-7,
  .sheet > .span-8,
  .sheet > .span-9,
  .sheet > .span-10 {
    grid-column: span 12;
  }

  .sheet > .span-4.keep,
  .sheet > .span-8.keep {
    grid-column: span 12;
  }
}

@media (max-width: 1100px) {
  .appbar-context-inner {
    flex-wrap: wrap;
    padding-block: var(--sp-2);
  }

  .session .sl-market {
    display: none;
  }

  .topbar .search-trigger {
    padding-right: 10px;
  }

  .topbar .search-trigger > span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
  }
}

@media (max-width: 860px) {
  .sheet > .span-6,
  .sheet > .span-4,
  .sheet > .span-3,
  .sheet > .span-2 {
    grid-column: span 12;
  }

  .session {
    display: none;
  }
}

@media (max-width: 760px) {
  .topbar-in,
  .appbar-context-inner,
  .content,
  .appfoot {
    padding-left: var(--sp-4);
    padding-right: var(--sp-4);
  }

  .appbar-context-inner > [data-commodity-slot],
  .context-tools:not(:has(> div:not(:empty))) + [data-commodity-slot] {
    flex: 1 1 100%;
    margin-left: 0;
  }

  .context-tools:has(> div:not(:empty)) + [data-commodity-slot]:not(:empty) {
    padding-left: 0;
    border-left: 0;
  }

  .tickers {
    max-width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .tickers::-webkit-scrollbar {
    display: none;
  }

  .topbar .fresh > span:not(.dot) {
    display: none;
  }

  .appnav a {
    padding: 0 10px;
    font-size: var(--fs-sm);
  }

  .brand-name {
    font-size: 15px;
  }
}

@media (max-width: 760px) {
  /* As telas descem para a barra do rodapé; o topo fica só com a marca e as ações rápidas. */
  .appnav,
  .topbar-side .theme-toggle,
  .topbar-side a[href="#/suporte"] {
    display: none;
  }

  .topbar-in {
    grid-template-rows: var(--appbar-h);
  }

  body:not(.login-page) {
    padding-bottom: calc(60px + env(safe-area-inset-bottom));
  }

  .tabbar {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 30;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--chrome-line);
    background: var(--chrome);
  }

  .tabbar a,
  .tabbar button {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    min-height: 60px;
    padding: 0 2px;
    border: 0;
    background: transparent;
    color: var(--on-chrome-2);
    font: inherit;
    font-size: var(--fs-2xs);
    font-weight: var(--fw-medium);
    text-decoration: none;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .tabbar span:not(.badge) {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .tabbar [aria-current="page"] {
    color: var(--on-chrome);
  }

  /* A aba ativa ganha o fio dourado no topo, o mesmo acento da aba ativa do computador. */
  .tabbar [aria-current="page"]::before {
    content: "";
    position: absolute;
    top: 0;
    left: 28%;
    right: 28%;
    height: 2px;
    border-radius: 0 0 2px 2px;
    background: var(--chrome-gold);
  }

  .tabbar .badge {
    position: absolute;
    top: 6px;
    left: calc(50% + 6px);
  }

  body .toasts {
    bottom: calc(72px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 760px) and (prefers-reduced-motion: no-preference) {
  .tabbar a,
  .tabbar button {
    transition: color var(--dur) var(--ease);
  }

  .tabbar a:active,
  .tabbar button:active {
    transform: scale(0.96);
  }

  .more-sheet[open] {
    animation: sheet-up 220ms var(--ease);
  }
}

@keyframes sheet-up {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
}
