/* Generated by @gluniverse-studio/design from src/css/. Do not edit. Load tokens.css and fonts.css first. */

/* base */
/*
 * The reset, body and typography, for apps we fully own. Element-level rules only: the scoped
 * stylesheet drops this file, so a gl- class must never depend on it.
 */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--gl-color-surface);
  color: var(--gl-color-text);
  font-family: var(--gl-type-family-sans);
  font-size: var(--gl-type-body-size);
  font-weight: var(--gl-type-body-weight);
  line-height: var(--gl-type-body-line-height);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1,
h2,
h3,
h4,
h5,
h6,
p,
figure,
blockquote,
dl,
dd,
pre {
  margin: 0;
}

h1 {
  font-size: var(--gl-type-title-size);
  font-weight: var(--gl-type-title-weight);
  line-height: var(--gl-type-title-line-height);
  letter-spacing: var(--gl-type-title-tracking);
}

h2 {
  font-size: var(--gl-type-title-s-size);
  font-weight: var(--gl-type-title-s-weight);
  line-height: var(--gl-type-title-s-line-height);
  letter-spacing: var(--gl-type-title-s-tracking);
}

h3,
h4,
h5,
h6 {
  font-size: var(--gl-type-body-size);
  font-weight: var(--gl-type-title-s-weight);
  line-height: var(--gl-type-body-line-height);
}

small {
  font-size: var(--gl-type-body-s-size);
  line-height: var(--gl-type-body-s-line-height);
}

code,
kbd,
samp,
pre {
  font-family: var(--gl-type-family-code);
  font-size: var(--gl-type-code-size);
  line-height: var(--gl-type-code-line-height);
  font-variant-numeric: tabular-nums;
}

a {
  color: var(--gl-color-accent);
  text-underline-offset: 0.2em;
}

hr {
  height: 0;
  margin: 0;
  border: 0;
  border-top: 1px solid var(--gl-color-border);
}

img,
svg,
video,
canvas {
  display: block;
  max-width: 100%;
}

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

::selection {
  background: var(--gl-color-accent-strong);
  color: var(--gl-color-accent-contrast);
}

:focus-visible {
  outline: 2px solid var(--gl-color-accent);
  outline-offset: 2px;
}

/* bar */
/*
 * A value out of a maximum. Set the fill's width to the fraction. The fill takes the accent;
 * a status modifier or --gl-bar-color (a role or Participant colour) recolours it.
 */

.gl-bar {
  box-sizing: border-box;
  position: relative;
  display: block;
  height: var(--gl-space-2);
  background: var(--gl-color-border);
  overflow: hidden;
}

.gl-bar-fill {
  position: absolute;
  inset: 0 auto 0 0;
  background: var(--gl-bar-color, var(--gl-color-accent));
  transition: width var(--gl-motion-duration-base) var(--gl-motion-easing-standard);
}

.gl-bar--success {
  --gl-bar-color: var(--gl-color-success);
}

.gl-bar--warning {
  --gl-bar-color: var(--gl-color-warning);
}

.gl-bar--danger {
  --gl-bar-color: var(--gl-color-danger);
}

.gl-bar--info {
  --gl-bar-color: var(--gl-color-info);
}

/* button */
/*
 * Buttons. The plain button is outlined; the primary is a chamfered slab, one per view, cut by
 * the wedge at the cut's angle; the quiet button has no outline until it matters.
 */

.gl-button {
  box-sizing: border-box;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--gl-space-2);
  min-height: var(--gl-space-8);
  margin: 0;
  padding: 0 var(--gl-space-3);
  border: 1px solid var(--gl-color-border-strong);
  border-radius: var(--gl-radius-control);
  background: transparent;
  color: var(--gl-color-text);
  font-family: var(--gl-type-family-sans);
  font-size: var(--gl-type-body-s-size);
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  text-decoration: none;
  cursor: pointer;
  transition:
    background var(--gl-motion-duration-instant) linear,
    border-color var(--gl-motion-duration-instant) linear,
    color var(--gl-motion-duration-instant) linear;
}

.gl-button:hover {
  background-color: var(--gl-color-hover);
  border-color: var(--gl-color-text-muted);
}

.gl-button:active {
  translate: 0 1px;
}

.gl-button:focus-visible {
  outline: 2px solid var(--gl-color-accent);
  outline-offset: 2px;
}

.gl-button:disabled,
.gl-button[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.gl-button--primary {
  overflow: hidden;
  padding-inline-end: var(--gl-space-4);
  border: 0;
  /* An image, so the hover wash under it never shows through. */
  background-image: linear-gradient(
    var(--gl-shape-cut-angle),
    var(--gl-color-accent-strong) 0 78%,
    var(--gl-color-accent-deep) 78% 100%
  );
  color: var(--gl-color-accent-contrast);
  font-weight: 700;
  clip-path: polygon(
    0 0,
    calc(100% - var(--gl-shape-chamfer)) 0,
    100% var(--gl-shape-chamfer),
    100% 100%,
    0 100%
  );
}

/* A light sweeps across the slab on hover. */
.gl-button--primary::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    transparent,
    color-mix(in srgb, var(--gl-color-accent-contrast) 28%, transparent),
    transparent
  );
  translate: -100% 0;
  transition: translate var(--gl-motion-duration-reveal) var(--gl-motion-easing-decelerate);
  pointer-events: none;
}

.gl-button--primary:hover::before {
  translate: 100% 0;
}

/* The chamfer clips an outline, so the slab rings itself from the inside. */
.gl-button--primary:focus-visible {
  outline: 0;
  box-shadow: inset 0 0 0 2px var(--gl-color-accent-contrast);
}

.gl-button--quiet {
  border-color: transparent;
  color: var(--gl-color-text-muted);
}

.gl-button--quiet:hover {
  border-color: transparent;
  color: var(--gl-color-text);
}

.gl-button--small {
  min-height: var(--gl-space-6);
  padding: 0 var(--gl-space-2);
  font-size: var(--gl-type-label-size);
  font-stretch: var(--gl-type-label-width);
  letter-spacing: var(--gl-type-label-tracking);
  text-transform: uppercase;
}

/* A small slab keeps room for its chamfer. */
.gl-button--primary.gl-button--small {
  padding-inline-end: var(--gl-space-3);
}

/*
 * The soft language's buttons, for product UI such as the shop. The soft primary is a rounded
 * gradient in the signature purple that lifts with a glow, one per view; the ghost is a raised,
 * outlined secondary. Neither is cut or chamfered.
 */
.gl-button--soft {
  min-height: var(--gl-space-12);
  padding: 0 20px;
  border: 0;
  border-radius: var(--gl-radius-card);
  background-image: linear-gradient(
    135deg,
    var(--gl-color-signature),
    var(--gl-color-signature-deep)
  );
  color: var(--gl-color-signature-contrast);
  font-size: var(--gl-type-body-size);
  font-weight: 700;
  box-shadow: var(--gl-shadow-action);
  transition:
    translate var(--gl-motion-duration-base) var(--gl-motion-easing-decelerate),
    filter var(--gl-motion-duration-fast) linear;
}

.gl-button--soft:hover {
  translate: 0 -2px;
  filter: brightness(1.08);
}

/* On a stage or the purchase panel, the ring takes the colour that reads on pale ground. */
.gl-button--soft:focus-visible {
  outline-color: var(--gl-mark, var(--gl-color-accent));
  outline-offset: 3px;
}

.gl-button--ghost {
  min-height: 40px;
  padding: 0 14px;
  border-color: var(--gl-color-border-strong);
  border-radius: var(--gl-radius-card);
  background: var(--gl-color-surface-raised);
  font-size: 13px;
}

.gl-button--ghost:hover {
  border-color: var(--gl-color-border-strong);
  background: var(--gl-color-surface-raised-strong);
}

/* chip */
/*
 * A small uppercase tag for a status or kind. Outlined by default; solid for the label of a
 * value; accent for the one that matters.
 */

.gl-chip {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: var(--gl-space-1);
  height: 20px;
  padding: 0 7px;
  border: 1px solid var(--gl-color-border-strong);
  border-radius: var(--gl-radius-control);
  color: var(--gl-color-text-muted);
  font-family: var(--gl-type-family-sans);
  font-size: var(--gl-type-label-size);
  font-weight: 600;
  font-stretch: var(--gl-type-label-width);
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
  white-space: nowrap;
}

.gl-chip--accent {
  border-color: var(--gl-color-accent);
  color: var(--gl-color-accent);
}

.gl-chip--solid {
  border-color: transparent;
  background: var(--gl-color-surface-inverse);
  color: var(--gl-color-text-inverse);
  font-weight: 700;
}

.gl-chip--solid.gl-chip--accent {
  background: var(--gl-color-accent-strong);
  color: var(--gl-color-accent-contrast);
}

/* dialog */
/*
 * A modal panel over a scrim: a head with a title lockup and a close button, a body, and a foot
 * of actions with one primary. Compose it with gl-panel and gl-panel--float. Either put it in a
 * gl-dialog-scrim, or make it a native <dialog>, whose backdrop takes the same scrim.
 */

.gl-dialog-scrim {
  box-sizing: border-box;
  position: absolute;
  inset: 0;
  z-index: var(--gl-z-index-dialog);
  display: grid;
  place-items: center;
  animation: gl-fade var(--gl-motion-duration-base) var(--gl-motion-easing-standard) both;
}

.gl-dialog-scrim,
.gl-dialog::backdrop {
  background: color-mix(in srgb, var(--gl-color-surface-sunk) 50%, transparent);
}

.gl-dialog {
  box-sizing: border-box;
  width: min(400px, calc(100% - var(--gl-space-8)));
  max-width: none;
  padding: 0;
  overflow: hidden;
  animation: gl-wipe var(--gl-motion-duration-emphasized) var(--gl-motion-easing-emphasized) both;
}

.gl-dialog-head {
  display: flex;
  align-items: flex-start;
  gap: var(--gl-space-2);
  padding: var(--gl-space-4) var(--gl-space-4) var(--gl-space-3);
}

.gl-dialog-body {
  padding: 0 var(--gl-space-4);
}

.gl-dialog-foot {
  display: flex;
  justify-content: flex-end;
  gap: var(--gl-space-2);
  margin-top: var(--gl-space-4);
  padding: var(--gl-space-3) var(--gl-space-4);
  border-top: 1px solid var(--gl-color-border);
}

/* ghost-type */
/*
 * Ghost type: a giant, cropped, outlined word set behind a hero moment. Place it inside a
 * positioned container that clips it, and size it with font-size. gl-ghost-type--fill swaps the
 * outline for a faint fill.
 */

.gl-ghost-type {
  position: absolute;
  z-index: var(--gl-z-index-base);
  color: transparent;
  font-family: var(--gl-type-family-sans);
  font-weight: 900;
  font-stretch: 151%;
  letter-spacing: -0.05em;
  line-height: 0.78;
  text-transform: uppercase;
  white-space: nowrap;
  -webkit-text-stroke: 1px color-mix(in srgb, var(--gl-color-text) 10%, transparent);
  pointer-events: none;
  user-select: none;
}

.gl-ghost-type--fill {
  color: color-mix(in srgb, var(--gl-color-text) 5%, transparent);
  -webkit-text-stroke: 0;
}

/* icon-button */
/*
 * A square icon-only button. Label it with aria-label. As a toggle, aria-pressed="true" lights
 * it and draws an accent tick on its leading edge.
 */

.gl-icon-button {
  box-sizing: border-box;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: calc(var(--gl-space-8) + var(--gl-space-1));
  height: calc(var(--gl-space-8) + var(--gl-space-1));
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: var(--gl-radius-control);
  background: transparent;
  color: var(--gl-color-text-muted);
  font-family: var(--gl-type-family-sans);
  cursor: pointer;
  transition:
    background var(--gl-motion-duration-instant) linear,
    color var(--gl-motion-duration-instant) linear;
}

.gl-icon-button:hover {
  background: var(--gl-color-hover);
  color: var(--gl-color-text);
}

.gl-icon-button:focus-visible {
  outline: 2px solid var(--gl-color-accent);
  outline-offset: 2px;
}

.gl-icon-button:disabled,
.gl-icon-button[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.gl-icon-button[aria-pressed="true"] {
  background: var(--gl-color-hover);
  color: var(--gl-color-text);
}

.gl-icon-button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  top: var(--gl-space-2);
  bottom: var(--gl-space-2);
  left: 0;
  width: 2px;
  background: var(--gl-color-accent);
  animation: gl-draw-y var(--gl-motion-duration-fast) var(--gl-motion-easing-standard) both;
}

/* A count over the corner. */
.gl-icon-button-badge {
  position: absolute;
  top: 3px;
  right: 3px;
  display: grid;
  place-items: center;
  min-width: 15px;
  height: 15px;
  padding: 0 var(--gl-space-1);
  border-radius: var(--gl-radius-pill);
  background: var(--gl-color-accent-strong);
  color: var(--gl-color-accent-contrast);
  font-family: var(--gl-type-family-sans);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

/* marker */
/*
 * The heading marker: a short bar leaning at the cut's angle before a shelf, tray or panel title.
 * In the accent on dark chrome; on a stage or the purchase panel, in the stage accent. It marks
 * the first line of a title that wraps.
 */

.gl-marker {
  box-sizing: border-box;
  position: relative;
  padding-inline-start: var(--gl-space-4);
}

.gl-marker::before {
  content: "";
  position: absolute;
  /* The first line only, however far the title wraps. */
  inset-block-start: calc((1lh - 1em) / 2 + 0.18em);
  inset-inline-start: 0;
  height: 0.64em;
  width: var(--gl-space-2);
  background: var(--gl-mark, var(--gl-color-accent));
  transform: skewX(calc(90deg - var(--gl-shape-cut-angle)));
}

/* motion */
/*
 * The motion the gl- classes share. Every duration that plays these follows the motion scale,
 * so under reduced motion they settle at once.
 */

/* A panel wipes open from its leading edge. */
@keyframes gl-wipe {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0);
  }
}

/* Content rises into place. */
@keyframes gl-rise {
  from {
    opacity: 0;
    translate: 0 6px;
  }
}

@keyframes gl-fade {
  from {
    opacity: 0;
  }
}

/* Leaving: a short drop and fade, quicker than arriving. */
@keyframes gl-exit {
  to {
    opacity: 0;
    translate: 0 8px;
  }
}

/* An indicator line draws along its length. */
@keyframes gl-draw-x {
  from {
    transform: scaleX(0);
  }
}

@keyframes gl-draw-y {
  from {
    transform: scaleY(0);
  }
}

/* nav-list */
/*
 * A column of places to go. Each item leads with a short dash. The current item (aria-current,
 * or aria-selected in a listbox) widens, turns inverse and is cut by the accent wedge.
 */

.gl-nav-list {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.gl-nav-list-item {
  box-sizing: border-box;
  position: relative;
  display: flex;
  align-items: center;
  gap: var(--gl-space-3);
  min-height: calc(var(--gl-space-12) + var(--gl-space-3));
  margin: 0 var(--gl-space-6) 0 0;
  padding: 0 14px 0 18px;
  overflow: hidden;
  border: 0;
  background: color-mix(in srgb, var(--gl-color-surface-raised) 90%, transparent);
  color: var(--gl-color-text-muted);
  font-family: var(--gl-type-family-sans);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  text-align: start;
  text-decoration: none;
  cursor: pointer;
  transition:
    margin-right var(--gl-motion-duration-emphasized) var(--gl-motion-easing-decelerate),
    color var(--gl-motion-duration-fast) var(--gl-motion-easing-standard),
    background var(--gl-motion-duration-fast) var(--gl-motion-easing-standard);
}

/* The dash. On the current item it becomes the wedge. */
.gl-nav-list-item::before {
  content: "";
  flex: none;
  width: var(--gl-space-2);
  height: 2px;
  background: var(--gl-color-text-subtle);
  transition: background var(--gl-motion-duration-fast) var(--gl-motion-easing-standard);
}

.gl-nav-list-item:hover {
  color: var(--gl-color-text);
}

.gl-nav-list-item:focus-visible {
  outline: 2px solid var(--gl-color-accent);
  outline-offset: -2px;
}

.gl-nav-list-item:disabled,
.gl-nav-list-item[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.gl-nav-list-item:is([aria-current]:not([aria-current="false"]), [aria-selected="true"]) {
  margin-right: 0;
  background: var(--gl-color-surface-inverse);
  color: var(--gl-color-text-inverse);
}

.gl-nav-list-item:is([aria-current]:not([aria-current="false"]), [aria-selected="true"])::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 18px;
  height: auto;
  background: linear-gradient(
    var(--gl-shape-cut-angle),
    var(--gl-color-accent-strong) 0 55%,
    var(--gl-color-accent-deep) 55% 100%
  );
  clip-path: polygon(0 0, 100% 0, 30% 100%, 0 100%);
  animation: gl-wipe var(--gl-motion-duration-emphasized) var(--gl-motion-easing-emphasized) both;
}

/* note */
/*
 * A note under a step or a check result: a title and a line or two of what to do next. A problem
 * is red, information is in the accent. Notes never say "failed": they say what happened and what
 * to do. Put a gl-icon with gl-note-icon first.
 */

.gl-note {
  box-sizing: border-box;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 14px;
  border: 1px solid var(--gl-color-border);
  border-radius: var(--gl-radius-card);
  background: var(--gl-color-surface-raised);
  color: var(--gl-color-text-muted);
  font-family: var(--gl-type-family-sans);
  font-size: 13.5px;
  line-height: 1.5;
}

.gl-note-title {
  display: block;
  color: var(--gl-color-text);
  font-size: 14.5px;
  font-weight: 700;
}

.gl-note-icon {
  flex: none;
  margin-top: 1px;
  font-size: 22px;
}

.gl-note--problem {
  border-color: color-mix(in srgb, var(--gl-color-danger) 45%, transparent);
  background: var(--gl-color-danger-subtle);
}

.gl-note--problem .gl-note-icon {
  color: var(--gl-color-danger);
}

.gl-note--info {
  border-color: color-mix(in srgb, var(--gl-color-accent) 45%, transparent);
  background: var(--gl-color-accent-subtle);
}

.gl-note--info .gl-note-icon {
  color: var(--gl-color-accent);
}

/* panel */
/* The one surface: square, a hairline edge, and no shadow unless it floats over other UI. */

.gl-panel {
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  background: var(--gl-color-surface-panel);
  color: var(--gl-color-text);
  border: 1px solid var(--gl-color-border);
  font-family: var(--gl-type-family-sans);
}

.gl-panel--float {
  box-shadow: var(--gl-shadow-float);
}

/* Opens by wiping in from its leading edge. */
.gl-panel--wipe {
  animation: gl-wipe var(--gl-motion-duration-emphasized) var(--gl-motion-easing-emphasized) both;
}

/* The heading row: a title lockup and its actions, over a hairline. */
.gl-panel-head {
  display: flex;
  align-items: flex-end;
  gap: var(--gl-space-3);
  padding: var(--gl-space-3) var(--gl-space-4);
  border-bottom: 1px solid var(--gl-color-border);
}

/* pips */
/*
 * Pips: a row of small slabs cut at the cut's angle, lit up to a count, for a stock meter or
 * progress. Give the row role="meter" and its value; say the exact count in text beside it.
 * On dark chrome they light in the accent over unlit raised-strong slabs, a pair every context
 * accent keeps at 3:1; on a stage or the purchase panel, in the stage accent over the stage border.
 */

.gl-pips {
  --gl-pip-height: 13px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}

.gl-pip {
  --gl-pip-lean: calc(
    var(--gl-pip-height) *
    sin(calc(var(--gl-shape-cut-angle) - 90deg)) /
    cos(calc(var(--gl-shape-cut-angle) - 90deg))
  );
  width: calc(var(--gl-pip-lean) + 6px);
  height: var(--gl-pip-height);
  background: var(--gl-mark-off, var(--gl-color-surface-raised-strong));
  clip-path: polygon(var(--gl-pip-lean) 0, 100% 0, calc(100% - var(--gl-pip-lean)) 100%, 0 100%);
}

.gl-pip--on {
  background: var(--gl-mark, var(--gl-color-accent));
}

/* popover */
/*
 * A small floating panel anchored to what opened it, such as the breakdown behind a number.
 * Compose it with gl-panel and gl-panel--float, and place it with left and top or bottom.
 */

.gl-popover {
  box-sizing: border-box;
  position: absolute;
  z-index: var(--gl-z-index-popover);
  min-width: 250px;
  padding: var(--gl-space-3) 14px;
  animation: gl-rise var(--gl-motion-duration-base) var(--gl-motion-easing-standard) both;
}

/* purchase */
/*
 * The purchase panel: a pale panel over dark chrome with the product's name, price, stock meter,
 * options, contents and buy bar. Options are selectable rows, each a label around a radio input
 * with its own price and stock; the chosen one rings in the stage accent. gl-price sets every
 * price and amount, and gl-price-was the regular price struck through beside a Sale price.
 */

.gl-purchase {
  --gl-mark: var(--gl-color-stage-accent);
  --gl-mark-off: var(--gl-color-stage-border);
  --gl-muted: var(--gl-color-stage-text-muted);
  box-sizing: border-box;
  position: relative;
  padding: 22px 18px;
  border-radius: var(--gl-radius-sheet);
  background: var(--gl-color-stage-panel);
  color: var(--gl-color-stage-text);
  font-family: var(--gl-type-family-sans);
  box-shadow: var(--gl-shadow-lift-stage);
}

.gl-option {
  box-sizing: border-box;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--gl-space-3);
  padding: var(--gl-space-2) 14px var(--gl-space-2) var(--gl-space-2);
  border-radius: var(--gl-radius-card);
  background: var(--gl-color-stage-raised);
  color: var(--gl-color-stage-text);
  box-shadow: inset 0 0 0 1px var(--gl-color-stage-border);
  cursor: pointer;
  transition: box-shadow var(--gl-motion-duration-fast) var(--gl-motion-easing-standard);
}

/* The radio covers the whole row, so the row is the target. */
.gl-option input {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  cursor: inherit;
}

.gl-option:hover {
  box-shadow: inset 0 0 0 1px var(--gl-color-stage-text-muted);
}

.gl-option:has(:checked) {
  box-shadow:
    inset 0 0 0 2px var(--gl-color-stage-accent),
    0 14px 20px -14px color-mix(in srgb, var(--gl-color-stage-accent) 80%, transparent);
}

.gl-option:has(:focus-visible) {
  outline: 2px solid var(--gl-color-stage-accent);
  outline-offset: 3px;
}

.gl-option:has(:disabled) {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Forced colours drop the ring, so the radio itself shows the chosen row, over the image's corner. */
@media (forced-colors: active) {
  .gl-option input {
    inset: 6px auto auto 6px;
    opacity: 1;
  }
}

.gl-option-media {
  width: 56px;
  height: 56px;
  overflow: hidden;
  border-radius: var(--gl-radius-thumb);
  background: linear-gradient(180deg, var(--gl-color-stage), var(--gl-color-stage-sunk));
}

.gl-price {
  font-family: var(--gl-type-family-sans);
  font-weight: 800;
  font-stretch: 100%;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.gl-price-was {
  color: var(--gl-muted, var(--gl-color-text-muted));
  font-size: 0.6em;
  font-weight: 500;
  text-decoration: line-through;
  text-decoration-thickness: 1.5px;
}

/* ribbon */
/*
 * The corner ribbon: a gold band across a tile's top right corner with the percentage off. Only
 * with a Sale price, and the regular price is struck through beside the new one. Put it inside
 * a positioned container that clips, such as gl-tile.
 */

.gl-ribbon {
  box-sizing: border-box;
  position: absolute;
  top: 16px;
  right: -38px;
  z-index: 3;
  width: 140px;
  padding: 5px 0;
  rotate: 45deg;
  background: var(--gl-color-sale);
  color: var(--gl-color-sale-contrast);
  font-family: var(--gl-type-family-sans);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  box-shadow: 0 6px 10px -6px color-mix(in srgb, var(--gl-color-surface-sunk) 60%, transparent);
  pointer-events: none;
}

/* A stitched edge along the band. */
.gl-ribbon::before {
  content: "";
  position: absolute;
  inset: 2px 0;
  border-block: 1px dashed color-mix(in srgb, var(--gl-color-sale-contrast) 45%, transparent);
}

/* root */
/*
 * The gl-root: the container the scoped stylesheet applies under, in a page we don't own. It sets
 * the text its content inherits, as body does in base.css, so the host's colour and typography stop
 * at its edge. It paints no ground: an overlay stays transparent over the video.
 */

.gl-root {
  color: var(--gl-color-text);
  font-family: var(--gl-type-family-sans);
  font-size: var(--gl-type-body-size);
  font-weight: var(--gl-type-body-weight);
  font-style: normal;
  line-height: var(--gl-type-body-line-height);
  letter-spacing: normal;
  word-spacing: normal;
  text-align: start;
  text-indent: 0;
  text-transform: none;
  text-shadow: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* segmented */
/*
 * Choose one of two to four options. The group is role="radiogroup"; each option is a
 * role="radio" button, and aria-checked="true" marks the chosen one with an accent underline.
 */

.gl-segmented {
  box-sizing: border-box;
  display: inline-flex;
  border: 1px solid var(--gl-color-border);
  border-radius: var(--gl-radius-control);
}

.gl-segmented-option {
  box-sizing: border-box;
  position: relative;
  height: calc(var(--gl-space-8) - 6px);
  margin: 0;
  padding: 0 var(--gl-space-3);
  border: 0;
  background: transparent;
  color: var(--gl-color-text-muted);
  font-family: var(--gl-type-family-sans);
  font-size: var(--gl-type-label-size);
  font-weight: 600;
  font-stretch: var(--gl-type-label-width);
  letter-spacing: var(--gl-type-label-tracking);
  text-transform: uppercase;
  cursor: pointer;
  transition:
    color var(--gl-motion-duration-fast) var(--gl-motion-easing-standard),
    background var(--gl-motion-duration-fast) var(--gl-motion-easing-standard);
}

.gl-segmented-option + .gl-segmented-option {
  border-left: 1px solid var(--gl-color-border);
}

.gl-segmented-option:hover {
  color: var(--gl-color-text);
}

.gl-segmented-option:focus-visible {
  outline: 2px solid var(--gl-color-accent);
  outline-offset: -2px;
}

.gl-segmented-option:disabled,
.gl-segmented-option[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.gl-segmented-option[aria-checked="true"] {
  background: var(--gl-color-hover);
  color: var(--gl-color-text);
}

.gl-segmented-option[aria-checked="true"]::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: var(--gl-color-accent);
  animation: gl-draw-x var(--gl-motion-duration-fast) var(--gl-motion-easing-standard) both;
}

/* selection-marker */
/*
 * The selection marker: four corner marks that close in around an element when it is hovered,
 * focused or chosen (aria-selected, aria-pressed or aria-current). Add it to an element that
 * does not draw its own ::after, such as a stat or a card.
 */

.gl-selection-marker {
  position: relative;
}

.gl-selection-marker::after {
  content: "";
  position: absolute;
  inset: -5px;
  z-index: var(--gl-z-index-raised);
  background:
    linear-gradient(var(--gl-color-accent) 0 0) left top / 10px 2px,
    linear-gradient(var(--gl-color-accent) 0 0) left top / 2px 10px,
    linear-gradient(var(--gl-color-accent) 0 0) right top / 10px 2px,
    linear-gradient(var(--gl-color-accent) 0 0) right top / 2px 10px,
    linear-gradient(var(--gl-color-accent) 0 0) left bottom / 10px 2px,
    linear-gradient(var(--gl-color-accent) 0 0) left bottom / 2px 10px,
    linear-gradient(var(--gl-color-accent) 0 0) right bottom / 10px 2px,
    linear-gradient(var(--gl-color-accent) 0 0) right bottom / 2px 10px;
  background-repeat: no-repeat;
  opacity: 0;
  scale: 1.08;
  pointer-events: none;
  transition:
    opacity var(--gl-motion-duration-instant) linear,
    scale var(--gl-motion-duration-emphasized) var(--gl-motion-easing-decelerate);
}

.gl-selection-marker:is(
  :hover,
  :focus-visible,
  [aria-selected="true"],
  [aria-pressed="true"],
  [aria-current]:not([aria-current="false"])
)::after {
  opacity: 1;
  scale: 1;
}

/* stage */
/*
 * The stage: the pale ground a product stands on, in banners and on the product page. It is pale
 * in every scheme. Give it a height or an aspect ratio: it is a size container, so the giant word
 * and the slab measure themselves against it (cqw, cqh).
 *
 * Back to front: the mist ground, gl-stage-word (the giant word in the stage accent), gl-stage-slab
 * (the diagonal slab cut at the cut's angle), gl-stage-word--on-slab (the same word again, in the
 * slab's text colour, showing only where it crosses the slab), then the product and its plate.
 * --gl-slab-at sets where the slab's edge meets the bottom of the stage.
 */

.gl-stage {
  --gl-mark: var(--gl-color-stage-accent);
  --gl-mark-off: var(--gl-color-stage-border);
  --gl-muted: var(--gl-color-stage-text-muted);
  --gl-slab-at: 70%;
  --gl-slab-top: calc(
    var(--gl-slab-at) +
    100cqh *
    sin(calc(var(--gl-shape-cut-angle) - 90deg)) /
    cos(calc(var(--gl-shape-cut-angle) - 90deg))
  );
  box-sizing: border-box;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  container-type: size;
  border-radius: var(--gl-radius-sheet);
  background:
    radial-gradient(70% 60% at 22% 18%, var(--gl-color-stage-raised), transparent 70%),
    radial-gradient(60% 50% at 70% 90%, var(--gl-color-stage-border), transparent 70%),
    linear-gradient(180deg, var(--gl-color-stage), var(--gl-color-stage-sunk));
  color: var(--gl-color-stage-text);
  font-family: var(--gl-type-family-sans);
  box-shadow: var(--gl-shadow-lift);
}

/* A dotted floor that fades in towards the bottom. */
.gl-stage::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(
      1px 1px at 50% 50%,
      color-mix(in srgb, var(--gl-color-stage-text) 22%, transparent) 1px,
      transparent 1.5px
    )
    0 0 / 14px 14px;
  mask-image: linear-gradient(180deg, transparent 30%, var(--gl-color-stage-text));
  pointer-events: none;
}

/* The giant word: the narrowest, heaviest cut of the brand family, Latin uppercase only. */
.gl-stage-word {
  position: absolute;
  inset: 0;
  z-index: 1;
  margin: 0;
  padding: 15cqh 0 0 5cqw;
  color: var(--gl-color-stage-accent);
  font-family: var(--gl-type-family-sans);
  font-size: 49cqw;
  font-weight: 900;
  font-stretch: 25%;
  line-height: 0.8;
  letter-spacing: -0.01em;
  text-transform: uppercase;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

.gl-stage-slab {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(160deg, var(--gl-color-accent-strong), var(--gl-color-accent-deep));
  clip-path: polygon(var(--gl-slab-top) 0, 100% 0, 100% 100%, var(--gl-slab-at) 100%);
  pointer-events: none;
}

/* The word where it crosses the slab: lay it over gl-stage-slab with the same text. */
.gl-stage-word--on-slab {
  z-index: 3;
  color: var(--gl-color-accent-contrast);
  clip-path: polygon(var(--gl-slab-top) 0, 100% 0, 100% 100%, var(--gl-slab-at) 100%);
}

/* stat */
/*
 * A label over a big tabular number. The number is the design. A rollable stat is a button: it
 * takes the accent on hover. The dot says the number has modifiers behind it.
 */

.gl-stat {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
  margin: 0;
  padding: var(--gl-space-2) 10px 10px;
  border: 1px solid var(--gl-color-border);
  background: var(--gl-color-surface-raised);
  color: var(--gl-color-text);
  font-family: var(--gl-type-family-sans);
  text-align: start;
}

.gl-stat-label {
  color: var(--gl-color-text-muted);
  font-size: var(--gl-type-label-size);
  font-weight: var(--gl-type-label-weight);
  font-stretch: var(--gl-type-label-width);
  letter-spacing: var(--gl-type-label-tracking);
  line-height: var(--gl-type-label-line-height);
  text-transform: uppercase;
  transition: color var(--gl-motion-duration-instant) linear;
}

.gl-stat-value {
  font-size: var(--gl-type-numeral-m-size);
  font-weight: var(--gl-type-numeral-m-weight);
  font-stretch: var(--gl-type-numeral-m-width);
  letter-spacing: var(--gl-type-numeral-m-tracking);
  line-height: var(--gl-type-numeral-m-line-height);
  font-variant-numeric: tabular-nums;
}

.gl-stat--big .gl-stat-value {
  font-size: var(--gl-type-numeral-l-size);
  font-weight: var(--gl-type-numeral-l-weight);
  font-stretch: var(--gl-type-numeral-l-width);
  letter-spacing: var(--gl-type-numeral-l-tracking);
  line-height: var(--gl-type-numeral-l-line-height);
}

.gl-stat-sub {
  color: var(--gl-color-text-muted);
  font-size: var(--gl-type-label-size);
  line-height: 1.3;
}

.gl-stat-dot {
  position: absolute;
  top: var(--gl-space-2);
  right: var(--gl-space-2);
  width: 5px;
  height: 5px;
  background: var(--gl-color-accent);
}

.gl-stat--rollable {
  cursor: pointer;
  transition: border-color var(--gl-motion-duration-instant) linear;
}

.gl-stat--rollable:hover {
  border-color: var(--gl-color-accent);
}

.gl-stat--rollable:hover .gl-stat-label {
  color: var(--gl-color-accent);
}

.gl-stat--rollable:focus-visible {
  outline: 2px solid var(--gl-color-accent);
  outline-offset: 2px;
}

.gl-stat--rollable:disabled,
.gl-stat--rollable[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

/* tabs */
/*
 * A row of tabs over a hairline. The row is role="tablist"; each tab is a role="tab" button, and
 * aria-selected="true" draws the accent underline under the current one.
 */

.gl-tabs {
  box-sizing: border-box;
  display: flex;
  padding: 0 var(--gl-space-3);
  /* The hairline is drawn inside the row so the scrolling edge cannot clip the underline. */
  box-shadow: inset 0 -1px 0 var(--gl-color-border);
  overflow-x: auto;
  scrollbar-width: none;
}

.gl-tab {
  box-sizing: border-box;
  position: relative;
  flex: none;
  height: calc(var(--gl-space-8) + var(--gl-space-2));
  margin: 0;
  padding: 0 var(--gl-space-3);
  border: 0;
  background: none;
  color: var(--gl-color-text-muted);
  font-family: var(--gl-type-family-sans);
  font-size: var(--gl-type-label-size);
  font-weight: 700;
  font-stretch: var(--gl-type-label-width);
  letter-spacing: var(--gl-type-label-tracking);
  text-transform: uppercase;
  cursor: pointer;
  transition: color var(--gl-motion-duration-fast) var(--gl-motion-easing-standard);
}

.gl-tab:hover {
  color: var(--gl-color-text);
}

.gl-tab:focus-visible {
  outline: 2px solid var(--gl-color-accent);
  outline-offset: -2px;
}

.gl-tab:disabled,
.gl-tab[aria-disabled="true"] {
  opacity: 0.4;
  pointer-events: none;
}

.gl-tab[aria-selected="true"] {
  color: var(--gl-color-text);
}

.gl-tab[aria-selected="true"]::after {
  content: "";
  position: absolute;
  right: var(--gl-space-3);
  bottom: 0;
  left: var(--gl-space-3);
  height: 2px;
  background: var(--gl-color-accent);
  animation: gl-draw-x var(--gl-motion-duration-emphasized) var(--gl-motion-easing-emphasized) both;
}

/* tag */
/*
 * A tag on a product: stock, tier and price, each a solid fill with its own text colour, the same
 * in every scheme. The plain tag is the stock count on a pale stage. Every tag shows a true number
 * or a fact: nothing is styled to look scarce. The campaign tag takes the context accent: set the
 * campaign's accent slots, with data-gl-scheme="dark", on the tile or the tag.
 */

.gl-tag {
  box-sizing: border-box;
  display: inline-flex;
  align-items: center;
  gap: var(--gl-space-1);
  height: 22px;
  padding: 0 var(--gl-space-2);
  border-radius: var(--gl-radius-tag);
  background: var(--gl-color-surface-tile);
  color: var(--gl-color-text);
  font-family: var(--gl-type-family-sans);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.gl-tag--in-stock {
  background: var(--gl-color-in-stock);
  color: var(--gl-color-in-stock-contrast);
}

.gl-tag--low-stock {
  background: var(--gl-color-low-stock);
  color: var(--gl-color-low-stock-contrast);
}

.gl-tag--pre-order {
  background: var(--gl-color-pre-order);
  color: var(--gl-color-pre-order-contrast);
}

.gl-tag--limited {
  background: var(--gl-color-signature);
  color: var(--gl-color-signature-contrast);
}

.gl-tag--campaign {
  background: var(--gl-color-accent-strong);
  color: var(--gl-color-accent-contrast);
}

.gl-tag--sale {
  background: var(--gl-color-sale);
  color: var(--gl-color-sale-contrast);
}

.gl-tag--out {
  background: var(--gl-color-surface-raised-strong);
  color: var(--gl-color-text-muted);
}

/* tile */
/*
 * A product tile: a cut-out product on a pale stage, a tier strip under it, tags top left, a price
 * pill bottom right, and a dark name bar. The tier modifiers colour the strip: standard (none),
 * limited, Pre-order, sale, sold out, and campaign, which takes the context accent: set the
 * campaign's accent slots on the tile together with data-gl-scheme="dark", so its roles
 * re-resolve. A tile that links lifts and rings in the accent on hover.
 */

.gl-tile {
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--gl-radius-card);
  background: var(--gl-color-surface-tile);
  color: var(--gl-color-text);
  font-family: var(--gl-type-family-sans);
  text-decoration: none;
  box-shadow: var(--gl-shadow-tile);
  transition:
    translate var(--gl-motion-duration-base) var(--gl-motion-easing-decelerate),
    box-shadow var(--gl-motion-duration-base) var(--gl-motion-easing-decelerate);
}

.gl-tile:hover {
  translate: 0 -4px;
  box-shadow:
    0 0 0 2px var(--gl-color-accent),
    var(--gl-shadow-tile);
}

.gl-tile:focus-visible {
  outline: 2px solid var(--gl-color-accent);
  outline-offset: 3px;
}

.gl-tile-stage {
  --gl-mark: var(--gl-color-stage-accent);
  --gl-mark-off: var(--gl-color-stage-border);
  --gl-muted: var(--gl-color-stage-text-muted);
  box-sizing: border-box;
  position: relative;
  aspect-ratio: 1;
  padding: 30px 12px 12px;
  border-bottom: 4px solid var(--gl-tier, var(--gl-color-stage-border));
  background:
    radial-gradient(
      1.2px 1.2px at 50% 50%,
      color-mix(in srgb, var(--gl-color-stage-text) 20%, transparent) 1px,
      transparent 1.6px
    )
    0 0 / 9px 9px,
    linear-gradient(180deg, var(--gl-color-stage-raised) 34%, var(--gl-color-stage-sunk));
  color: var(--gl-color-stage-text);
}

.gl-tile-stage img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 12px 10px color-mix(in srgb, var(--gl-color-stage-text) 28%, transparent));
}

.gl-tile--limited {
  --gl-tier: var(--gl-color-signature);
}

.gl-tile--pre-order {
  --gl-tier: var(--gl-color-pre-order);
}

.gl-tile--sale {
  --gl-tier: var(--gl-color-sale);
}

.gl-tile--campaign {
  --gl-tier: var(--gl-color-accent-strong);
}

.gl-tile--out {
  --gl-tier: var(--gl-color-text-subtle);
}

.gl-tile--out .gl-tile-stage img {
  filter: grayscale(1) opacity(0.55);
}

.gl-tile-tags {
  position: absolute;
  top: var(--gl-space-2);
  left: var(--gl-space-2);
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
}

.gl-tile-price {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 1;
  display: flex;
  align-items: baseline;
  gap: 6px;
  padding: 2px 9px 2px 8px;
  border-radius: var(--gl-radius-pill);
  background: var(--gl-color-stage-raised);
  color: var(--gl-color-stage-text);
  font-size: 15px;
  box-shadow: 0 6px 12px -6px color-mix(in srgb, var(--gl-color-stage-text) 50%, transparent);
}

.gl-tile-name {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 2.9em;
  margin: 0;
  padding: 5px var(--gl-space-2);
  color: var(--gl-color-text);
  font-size: 13.5px;
  font-weight: 500;
  line-height: 1.3;
  text-align: center;
}

/* toast */
/*
 * A short message about what just happened, in the past tense. Inverse, so it reads over any
 * view. The host places it and removes it.
 */

.gl-toast {
  box-sizing: border-box;
  position: relative;
  z-index: var(--gl-z-index-toast);
  display: flex;
  align-items: center;
  gap: var(--gl-space-3);
  min-width: 300px;
  padding: var(--gl-space-3) var(--gl-space-4) var(--gl-space-3) 14px;
  background: var(--gl-color-surface-inverse);
  color: var(--gl-color-text-inverse);
  box-shadow: var(--gl-shadow-raised);
  font-family: var(--gl-type-family-sans);
  font-size: var(--gl-type-body-size);
  font-weight: 600;
  line-height: 1.3;
  animation: gl-wipe var(--gl-motion-duration-emphasized) var(--gl-motion-easing-emphasized) both;
}

.gl-toast-icon {
  flex: none;
  color: var(--gl-color-success);
  font-size: 22px;
}

.gl-toast--danger .gl-toast-icon {
  color: var(--gl-color-danger);
}

/* track */
/*
 * A track: segments cut at the cut's angle, for the steps of checkout and the states of an order.
 * Done segments are the accent fill with a check, the current one (aria-current="step") is
 * inverse, the rest wait in the raised surface. A cancelled order shows one gl-track-step--off.
 */

.gl-track {
  --gl-track-height: 30px;
  --gl-track-lean: calc(
    var(--gl-track-height) *
    sin(calc(var(--gl-shape-cut-angle) - 90deg)) /
    cos(calc(var(--gl-shape-cut-angle) - 90deg))
  );
  box-sizing: border-box;
  display: flex;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-family: var(--gl-type-family-sans);
}

/* A block, not a flex box, so a label too long for a narrow step ends in an ellipsis. */
.gl-track-step {
  box-sizing: border-box;
  flex: 1;
  min-width: 0;
  height: var(--gl-track-height);
  padding: 0 var(--gl-track-lean);
  overflow: hidden;
  line-height: var(--gl-track-height);
  text-align: center;
  background: var(--gl-color-surface-raised);
  color: var(--gl-color-text-muted);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
  clip-path: polygon(
    var(--gl-track-lean) 0,
    100% 0,
    calc(100% - var(--gl-track-lean)) 100%,
    0 100%
  );
}

.gl-track-step--done {
  background: var(--gl-color-accent-strong);
  color: var(--gl-color-accent-contrast);
}

.gl-track-step--done::before {
  content: "check";
  margin-inline-end: var(--gl-space-1);
  vertical-align: -3px;
  font-family: var(--gl-type-family-icons);
  font-size: 15px;
  font-weight: 400;
  font-feature-settings: "liga";
}

.gl-track-step[aria-current="step"] {
  background: var(--gl-color-surface-inverse);
  color: var(--gl-color-text-inverse);
}

.gl-track-step--off {
  background: var(--gl-color-surface-raised-strong);
  color: var(--gl-color-text);
}

/* type */
/*
 * One class per type role. The tokens carry size, line height, weight, width and tracking; the
 * classes add what has no token: uppercase and tabular figures. Colour is left to the context.
 */

.gl-type-numeral-hero,
.gl-type-numeral-xl,
.gl-type-numeral-l,
.gl-type-numeral-m,
.gl-type-code {
  font-variant-numeric: tabular-nums;
}

.gl-type-display,
.gl-type-display-s,
.gl-type-display-spaced,
.gl-type-label,
.gl-type-micro,
.gl-type-eyebrow {
  text-transform: uppercase;
}

.gl-type-numeral-hero {
  font-size: var(--gl-type-numeral-hero-size);
  line-height: var(--gl-type-numeral-hero-line-height);
  font-weight: var(--gl-type-numeral-hero-weight);
  font-stretch: var(--gl-type-numeral-hero-width);
  letter-spacing: var(--gl-type-numeral-hero-tracking);
}

.gl-type-numeral-xl {
  font-size: var(--gl-type-numeral-xl-size);
  line-height: var(--gl-type-numeral-xl-line-height);
  font-weight: var(--gl-type-numeral-xl-weight);
  font-stretch: var(--gl-type-numeral-xl-width);
  letter-spacing: var(--gl-type-numeral-xl-tracking);
}

.gl-type-numeral-l {
  font-size: var(--gl-type-numeral-l-size);
  line-height: var(--gl-type-numeral-l-line-height);
  font-weight: var(--gl-type-numeral-l-weight);
  font-stretch: var(--gl-type-numeral-l-width);
  letter-spacing: var(--gl-type-numeral-l-tracking);
}

.gl-type-numeral-m {
  font-size: var(--gl-type-numeral-m-size);
  line-height: var(--gl-type-numeral-m-line-height);
  font-weight: var(--gl-type-numeral-m-weight);
  font-stretch: var(--gl-type-numeral-m-width);
  letter-spacing: var(--gl-type-numeral-m-tracking);
}

.gl-type-display {
  font-size: var(--gl-type-display-size);
  line-height: var(--gl-type-display-line-height);
  font-weight: var(--gl-type-display-weight);
  font-stretch: var(--gl-type-display-width);
  letter-spacing: var(--gl-type-display-tracking);
}

.gl-type-display-s {
  font-size: var(--gl-type-display-s-size);
  line-height: var(--gl-type-display-s-line-height);
  font-weight: var(--gl-type-display-s-weight);
  font-stretch: var(--gl-type-display-s-width);
  letter-spacing: var(--gl-type-display-s-tracking);
}

.gl-type-display-spaced {
  font-size: var(--gl-type-display-spaced-size);
  line-height: var(--gl-type-display-spaced-line-height);
  font-weight: var(--gl-type-display-spaced-weight);
  font-stretch: var(--gl-type-display-spaced-width);
  letter-spacing: var(--gl-type-display-spaced-tracking);
}

.gl-type-title {
  font-size: var(--gl-type-title-size);
  line-height: var(--gl-type-title-line-height);
  font-weight: var(--gl-type-title-weight);
  font-stretch: var(--gl-type-title-width);
  letter-spacing: var(--gl-type-title-tracking);
}

.gl-type-title-s {
  font-size: var(--gl-type-title-s-size);
  line-height: var(--gl-type-title-s-line-height);
  font-weight: var(--gl-type-title-s-weight);
  font-stretch: var(--gl-type-title-s-width);
  letter-spacing: var(--gl-type-title-s-tracking);
}

.gl-type-body {
  font-size: var(--gl-type-body-size);
  line-height: var(--gl-type-body-line-height);
  font-weight: var(--gl-type-body-weight);
  font-stretch: var(--gl-type-body-width);
  letter-spacing: var(--gl-type-body-tracking);
}

.gl-type-body-s {
  font-size: var(--gl-type-body-s-size);
  line-height: var(--gl-type-body-s-line-height);
  font-weight: var(--gl-type-body-s-weight);
  font-stretch: var(--gl-type-body-s-width);
  letter-spacing: var(--gl-type-body-s-tracking);
}

.gl-type-label {
  font-size: var(--gl-type-label-size);
  line-height: var(--gl-type-label-line-height);
  font-weight: var(--gl-type-label-weight);
  font-stretch: var(--gl-type-label-width);
  letter-spacing: var(--gl-type-label-tracking);
}

.gl-type-micro {
  font-size: var(--gl-type-micro-size);
  line-height: var(--gl-type-micro-line-height);
  font-weight: var(--gl-type-micro-weight);
  font-stretch: var(--gl-type-micro-width);
  letter-spacing: var(--gl-type-micro-tracking);
}

.gl-type-eyebrow {
  font-size: var(--gl-type-eyebrow-size);
  line-height: var(--gl-type-eyebrow-line-height);
  font-weight: var(--gl-type-eyebrow-weight);
  font-stretch: var(--gl-type-eyebrow-width);
  letter-spacing: var(--gl-type-eyebrow-tracking);
}

.gl-type-code {
  font-family: var(--gl-type-family-code);
  font-size: var(--gl-type-code-size);
  line-height: var(--gl-type-code-line-height);
  font-weight: var(--gl-type-code-weight);
  font-stretch: var(--gl-type-code-width);
  letter-spacing: var(--gl-type-code-tracking);
}

/* An icon from the icon font, written by its name: <span class="gl-icon">close</span>. */
.gl-icon {
  display: inline-block;
  font-family: var(--gl-type-family-icons);
  font-size: 20px;
  font-style: normal;
  font-weight: normal;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  direction: ltr;
  font-feature-settings: "liga";
  user-select: none;
}

/* window */
/*
 * A floating window frame: a title bar to drag it by, a scrolling body, and a corner to resize
 * it from. Compose it with gl-panel and gl-panel--float, and place it with left, top, width and
 * height. gl-window--closing plays the exit before the host removes it.
 */

.gl-window {
  box-sizing: border-box;
  position: absolute;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: gl-wipe var(--gl-motion-duration-emphasized) var(--gl-motion-easing-emphasized) both;
}

.gl-window--closing {
  animation: gl-exit var(--gl-motion-duration-exit) var(--gl-motion-easing-accelerate) both;
}

.gl-window-bar {
  display: flex;
  flex: none;
  align-items: center;
  gap: var(--gl-space-2);
  height: 38px;
  padding: 0 var(--gl-space-1) 0 var(--gl-space-3);
  border-bottom: 1px solid var(--gl-color-border);
  cursor: grab;
  user-select: none;
}

.gl-window-bar:active {
  cursor: grabbing;
}

.gl-window-title {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  font-size: var(--gl-type-body-s-size);
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gl-window-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
}

.gl-window-resize {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 14px;
  height: 14px;
  background: linear-gradient(135deg, transparent 50%, var(--gl-color-border-strong) 50%);
  cursor: nwse-resize;
}
