:root {
  --logo-bg: #fff;
  --logo-bg-paint: var(--logo-bg);
  --logo-ink: #000;
  --grid-logo-scale: 1;
  --fullscreen-logo-scale: 1;
  --grid-columns: 4;
  --lockup-font-family: Helvetica, Arial, sans-serif;
  --lockup-font-size: 160px;
  --lockup-gap: 44px;
  --lockup-mark-height: 136px;
  --lockup-mark-width: 136px;
  --editor-mark-color: rgb(17 17 17 / 36%);
  --grid-tile-inset: 12px;
  --grid-tile-outline-color: var(--logo-ink);
  --grid-tile-lock-color: var(--logo-ink);
  --grid-lock-frame-color: var(--logo-ink);
  --grid-lock-icon-rest-opacity: 0.5;
  --brand-content-gap: 72px;
  --brand-grid-offset: var(--brand-content-gap);
  --brand-mark-font-size: clamp(17px, 1.9vw, 24px);
  --brand-mark-font-family: var(--lockup-font-family);
  --brand-mark-font-weight: 600;
  color-scheme: light;
  background: var(--logo-bg-paint);
}

* {
  box-sizing: border-box;
}

button {
  transition: none !important;
}

html {
  min-height: 100%;
  background: var(--logo-bg-paint);
}

body {
  position: relative;
  min-height: 100%;
  margin: 0;
  background: var(--logo-bg-paint);
}

.shader-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: transparent;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-mode: alpha;
  mask-mode: alpha;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100vw 100vh;
  mask-size: 100vw 100vh;
  pointer-events: none;
}

.shader-layer:not(.is-active) {
  display: none;
}

.shader-layer canvas {
  display: block;
}

.brand-mark {
  position: fixed;
  z-index: 5;
  left: 0;
  margin: 0;
  padding: 0;
  color: var(--logo-ink);
  pointer-events: none;
  user-select: none;
  visibility: hidden;
  top: calc(clamp(12px, 2vw, 28px) + 32px);
  transform: translate(-50%, -50%);
}

.brand-mark.is-positioned {
  visibility: visible;
}

.brand-mark-lockup {
  display: inline-flex;
  align-items: baseline;
  gap: clamp(5px, 0.55vw, 8px);
  font-size: var(--brand-mark-font-size);
}

.brand-mark-icon {
  position: relative;
  flex: 0 0 auto;
  width: 0.55em;
  height: 1.1em;
}

.brand-mark-art {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark-art svg {
  display: block;
  width: 100%;
  height: 100%;
}

.brand-mark-wordmark {
  position: relative;
  flex: 0 0 auto;
  font-family: var(--brand-mark-font-family);
  font-weight: var(--brand-mark-font-weight);
  font-size: var(--brand-mark-font-size);
  letter-spacing: -0.03em;
  line-height: 1;
  white-space: nowrap;
  transform: translateY(calc(-0.05em - 0.25px));
}

.brand-mark.has-icon-shader .brand-mark-art,
.brand-mark.has-word-shader .brand-mark-wordmark-ink {
  opacity: 0;
}

.brand-mark-shader-layer {
  transform: none;
}

.brand-mark-icon > .brand-mark-shader-layer {
  inset: 0;
}

.brand-mark-wordmark > .brand-mark-shader-layer {
  inset: 0;
}

.logo-sheet {
  position: relative;
  z-index: 1;
}

.logo-sheet {
  width: min(100%, 1220px);
  margin: 0 auto;
  padding: clamp(12px, 2vw, 28px);
  background: transparent;
}

.grid-filters {
  position: fixed;
  z-index: 4;
  top: 0;
  bottom: 0;
  left: 0;
  width: var(--grid-gutter-left-width, 0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.grid-filters > * {
  pointer-events: auto;
}

.grid-filters[hidden] {
  display: none;
}

.grid-filter-panel {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.grid-filter-panel.is-active {
  display: flex;
}

.grid-filter {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: pointer;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.grid-filter:hover {
  border-color: var(--logo-ink);
}

.grid-filter[aria-pressed="true"] {
  background: var(--logo-ink);
  color: var(--logo-bg);
}

.grid-filter--registry {
  font-size: 11px;
  min-height: 34px;
  padding: 0 12px;
}

.grid-filter--registry:first-of-type,
.grid-filter--generator:first-of-type {
  margin-top: 4px;
}

.grid-filter--generator {
  font-size: 11px;
  min-height: 34px;
  padding: 0 12px;
}

.grid-filter:focus-visible {
  outline: 2px solid var(--editor-mark-color);
  outline-offset: 2px;
}

.grid-actions {
  position: fixed;
  z-index: 4;
  top: 0;
  bottom: 0;
  right: 0;
  width: var(--grid-gutter-right-width, 0px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: none;
}

.grid-actions > * {
  pointer-events: auto;
}

.grid-actions[hidden] {
  display: none;
}

.grid-action-panel {
  display: none;
}

.grid-action-group {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.grid-action-group + .grid-action-group {
  margin-top: 16px;
}

.grid-action--scroll-up {
  margin-top: 16px;
}

.grid-action--scroll-up[hidden] {
  display: none;
}

.grid-action--reset[hidden] {
  display: none;
}

.grid-dismiss-control {
  position: absolute;
  z-index: 6;
  left: 50%;
  display: grid;
  place-items: center;
  padding: 6px;
  margin: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.grid-dismiss-control svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.logo-tile > .grid-dismiss-control,
.type-tile > .grid-dismiss-control,
.lockup-tile > .grid-dismiss-control {
  margin: 0;
}

.logo-tile:hover > .grid-dismiss-control,
.logo-tile.is-keyboard-selected > .grid-dismiss-control,
.type-tile:hover > .grid-dismiss-control,
.type-tile.is-keyboard-selected > .grid-dismiss-control,
.lockup-tile:hover > .grid-dismiss-control,
.lockup-tile.is-keyboard-selected > .grid-dismiss-control,
.grid-dismiss-control:hover,
.grid-dismiss-control:focus-visible {
  opacity: 1;
  pointer-events: auto;
}

.grid-dismiss-control:focus-visible {
  outline: 2px solid var(--editor-mark-color);
  outline-offset: 2px;
}

.grid-action-panel.is-active {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.grid-action {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: pointer;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.grid-action-arrow {
  display: inline-block;
  margin: 0 0.35em;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1.1em;
  font-weight: 700;
  line-height: 1;
  vertical-align: -0.06em;
}

.grid-action:hover {
  border-color: var(--logo-ink);
}

.grid-action:focus-visible {
  outline: 2px solid var(--editor-mark-color);
  outline-offset: 2px;
}

.grid-action[data-action="toggle-bw"][aria-pressed="true"] {
  color: #000000;
  background: transparent;
  border-color: #000000;
}

.grid-action[data-action="toggle-bw"][aria-pressed="true"].is-inverted {
  color: #ffffff;
  background: #000000;
  border-color: #ffffff;
}

.grid-action[data-action="toggle-bw"][aria-pressed="true"]:hover {
  border-color: #000000;
}

.grid-action[data-action="toggle-bw"][aria-pressed="true"].is-inverted:hover {
  border-color: #ffffff;
}

.grid-action[data-action="cycle-shader"] .grid-action-label--hover {
  display: none;
}

.grid-action[data-action="cycle-shader"][aria-pressed="true"]:hover .grid-action-label--default {
  display: none;
}

.grid-action[data-action="cycle-shader"][aria-pressed="true"]:hover .grid-action-label--hover {
  display: inline;
}

.grid-action[data-action="cycle-shader"][aria-pressed="true"] {
  color: var(--logo-ink);
  background: transparent;
  border-color: var(--logo-ink);
}

.grid-action[data-action="cycle-shader"][aria-pressed="true"]:hover {
  background: transparent;
  border-color: var(--logo-ink);
}

@media (max-width: 960px) {
  .grid-filters,
  .grid-actions {
    display: none !important;
  }
}

.logo-upload {
  color: var(--logo-ink);
}

.logo-upload-empty {
  position: relative;
  display: grid;
  width: 100%;
  aspect-ratio: 1;
  margin-top: var(--brand-content-gap);
  grid-template-columns: minmax(0, 1fr);
  gap: 64px;
  align-items: center;
  align-content: center;
  justify-content: center;
  justify-items: center;
  padding: clamp(16px, 3vw, 32px);
  border: 0;
  cursor: pointer;
}

.upload-border {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.upload-border rect {
  width: calc(100% - 2px);
  height: calc(100% - 2px);
  stroke: var(--logo-ink);
  stroke-width: 1;
  stroke-dasharray: 8 12;
  vector-effect: non-scaling-stroke;
  animation: march 1s linear infinite;
  animation-play-state: paused;
}

.logo-upload-empty:hover .upload-border rect,
.logo-upload-empty.is-drag-target .upload-border rect {
  animation-play-state: running;
}

@keyframes march {
  to {
    stroke-dashoffset: calc(-1 * var(--dash-period, 20px));
  }
}

.import-drag-target {
  pointer-events: none;
  cursor: default;
}

.logo-upload[data-empty="false"] #logo-upload-empty,
.logo-upload-empty[hidden] {
  display: none;
}

.upload-copy {
  max-width: 510px;
  text-align: center;
}

.brand-tab-link {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
}

.brand-tab-link:focus-visible {
  outline: 2px solid var(--logo-ink);
  outline-offset: 3px;
}

.upload-copy p {
  margin: 0;
  font: 500 clamp(14px, 1.5vw, 18px)/1.45 Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.placeholder-link {
  display: inline;
  padding: 0;
  border: 0;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: pointer;
  font: inherit;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

.placeholder-link:hover {
  text-decoration-thickness: 2px;
}

.placeholder-link:focus-visible {
  outline: 2px solid var(--logo-ink);
  outline-offset: 3px;
}

.upload-button {
  display: grid;
  width: auto;
  height: auto;
  min-height: 0;
  place-items: center;
  align-self: center;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--logo-ink);
  pointer-events: none;
}

.upload-button svg {
  display: block;
  width: 32px;
  height: 32px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: square;
  stroke-linejoin: miter;
  stroke-width: 1.75;
}

.upload-button:focus-visible {
  outline: none;
}

.logo-upload-empty:focus-visible {
  outline: 2px solid var(--logo-ink);
  outline-offset: 4px;
}

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

.brand-tabs {
  display: flex;
  min-height: 64px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.brand-tabs::-webkit-scrollbar {
  display: none;
}

.brand-tab {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: pointer;
  font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  outline: none;
  text-transform: uppercase;
  white-space: nowrap;
}

.brand-tab:hover {
  border-color: var(--logo-ink);
}

.brand-tab[aria-pressed="true"] {
  background: var(--logo-ink);
  color: var(--logo-bg);
}

.brand-tab--soon {
  position: relative;
  cursor: default;
}

.brand-tab--soon:hover {
  color: transparent;
  border-color: transparent;
}

.brand-tab--soon:hover::before {
  content: "SOON…";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--logo-ink);
  letter-spacing: 0;
  text-transform: none;
}

.logo-grid {
  display: grid;
  grid-template-columns: repeat(var(--grid-columns), minmax(0, 1fr));
  gap: 0;
  margin-top: var(--brand-grid-offset);
  background: transparent;
}

.type-grid {
  position: relative;
  display: block;
  margin-top: var(--brand-grid-offset);
  background: transparent;
}

.logo-grid[hidden],
.type-grid[hidden],
.color-grid[hidden],
.lockup-grid[hidden] {
  display: none;
}

.color-grid {
  position: relative;
  display: block;
  margin-top: var(--brand-grid-offset);
  padding-left: calc(var(--grid-lock-control-size) + var(--color-swatch-gap));
  background: transparent;
  --color-swatch-gap: 24px;
  --grid-lock-control-size: 30px;
}

.lockup-grid {
  position: relative;
  display: block;
  margin-top: var(--brand-grid-offset);
  background: transparent;
}

.lockup-tile {
  position: absolute;
  display: grid;
  place-items: center;
  margin: 0;
  background: transparent;
  box-sizing: border-box;
}

.lockup-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: clamp(16px, 2vw, 28px);
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: zoom-in;
  overflow: hidden;
}

.lockup-content {
  display: flex;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: var(--logo-ink);
}

.lockup-mark {
  display: grid;
  flex: 0 0 auto;
  place-items: center;
}

.lockup-mark svg {
  display: block;
  width: 100%;
  height: 100%;
}

.lockup-text {
  flex: 0 0 auto;
  color: var(--logo-ink);
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.color-row {
  position: absolute;
  left: 0;
  display: grid;
  width: 100%;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  column-gap: var(--color-swatch-gap);
  margin: 0;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  box-sizing: border-box;
}

.color-row::before {
  content: "";
  position: absolute;
  z-index: 3;
  top: 0;
  height: 100%;
  left: calc((var(--grid-lock-control-size) + var(--color-swatch-gap)) * -1);
  width: calc(var(--grid-lock-control-size) + var(--color-swatch-gap));
}

.grid-lock-control {
  position: absolute;
  z-index: 6;
  left: 50%;
  display: grid;
  place-items: center;
  padding: 6px;
  margin: -6px 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-50%);
}

.grid-lock-control svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.color-row > .grid-lock-control {
  left: calc((var(--color-swatch-gap) + var(--grid-lock-control-size) * 0.5) * -1);
  top: 50%;
  transform: translate(-50%, -50%);
  color: var(--logo-ink);
}

.color-swatch > .grid-lock-control {
  transform: translate(-50%, -50%);
  color: var(--color-swatch-label, var(--logo-ink));
}

.color-swatch.is-grid-locked.is-lock-positioned > .grid-lock-control {
  opacity: var(--grid-lock-icon-rest-opacity);
  pointer-events: auto;
}

.color-row.is-grid-locked > .grid-lock-control {
  opacity: var(--grid-lock-icon-rest-opacity);
  pointer-events: auto;
}

.color-swatch > .grid-lock-control:focus-visible {
  outline-color: var(--color-swatch-label, var(--editor-mark-color));
}

.logo-tile > .grid-lock-control {
  margin: 0;
  transform: translate(-50%, -50%);
}

.type-tile > .grid-lock-control,
.lockup-tile > .grid-lock-control {
  margin: 0;
  transform: translate(-50%, -50%);
}

.color-row:hover > .grid-lock-control,
.color-row:has(.color-swatch:hover) > .grid-lock-control,
.color-row:has(.color-swatch.is-keyboard-selected) > .grid-lock-control,
.color-swatch:hover > .grid-lock-control,
.color-swatch.is-keyboard-selected > .grid-lock-control,
.logo-tile:hover > .grid-lock-control,
.logo-tile.is-keyboard-selected > .grid-lock-control,
.type-tile:hover > .grid-lock-control,
.type-tile.is-keyboard-selected > .grid-lock-control,
.lockup-tile:hover > .grid-lock-control,
.lockup-tile.is-keyboard-selected > .grid-lock-control,
.grid-lock-control:hover {
  opacity: 1;
  pointer-events: auto;
}

.grid-lock-control:focus-visible {
  opacity: 1;
  pointer-events: auto;
  outline: 2px solid var(--editor-mark-color);
  outline-offset: 2px;
}

.logo-tile.is-grid-locked > .grid-lock-control,
.type-tile.is-grid-locked > .grid-lock-control,
.lockup-tile.is-grid-locked > .grid-lock-control {
  opacity: var(--grid-lock-icon-rest-opacity);
  pointer-events: auto;
}

.logo-tile.is-grid-locked::before,
.type-tile.is-grid-locked::before,
.lockup-tile.is-grid-locked::before {
  position: absolute;
  z-index: 5;
  inset: var(--grid-tile-inset);
  border: 2px solid var(--grid-tile-lock-color);
  content: "";
  pointer-events: none;
}

.color-row:focus-visible {
  outline: 2px solid var(--logo-ink);
  outline-offset: -2px;
}

.color-swatch {
  position: relative;
  display: grid;
  min-width: 0;
  width: 100%;
  height: 100%;
  place-items: center;
  cursor: crosshair;
  touch-action: none;
}

.color-swatch.is-adjusting {
  z-index: 6;
}

.color-swatch-label {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: calc(100% - 24px);
  max-width: calc(100% - 24px);
  min-width: 0;
  box-sizing: border-box;
  color: var(--color-swatch-label, #000000);
  font: 600 clamp(14px, 1.6vw, 20px)/1.15 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  pointer-events: none;
  text-align: center;
}

.color-swatch-title {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  overflow: hidden;
  font-size: 0.92em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.color-swatch-hex {
  font-size: 1.08em;
  letter-spacing: 0.04em;
  pointer-events: auto;
  cursor: text;
  white-space: nowrap;
}

.color-swatch-hex:focus {
  outline: 1px solid currentColor;
  outline-offset: 2px;
}

.color-swatch:hover .color-swatch-label,
.color-swatch.is-keyboard-selected .color-swatch-label,
.color-swatch.is-adjusting .color-swatch-label,
.color-swatch.is-measuring-label .color-swatch-label {
  display: flex;
}

.color-swatch.is-measuring-label .color-swatch-label {
  visibility: hidden;
}

.logo-tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  margin: 0;
  background: transparent;
}

.logo-tile[hidden] {
  display: none !important;
}

.type-tile {
  position: absolute;
  display: grid;
  place-items: center;
  margin: 0;
  background: transparent;
  box-sizing: border-box;
}

.logo-tile::after {
  position: absolute;
  z-index: 4;
  top: 18px;
  left: 50%;
  display: none;
  color: var(--editor-mark-color);
  content: attr(data-logo-id);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  pointer-events: none;
  transform: translateX(-50%);
}

.logo-tile:hover::before,
.logo-tile:focus-within::before,
.logo-tile.is-selected::before,
.logo-tile.is-keyboard-selected::before,
.type-tile:hover::before,
.type-tile:focus-within::before,
.type-tile.is-keyboard-selected::before,
.lockup-tile:hover::before,
.lockup-tile:focus-within::before,
.lockup-tile.is-keyboard-selected::before {
  position: absolute;
  z-index: 4;
  inset: var(--grid-tile-inset);
  border: 2px solid var(--grid-tile-outline-color);
  content: "";
  pointer-events: none;
}

.logo-tile.is-selected.is-grid-locked::before,
.logo-tile.is-grid-locked:hover::before,
.logo-tile.is-grid-locked:focus-within::before,
.logo-tile.is-grid-locked.is-keyboard-selected::before,
.type-tile.is-grid-locked:hover::before,
.type-tile.is-grid-locked:focus-within::before,
.type-tile.is-grid-locked.is-keyboard-selected::before,
.lockup-tile.is-grid-locked:hover::before,
.lockup-tile.is-grid-locked:focus-within::before,
.lockup-tile.is-grid-locked.is-keyboard-selected::before {
  border-color: var(--grid-tile-lock-color);
}

.logo-button {
  position: relative;
  z-index: 2;
  display: grid;
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: var(--grid-tile-inset);
  border: 0;
  appearance: none;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.logo-shader-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  overflow: hidden;
  background: transparent;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
  transform: scale(var(--grid-logo-scale));
  transform-origin: center;
}

.logo-shader-layer canvas {
  display: block;
  position: absolute !important;
  inset: 0 !important;
  z-index: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.logo-button:focus-visible {
  outline: 2px solid var(--logo-ink);
  outline-offset: -2px;
}

.type-button {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  height: 100%;
  place-items: center;
  padding: clamp(16px, 2vw, 28px);
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: zoom-in;
  overflow: hidden;
}

.type-button:focus-visible {
  outline: 2px solid var(--logo-ink);
  outline-offset: -2px;
}

.type-specimen {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  font-size: 48px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  transform: translate(-50%, -50%);
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.type-tile::after {
  position: absolute;
  z-index: 4;
  top: var(--type-label-top, calc(100% - 20px));
  left: 50%;
  max-width: calc(100% - 24px);
  overflow: hidden;
  color: var(--logo-ink);
  content: attr(data-font-name);
  font: 600 10px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  opacity: 0;
  pointer-events: none;
  text-overflow: ellipsis;
  text-transform: uppercase;
  transform: translate(-50%, -50%);
  white-space: nowrap;
}

.type-tile:hover::after,
.type-tile:focus-within::after,
.type-tile.is-keyboard-selected::after {
  opacity: 1;
}

.logo-dialog:focus,
.logo-dialog :focus,
.logo-dialog :focus-visible {
  outline: none;
}

.logo-art,
.fullscreen-logo,
.fullscreen-logo-art {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.logo-art {
  position: relative;
  z-index: 1;
  pointer-events: none;
  transform: scale(var(--grid-logo-scale));
  transform-origin: center;
}

.logo-tile.has-logo-shader .logo-art,
.logo-tile.has-tile-shader .logo-art,
.type-tile.has-tile-shader .type-specimen,
.lockup-tile.has-tile-shader .lockup-content {
  opacity: 0;
}

.fullscreen-logo-art {
  position: relative;
  z-index: 1;
  pointer-events: none;
  transform: scale(var(--fullscreen-logo-scale));
  transform-origin: center;
}

.fullscreen-logo.has-fullscreen-shader .fullscreen-logo-art,
.fullscreen-logo.has-fullscreen-shader .fullscreen-type-specimen {
  opacity: 0;
}

.fullscreen-logo.has-fullscreen-shader .fullscreen-lockup-text {
  opacity: 0;
}

.fullscreen-shader-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
  background: transparent;
  -webkit-mask-position: 0 0;
  mask-position: 0 0;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  pointer-events: none;
  transform: scale(var(--fullscreen-logo-scale));
  transform-origin: center;
}

.fullscreen-logo.is-lockup .fullscreen-shader-layer {
  transform: none;
}

.fullscreen-shader-layer canvas {
  display: block;
  position: absolute !important;
  inset: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.logo-art svg,
.fullscreen-logo svg {
  display: block;
  width: 100%;
  height: 100%;
}

.logo-art > svg > g :is(path, polygon, polyline, rect, circle, ellipse),
.fullscreen-logo-art > svg > g :is(path, polygon, polyline, rect, circle, ellipse),
.grid-lockup-mark > svg > g :is(path, polygon, polyline, rect, circle, ellipse) {
  fill: var(--logo-ink);
}

.logo-art > svg > g :is(line),
.fullscreen-logo-art > svg > g :is(line),
.grid-lockup-mark > svg > g :is(line) {
  stroke: var(--logo-ink);
}

.logo-art > svg > g .cls-5,
.fullscreen-logo-art > svg > g .cls-5,
.grid-lockup-mark > svg > g .cls-5 {
  fill: var(--logo-bg);
}

.logo-button img {
  display: block;
  width: 100%;
  height: auto;
  background: var(--logo-bg-paint);
  pointer-events: none;
}

.logo-dialog {
  width: 100vw;
  max-width: none;
  height: 100vh;
  max-height: none;
  margin: 0;
  padding: clamp(20px, 4vw, 56px);
  border: 0;
  background: var(--logo-bg-paint);
}

.logo-dialog::backdrop {
  background: transparent;
}

.logo-dialog[open] {
  display: grid;
  place-items: center;
}

.logo-dialog .fullscreen-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: min(86vw, 86vh);
  height: min(86vw, 86vh);
  overflow: hidden;
  background: var(--logo-bg-paint);
}

.logo-dialog .fullscreen-logo.is-lockup {
  width: min(92vw, 1120px);
  height: min(72vh, 520px);
  overflow: visible;
}

.logo-dialog .fullscreen-logo.is-type {
  width: min(92vw, 1120px);
  height: min(72vh, 520px);
  overflow: visible;
}

.fullscreen-type-specimen {
  display: block;
  color: var(--logo-ink);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  pointer-events: none;
  transform: scale(var(--fullscreen-logo-scale));
  transform-origin: center;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.fullscreen-lockup {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  gap: var(--lockup-gap);
  transform: scale(var(--fullscreen-logo-scale));
  transform-origin: center;
}

.fullscreen-lockup .fullscreen-logo-art {
  flex: 0 0 var(--lockup-mark-width);
  width: var(--lockup-mark-width);
  height: var(--lockup-mark-height);
  transform: none;
}

.fullscreen-lockup-text {
  flex: 0 1 auto;
  color: var(--logo-ink);
  font-family: var(--lockup-font-family);
  font-size: var(--lockup-font-size);
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  white-space: nowrap;
}

.close-button {
  position: fixed;
  top: clamp(12px, 2vw, 24px);
  right: clamp(12px, 2vw, 24px);
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
}

.close-button span,
.close-button span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--logo-ink);
  content: "";
}

.close-button span {
  transform: rotate(45deg);
}

.close-button span::after {
  transform: rotate(90deg);
}

.nav-button {
  position: fixed;
  top: 50%;
  display: grid;
  width: clamp(48px, 7vw, 72px);
  height: clamp(48px, 7vw, 72px);
  place-items: center;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  cursor: pointer;
  transform: translateY(-50%);
}

.nav-button--previous {
  left: clamp(12px, 2vw, 28px);
}

.nav-button--next {
  right: clamp(12px, 2vw, 28px);
}

.nav-button span {
  display: block;
  width: clamp(14px, 2vw, 22px);
  height: clamp(14px, 2vw, 22px);
  border-top: 3px solid var(--logo-ink);
  border-right: 3px solid var(--logo-ink);
}

.nav-button--previous span {
  transform: translateX(3px) rotate(-135deg);
}

.nav-button--next span {
  transform: translateX(-3px) rotate(45deg);
}

.is-auth-locked .logo-sheet {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

.access-panel {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgb(255 255 255 / 76%);
  color: var(--logo-ink);
}

.access-panel[hidden] {
  display: none;
}

.access-card {
  display: grid;
  width: min(100%, 420px);
  gap: 16px;
  padding: 26px;
  border: 1px solid var(--logo-ink);
  background: var(--logo-bg);
}

.access-kicker,
.admin-kicker {
  margin: 0;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: 0;
  text-transform: uppercase;
}

.access-title,
.admin-panel h2 {
  margin: 0;
  font: 700 28px/1.05 Helvetica, "Helvetica Neue", Arial, sans-serif;
  letter-spacing: 0;
}

.access-copy,
.access-message,
.admin-empty {
  margin: 0;
  font: 500 14px/1.45 Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.access-form {
  display: grid;
  gap: 12px;
}

.access-form label {
  display: grid;
  gap: 6px;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.access-form input {
  width: 100%;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid var(--logo-ink);
  border-radius: 0;
  background: var(--logo-bg);
  color: var(--logo-ink);
  font: 500 16px/1.2 Helvetica, "Helvetica Neue", Arial, sans-serif;
}

.access-form button,
.admin-export {
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--logo-ink);
  border-radius: 0;
  appearance: none;
  background: var(--logo-ink);
  color: var(--logo-bg);
  cursor: pointer;
  font: 700 11px/1 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  text-transform: uppercase;
}

.client-status-region {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.admin-panel {
  position: fixed;
  top: clamp(68px, 8vw, 92px);
  right: clamp(12px, 2vw, 24px);
  bottom: clamp(84px, 9vw, 110px);
  z-index: 7;
  display: grid;
  width: min(720px, calc(100vw - 24px));
  grid-template-rows: auto 1fr;
  border: 1px solid var(--logo-ink);
  background: var(--logo-bg);
  color: var(--logo-ink);
}

.admin-panel[hidden] {
  display: none;
}

.admin-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px;
  border-bottom: 1px solid var(--logo-ink);
}

.admin-content {
  overflow: auto;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font: 600 12px/1.35 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

.admin-table th,
.admin-table td {
  padding: 10px;
  border-bottom: 1px solid rgb(17 17 17 / 16%);
  text-align: left;
  vertical-align: top;
}

.admin-table th {
  position: sticky;
  top: 0;
  background: var(--logo-bg);
  text-transform: uppercase;
}

.admin-empty {
  padding: 16px;
}

.utility-button {
  display: grid;
  width: 45px;
  height: 57px;
  place-items: center;
  padding: 0;
  border: 0;
  appearance: none;
  background: transparent;
  color: var(--logo-ink);
  cursor: pointer;
}

.utility-button svg {
  display: block;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--logo-bg-paint);
  background-color: var(--logo-bg);
  fill: currentColor;
}

.utility-button:focus-visible {
  outline: 2px solid var(--editor-mark-color);
  outline-offset: 2px;
}

.utility-button:disabled {
  cursor: default;
  opacity: 0.2;
}

@media (max-width: 720px) {
  .logo-sheet {
    width: 100%;
    padding: 12px;
  }

  .logo-upload-empty {
    aspect-ratio: 1;
    margin-top: var(--brand-content-gap);
    grid-template-columns: 1fr;
    grid-template-rows: auto auto;
    gap: 64px;
    padding: 20px;
  }

  .upload-copy {
    align-self: auto;
  }

  .upload-button {
    align-self: auto;
  }

  .logo-dialog {
    touch-action: pan-y;
  }

  .logo-grid {
    --grid-columns: 2;
  }

  .type-grid {
    --grid-columns: 2;
  }

  .logo-button {
    -webkit-tap-highlight-color: transparent;
  }

  .logo-button:active {
    background: transparent;
  }

  .logo-art.is-grid-lockup {
    transform: none;
  }

  .grid-lockup {
    display: flex;
    width: 100%;
    height: 100%;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 4vw, 24px);
    color: var(--logo-ink);
  }

  .grid-lockup-mark {
    display: grid;
    flex: 0 0 clamp(132px, 43vw, 210px);
    width: clamp(132px, 43vw, 210px);
    height: clamp(132px, 43vw, 210px);
    place-items: center;
  }

  .grid-lockup-mark svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .grid-lockup-text {
    flex: 0 1 auto;
    color: var(--logo-ink);
    font-family: var(--lockup-font-family);
    font-size: clamp(62px, 20vw, 104px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1;
  }

  .logo-dialog .fullscreen-logo {
    width: min(92vw, 84vh);
    height: min(92vw, 84vh);
  }

  .nav-button {
    top: auto;
    bottom: 18px;
    transform: none;
  }

  .nav-button--previous {
    left: calc(50% - 64px);
  }

  .nav-button--next {
    right: calc(50% - 64px);
  }

  .admin-panel {
    top: 112px;
    right: 12px;
    left: 12px;
    width: auto;
  }
}
