@charset "UTF-8";
/*! normalize.scss v0.1.0 | MIT License | based on git.io/normalize */
/**
 * 1. Set default font family to sans-serif.
 * 2. Prevent iOS text size adjust after orientation change, without disabling
 *    user zoom.
 */
@import url("https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,500;12..96,700&family=Instrument+Sans:wght@400;500;600&display=swap");
html {
  font-family: sans-serif;
  /* 1 */
  -ms-text-size-adjust: 100%;
  /* 2 */
  -webkit-text-size-adjust: 100%;
  /* 2 */
}

/**
 * Remove default margin.
 */
body {
  margin: 0;
}

/* HTML5 display definitions
   ========================================================================== */
/**
 * Correct `block` display not defined for any HTML5 element in IE 8/9.
 * Correct `block` display not defined for `details` or `summary` in IE 10/11
 * and Firefox.
 * Correct `block` display not defined for `main` in IE 11.
 */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
main,
menu,
nav,
section,
summary {
  display: block;
}

/**
 * 1. Correct `inline-block` display not defined in IE 8/9.
 * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
 */
audio,
canvas,
progress,
video {
  display: inline-block;
  /* 1 */
  vertical-align: baseline;
  /* 2 */
}

/**
 * Prevent modern browsers from displaying `audio` without controls.
 * Remove excess height in iOS 5 devices.
 */
audio:not([controls]) {
  display: none;
  height: 0;
}

/**
 * Address `[hidden]` styling not present in IE 8/9/10.
 * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
 */
[hidden],
template {
  display: none;
}

/* Links
   ========================================================================== */
/**
 * Remove the gray background color from active links in IE 10.
 */
a {
  background-color: transparent;
}

/**
 * Improve readability when focused and also mouse hovered in all browsers.
 */
a:active,
a:hover {
  outline: 0;
}

/* Text-level semantics
   ========================================================================== */
/**
 * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
 */
abbr[title] {
  border-bottom: 1px dotted;
}

/**
 * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
 */
b,
strong {
  font-weight: bold;
}

/**
 * Address styling not present in Safari and Chrome.
 */
dfn {
  font-style: italic;
}

/**
 * Address variable `h1` font-size and margin within `section` and `article`
 * contexts in Firefox 4+, Safari, and Chrome.
 */
h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/**
 * Address styling not present in IE 8/9.
 */
mark {
  background: #ff0;
  color: #000;
}

/**
 * Address inconsistent and variable font size in all browsers.
 */
small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` affecting `line-height` in all browsers.
 */
sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sup {
  top: -0.5em;
}

sub {
  bottom: -0.25em;
}

/* Embedded content
   ========================================================================== */
/**
 * Remove border when inside `a` element in IE 8/9/10.
 */
img {
  border: 0;
}

/**
 * Correct overflow not hidden in IE 9/10/11.
 */
svg:not(:root) {
  overflow: hidden;
}

/* Grouping content
   ========================================================================== */
/**
 * Address margin not present in IE 8/9 and Safari.
 */
figure {
  margin: 1em 40px;
}

/**
 * Address differences between Firefox and other browsers.
 */
hr {
  -moz-box-sizing: content-box;
  box-sizing: content-box;
  height: 0;
}

/**
 * Contain overflow in all browsers.
 */
pre {
  overflow: auto;
}

/**
 * Address odd `em`-unit font size rendering in all browsers.
 */
code,
kbd,
pre,
samp {
  font-family: monospace, monospace;
  font-size: 1em;
}

/* Forms
   ========================================================================== */
/**
 * Known limitation: by default, Chrome and Safari on OS X allow very limited
 * styling of `select`, unless a `border` property is set.
 */
/**
 * 1. Correct color not being inherited.
 *    Known issue: affects color of disabled elements.
 * 2. Correct font properties not being inherited.
 * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
 */
button,
input,
optgroup,
select,
textarea {
  color: inherit;
  /* 1 */
  font: inherit;
  /* 2 */
  margin: 0;
  /* 3 */
}

/**
 * Address `overflow` set to `hidden` in IE 8/9/10/11.
 */
button {
  overflow: visible;
}

/**
 * Address inconsistent `text-transform` inheritance for `button` and `select`.
 * All other form control elements do not inherit `text-transform` values.
 * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
 * Correct `select` style inheritance in Firefox.
 */
button,
select {
  text-transform: none;
}

/**
 * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
 *    and `video` controls.
 * 2. Correct inability to style clickable `input` types in iOS.
 * 3. Improve usability and consistency of cursor style between image-type
 *    `input` and others.
 */
button,
html input[type=button],
input[type=reset],
input[type=submit] {
  -webkit-appearance: button;
  /* 2 */
  cursor: pointer;
  /* 3 */
}

/**
 * Re-set default cursor for disabled elements.
 */
button[disabled],
html input[disabled] {
  cursor: default;
}

/**
 * Remove inner padding and border in Firefox 4+.
 */
button::-moz-focus-inner,
input::-moz-focus-inner {
  border: 0;
  padding: 0;
}

/**
 * Address Firefox 4+ setting `line-height` on `input` using `!important` in
 * the UA stylesheet.
 */
input {
  line-height: normal;
}

/**
 * It's recommended that you don't attempt to style these elements.
 * Firefox's implementation doesn't respect box-sizing, padding, or width.
 *
 * 1. Address box sizing set to `content-box` in IE 8/9/10.
 * 2. Remove excess padding in IE 8/9/10.
 */
input[type=checkbox],
input[type=radio] {
  box-sizing: border-box;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Fix the cursor style for Chrome's increment/decrement buttons. For certain
 * `font-size` values of the `input`, it causes the cursor style of the
 * decrement button to change from `default` to `text`.
 */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
 * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
 *    (include `-moz` to future-proof).
 */
input[type=search] {
  -webkit-appearance: textfield;
  /* 1 */
  -moz-box-sizing: content-box;
  -webkit-box-sizing: content-box;
  /* 2 */
  box-sizing: content-box;
}

/**
 * Remove inner padding and search cancel button in Safari and Chrome on OS X.
 * Safari (but not Chrome) clips the cancel button when the search input has
 * padding (and `textfield` appearance).
 */
input[type=search]::-webkit-search-cancel-button,
input[type=search]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * Define consistent border, margin, and padding.
 */
fieldset {
  border: 1px solid #c0c0c0;
  margin: 0 2px;
  padding: 0.35em 0.625em 0.75em;
}

/**
 * 1. Correct `color` not being inherited in IE 8/9/10/11.
 * 2. Remove padding so people aren't caught out if they zero out fieldsets.
 */
legend {
  border: 0;
  /* 1 */
  padding: 0;
  /* 2 */
}

/**
 * Remove default vertical scrollbar in IE 8/9/10/11.
 */
textarea {
  overflow: auto;
}

/**
 * Don't inherit the `font-weight` (applied by a rule above).
 * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
 */
optgroup {
  font-weight: bold;
}

/* Tables
   ========================================================================== */
/**
 * Remove most spacing between table cells.
 */
table {
  border-collapse: collapse;
  border-spacing: 0;
}

td,
th {
  padding: 0;
}

.mega {
  font-size: 4.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 900;
}

h1, .h1 {
  font-size: 2.76rem;
  line-height: 1.1;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

h2, .h2 {
  font-size: 2.07rem;
  line-height: 1.1;
  font-weight: 500;
  font-family: "Bricolage Grotesque", sans-serif;
}

h3, .h3 {
  font-size: 1.84rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h4, .h4 {
  font-size: 1.46rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

nav.central .wordmark, h5, .h5 {
  font-size: 1.23rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

.mega {
  font-size: 4.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 900;
}

h1, .h1 {
  font-size: 2.76rem;
  line-height: 1.1;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

h2, .h2 {
  font-size: 2.07rem;
  line-height: 1.1;
  font-weight: 500;
  font-family: "Bricolage Grotesque", sans-serif;
}

h3, .h3 {
  font-size: 1.84rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h4, .h4 {
  font-size: 1.46rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

nav.central .wordmark, h5, .h5 {
  font-size: 1.23rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

.mega {
  color: #de0060;
}

.mega,
h1,
h2,
h3,
h4,
h5,
h6,
p {
  margin: 1rem 0;
}

p, .p {
  letter-spacing: 0.025em;
  line-height: 1.4;
}

a {
  text-decoration: none;
  font-weight: inherit;
  color: inherit;
}

button {
  border: 0;
  padding: 0;
  background: none;
  color: inherit;
  font-family: inherit;
}

.action {
  border-bottom: 1px solid;
  cursor: pointer;
  font-size: 0.9rem;
}
.action:disabled {
  cursor: default;
  opacity: 0.35;
}

.action-danger {
  color: #de0060;
}

.cta {
  flex: none;
  padding: 0.45rem 1rem;
  border-radius: 2px;
  background: var(--app-default-color);
  color: var(--app-background);
  cursor: pointer;
  font-weight: 500;
}
.cta:disabled {
  cursor: default;
  opacity: 0.35;
}

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

* {
  box-sizing: border-box;
}

html, body {
  min-height: 100%;
  height: 100%;
}

.app {
  position: relative;
  height: 100%;
}

:root {
  font-size: 16px;
  font-family: "Instrument Sans", sans-serif;
  box-sizing: border-box;
  --app-background: #e6e6e2;
  --app-default-color: #181816;
  --hex-stroke-color: #f2f2e5;
  --hex-stroke-highlight-color: #181816;
  --app-rule-color: rgba(24, 24, 22, 0.16);
  background-color: var(--app-background);
  color: var(--app-default-color);
}
@media all and (min-width: 641px) {
  :root {
    font-size: 18px;
  }
}
@media all and (min-width: 1280px) {
  :root {
    font-size: 20px;
  }
}
@media (prefers-color-scheme: dark) {
  :root {
    --app-background: #181816;
    --app-default-color: #f2f2e5;
    --hex-stroke-color: #181816;
    --hex-stroke-highlight-color: #f2f2e5;
    --app-rule-color: rgba(242, 242, 229, 0.16);
  }
}

.mega {
  font-size: 4.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 900;
}

h1, .h1 {
  font-size: 2.76rem;
  line-height: 1.1;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

h2, .h2 {
  font-size: 2.07rem;
  line-height: 1.1;
  font-weight: 500;
  font-family: "Bricolage Grotesque", sans-serif;
}

h3, .h3 {
  font-size: 1.84rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h4, .h4 {
  font-size: 1.46rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

nav.central .wordmark, h5, .h5 {
  font-size: 1.23rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

nav.central {
  background: var(--app-background);
  position: sticky;
  position: -webkit-sticky;
  top: 0;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0 1rem;
  min-height: 3.5rem;
  border-bottom: 1px solid var(--app-rule-color);
}
nav.central .wordmark {
  font-weight: 700;
  letter-spacing: -0.03em;
}
nav.central .tabs {
  display: flex;
  gap: 1rem;
}
nav.central .tabs a {
  opacity: 0.5;
  line-height: 3.5rem;
  transition: opacity 200ms ease-in-out;
}
nav.central .tabs a:hover, nav.central .tabs a.active {
  opacity: 1;
}
nav.central .login {
  margin-left: auto;
  padding: 0.3rem 0.9rem;
  border-radius: 2px;
  font-weight: 500;
  background: var(--app-default-color);
  color: var(--app-background);
}
@media (max-width: 30rem) {
  nav.central {
    gap: 0.75rem;
  }
  nav.central .wordmark {
    display: none;
  }
}

.account {
  position: relative;
  margin-left: auto;
}

.account-toggle {
  display: block;
  border: 0;
  background: none;
  cursor: pointer;
}

.avatar {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.5rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
  color: #181816;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 150ms ease-out;
}
.account-toggle:hover .avatar {
  transform: scale(1.08);
}

.account-scrim {
  position: fixed;
  inset: 0;
}

.account-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 13rem;
  max-width: calc(100vw - 2rem);
  padding: 0.25rem 0;
  border: 1px solid var(--app-default-color);
  background: var(--app-background);
}
.account-menu a {
  display: block;
  padding: 0.4rem 0.9rem;
}
.account-menu a:hover {
  background: var(--app-default-color);
  color: var(--app-background);
}

.account-who {
  display: flex;
  flex-direction: column;
  padding: 0.5rem 0.9rem 0.6rem;
  margin-bottom: 0.25rem;
  border-bottom: 1px solid var(--app-default-color);
  overflow-wrap: anywhere;
}

.account-name {
  font-weight: 500;
}

.account-email {
  font-size: 0.8rem;
  opacity: 0.7;
}

@media (prefers-reduced-motion: reduce) {
  .avatar,
nav.central .tabs a {
    transition: none;
  }
}
.mega {
  font-size: 4.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 900;
}

h1, .h1 {
  font-size: 2.76rem;
  line-height: 1.1;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

h2, .h2 {
  font-size: 2.07rem;
  line-height: 1.1;
  font-weight: 500;
  font-family: "Bricolage Grotesque", sans-serif;
}

h3, .h3 {
  font-size: 1.84rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h4, .h4 {
  font-size: 1.46rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h5, .h5, nav.central .wordmark {
  font-size: 1.23rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

.frame {
  margin: 0 1rem;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.25rem;
  padding-top: 0.25rem;
}

.palette {
  display: contents;
}

.tray {
  order: 1;
  position: sticky;
  bottom: 0;
  z-index: 2;
  margin: 0 -1rem;
  padding: 0.6rem 1rem calc(0.6rem + env(safe-area-inset-bottom));
  border-top: 1px solid var(--app-rule-color);
  background: var(--app-background);
}

.controls {
  min-width: 0;
}

.corner-tabs {
  display: flex;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.corner-tools {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.hex-input,
.scheme,
.saved-title {
  border: 1px solid var(--app-rule-color);
  border-radius: 2px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 0.9rem;
}

.hex-input {
  width: 6.5rem;
  padding: 0.25rem 0.45rem;
  font-variant-numeric: tabular-nums;
}

.generators {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--app-rule-color);
}
.generators h5 {
  margin: 0 0 0.6rem;
  font-size: 1rem;
  font-weight: 500;
}

.generators-label {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 0.85rem;
}

.generators-note {
  margin: 0.35rem 0 0;
  font-size: 0.8rem;
  letter-spacing: normal;
  line-height: 1.35;
  opacity: 0.7;
}

.generators-actions {
  margin-top: 0.6rem;
}

.generators-image {
  margin-top: 0.9rem;
}

.scheme {
  width: 100%;
  padding: 0.3rem 0.35rem;
}
.scheme option {
  color: #181816;
}

.file-action {
  cursor: pointer;
}
.file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.file-action:focus-within {
  outline: 2px solid var(--app-default-color);
  outline-offset: 2px;
}

.notice {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.25rem 1rem;
  margin: 0;
  padding: 0.5rem 1rem;
  background: #de0060;
  color: #fff;
  font-size: 0.9rem;
}

.hint {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.35rem 1rem;
  width: 100%;
  margin: 0 0 0.75rem;
  padding: 0.5rem 0.7rem;
  border: 1px solid var(--app-rule-color);
  font-size: 0.85rem;
  line-height: 1.35;
}

.hint-actions {
  display: flex;
  gap: 1rem;
}

.stage-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  width: 100%;
  margin-bottom: 0.75rem;
}

.stage-actions {
  display: flex;
  gap: 1rem;
}

.segmented {
  display: flex;
  border: 1px solid var(--app-rule-color);
  border-radius: 2px;
}
.segmented button {
  padding: 0.2rem 0.65rem;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.6;
}
.segmented button.active {
  background: var(--app-default-color);
  color: var(--app-background);
  opacity: 1;
}

.corner-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
  min-width: 2.75rem;
  border: 0;
  border-bottom: 2px solid transparent;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.85rem;
  opacity: 0.6;
}
.corner-tab:hover {
  opacity: 1;
}
.corner-tab.active {
  border-bottom-color: currentColor;
  opacity: 1;
}

.corner-chip {
  display: block;
  width: 1.75rem;
  height: 2rem;
  clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

@media (min-width: 700px) {
  .workspace {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: center;
    padding-top: 1rem;
  }

  .stage-holder {
    grid-column: 1;
  }

  .controls {
    grid-column: 2;
  }

  .output {
    grid-column: 1/-1;
  }

  .tray {
    grid-column: 1/-1;
  }
}
@media (min-width: 1000px) and (min-height: 560px) {
  .frame {
    margin: 0;
  }

  .library,
.about {
    padding-right: 1rem;
    padding-left: 1rem;
  }

  .workspace {
    grid-template-columns: minmax(16rem, 19rem) minmax(0, 1fr) minmax(18rem, 21rem);
    gap: 0;
    align-items: stretch;
    height: calc(100vh - 3.5rem - 1px);
    height: calc(100dvh - 3.5rem - 1px);
    padding: 0;
  }

  .controls,
.palette {
    grid-column: auto;
    grid-row: 1;
    padding: 1rem 1rem;
    overflow-y: auto;
  }

  .controls {
    grid-column: 1;
    border-right: 1px solid var(--app-rule-color);
  }

  .stage-holder {
    grid-column: 2;
    grid-row: 1;
    padding: 1.5rem;
  }

  .palette {
    grid-column: 3;
    display: block;
    border-left: 1px solid var(--app-rule-color);
  }

  .tray {
    position: static;
    margin: 0 0 1rem;
    padding: 0;
    border: 0;
    background: none;
  }

  .output {
    grid-column: auto;
  }
}
.about {
  max-width: 44rem;
  margin: 0 auto;
  padding: 2rem 0 3rem;
}
.about h2 {
  margin: 0 0 0.75rem;
  letter-spacing: -0.02em;
}
.about h4 {
  margin: 0 0 1rem;
}
.about h5 {
  margin: 0 0 0.25rem;
  font-weight: 500;
}
.about p {
  margin: 0;
}

.about-triangle {
  display: grid;
  gap: 1rem;
  justify-items: center;
  margin: 2rem 0;
  text-align: center;
}
.about-triangle svg {
  width: min(100%, 17rem);
  height: auto;
}
.about-triangle p {
  max-width: 30rem;
}
.about-triangle .hex {
  cursor: default;
}

.about-steps {
  display: grid;
  gap: 1.25rem;
  margin: 0 0 2.5rem;
  padding-left: 1.4rem;
}
.about-steps li::marker {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 700;
}

.about-tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr));
  gap: 1.25rem;
}

.about-cta {
  margin-top: 2.5rem !important;
}

.about-cta .cta {
  display: inline-block;
}

.stage-holder {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  min-width: 0;
  min-height: 0;
}
.stage-holder .hexes {
  display: block;
  width: 100%;
  height: min(46vh, 92vw);
}
@media (min-width: 700px) {
  .stage-holder .hexes {
    height: min(60vh, 46vw);
  }
}
@media (min-width: 1000px) and (min-height: 560px) {
  .stage-holder .hexes {
    flex: 1;
    height: auto;
    min-height: 0;
  }
}

@keyframes ants {
  from {
    stroke-dashoffset: 0;
  }
  to {
    stroke-dashoffset: 12px;
  }
}
@keyframes focus {
  0% {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.hexes.delayed .hex {
  opacity: 0;
  animation: 700ms focus ease-in-out forwards;
}
.hexes.delayed .hex.control-point {
  animation: focus 700ms ease-in-out forwards, ants 600ms linear infinite;
}
.hexes.delayed .hex:nth-child(0) {
  animation-delay: 0ms, 1ms;
}
.hexes.delayed .hex:nth-child(1) {
  animation-delay: 15ms, 1ms;
}
.hexes.delayed .hex:nth-child(2) {
  animation-delay: 30ms, 1ms;
}
.hexes.delayed .hex:nth-child(3) {
  animation-delay: 45ms, 1ms;
}
.hexes.delayed .hex:nth-child(4) {
  animation-delay: 60ms, 1ms;
}
.hexes.delayed .hex:nth-child(5) {
  animation-delay: 75ms, 1ms;
}
.hexes.delayed .hex:nth-child(6) {
  animation-delay: 90ms, 1ms;
}
.hexes.delayed .hex:nth-child(7) {
  animation-delay: 105ms, 1ms;
}
.hexes.delayed .hex:nth-child(8) {
  animation-delay: 120ms, 1ms;
}
.hexes.delayed .hex:nth-child(9) {
  animation-delay: 135ms, 1ms;
}
.hexes.delayed .hex:nth-child(10) {
  animation-delay: 150ms, 1ms;
}
.hexes.delayed .hex:nth-child(11) {
  animation-delay: 165ms, 1ms;
}
.hexes.delayed .hex:nth-child(12) {
  animation-delay: 180ms, 1ms;
}
.hexes.delayed .hex:nth-child(13) {
  animation-delay: 195ms, 1ms;
}
.hexes.delayed .hex:nth-child(14) {
  animation-delay: 210ms, 1ms;
}
.hexes.delayed .hex:nth-child(15) {
  animation-delay: 225ms, 1ms;
}
.hexes.delayed .hex:nth-child(16) {
  animation-delay: 240ms, 1ms;
}
.hexes.delayed .hex:nth-child(17) {
  animation-delay: 255ms, 1ms;
}
.hexes.delayed .hex:nth-child(18) {
  animation-delay: 270ms, 1ms;
}
.hexes.delayed .hex:nth-child(19) {
  animation-delay: 285ms, 1ms;
}
.hexes.delayed .hex:nth-child(20) {
  animation-delay: 300ms, 1ms;
}
.hexes.delayed .hex:nth-child(21) {
  animation-delay: 315ms, 1ms;
}
.hexes.delayed .hex:nth-child(22) {
  animation-delay: 330ms, 1ms;
}
.hexes.delayed .hex:nth-child(23) {
  animation-delay: 345ms, 1ms;
}
.hexes.delayed .hex:nth-child(24) {
  animation-delay: 360ms, 1ms;
}
.hexes.delayed .hex:nth-child(25) {
  animation-delay: 375ms, 1ms;
}
.hexes.delayed .hex:nth-child(26) {
  animation-delay: 390ms, 1ms;
}
.hexes.delayed .hex:nth-child(27) {
  animation-delay: 405ms, 1ms;
}
.hexes.delayed .hex:nth-child(28) {
  animation-delay: 420ms, 1ms;
}
.hexes.delayed .hex:nth-child(29) {
  animation-delay: 435ms, 1ms;
}
.hexes.delayed .hex:nth-child(30) {
  animation-delay: 450ms, 1ms;
}
.hexes.delayed .hex:nth-child(31) {
  animation-delay: 465ms, 1ms;
}
.hexes.delayed .hex:nth-child(32) {
  animation-delay: 480ms, 1ms;
}
.hexes.delayed .hex:nth-child(33) {
  animation-delay: 495ms, 1ms;
}
.hexes.delayed .hex:nth-child(34) {
  animation-delay: 510ms, 1ms;
}
.hexes.delayed .hex:nth-child(35) {
  animation-delay: 525ms, 1ms;
}
.hexes.delayed .hex:nth-child(36) {
  animation-delay: 540ms, 1ms;
}
.hexes.delayed .hex:nth-child(37) {
  animation-delay: 555ms, 1ms;
}
.hexes.delayed .hex:nth-child(38) {
  animation-delay: 570ms, 1ms;
}
.hexes.delayed .hex:nth-child(39) {
  animation-delay: 585ms, 1ms;
}
.hexes.delayed .hex:nth-child(40) {
  animation-delay: 600ms, 1ms;
}
.hexes.delayed .hex:nth-child(41) {
  animation-delay: 615ms, 1ms;
}
.hexes.delayed .hex:nth-child(42) {
  animation-delay: 630ms, 1ms;
}
.hexes.delayed .hex:nth-child(43) {
  animation-delay: 645ms, 1ms;
}
.hexes.delayed .hex:nth-child(44) {
  animation-delay: 660ms, 1ms;
}
.hexes.delayed .hex:nth-child(45) {
  animation-delay: 675ms, 1ms;
}
.hexes .hex {
  cursor: pointer;
}
.hexes .hex:hover {
  stroke-width: 2;
  stroke: rgba(255, 32, 32, 0.59);
}
.hexes .hex.control-point {
  stroke: var(--hex-stroke-highlight-color);
  animation: none, ants 600ms linear infinite;
  stroke-dashoffset: 1px;
  stroke-dasharray: 6px;
  stroke-width: 2;
  stroke-linejoin: miter;
}

.mega {
  font-size: 4.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 900;
}

h1, .h1 {
  font-size: 2.76rem;
  line-height: 1.1;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

h2, .h2 {
  font-size: 2.07rem;
  line-height: 1.1;
  font-weight: 500;
  font-family: "Bricolage Grotesque", sans-serif;
}

h3, .h3 {
  font-size: 1.84rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h4, .h4 {
  font-size: 1.46rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h5, .h5, nav.central .wordmark {
  font-size: 1.23rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

.sliders {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.slider {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.5rem;
  align-items: baseline;
}
.slider input[type=range] {
  grid-column: 1/-1;
  grid-row: 2;
}

.slider-label {
  font-size: 0.85rem;
}

.slider-value {
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  opacity: 0.65;
}

input[type=range] {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  width: 100%;
  height: 0.625rem;
  margin: 0.4rem 0;
  border-radius: 0.625rem;
  cursor: pointer;
}
input[type=range]::-webkit-slider-runnable-track {
  height: 0.625rem;
  background: transparent;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  box-sizing: border-box;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #181816;
  border-radius: 50%;
  background: #f2f2e5;
  box-shadow: 0 0 0 1px #f2f2e5;
  cursor: pointer;
  margin-top: -0.3125rem;
}
input[type=range]::-moz-range-track {
  height: 0.625rem;
  background: transparent;
}
input[type=range]::-moz-range-thumb {
  box-sizing: border-box;
  width: 1.25rem;
  height: 1.25rem;
  border: 2px solid #181816;
  border-radius: 50%;
  background: #f2f2e5;
  box-shadow: 0 0 0 1px #f2f2e5;
  cursor: pointer;
}
@media (pointer: coarse) {
  input[type=range]::-webkit-slider-thumb {
    box-sizing: border-box;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid #181816;
    border-radius: 50%;
    background: #f2f2e5;
    box-shadow: 0 0 0 1px #f2f2e5;
    cursor: pointer;
    margin-top: -0.5625rem;
  }
  input[type=range]::-moz-range-thumb {
    box-sizing: border-box;
    width: 1.75rem;
    height: 1.75rem;
    border: 2px solid #181816;
    border-radius: 50%;
    background: #f2f2e5;
    box-shadow: 0 0 0 1px #f2f2e5;
    cursor: pointer;
  }
}

.mega {
  font-size: 4.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 900;
}

h1, .h1 {
  font-size: 2.76rem;
  line-height: 1.1;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

h2, .h2 {
  font-size: 2.07rem;
  line-height: 1.1;
  font-weight: 500;
  font-family: "Bricolage Grotesque", sans-serif;
}

h3, .h3 {
  font-size: 1.84rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h4, .h4 {
  font-size: 1.46rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h5, .h5, nav.central .wordmark {
  font-size: 1.23rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

.tray-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.swatches {
  flex: 1;
  display: flex;
  gap: 0.3rem;
  min-width: 0;
}

.tray-actions {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.tris {
  display: flex;
  flex-wrap: wrap;
  margin-bottom: 0.35rem;
}
.tris svg {
  width: 1.5rem;
  height: 1.5rem;
  padding: 2px;
  cursor: pointer;
}

.swatch {
  flex: 1;
  max-width: 2.25rem;
  height: 3rem;
  transform: skewY(15deg);
  transition: transform 200ms ease-out;
}
.swatch:not(.fake) {
  cursor: pointer;
}
.swatch:not(.fake):hover {
  transform: skewY(15deg) translateY(-0.35rem);
}
.swatch.fake {
  border: 1px dashed var(--app-default-color);
  opacity: 0.45;
}
@media (prefers-reduced-motion: reduce) {
  .swatch {
    transition: none;
  }
}

.library {
  padding-bottom: 2rem;
}
.library > h4 {
  margin-bottom: 1rem;
}

.library-empty {
  opacity: 0.65;
}

.library-date {
  margin: 1.5rem 0 0.5rem;
  font-size: 0.9rem;
  opacity: 0.65;
}

.library-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1rem;
}

.saved {
  padding: 1rem;
  border: 1px solid var(--app-rule-color);
}
.saved .swatch:hover {
  transform: skewY(15deg);
}

.saved-swatches {
  margin: 0.5rem 0 0.75rem;
}
.saved-swatches .swatch {
  max-width: none;
  height: 4.5rem;
  transform: none;
}
.saved-swatches .swatch:hover {
  transform: none;
}

.saved-title {
  display: block;
  width: 100%;
  margin-bottom: 0.6rem;
  padding: 0.2rem 0.4rem;
  border-color: transparent;
  font-weight: 500;
}
.saved-title:hover, .saved-title:focus {
  border-color: var(--app-rule-color);
}

.saved-names {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  line-height: 1.35;
  opacity: 0.7;
}

.saved-actions {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.75rem;
}

.saved-primary {
  display: flex;
  gap: 1rem;
}

.mega {
  font-size: 4.15rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 900;
}

h1, .h1 {
  font-size: 2.76rem;
  line-height: 1.1;
  font-weight: 600;
  font-family: "Bricolage Grotesque", sans-serif;
}

h2, .h2 {
  font-size: 2.07rem;
  line-height: 1.1;
  font-weight: 500;
  font-family: "Bricolage Grotesque", sans-serif;
}

h3, .h3 {
  font-size: 1.84rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h4, .h4 {
  font-size: 1.46rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

h5, .h5, nav.central .wordmark {
  font-size: 1.23rem;
  line-height: 1.1;
  font-weight: 400;
  font-family: "Bricolage Grotesque", sans-serif;
}

.output {
  min-width: 0;
}
.output textarea {
  display: block;
  width: 100%;
  margin: 0.75rem 0;
  padding: 0.6rem;
  resize: vertical;
  border: 1px solid var(--app-default-color);
  background: var(--app-background);
  color: inherit;
  font-size: 0.75rem;
  font-family: Monaco, monospace;
}

.output-empty {
  opacity: 0.6;
}

.disclosure {
  margin-bottom: 0.5rem;
}
.disclosure summary {
  cursor: pointer;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 500;
  line-height: 2;
  list-style: none;
}
.disclosure summary::-webkit-details-marker {
  display: none;
}
.disclosure summary::before {
  content: "▸";
  display: inline-block;
  width: 1.1em;
  transition: transform 150ms ease-out;
}
.disclosure[open] {
  margin-bottom: 1rem;
}
.disclosure[open] summary::before {
  transform: rotate(90deg);
}
@media (prefers-reduced-motion: reduce) {
  .disclosure summary::before {
    transition: none;
  }
}

.colors {
  list-style: none;
  margin: 0.25rem 0 0;
  padding: 0;
  max-width: 26rem;
}

.color {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.15rem 0;
}

.color-chip {
  flex: none;
  width: 0.8rem;
  height: 1.1rem;
  transform: skewY(15deg);
}

.color-name {
  font-size: 1.1rem;
}

.color-hex {
  margin-left: auto;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
  font-family: inherit;
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
}
.color-hex:hover {
  opacity: 1;
}

.export-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1rem;
}

.export-format {
  border: 0;
  border-bottom: 1px solid transparent;
  background: none;
  color: inherit;
  cursor: pointer;
  font-family: inherit;
  font-size: 0.9rem;
  opacity: 0.5;
}
.export-format:hover, .export-format.active {
  opacity: 1;
}
.export-format.active {
  border-bottom-color: currentColor;
}

.export-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 0.75rem;
}

.color-move {
  width: 1.5rem;
  border: 0;
  background: none;
  color: inherit;
  cursor: pointer;
  opacity: 0.6;
}
.color-move:hover:not(:disabled) {
  opacity: 1;
}
.color-move:disabled {
  cursor: default;
  opacity: 0.2;
}

.ramp {
  margin-bottom: 0.6rem;
}

.ramp-name {
  margin: 0 0 0.2rem;
  font-size: 0.85rem;
  line-height: 1.3;
}

.ramp-steps {
  display: flex;
}

.ramp-step {
  flex: 1;
  height: 1.75rem;
  cursor: pointer;
}

.contrast-scroll {
  overflow-x: auto;
  margin-top: 0.75rem;
}

.vision-note,
.ratings-note {
  font-size: 0.8rem;
  letter-spacing: normal;
  line-height: 1.35;
  opacity: 0.7;
}

.vision-note {
  margin: 0.35rem 0 0;
}

.ratings-note {
  margin: 0.5rem 0 0;
}

.ratings {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.6rem;
  margin: 0.75rem 0 0;
  font-size: 0.8rem;
}
.ratings dt {
  font-weight: 600;
}
.ratings dt.fail {
  text-decoration: line-through;
}
.ratings dd {
  margin: 0;
}

.contrast {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 2px;
  font-size: 0.62rem;
}
.contrast caption {
  margin-bottom: 0.35rem;
  font-size: 0.8rem;
  opacity: 0.7;
  text-align: left;
}
.contrast th {
  padding: 0.15rem;
}
.contrast td {
  min-width: 1.6rem;
  padding: 0.3rem 0;
  font-weight: 500;
  text-align: center;
}
.contrast td.fail {
  font-weight: 400;
  text-decoration: line-through;
}

.contrast-chip {
  display: block;
  width: 0.9rem;
  height: 0.9rem;
  margin: auto;
  outline: 1px solid var(--app-rule-color);
}

.preview {
  padding: 1rem;
}
.preview h5 {
  margin: 0 0 0.35rem;
}
.preview p {
  margin: 0 0 0.75rem;
  font-size: 0.9rem;
}

.preview-button {
  display: inline-block;
  padding: 0.3rem 0.8rem;
  border-radius: 2px;
  font-size: 0.9rem;
  font-weight: 500;
}

.preview-bars {
  display: flex;
  align-items: flex-end;
  gap: 0.3rem;
  height: 4rem;
  margin-top: 1rem;
}
.preview-bars span {
  flex: 1;
}
