html[data-theme="liquid-glass"] {
  --bike-bg: #e6e7e6;
  --bike-ink: #222425;
  --bike-muted: #50565a;
  --bike-accent: #4d565b;
  --bike-accent-ink: #343b3f;
  --bike-soft: #e8eaea;
  --bike-line: #c8cdcf;
  --bike-action-ink: #222425;
  --control-bg: #edefee;
  --toast-bg: #303537;
  --glass-face: linear-gradient(150deg, #ffffffbd, #f8f9f874 62%, #f2f4f4a0);
  --glass-steel:
    radial-gradient(ellipse at 18% 0%, #ffffff9e, transparent 45%),
    linear-gradient(165deg, #cbd0d2c7 0%, #e6e9e9bd 56%, #d9dedfb3 83%, #f5f7f7e0);
  --glass-rim: inset 0 1px 1px #fff, inset 0 -2px 3px #fffc;
  --glass-depth: 0 10px 24px -12px #32383c59, 0 2px 5px #3b44481a;
  background: var(--bike-bg);
  scrollbar-color: #929b9e var(--bike-bg);

  & body {
    min-height: 100dvh;
    isolation: isolate;
    background: transparent;
  }

  & body::before {
    content: '';
    position: fixed;
    z-index: -2;
    inset: 0;
    pointer-events: none;
    background:
      radial-gradient(ellipse at 96% 8%, #cfd5d8 0%, transparent 57%),
      radial-gradient(ellipse at 3% 9%, #fafaf8 0%, transparent 64%),
      linear-gradient(155deg, #eeefed, #e6e9e9 65%, #dce0e2);
  }

  & .glass-background {
    position: fixed;
    z-index: -1;
    inset: 0 0 auto;
    width: 100%;
    height: clamp(520px, 67vw, 1100px);
    pointer-events: none;
    object-fit: cover;
    object-position: center top;
    opacity: .7;
    mask-image: linear-gradient(#000 0 50%, transparent);
  }

  & ::selection {
    color: var(--bike-action-ink);
    background: #d2dbdf;
  }

  & .entry-gate { background: transparent; }

  & .entry-card {
    border: 1px solid #fffc;
    border-radius: 24px;
    background: var(--glass-face);
    box-shadow: var(--glass-rim), var(--glass-depth);
  }

  & :is(.button, .icon-button) { border-radius: 999px; }

  & :is(.button.secondary, .icon-button) {
    color: var(--bike-accent-ink);
    border: 1px solid #a3aeb291;
    background: var(--glass-steel);
    box-shadow: var(--glass-rim), 0 4px 9px -4px #323c4266;
  }

  & .button:not(.secondary, .danger) {
    color: var(--bike-action-ink);
    border: 1px solid var(--glass-lens-edge);
    background: var(--glass-action);
    box-shadow: var(--glass-lens-rim), var(--glass-lens-shadow);
  }

  & :is(.button, .icon-button):not(:disabled):active {
    box-shadow: inset 0 2px 5px #3b454a38, inset 0 -1px 2px #fff;
  }

  & #sheet {
    border: 1px solid #fff;
    border-radius: 27px;
    background: #eff1f1e0;
    box-shadow: var(--glass-rim), 0 16px 50px #262e343b;
  }

  & #sheet::backdrop {
    background: #242c3145;
    backdrop-filter: blur(4px);
  }

  & #sheet :is(input, select, textarea) {
    border-color: #7e8a90;
    border-radius: 16px;
    background-color: #fff9;
    box-shadow: inset 0 2px 6px #3c4a541a, 0 1px 0 #fffd;
  }

  @media (forced-colors: none) {
    & select:not(:where([multiple], [size]:not([size="1"]))),
    & #sheet-body [id^="comp-"] select:not(:where([multiple], [size]:not([size="1"]))) {
      appearance: none;
      padding-inline-end: 34px;
      background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='m3.5 6 4.5 4.5L12.5 6' stroke='%23343b3f' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
      background-position: right 12px center;
      background-size: 14px 14px;
      background-repeat: no-repeat;
    }
  }

  & #sheet .big-input {
    background: transparent;
  }

  & :is(input, textarea)::placeholder {
    color: #586368;
  }

  @supports (backdrop-filter: blur(12px)) or (-webkit-backdrop-filter: blur(12px)) {
    & #sheet {
      -webkit-backdrop-filter: blur(18px) saturate(.85);
      backdrop-filter: blur(18px) saturate(.85);
    }

    & #sheet { background: #eff1f1cc; }
  }

  @media (hover: hover) {
    & :is(.button, .icon-button):not(:disabled):hover { filter: brightness(1.04); }
  }

  @media (max-width: 700px) {
    & #sheet { border-radius: 27px 27px 0 0; }
    & #sheet .sheet-header { background: #e9ecece0; }
  }

  @media (prefers-reduced-transparency: reduce) {
    & .entry-card { background: #f6f7f6; }
    & :is(.button.secondary, .icon-button) { background: #e8eded; }
    & .button:not(.secondary, .danger) { background: #e1e5e5; }

    & #sheet {
      background: #eff1f1;
      -webkit-backdrop-filter: none;
      backdrop-filter: none;
    }

    & #sheet::backdrop { backdrop-filter: none; }
  }
}
