:root {
  --paper: #101216;
  --paper-2: #14171c;
  --card: #181b21;
  --card-2: #20242c;
  --ink: #000000;
  --line: #2d323d;
  --line-soft: #262b35;
  --fill: #f2efe6;
  --fill-text: #101216;
  --dots: #1a1e25;
  --text: #f2efe6;
  --muted: #a3a8b5;
  --faint: #6f7584;
  --yellow: #ffd60a;
  --yellow-ink: #141414;
  --coral: #ff6b4a;
  --mint: #35d07f;
  --sky: #4cc3ff;
  --accent: var(--yellow);
  --accent-ink: var(--yellow-ink);
  --accent-soft: rgba(255,214,10,.16);
  --shadow: 4px 4px 0 var(--ink);
  --shadow-sm: 3px 3px 0 var(--ink);
  --shadow-hover: 6px 6px 0 var(--ink);
  --bw: 2px;
  --r: 14px;
  --r-s: 10px;
  --r-l: 20px;
  --font:
    "Plus Jakarta Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    sans-serif;
  --display: var(--font);
  --stamp:
    Anton,
    Impact,
    "Arial Narrow Bold",
    sans-serif;
  --stage-bg: #0b0d11;
  --stage-check: #13161c;
  --t-quick: .12s;
  --t-std: .22s;
  --t-arrive: .45s;
  --ease-out: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.2,.9,.3,1.25);
  color-scheme: dark;
}
:root[data-theme=light] {
  --paper: #f6f1e4;
  --paper-2: #efe9d8;
  --card: #fffdf7;
  --card-2: #f3eedf;
  --ink: #15171c;
  --line: #15171c;
  --line-soft: #d8d2c1;
  --fill: #15171c;
  --fill-text: #f6f1e4;
  --dots: #d8d2c1;
  --text: #15171c;
  --muted: #5f6472;
  --faint: #9a9fae;
  --accent-soft: rgba(255,214,10,.3);
  --stage-bg: #e8e2d1;
  --stage-check: #ddd6c3;
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
html,
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased;
}
body {
  transition: background-color .4s ease;
}
a {
  color: inherit;
}
button,
input,
select {
  font: inherit;
  color: inherit;
}
.hidden {
  display: none !important;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12.5px;
}
:focus-visible,
.icon-round:focus-visible,
.chip:focus-visible,
.btn:focus-visible {
  outline: 3px solid var(--text);
  outline-offset: 2px;
  box-shadow: 0 0 0 6px var(--yellow);
}
:root:not([data-theme=light]) :focus-visible,
:root:not([data-theme=light]) .icon-round:focus-visible,
:root:not([data-theme=light]) .chip:focus-visible,
:root:not([data-theme=light]) .btn:focus-visible {
  outline-color: var(--yellow);
  box-shadow: none;
}
:root[data-theme=dark] :focus-visible {
  outline-color: var(--yellow);
  box-shadow: none;
}
.link-out {
  width: 100%;
  margin-top: 8px;
  height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  border: var(--bw) solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 13px;
}
.narrow-only {
  display: none;
}
::selection {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.msg.user::selection,
.msg.user *::selection,
.hl::selection,
.brand .mark *::selection,
.btn.primary::selection,
.btn.primary *::selection,
.send::selection {
  background: #15171c;
  color: #f6f1e4;
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 16px;
  border-radius: 999px;
  border: var(--bw) solid var(--line);
  background: var(--card);
  color: var(--text);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: var(--shadow-sm);
  transition: transform .08s, box-shadow .08s;
}
.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
}
.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 1px 1px 0 var(--line);
}
.btn.primary {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.btn:disabled,
.btn[aria-disabled=true] {
  opacity: .5;
  pointer-events: none;
}
.icon-round {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: var(--bw) solid var(--line);
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.icon-round:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
}
:root[data-theme=light] .icon-round .sun {
  display: none;
}
:root:not([data-theme=light]) .icon-round .moon {
  display: none;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  border: 0;
  color: var(--muted);
  padding: 6px 8px 6px 4px;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 700;
}
.icon-btn:hover {
  color: var(--text);
  background: var(--card-2);
}
.link-btn {
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  padding: 4px 0;
  font-weight: 700;
  font-size: 13px;
}
.link-btn:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.stamp {
  font-family: var(--stamp);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border: var(--bw) solid var(--line);
  border-radius: 6px;
  transform: rotate(-2deg);
  background: var(--card-2);
}
.stamp.ok {
  background: var(--mint);
  color: #0b1b12;
  border-color: #0b1b12;
}
.stamp.alt {
  background: var(--coral);
  color: #fff;
  border-color: var(--ink);
}
.eyebrow {
  margin: 0 0 8px;
  font-family: var(--stamp);
  font-size: 13px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
input[type=text],
input[type=email],
input[type=password],
input[type=number],
input[type=url],
select {
  height: 42px;
  padding: 0 12px;
  border-radius: var(--r-s);
  border: var(--bw) solid var(--line-soft);
  background: var(--card-2);
  color: var(--text);
  font-size: 15px;
}
input:focus,
select:focus {
  outline: none;
  border-color: var(--line);
  box-shadow: 3px 3px 0 var(--yellow);
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px clamp(16px, 2.5vw, 28px);
  background: var(--paper);
  border-bottom: var(--bw) solid var(--line);
}
.brand {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}
.brand .mark {
  font-family: var(--stamp);
  font-size: 26px;
  letter-spacing: .01em;
  line-height: 1;
  white-space: nowrap;
  padding: 4px 10px 2px;
  border: var(--bw) solid var(--line);
  border-radius: 8px;
  background: var(--yellow);
  color: var(--yellow-ink);
  box-shadow: var(--shadow-sm);
  transform: rotate(-1.5deg);
}
.brand .mark .anvil {
  display: inline-block;
  vertical-align: -2px;
  margin-right: 6px;
  color: var(--yellow-ink);
}
.brand .mark .anvil-wrap {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.brand .mark .anvil-wrap .sparks {
  position: absolute;
  left: 11px;
  top: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}
.brand .mark b {
  font-weight: 400;
  color: #f6f1e4;
  background: #15171c;
  padding: 0 6px;
  margin-left: 4px;
  border-radius: 4px;
}
.brand .mark {
  border-color: #15171c;
  box-shadow: 3px 3px 0 #15171c;
}
:root:not([data-theme=light]) .brand .mark {
  box-shadow: 3px 3px 0 #000;
}
.tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 999px;
  background: var(--card);
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow-sm);
}
.tab {
  padding: 7px 14px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  font-size: 14px;
  color: var(--muted);
  white-space: nowrap;
}
.tab:hover {
  color: var(--text);
}
.tab[aria-current=page] {
  background: var(--fill);
  color: var(--fill-text);
}
.search {
  flex: 1;
  max-width: 520px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 12px 0 14px;
  height: 42px;
  border-radius: 999px;
  border: var(--bw) solid var(--line);
  background: var(--card);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
}
.search:focus-within {
  box-shadow: 3px 3px 0 var(--yellow);
  color: var(--text);
}
.search input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 15px;
  min-width: 0;
  color: var(--text);
  height: auto;
  padding: 0;
  box-shadow: none;
}
.search kbd {
  font: 12px/1 var(--font);
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 4px 7px;
}
.top-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.chip.account {
  display: inline-flex;
  align-items: center;
  height: 36px;
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-decoration: none;
}
.chip.account::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  margin-right: 8px;
  flex: none;
}
body[data-page=connect] [data-page=memes],
body[data-page=agents] [data-page=memes],
body[data-page=forge] [data-page=memes] {
  display: none !important;
}
.chips {
  display: flex;
  gap: 8px;
  padding: 2px 2px 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.chips::-webkit-scrollbar {
  display: none;
}
.chip {
  flex: none;
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: var(--bw) solid var(--line-soft);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.chip:hover {
  border-color: var(--line);
  color: var(--text);
}
.chip[aria-pressed=true] {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-color: var(--line);
  box-shadow: 2px 2px 0 var(--line);
}
.chip .n {
  opacity: .65;
  font-weight: 500;
  margin-left: 6px;
}
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 400px;
  gap: 24px;
  padding: 20px clamp(16px, 2.5vw, 28px) 32px;
  max-width: 1700px;
  margin: 0 auto;
  align-items: start;
}
.editor {
  order: 0;
}
.gallery {
  order: 1;
  position: sticky;
  top: 76px;
  max-height: calc(100vh - 92px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 4px 6px 10px 2px;
}
.gallery-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin: 0 0 12px;
}
.gallery-head h1 {
  margin: 0;
  font-family: var(--display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.3px;
}
.sort-menu {
  position: relative;
  margin-left: auto;
  margin-right: 4px;
}
.sort-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 9px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .12s, background .12s;
}
.sort-btn:hover,
.sort-btn[aria-expanded=true] {
  border-color: var(--line);
  background: var(--card-2);
}
.sort-btn svg:first-child {
  color: var(--muted);
}
.sort-btn svg:last-child {
  color: var(--muted);
  transition: transform .15s;
}
.sort-btn[aria-expanded=true] svg:last-child {
  transform: rotate(180deg);
}
.sort-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 150px;
  padding: 6px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .12);
  z-index: 30;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: pop-in .12s ease both;
}
.sort-pop[hidden] {
  display: none;
}
.sort-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: none;
  font: inherit;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}
.sort-item:hover {
  background: var(--card-2);
}
.sort-item[aria-checked=true]::after {
  content: "✓";
  font-weight: 800;
  color: var(--text);
}
.dice {
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px;
}
.card {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  cursor: pointer;
  color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .12s, box-shadow .12s;
}
.card:hover {
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-hover);
}
.card.active {
  border-color: var(--yellow);
  box-shadow: 3px 3px 0 var(--yellow);
}
.card .img {
  aspect-ratio: 1;
  background: #000;
  display: block;
  width: 100%;
  object-fit: cover;
  border-bottom: var(--bw) solid var(--line);
}
.card .meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}
.card .name {
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.card .badge {
  flex: none;
  font-family: var(--stamp);
  font-size: 10.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-soft);
  border-radius: 5px;
  padding: 2px 6px;
}
.card .badge.you {
  color: var(--yellow-ink);
  background: var(--yellow);
  border-color: var(--line);
}
.card .use {
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  display: flex;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity .12s;
  pointer-events: none;
}
.card .use span {
  background: var(--yellow);
  color: var(--yellow-ink);
  font-family: var(--stamp);
  font-size: 11px;
  letter-spacing: .06em;
  text-transform: uppercase;
  padding: 5px 9px;
  border-radius: 6px;
  border: var(--bw) solid var(--line);
  transform: rotate(-3deg);
}
.card:hover .use {
  opacity: 1;
}
.card.upload {
  border-style: dashed;
  display: grid;
  place-items: center;
  min-height: 190px;
  color: var(--muted);
  font-weight: 700;
  background: transparent;
  font-size: 13px;
  text-align: center;
  box-shadow: none;
}
.card.upload:hover {
  color: var(--text);
  border-color: var(--yellow);
  transform: none;
  box-shadow: none;
}
.card.upload svg {
  display: block;
  margin: 0 auto 8px;
}
.skeleton {
  aspect-ratio: 1 / 1.22;
  border-radius: var(--r);
  border: var(--bw) solid var(--line-soft);
  background:
    linear-gradient(
      100deg,
      var(--card) 40%,
      var(--card-2) 50%,
      var(--card) 60%);
  background-size: 200% 100%;
  animation: shimmer 1.2s infinite;
}
@keyframes shimmer {
  to {
    background-position: -200% 0;
  }
}
.sentinel {
  height: 1px;
}
.empty {
  text-align: center;
  padding: 40px 12px;
}
.empty p {
  margin: 4px 0;
}
.empty .big {
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
}
.editor {
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
  padding: 20px;
  min-height: calc(100vh - 112px);
  box-shadow: var(--shadow);
}
.editor-top {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.editor-top .icon-btn {
  display: none;
}
.editor-title {
  min-width: 0;
}
.editor-title h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.editor-title p {
  margin: 2px 0 0;
  font-size: 13px;
}
.editor-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 22px;
  align-items: start;
  flex: 1;
}
.controls {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.stage {
  position: relative;
  flex: none;
  align-self: stretch;
  min-height: 440px;
  border-radius: var(--r);
  border: var(--bw) solid var(--line);
  background-color: var(--stage-bg);
  background-image:
    linear-gradient(
      45deg,
      var(--stage-check) 25%,
      transparent 25%),
    linear-gradient(
      -45deg,
      var(--stage-check) 25%,
      transparent 25%),
    linear-gradient(
      45deg,
      transparent 75%,
      var(--stage-check) 75%),
    linear-gradient(
      -45deg,
      transparent 75%,
      var(--stage-check) 75%);
  background-size: 22px 22px;
  background-position:
    0 0,
    0 11px,
    11px -11px,
    -11px 0;
  display: grid;
  place-items: center;
  overflow: hidden;
  padding: 20px;
}
.stage-inner {
  position: relative;
  display: none;
  max-width: 100%;
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow);
  background: #000;
}
.stage.has-image .stage-inner {
  display: block;
}
.stage.has-image .stage-empty {
  display: none;
}
#preview {
  display: block;
  max-width: 100%;
  max-height: min(70vh, 820px);
}
.stage-empty {
  padding: 36px 24px;
  text-align: center;
  color: var(--muted);
  max-width: 360px;
}
.stage-kicker {
  font-family: var(--stamp);
  font-size: 28px;
  letter-spacing: .08em;
  color: var(--text);
  margin: 0 0 6px;
  opacity: .5;
}
.markers {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.marker {
  position: absolute;
  border: 2px dashed var(--yellow);
  background: rgba(255, 214, 10, .1);
}
.marker b {
  position: absolute;
  left: -2px;
  top: -2px;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-family: var(--stamp);
  font-size: 13px;
}
.spinner {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .3);
}
.spinner::after {
  content: "";
  width: 26px;
  height: 26px;
  border: 3px solid rgba(255, 255, 255, .25);
  border-top-color: var(--yellow);
  border-radius: 50%;
  animation: spin .8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.editor-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: none;
}
.panel {
  padding: 12px 0;
  border-top: var(--bw) dashed var(--line-soft);
}
.panel:first-child {
  border-top: 0;
  padding-top: 0;
}
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.panel h3 {
  margin: 0;
  font-family: var(--stamp);
  font-size: 13px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--muted);
}
.captions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.cap {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cap .dot {
  flex: none;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-family: var(--stamp);
  font-size: 14px;
  border: var(--bw) solid var(--line);
}
.cap input {
  flex: 1;
  min-width: 0;
}
.cap .rm {
  flex: none;
  background: none;
  border: 0;
  color: var(--muted);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
  padding: 4px;
}
.seg {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-s);
  background: var(--card-2);
  border: var(--bw) solid var(--line-soft);
}
.seg button {
  height: 38px;
  min-width: 0;
  padding: 0 2px;
  overflow: hidden;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: grid;
  place-items: center;
  line-height: 1.05;
}
.seg button small {
  font-size: 10.5px;
  font-weight: 500;
  opacity: .8;
}
.seg button[aria-checked=true] {
  background: var(--fill);
  color: var(--fill-text);
}
.seg.small {
  margin-top: 8px;
}
.seg.small button {
  height: 32px;
}
.custom-size {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.custom-size input {
  width: 100px;
  height: 38px;
}
.chips-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chips-inline .chip {
  height: 32px;
  font-size: 13px;
}
.swatches {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
}
.swatch {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: var(--bw) solid var(--line-soft);
  cursor: pointer;
  padding: 0;
  position: relative;
}
.swatch[aria-checked=true] {
  box-shadow: 0 0 0 3px var(--card), 0 0 0 5px var(--text);
}
.swatch.custom {
  width: auto;
  height: 30px;
  border-radius: 8px;
  padding: 0 8px;
  background: var(--card-2);
  font-size: 12px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
  border-color: var(--line-soft);
}
.swatch.custom input {
  width: 64px;
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 12px;
  height: auto;
  padding: 0;
  box-shadow: none;
}
.recent {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
  gap: 8px;
}
.recent button {
  padding: 0;
  border: var(--bw) solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  aspect-ratio: 1;
  cursor: pointer;
}
.recent img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.recent .none {
  grid-column: 1 / -1;
  margin: 0;
}
.actions {
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 12px 0 2px;
  background:
    linear-gradient(
      to top,
      var(--card) 70%,
      transparent);
  flex: none;
}
.actions .btn {
  flex: 1;
}
.connect,
.agents {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px clamp(16px, 2.5vw, 28px) 48px;
  display: flex;
  flex-direction: column;
  gap: 28px;
}
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  padding: 32px clamp(20px, 3vw, 44px);
  border-radius: var(--r-l);
  background: var(--yellow);
  color: var(--yellow-ink);
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow);
}
:root:not([data-theme=light]) .hero {
  --line: #0a0b0e;
}
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: clamp(34px, 5vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: .98;
}
.hero .hl {
  background: var(--ink);
  color: var(--yellow);
  padding: 0 .2em;
  display: inline-block;
  transform: rotate(-1.5deg);
  border-radius: 6px;
}
.hero .eyebrow {
  color: rgba(20, 20, 20, .7);
}
.hero .legal-links {
  margin: 14px 0 0;
  color: rgba(20, 20, 20, .7);
}
.hero .legal-links a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lede {
  margin: 0;
  max-width: 54ch;
  font-size: 16.5px;
  color: rgba(20, 20, 20, .8);
}
.perks {
  list-style: none;
  margin: 18px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14.5px;
  color: rgba(20, 20, 20, .9);
}
.perks b {
  font-family: var(--display);
  font-weight: 800;
  font-size: 13.5px;
  letter-spacing: 0;
  margin-right: 6px;
  background: var(--ink);
  color: var(--yellow);
  padding: 2px 8px;
  border-radius: 6px;
}
.hero-art {
  position: relative;
  height: 300px;
}
.polaroid {
  position: absolute;
  width: 170px;
  padding: 8px 8px 26px;
  background: #fffdf7;
  border: var(--bw) solid var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s;
}
.polaroid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border: 1px solid var(--ink);
}
.polaroid span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 6px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 11px;
  letter-spacing: .02em;
  text-transform: none;
  color: #15171c;
  text-align: center;
}
.polaroid.p1 {
  left: 8%;
  top: 20px;
  transform: rotate(-7deg);
}
.polaroid.p2 {
  left: 36%;
  top: 60px;
  transform: rotate(4deg);
  z-index: 2;
}
.polaroid.p3 {
  left: 62%;
  top: 10px;
  transform: rotate(9deg);
}
.hero:hover .polaroid.p1 {
  transform: rotate(-9deg) translateY(-6px);
}
.hero:hover .polaroid.p2 {
  transform: rotate(2deg) translateY(-10px);
}
.hero:hover .polaroid.p3 {
  transform: rotate(11deg) translateY(-4px);
}
.connect-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: start;
}
.connect-body > * {
  min-width: 0;
}
.sheet {
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: var(--r-l);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow);
  min-width: 0;
}
.sheet#snippetsCard {
  grid-column: 1 / -1;
}
.sheet#accountCard:only-child,
body:has(#keysCard.hidden) #accountCard {
  grid-column: 1 / -1;
  max-width: 640px;
  justify-self: center;
  width: 100%;
}
.sheet-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.sheet h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -.4px;
}
.sheet p {
  margin: 0;
}
.sheet pre {
  margin: 0;
  background: var(--ink);
  color: #f2efe6;
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  max-width: 100%;
}
.sheet code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.sheet p code {
  background: var(--card-2);
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 12.5px;
}
.oauth {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.email-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}
.email-form label,
.newkey label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
}
.small-btn {
  height: 36px;
  padding: 0 14px;
  font-size: 13.5px;
}
.newkey {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border: var(--bw) dashed var(--line-soft);
  border-radius: 14px;
}
.scopes {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.scopes legend {
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 4px;
}
.scopes label {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 8px;
  align-items: center;
  font-size: 14px;
  color: var(--text);
  font-weight: 500;
  cursor: pointer;
}
.scopes label b {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 13px;
}
.scopes label span {
  color: var(--muted);
  font-size: 13px;
}
.scopes input[type=checkbox] {
  width: 18px;
  height: 18px;
  accent-color: var(--yellow);
}
.reveal {
  padding: 14px;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--yellow-ink);
  border: var(--bw) solid var(--line);
  box-shadow: var(--shadow-sm);
}
.reveal code {
  flex: 1;
  min-width: 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--yellow);
  overflow-wrap: anywhere;
  font-size: 13px;
}
.keys {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.key {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  padding: 12px 14px;
  border: var(--bw) solid var(--line-soft);
  border-radius: 12px;
  background: var(--card-2);
}
.key .kname {
  font-weight: 700;
}
.key .kmeta {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 14px;
  font-size: 12.5px;
  color: var(--muted);
}
.key .kscopes b {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 11.5px;
  padding: 2px 6px;
  border-radius: 6px;
  background: var(--paper);
  color: var(--text);
  margin-right: 4px;
  font-weight: 600;
  border: 1px solid var(--line-soft);
}
.key.dead {
  opacity: .55;
}
.key .kactions {
  display: flex;
  gap: 10px;
}
.key .kactions .link-btn {
  font-size: 12.5px;
}
.key .kactions .danger {
  color: var(--coral);
}
.snip-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.snip-tabs [role=tab] {
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: var(--bw) solid var(--line-soft);
  background: var(--card);
  color: var(--muted);
  font-weight: 700;
  font-size: 13.5px;
  cursor: pointer;
}
.snip-tabs [role=tab][aria-selected=true] {
  background: var(--fill);
  color: var(--fill-text);
  border-color: var(--fill);
}
.snip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.dropzone {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  background: color-mix(in srgb, var(--paper) 80%, transparent);
  backdrop-filter: blur(6px);
  border: 4px dashed var(--yellow);
  margin: 12px;
  border-radius: 20px;
  font-family: var(--stamp);
  font-size: 34px;
  letter-spacing: .04em;
  color: var(--text);
}
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translate(-50%, 20px);
  z-index: 60;
  background: var(--fill);
  color: var(--fill-text);
  padding: 10px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s, transform .18s;
  border: var(--bw) solid var(--yellow);
}
.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}
.confetti {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 70;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  width: 8px;
  height: 12px;
  top: -20px;
  border-radius: 2px;
  animation: fall 1.4s var(--ease-out) forwards;
}
@keyframes fall {
  to {
    transform: translateY(110vh) rotate(720deg);
    opacity: .9;
  }
}
.foot {
  max-width: 1700px;
  margin: 0 auto 40px;
  padding: 0 clamp(16px, 2.5vw, 28px);
}
@media (max-width: 1280px) {
  .editor-main {
    grid-template-columns: 1fr;
  }
  .stage {
    min-height: 360px;
  }
  #preview {
    max-height: 56vh;
  }
}
@media (max-width: 980px) {
  .layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .gallery {
    position: static;
    max-height: none;
    overflow: visible;
    min-width: 0;
  }
  .editor {
    position: fixed;
    inset: 0;
    z-index: 40;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    min-height: 0;
    max-height: none;
    overflow: auto;
    padding: 10px 14px calc(14px + env(safe-area-inset-bottom));
    transform: translateY(100%);
    transition: transform .22s ease;
  }
  .editor.open {
    transform: translateY(0);
  }
  body[data-page=memes] .editor {
    padding-bottom: 90px;
  }
  body[data-page=memes] .editor .actions {
    bottom: -76px;
    padding-bottom: 10px;
  }
  .editor-top .icon-btn {
    display: inline-flex;
  }
  .editor-main {
    display: flex;
    flex-direction: column;
  }
  .stage {
    min-height: 0;
    padding: 10px;
  }
  #preview {
    max-height: 44vh;
  }
  .actions {
    bottom: -14px;
  }
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    height: 210px;
  }
  .polaroid {
    width: 130px;
    padding-bottom: 22px;
  }
}
@media (max-width: 900px) {
  .connect-body {
    grid-template-columns: 1fr;
  }
  .top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .tabs {
    order: 2;
  }
}
@media (max-width: 640px) {
  .top {
    flex-wrap: wrap;
    gap: 8px 6px;
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .brand .mark {
    font-size: 18px;
    padding: 4px 8px 2px;
    border-radius: 7px;
    box-shadow: 2px 2px 0 #15171c;
  }
  :root:not([data-theme=light]) .brand .mark {
    box-shadow: 2px 2px 0 #000;
  }
  .brand .mark .anvil {
    width: 19px;
    height: 13px;
    margin-right: 4px;
    vertical-align: -1px;
  }
  .brand .mark .anvil-wrap .sparks {
    left: 9px;
    top: 3px;
  }
  .brand .mark b {
    padding: 0 5px;
    margin-left: 3px;
  }
  .top-right {
    order: 1;
    gap: 6px;
    margin-left: auto;
  }
  #uploadBtn {
    width: 44px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  #uploadBtn span {
    display: none;
  }
  .top::before {
    content: "";
    order: 2;
    flex-basis: 100%;
    height: 0;
  }
  .tabs {
    order: 3;
    flex: 0 0 auto;
    margin: -8px auto 0;
  }
  .tabs .tab {
    padding: 7px 16px;
  }
  .search {
    order: 4;
    flex-basis: 100%;
    max-width: none;
    height: 40px;
  }
  .search kbd {
    display: none;
  }
  @media (max-width: 360px) {
    .top {
      padding-left: 12px;
      padding-right: 12px;
    }
    .brand .mark {
      font-size: 16px;
    }
    .brand .mark .anvil {
      width: 17px;
      height: 12px;
    }
  }
  .top {
    position: static;
  }
  .wide-only {
    display: none;
  }
  .narrow-only {
    display: inline;
  }
  .icon-round {
    width: 44px;
    height: 44px;
  }
  #uploadBtn {
    height: 44px;
    padding: 0 12px;
  }
  .chip,
  .chips-inline .chip,
  .sort-btn,
  .tab {
    min-height: 40px;
  }
  .seg button {
    height: 44px;
  }
  .swatch {
    width: 32px;
    height: 32px;
  }
  .link-btn,
  button.small {
    min-height: 40px;
  }
  .hex,
  .hex input {
    height: 40px;
  }
  .chip.account {
    max-width: 120px;
  }
  .grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 10px;
  }
  .hero-art {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
  .msg.bot .bubble .meme,
  .msg.bot .msg-actions,
  .msg.bot .followups {
    opacity: 1 !important;
  }
}
@keyframes pop-in {
  from {
    transform: translateY(8px) scale(.985);
  }
  to {
    transform: none;
  }
}
@keyframes wiggle {
  0%, 100% {
    transform: rotate(-2deg);
  }
  50% {
    transform: rotate(1deg);
  }
}
@keyframes marker-pulse {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 214, 10, .0);
  }
  50% {
    box-shadow: 0 0 0 4px rgba(255, 214, 10, .25);
  }
}
@keyframes slide-up {
  from {
    transform: translateY(10px);
  }
  to {
    transform: none;
  }
}
@keyframes stamp-in {
  0% {
    transform: rotate(-2deg) scale(1.4);
  }
  60% {
    transform: rotate(-2deg) scale(.96);
  }
  100% {
    transform: rotate(-2deg) scale(1);
  }
}
.card {
  animation: pop-in .35s ease both;
}
.card:nth-child(2n) {
  animation-delay: .04s;
}
.card:nth-child(3n) {
  animation-delay: .08s;
}
.card:nth-child(5n) {
  animation-delay: .12s;
}
.stamp {
  animation: stamp-in .5s var(--spring) both;
}
.brand .mark:hover {
  animation: wiggle .4s ease-in-out;
}
@keyframes anvil-strike {
  0% {
    transform: none;
  }
  22% {
    transform: translateY(2px) scale(1.14, .78);
  }
  55% {
    transform: translateY(-2px) scale(.95, 1.08);
  }
  78% {
    transform: translateY(.5px) scale(1.03, .97);
  }
  100% {
    transform: none;
  }
}
@keyframes sparks {
  0%, 40% {
    opacity: 1;
    box-shadow:
      0 0 0 0 #ff7a1a,
      0 0 0 0 #15171c,
      0 0 0 0 #ff7a1a,
      0 0 0 0 #15171c,
      0 0 0 0 #ffb01a,
      0 0 0 0 #ff7a1a;
  }
  100% {
    opacity: 0;
    box-shadow:
      -9px -13px 0 0 #ff7a1a,
      3px -16px 0 0 #15171c,
      13px -9px 0 0 #ff7a1a,
      -14px -4px 0 0 #15171c,
      10px -1px 0 0 #ffb01a,
      -3px -18px 0 0 #ff7a1a;
  }
}
.brand .mark .anvil {
  transform-origin: 50% 100%;
}
.brand .mark:hover .anvil,
.brand .mark.forging .anvil {
  animation: anvil-strike .5s var(--spring);
}
.brand .mark:hover .sparks,
.brand .mark.forging .sparks {
  animation: sparks .55s ease-out .08s;
}
.marker {
  animation: marker-pulse 1.8s ease-in-out infinite;
}
.marker b {
  transition: transform .15s;
}
.marker:hover b {
  transform: scale(1.15);
}
.stage-inner {
  animation: pop-in .3s ease both;
}
#preview {
  transition: opacity .18s ease;
}
.stage.loading #preview {
  opacity: .6;
}
.panel {
  animation: slide-up .35s ease both;
}
.panel:nth-child(2) {
  animation-delay: .05s;
}
.panel:nth-child(3) {
  animation-delay: .1s;
}
.panel:nth-child(4) {
  animation-delay: .15s;
}
.panel:nth-child(5) {
  animation-delay: .2s;
}
.sheet {
  animation: slide-up .4s ease both;
}
.sheet:nth-child(2) {
  animation-delay: .08s;
}
.sheet:nth-child(3) {
  animation-delay: .16s;
}
.hero h1 .hl {
  transition: transform .25s var(--spring);
}
.hero:hover h1 .hl {
  transform: rotate(1deg) scale(1.03);
}
.tab {
  transition:
    background .18s,
    color .18s,
    transform .12s;
}
.tab:active {
  transform: scale(.96);
}
.chip {
  transition:
    transform .1s,
    background .15s,
    color .15s,
    border-color .15s;
}
.chip:active {
  transform: scale(.95);
}
.seg button {
  transition: background .15s, color .15s;
}
.swatch {
  transition: transform .12s;
}
.swatch:hover {
  transform: scale(1.12);
}
.cap .dot {
  transition: transform .15s;
}
.cap:focus-within .dot {
  transform: rotate(-8deg) scale(1.1);
}
.snip {
  animation: pop-in .25s ease both;
}
.key {
  animation: pop-in .3s ease both;
}
.reveal {
  animation: stamp-in .5s var(--spring) both;
  transform: none;
}
.card.upload:hover svg {
  animation: nudge-up .6s ease-in-out infinite alternate;
}
@keyframes nudge-up {
  to {
    transform: translateY(-4px);
  }
}
.polaroid {
  animation: pop-in .5s ease both;
}
.polaroid.p2 {
  animation-delay: .1s;
}
.polaroid.p3 {
  animation-delay: .2s;
}
.seg button {
  font-size: 13.5px;
  letter-spacing: .01em;
}
.panel-head.sub {
  margin-top: 14px;
}
.chips-inline .chip {
  font-size: 14px;
  letter-spacing: .02em;
}
.chips-inline .chip[aria-checked=true] {
  font-size: 14px;
}
.chips {
  scrollbar-width: thin;
  scrollbar-color: var(--line-soft) transparent;
  padding-bottom: 10px;
  mask-image:
    linear-gradient(
      to right,
      #000 calc(100% - 36px),
      transparent);
  -webkit-mask-image:
    linear-gradient(
      to right,
      #000 calc(100% - 36px),
      transparent);
  scroll-behavior: smooth;
  cursor: grab;
}
.chips.at-end {
  mask-image: none;
  -webkit-mask-image: none;
}
.chips::-webkit-scrollbar {
  display: block;
  height: 6px;
}
.chips::-webkit-scrollbar-thumb {
  background: var(--line-soft);
  border-radius: 999px;
}
.chips::-webkit-scrollbar-track {
  background: transparent;
}
.chips.dragging {
  cursor: grabbing;
  scroll-behavior: auto;
}
#sizeSeg {
  grid-auto-flow: row;
  grid-template-columns: repeat(auto-fit, minmax(56px, 1fr));
}
#sizeSeg button {
  font-size: 13px;
  padding: 0 4px;
}
.chips-wrap {
  position: relative;
}
.chips {
  padding-right: 40px;
}
.chips:not(.at-start) {
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 36px,
      #000 calc(100% - 36px),
      transparent);
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 36px,
      #000 calc(100% - 36px),
      transparent);
}
.chips.at-end:not(.at-start) {
  mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 36px);
  -webkit-mask-image:
    linear-gradient(
      to right,
      transparent,
      #000 36px);
}
.chips-arrow {
  position: absolute;
  top: 1px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: var(--bw) solid var(--line);
  background: var(--yellow);
  color: var(--yellow-ink);
  font-size: 22px;
  line-height: 1;
  padding: 0 0 3px;
  cursor: pointer;
  z-index: 2;
  box-shadow: var(--shadow-sm);
  display: grid;
  place-items: center;
  animation: pop-in .25s ease both;
}
.chips-arrow.left {
  left: 0;
}
.chips-arrow.right {
  right: 0;
}
.chips-arrow:hover {
  transform: translate(-1px, -1px);
  box-shadow: var(--shadow);
}
.chips-arrow:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 var(--line);
}
@media (max-width: 980px) {
  .hero {
    padding: 22px 18px;
  }
  .hero h1 {
    font-size: 34px;
  }
  .lede {
    font-size: 15px;
  }
  .perks {
    margin-top: 12px;
    font-size: 13.5px;
  }
}
.gallery-page {
  max-width: 1700px;
  margin: 0 auto;
  padding: 20px clamp(16px, 2.5vw, 28px) 48px;
}
.gallery-page .gallery {
  position: static;
  max-height: none;
  overflow: visible;
  padding: 0;
}
.gallery-page .grid {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}
.gallery-page .gallery-head h1 {
  font-size: 24px;
}
.gallery-page .chips {
  padding-bottom: 14px;
}
@media (min-width: 981px) {
  body[data-page=memes] {
    overflow: hidden;
  }
  body[data-page=memes] .layout {
    height: calc(100dvh - 74px);
    padding-bottom: 16px;
    padding-top: 16px;
  }
  body[data-page=memes] .editor {
    min-height: 0;
    height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
  }
  body[data-page=memes] .gallery {
    position: static;
    max-height: 100%;
    height: 100%;
  }
}
@media (min-width: 981px) {
  body[data-page=memes] .layout {
    align-items: stretch;
    grid-template-rows: minmax(0, 1fr);
  }
  body[data-page=memes] .editor {
    height: auto;
  }
  body[data-page=memes] .gallery {
    height: auto;
    max-height: none;
    min-height: 0;
  }
}
:root:not([data-theme=light]) input[type=text],
:root:not([data-theme=light]) input[type=email],
:root:not([data-theme=light]) input[type=password],
:root:not([data-theme=light]) input[type=number],
:root:not([data-theme=light]) select {
  border-color: #343946;
  background: #13161b;
}
:root:not([data-theme=light]) .stage {
  border-color: #343946;
}
:root:not([data-theme=light]) .stage-inner {
  border-color: #3a404d;
}
:root:not([data-theme=light]) .editor,
:root:not([data-theme=light]) .sheet,
:root:not([data-theme=light]) .card {
  border-color: #2f3440;
}
:root:not([data-theme=light]) .chip[aria-pressed=true] {
  box-shadow: 2px 2px 0 #000;
}
:root:not([data-theme=light]) .search,
:root:not([data-theme=light]) .btn,
:root:not([data-theme=light]) .icon-round,
:root:not([data-theme=light]) .tabs {
  border-color: #343946;
}
:root:not([data-theme=light]) .panel {
  border-top-color: #2a2f39;
}
:root:not([data-theme=light]) .hero {
  --line: #000;
}
.notice {
  max-width: 760px;
  margin: 0 auto;
}
.auth-split {
  display: grid;
  grid-template-columns: minmax(320px, 440px) minmax(0, 1fr);
  gap: 22px;
  align-items: stretch;
}
.auth-card h2 {
  font-size: 26px;
}
.btn.wide {
  width: 100%;
}
.center {
  text-align: center;
}
.link-btn.inline {
  display: inline;
  padding: 0;
  color: var(--text);
  text-decoration: underline;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.or {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: .08em;
  margin: 4px 0;
}
.or::before,
.or::after {
  content: "";
  flex: 1;
  height: var(--bw);
  background: var(--line-soft);
}
.auth-side {
  border-radius: var(--r-l);
  padding: 26px;
  background: #15171c;
  color: #f2efe6;
  border: var(--bw) solid #000;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 16px;
  background-image: radial-gradient(#262b35 1px, transparent 1px);
  background-size: 18px 18px;
}
.eyebrow.light {
  color: #a3a8b5;
}
.muted-light {
  color: #a3a8b5;
  margin: 0;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.steps li {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  align-items: start;
}
.steps b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: var(--yellow);
  color: var(--yellow-ink);
  font-family: var(--stamp);
  font-size: 18px;
  border: var(--bw) solid #000;
  transform: rotate(-3deg);
}
.steps strong {
  display: block;
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  letter-spacing: -.2px;
}
.steps span {
  color: #c9cdd6;
  font-size: 14px;
}
.auth-side pre.mini {
  margin: auto 0 0;
  background: #000;
  border: var(--bw) solid #2d323d;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 12.5px;
  line-height: 1.5;
  color: #ffd60a;
  overflow-x: auto;
}
.console {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 980px;
  margin: 0 auto;
  width: 100%;
}
.console-nav {
  position: sticky;
  top: 90px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
}
.console-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  font-weight: 700;
  color: var(--muted);
}
.console-nav a:hover {
  color: var(--text);
  background: var(--card-2);
}
.console-nav a.on {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.console-main {
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-width: 0;
}
.sec-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.sec-head h2 {
  scroll-margin-top: 90px;
}
.sec-head p {
  margin-top: 4px;
}
.keys {
  gap: 0;
  border: var(--bw) solid var(--line-soft);
  border-radius: 12px;
  overflow: hidden;
}
.keys .empty-keys {
  padding: 16px;
  margin: 0;
}
.key {
  grid-template-columns: 1.5fr 1fr 1.8fr 1fr 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 0;
  border-top: 1px solid var(--line-soft);
  border-radius: 0;
  background: var(--card);
  font-size: 13.5px;
}
.key:first-child {
  border-top: 0;
}
.key.head {
  background: var(--card-2);
  font-family: var(--stamp);
  font-size: 11.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 9px 14px;
}
.key .kname small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 500;
}
.key .kprefix code {
  font-size: 12.5px;
  background: var(--card-2);
  padding: 2px 6px;
  border-radius: 6px;
}
.key .kscopes {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}
.key .bad {
  font-style: normal;
  color: var(--coral);
}
.key .kactions {
  justify-content: flex-end;
}
.key.dead {
  opacity: .6;
}
@media (max-width: 980px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .console {
    grid-template-columns: 1fr;
  }
  .console-nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
  }
  .key {
    grid-template-columns: 1fr 1fr;
  }
  .key.head {
    display: none;
  }
  .key .kactions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}
.stamp {
  white-space: nowrap;
}
@media (min-width: 981px) {
  body[data-page=connect] {
    overflow: hidden;
  }
  .connect {
    height: calc(100dvh - 74px);
    padding-top: 16px;
    padding-bottom: 16px;
    gap: 16px;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }
  .hero {
    padding: 18px clamp(18px, 2.6vw, 34px);
    gap: 16px;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  }
  .hero h1 {
    font-size: clamp(26px, 3.2vw, 40px);
    margin-bottom: 6px;
  }
  .hero .eyebrow {
    margin-bottom: 4px;
    font-size: 11.5px;
  }
  .lede {
    font-size: 14.5px;
    max-width: 60ch;
  }
  .perks {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 10px;
    font-size: 13px;
  }
  .hero-art {
    height: 150px;
  }
  .polaroid {
    width: 112px;
    padding: 5px 5px 18px;
  }
  .polaroid span {
    font-size: 9px;
    bottom: 4px;
  }
  .polaroid.p1 {
    left: 10%;
    top: 6px;
  }
  .polaroid.p2 {
    left: 38%;
    top: 24px;
  }
  .polaroid.p3 {
    left: 64%;
    top: 2px;
  }
  .auth-split,
  .console,
  .notice {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    padding: 4px 6px 8px 4px;
  }
  .auth-split {
    align-items: stretch;
  }
  .console-nav {
    top: 0;
  }
}
#sizeSeg {
  grid-auto-flow: column;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}
#sizeSeg button {
  font-size: 12.5px;
  padding: 0 2px;
  letter-spacing: 0;
}
@media (min-width: 981px) {
  body[data-page=memes] .editor {
    overflow: hidden;
    gap: 12px;
    padding: 16px 18px;
  }
  body[data-page=memes] .editor-main {
    min-height: 0;
    grid-template-rows: minmax(0, 1fr);
    gap: 18px;
  }
  body[data-page=memes] .stage {
    min-height: 0;
    height: 100%;
    align-self: stretch;
  }
  body[data-page=memes] .controls {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    padding: 6px 2px 6px 6px;
    margin: -6px 0 -6px -6px;
  }
  body[data-page=memes] .panel {
    padding: 9px 0;
  }
  body[data-page=memes] .panel-head {
    margin-bottom: 7px;
  }
  body[data-page=memes] .captions {
    gap: 6px;
  }
  body[data-page=memes] .cap input {
    height: 38px;
  }
  body[data-page=memes] .seg button {
    height: 34px;
  }
  body[data-page=memes] .chips-inline .chip {
    height: 30px;
    font-size: 13px;
  }
  body[data-page=memes] .swatches {
    margin-top: 8px;
    gap: 7px;
  }
  body[data-page=memes] .swatch:not(.custom) {
    width: 24px;
    height: 24px;
  }
  body[data-page=memes] .panel-head.sub {
    margin-top: 9px;
  }
  body[data-page=memes] .recent {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    grid-auto-rows: 0;
    grid-template-rows: auto;
    overflow: hidden;
    gap: 6px;
  }
  body[data-page=memes] .actions {
    padding: 10px 0 0;
  }
  body[data-page=memes] #preview {
    max-height: 100%;
  }
  body[data-page=memes] .stage-inner {
    max-height: calc(100% - 8px);
    display: none;
  }
  body[data-page=memes] .stage.has-image .stage-inner {
    display: flex;
  }
}
@media (min-width: 981px) and (max-height: 820px) {
  body[data-page=memes] .editor-title h2 {
    font-size: 20px;
  }
  body[data-page=memes] .panel {
    padding: 7px 0;
  }
  body[data-page=memes] .cap input {
    height: 36px;
  }
  body[data-page=memes] #recentPanel {
    display: none;
  }
}
.oauth {
  flex-direction: column;
  gap: 8px;
}
.oauth-btn {
  width: 100%;
  height: 44px;
  justify-content: center;
  gap: 10px;
}
.oauth-btn svg {
  flex: none;
}
.steps .quote {
  font-style: italic;
  color: var(--yellow);
}
.auth-side {
  justify-content: center;
}
.oauth {
  flex-direction: row;
  gap: 8px;
}
.oauth-btn {
  flex: 1;
  height: 42px;
  padding: 0 10px;
  gap: 8px;
}
.auth-card {
  gap: 10px;
}
.auth-card h2 {
  font-size: 24px;
}
.auth-card .email-form {
  gap: 8px;
  margin-top: 2px;
}
.auth-card input {
  height: 40px;
}
.auth-card .or {
  margin: 2px 0;
}
@media (min-width: 981px) {
  .auth-split {
    height: 100%;
    max-height: 100%;
    overflow: visible;
    padding: 0 6px 6px 0;
    align-items: stretch;
  }
  .auth-split > * {
    max-height: 100%;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .auth-side {
    padding: 22px 24px;
    gap: 12px;
  }
  .steps {
    gap: 10px;
  }
}
@media (min-width: 981px) and (max-height: 820px) {
  .auth-card {
    padding: 16px 18px;
    gap: 8px;
  }
  .auth-card h2 {
    font-size: 21px;
  }
  .oauth-btn {
    height: 38px;
  }
  .auth-card input {
    height: 36px;
  }
  .btn.wide {
    height: 40px;
  }
  .steps strong {
    font-size: 15px;
  }
  .steps span {
    font-size: 13px;
  }
  .steps b {
    width: 28px;
    height: 28px;
    font-size: 15px;
  }
}
.auth-status {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.4;
}
.auth-status.info,
.auth-status.ok,
.auth-status.error {
  padding: 10px 12px;
  border-radius: 10px;
  border: var(--bw) solid var(--line);
  font-weight: 600;
  color: var(--text);
  animation: pop-in .2s ease both;
}
.auth-status.info {
  background: var(--card-2);
}
.auth-status.ok {
  background: var(--mint);
  color: #0b1b12;
  border-color: #0b1b12;
}
.auth-status.error {
  background: var(--coral);
  color: #fff;
  border-color: #15171c;
}
.client-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 4px;
  align-items: stretch;
}
.client-group-label {
  grid-column: 1 / -1;
  margin: 14px 0 -2px;
  font-family: var(--display);
  font-weight: 800;
  font-size: 15px;
  letter-spacing: -.1px;
  color: var(--muted);
}
.client-group-label:first-child {
  margin-top: 0;
}
.client-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  padding: 22px 22px 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--card);
  transition: border-color .12s, background .12s;
}
:root:not([data-theme=light]) .client-card {
  border-color: var(--line-soft);
}
.client-card {
  transition:
    transform .16s var(--ease-out),
    box-shadow .16s ease,
    border-color .16s ease,
    background .16s ease;
  will-change: transform;
}
.client-card:hover {
  background: var(--card);
  border-color: var(--line);
  transform: translate(-2px, -3px);
  box-shadow: 5px 5px 0 var(--ink);
}
.client-card:active {
  transform: translate(0, 0);
  box-shadow: 2px 2px 0 var(--ink);
  transition-duration: .06s;
}
.client-card .client-logo {
  transition: transform .22s var(--spring);
}
.client-card:hover .client-logo {
  transform: rotate(-6deg) scale(1.08);
}
.client-card .client-foot .btn span[aria-hidden] {
  display: inline-block;
  transition: transform .16s ease;
}
.client-card:hover .client-foot .btn span[aria-hidden] {
  transform: translateX(3px);
}
.client-card.soon:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--line-soft);
}
.client-card.soon:hover .client-logo {
  transform: none;
}
.client-card.soon {
  opacity: .6;
}
.client-logo {
  width: 48px;
  height: 48px;
  flex: none;
  display: grid;
  place-items: center;
  padding: 11px;
  border-radius: 12px;
  background: #fffdf7;
  border: 1px solid var(--line-soft);
  color: var(--brand, #15171c);
}
:root[data-theme=light] .client-logo {
  background: var(--card-2);
}
.client-logo svg {
  width: 100%;
  height: 100%;
  display: block;
  fill: currentColor;
}
.client-logo.has-img {
  padding: 8px;
}
.client-logo.has-img img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.client-logo .mono {
  font-family: var(--stamp);
  font-size: 12px;
  letter-spacing: .02em;
  color: #15171c;
}
.client-name {
  margin: 6px 0 0;
  font-family: var(--display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -.4px;
  line-height: 1.1;
}
.client-tag {
  margin: -6px 0 2px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: .01em;
}
.client-bullets {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.client-foot {
  margin-top: auto;
  padding-top: 12px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.client-add {
  height: 38px;
  padding: 0 16px;
  font-size: 14px;
}
.client-add span {
  display: inline-block;
  transition: transform .12s;
}
.client-add:hover span {
  transform: translateX(3px);
}
.client-link.alt {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  font-size: 12.5px;
  color: var(--muted);
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.client-link.alt:hover {
  color: var(--text);
}
.client-new {
  position: absolute;
  top: 18px;
  right: 18px;
  font-family: var(--stamp);
  font-size: 10.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 6px;
  background: var(--yellow);
  color: var(--yellow-ink);
  transform: rotate(-2deg);
}
.pill {
  font-style: normal;
  font-family: var(--stamp);
  font-size: 9.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 5px;
  background: var(--card);
  color: var(--muted);
  border: 1px solid var(--line-soft);
}
.pill.ok {
  background: var(--mint);
  color: #0b1b12;
  border-color: #0b1b12;
}
@media (max-width: 1180px) {
  .client-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .client-grid {
    grid-template-columns: 1fr;
  }
}
dialog.redeem {
  margin: auto;
  padding: 0;
  width: min(620px, calc(100vw - 28px));
  max-height: calc(100dvh - 28px);
  border: var(--bw) solid var(--line);
  border-radius: 22px;
  background: var(--card);
  color: var(--text);
  box-shadow: var(--shadow);
  overflow: auto;
}
dialog.redeem::backdrop {
  background: rgba(8, 9, 12, .62);
}
@keyframes redeem-in {
  from {
    opacity: 0;
    transform: scale(.94) translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
dialog.redeem[open] {
  animation: redeem-in .22s ease both;
}
.redeem-inner {
  position: relative;
  padding: 30px 26px 22px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.redeem-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: var(--bw) solid var(--line);
  background: var(--card-2);
  color: var(--text);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
}
.redeem-close:hover {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.redeem-logo {
  width: 72px;
  height: 72px;
  margin: 0 auto;
  padding: 14px;
  border-radius: 18px;
  transform: rotate(-3deg);
  background: #fffdf7;
  border: var(--bw) solid var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}
:root:not([data-theme=light]) .redeem-logo {
  border-color: #fffdf7;
  box-shadow: 3px 3px 0 #000;
}
.redeem-logo .mono {
  font-size: 18px;
}
.redeem h2 {
  margin: -4px 0 0;
  text-align: center;
  font-family: var(--display);
  font-size: clamp(24px, 4.5vw, 32px);
  font-weight: 800;
  letter-spacing: -.6px;
  line-height: 1.1;
}
.redeem .seg.mode {
  justify-self: center;
  margin: 0 auto;
}
.auth-note {
  margin: -2px 0 10px;
  max-width: 420px;
  margin-left: auto;
  margin-right: auto;
}
.redeem-steps {
  list-style: none;
  counter-reset: step;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.redeem-steps li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.5;
}
.redeem-steps li::before {
  counter-increment: step;
  content: counter(step);
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 3px solid var(--yellow);
  color: var(--text);
  font-family: var(--stamp);
  font-size: 20px;
  transform: rotate(-6deg);
}
.redeem pre {
  margin: 0;
  background: var(--ink);
  color: #f2efe6;
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  padding: 14px 16px;
  overflow-x: auto;
  font-size: 12.5px;
  line-height: 1.55;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.seg.mode {
  margin: 0;
  width: auto;
  grid-auto-columns: auto;
}
.seg.mode button {
  padding: 0 12px;
  height: 32px;
}
.codewrap {
  position: relative;
}
.codewrap pre {
  white-space: pre-wrap;
  word-break: break-all;
  padding-right: 48px;
}
.copy-icon {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, .18);
  background: rgba(0, 0, 0, .6);
  color: #d6d9e0;
  cursor: pointer;
  padding: 0;
}
.copy-icon:hover {
  color: #ffd60a;
  border-color: rgba(255, 214, 10, .6);
}
.copy-icon.copied {
  color: #35d07f;
  border-color: #35d07f;
}
.redeem-try {
  position: relative;
  padding: 12px 44px 12px 14px;
  border: var(--bw) dashed var(--line-soft);
  border-radius: 14px;
  background: var(--card-2);
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-start;
}
.redeem-try .copy-icon {
  background: var(--card);
  color: var(--muted);
  border-color: var(--line-soft);
}
.redeem-try .copy-icon:hover {
  color: var(--text);
  border-color: var(--line);
}
.redeem-try-label {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
}
.redeem-prompt {
  margin: 0;
  font-size: 15px;
  line-height: 1.45;
  color: var(--text);
}
.redeem .btn.wide {
  width: 100%;
  height: 52px;
  font-size: 16px;
  border-radius: 999px;
}
.redeem .btn.wide span {
  font-size: 20px;
  line-height: 0;
}
.redeem-foot {
  margin: -4px 0 0;
  text-align: center;
  color: var(--muted);
  font-size: 12.5px;
}
.redeem .center {
  text-align: center;
}
.redeem .link-btn.center {
  align-self: center;
}
body.modal-open,
body.modal-open .console {
  overflow: hidden;
}
@media (max-width: 640px) {
  .redeem-inner {
    padding: 26px 18px 18px;
  }
  .redeem-steps li {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 10px;
  }
  .redeem-steps li::before {
    width: 34px;
    height: 34px;
    font-size: 17px;
  }
}
.auth-head {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.auth-sub {
  margin: 0;
}
.pw-wrap {
  position: relative;
  display: flex;
}
.pw-wrap input {
  flex: 1;
  padding-right: 64px;
}
.pw-toggle {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: 0;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  padding: 6px 8px;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.pw-toggle:hover {
  color: var(--text);
}
.pw-rules {
  list-style: none;
  margin: -2px 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}
.pw-rules li::before {
  content: "○ ";
}
.pw-rules li.ok {
  color: var(--text);
}
.pw-rules li.ok::before {
  content: "✓ ";
}
.fine {
  margin: 0;
  text-align: center;
}
.auth-card[data-mode=signin] .signup-only {
  display: none;
}
.auth-card[data-mode=inbox] .auth-form-only {
  display: none;
}
.inbox {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.inbox-stamp {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--yellow);
  color: var(--yellow-ink);
  border: var(--bw) solid #000;
  font-size: 26px;
  transform: rotate(-4deg);
  box-shadow: var(--shadow-sm);
}
.inbox h2 {
  font-size: 24px;
  margin: 4px 0 0;
}
.inbox p {
  margin: 0;
}
.inbox-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
  margin-top: 6px;
}
.inbox-actions .btn.wide {
  margin-bottom: 2px;
}
.pw-match {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 12px;
  font-weight: 700;
  pointer-events: none;
}
.pw-match.ok {
  color: #0b7a3b;
}
.pw-match.bad {
  color: var(--coral);
}
.user-menu {
  position: relative;
}
.user-btn {
  position: relative;
  padding: 0;
  overflow: visible;
}
.user-btn.signed-in {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.user-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.user-initial {
  font-family: var(--display);
  font-weight: 800;
  font-size: 17px;
  line-height: 1;
}
.user-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--mint);
  border: 2.5px solid var(--card);
}
.user-pop {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 230px;
  background: var(--card);
  border: var(--bw) solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 60;
  display: flex;
  flex-direction: column;
  gap: 2px;
  animation: pop-in .15s ease both;
}
.user-pop[hidden] {
  display: none;
}
.user-email {
  margin: 6px 12px 8px;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.user-item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 10px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 700;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
}
.user-item:hover {
  background: var(--card-2);
}
.kstatus {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .02em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  border: var(--bw) solid var(--line);
  background: var(--card);
}
.kstatus::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.kstatus.active {
  color: #0b7a3b;
}
.kstatus.soon {
  color: #9a6700;
}
.kstatus.expired,
.kstatus.revoked {
  color: var(--muted);
}
.page.agents .sheet {
  margin-top: 18px;
}
.card img.img {
  background: var(--card-2);
}
.card img.img.failed {
  background:
    var(--card-2) repeating-linear-gradient(
      135deg,
      transparent 0 8px,
      rgba(0, 0, 0, .06) 8px 16px);
}
@media (min-width: 981px) and (max-width: 1280px) {
  body[data-page=memes] .editor {
    overflow: auto;
  }
  body[data-page=memes] .editor-main {
    grid-template-rows: auto auto;
  }
  body[data-page=memes] .stage {
    height: auto;
    min-height: 360px;
  }
  body[data-page=memes] #preview {
    max-height: calc(56vh - 12px);
  }
  body[data-page=memes] .controls {
    max-height: none;
  }
}
.kstatus.active {
  background: var(--mint);
  color: #0b1b12;
  border-color: #0b1b12;
}
.kstatus.soon {
  background: var(--yellow);
  color: var(--yellow-ink);
  border-color: var(--yellow-ink);
}
.kstatus.expired,
.kstatus.revoked {
  background: var(--card-2);
  color: var(--muted);
}
.auth-status.error {
  color: #15171c;
}
:root[data-theme=light] .key .kactions .danger {
  color: #c0392b;
}
:root:not([data-theme=light]) .pw-match.ok {
  color: var(--mint);
}
::placeholder {
  color: var(--muted);
  opacity: 1;
}
#galleryTitle {
  overflow-wrap: anywhere;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.forge {
  --col: 720px;
  max-width: var(--col);
  margin: 0 auto;
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: calc(100dvh - var(--top-h, 72px));
}
.forge-stage {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.forge.started {
  justify-content: flex-start;
}
.forge.started .forge-stage {
  flex: 1 0 auto;
  padding-top: 24px;
}
.forge-hero {
  text-align: center;
  padding: 8px 0 26px;
}
.hero-anvil {
  position: relative;
  display: inline-block;
  color: var(--text);
  margin-bottom: 6px;
}
.hero-anvil .big-anvil {
  display: block;
  transform-origin: 50% 100%;
}
.hero-anvil .hammer {
  position: absolute;
  left: 50%;
  top: -34px;
  margin-left: -6px;
  transform-origin: 18% 92%;
  transform: rotate(-38deg);
  opacity: 0;
  transition: opacity .2s;
}
.hero-anvil .sparks {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}
.forge-hero.striking .hammer {
  opacity: 1;
  animation: hammer-swing .55s cubic-bezier(.5, 0, .3, 1) both;
}
.forge-hero.striking .big-anvil {
  animation: anvil-strike .5s var(--spring) .3s;
}
.forge-hero.striking .sparks {
  animation: sparks-big .6s ease-out .36s;
}
.forge-hero.striking .hl {
  animation: hl-flash .5s ease .34s;
}
.forge-hero.leaving {
  animation: hero-out .16s var(--ease-out) both;
}
.forge-hero h1 {
  margin: 0 0 10px;
  font-family: var(--display);
  font-size: clamp(36px, 6vw, 60px);
  font-weight: 800;
  letter-spacing: -1.5px;
  line-height: .98;
}
.forge-hero .hl {
  background: var(--yellow);
  color: var(--yellow-ink);
  padding: 0 .2em;
  display: inline-block;
  transform: rotate(-1.5deg);
  border-radius: 6px;
}
.forge-sub {
  margin: 0 auto;
  max-width: 480px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.45;
}
.forge.started .forge-hero {
  display: none;
}
@keyframes hammer-swing {
  0% {
    transform: rotate(-70deg) translateY(-6px);
  }
  55% {
    transform: rotate(8deg);
  }
  70% {
    transform: rotate(2deg);
  }
  100% {
    transform: rotate(-20deg);
  }
}
@keyframes sparks-big {
  0%, 30% {
    opacity: 1;
    box-shadow:
      0 0 0 0 #ff7a1a,
      0 0 0 0 #15171c,
      0 0 0 0 #ff7a1a,
      0 0 0 0 #15171c,
      0 0 0 0 #ffb01a,
      0 0 0 0 #ff7a1a,
      0 0 0 0 #ffd60a;
  }
  100% {
    opacity: 0;
    box-shadow:
      -34px -40px 0 1px #ff7a1a,
      12px -52px 0 0 #15171c,
      44px -30px 0 1px #ff7a1a,
      -50px -12px 0 0 #15171c,
      36px -4px 0 1px #ffb01a,
      -12px -58px 0 0 #ff7a1a,
      54px -16px 0 0 #ffd60a;
  }
}
@keyframes hl-flash {
  0%, 100% {
    box-shadow: 0 0 0 0 rgba(255, 214, 10, 0);
  }
  40% {
    box-shadow: 0 0 0 10px rgba(255, 214, 10, .45);
  }
}
@keyframes hero-out {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(.98);
  }
}
.composer {
  position: sticky;
  bottom: 0;
  z-index: 5;
  padding: 10px 0 max(14px, env(safe-area-inset-bottom));
  background:
    linear-gradient(
      to bottom,
      transparent,
      var(--paper) 22px);
}
.composer.moving {
  transition: transform .45s var(--ease-out);
}
.prompt {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px 12px 10px;
  border-radius: 20px;
  border: var(--bw) solid var(--line);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: box-shadow .15s;
}
.prompt:focus-within {
  box-shadow: 4px 4px 0 var(--yellow);
}
.prompt textarea {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 17px/1.45 var(--font);
  resize: none;
  outline: none;
  padding: 4px 4px 0;
  min-height: 30px;
  max-height: 180px;
  box-shadow: none;
}
.prompt textarea::placeholder {
  color: var(--muted);
}
.prompt-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.attach-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 0 2px;
}
.attach-row[hidden] {
  display: none;
}
.attach-chip {
  position: relative;
  width: 56px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--line-soft);
  background: var(--card-2);
}
.attach-chip img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.attach-chip button {
  position: absolute;
  top: 2px;
  right: 2px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 0;
  background: rgba(0, 0, 0, .6);
  color: #fff;
  font: 700 13px/20px var(--font);
  padding: 0;
  cursor: pointer;
}
.attach-btn {
  padding: 0 8px;
}
.msg.user .sent-photos {
  display: flex;
  gap: 6px;
  margin-top: 6px;
}
.msg.user .sent-photos:first-child {
  margin-top: 0;
}
.msg.user .sent-photos img {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.shape-menu {
  position: relative;
}
.shape-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 10px 0 8px;
  border-radius: 999px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--muted);
  font: 600 13px/1 var(--font);
  cursor: pointer;
}
.shape-btn:hover,
.shape-btn[aria-expanded=true] {
  color: var(--text);
  background: var(--card-2);
  border-color: var(--line-soft);
}
.shape-menu.set .shape-btn {
  color: var(--text);
  background: var(--yellow);
  border-color: var(--line);
}
.shape-menu.set .shape-btn,
.shape-menu.set .shape-btn .caret {
  color: var(--yellow-ink);
}
.shape-btn .caret {
  opacity: .7;
}
.shape-menu .menu {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  min-width: 220px;
  padding: 6px;
  border-radius: 14px;
  background: var(--card);
  border: 1px solid var(--line-soft);
  box-shadow: var(--shadow);
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.shape-menu .menu[hidden] {
  display: none;
}
.shape-menu .menu button {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1px;
  padding: 8px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  font: 500 13.5px/1.25 var(--font);
}
.shape-menu .menu button span {
  color: var(--muted);
  font-size: 12px;
}
.shape-menu .menu button:hover {
  background: var(--card-2);
}
.shape-menu .menu button[aria-selected=true] {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.shape-menu .menu button[aria-selected=true] span {
  color: var(--yellow-ink);
  opacity: .8;
}
.send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: var(--bw) solid var(--line);
  background: var(--yellow);
  color: var(--yellow-ink);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 2px 2px 0 var(--line);
  transition: transform .1s;
}
.send:hover {
  transform: translate(-1px, -1px);
}
.send:disabled {
  opacity: .5;
  cursor: progress;
  transform: none;
}
.forge-foot {
  text-align: center;
  margin: 8px 0 0;
  font-size: 12px;
  color: var(--faint);
}
.forge-foot:empty {
  display: none;
}
.forge-foot a {
  color: var(--muted);
}
.forge-sub .quiet-link {
  display: inline-block;
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
}
.forge-sub .quiet-link:hover {
  color: var(--text);
}
.thread {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding-bottom: 8px;
}
.thread:empty {
  display: none;
}
.msg {
  max-width: 100%;
  animation: msg-in .25s ease both;
}
@keyframes msg-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}
.msg.user {
  align-self: flex-end;
  max-width: 80%;
  background: var(--yellow);
  color: var(--yellow-ink);
  border-radius: 18px 18px 4px 18px;
  padding: 10px 14px;
  font-weight: 600;
  white-space: pre-wrap;
}
.msg.bot {
  align-self: stretch;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  gap: 10px;
}
.msg.bot .avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--fill);
  color: var(--fill-text);
  display: grid;
  place-items: center;
}
.msg.bot .avatar svg {
  width: 20px;
  height: 14px;
}
.msg.bot .bubble {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 4px;
  padding-top: calc((32px - 1lh) / 2 - 1px);
}
.msg.bot .bubble p {
  margin: 0;
}
.msg.bot .bubble .meme {
  display: block;
  width: auto;
  height: auto;
  max-width: 100%;
  margin: 0 auto;
  max-height: 56vh;
  object-fit: contain;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  box-shadow: var(--shadow-sm);
}
.msg-tools {
  display: flex;
  align-items: center;
  gap: 2px;
}
.msg-tools .spacer {
  flex: 1;
}
.msg-tools .tool {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  text-decoration: none;
}
.msg-tools .tool:hover {
  color: var(--text);
  background: var(--card-2);
}
.msg-tools .tool[aria-pressed=true] {
  color: var(--yellow-ink);
  background: var(--yellow);
}
.msg-tools .recipe {
  margin-left: 6px;
  color: var(--faint);
  font-size: 12.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 40%;
}
.followups {
  margin: 0;
  color: var(--faint);
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 8px;
}
.followups .link-btn {
  padding: 2px 0;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted);
}
.followups .sep {
  color: var(--line-soft);
}
.options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
  margin-top: 10px;
}
.option {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 6px;
  border: var(--bw) solid var(--line);
  border-radius: 10px;
  background: var(--surface, transparent);
  color: var(--text);
  cursor: pointer;
  font-weight: 700;
  font-size: 12.5px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.option:hover {
  transform: translateY(-1px);
}
.option img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 6px;
  display: block;
}
.msg.bot .bubble .meme {
  opacity: 0;
}
.msg.bot.landed .bubble .meme {
  opacity: 1;
  animation: meme-stamp var(--t-arrive) var(--spring) both;
}
@keyframes meme-stamp {
  from {
    opacity: 0;
    transform: scale(1.06) rotate(-1.5deg);
    box-shadow: 0 0 0 var(--ink);
  }
  60% {
    opacity: 1;
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.msg-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.msg-actions .spacer {
  flex: 1;
}
.msg-actions .btn {
  height: 38px;
  padding: 0 14px;
  font-size: 14px;
  box-shadow: none;
}
.msg-actions .btn.primary {
  box-shadow: 2px 2px 0 var(--line);
}
.msg-actions .btn.primary.copied {
  background: var(--mint);
  color: #0b1b12;
}
.msg-actions .tool {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}
.msg-actions .tool:hover {
  color: var(--text);
  background: var(--card-2);
}
.msg-actions .tool.wide {
  width: auto;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font: 600 13px/1 var(--font);
}
.msg.bot .bubble .hint {
  color: var(--muted);
  font-size: 13.5px;
}
.msg-actions .tool[aria-pressed=true] {
  color: var(--yellow-ink);
  background: var(--yellow);
}
.msg.bot .msg-actions,
.msg.bot .followups {
  opacity: 0;
}
.msg.bot.landed .msg-actions {
  animation: rise-in var(--t-std) var(--ease-out) .08s both;
}
.msg.bot.landed .followups,
.msg.bot .options + .followups {
  animation: rise-in var(--t-std) var(--ease-out) .14s both;
}
@keyframes rise-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.chip-btn {
  height: 32px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  color: var(--muted);
  font: 600 13px/1 var(--font);
  cursor: pointer;
  transition:
    color var(--t-quick),
    border-color var(--t-quick),
    background var(--t-quick),
    transform var(--t-quick);
}
.chip-btn:hover {
  color: var(--text);
  border-color: var(--line);
  transform: translateY(-1px);
}
.chip-btn:active {
  transform: none;
}
.followups {
  gap: 6px;
}
.try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
}
.try-label {
  color: var(--faint);
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-right: 2px;
}
.forge.started .try {
  display: none;
}
.options.pictures {
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}
.options.pictures .option {
  animation: deal-in var(--t-std) var(--spring) both;
  animation-delay: calc(var(--i, 0) * 70ms);
  transition: transform var(--t-std) var(--spring), opacity var(--t-std);
}
.options.pictures .option img {
  aspect-ratio: 4 / 3;
}
.options.pictures .option.chosen {
  transform: translateY(-3px);
  border-color: var(--yellow);
  box-shadow: 4px 4px 0 var(--yellow);
}
.options.pictures .option.passed {
  opacity: .35;
}
@keyframes deal-in {
  from {
    opacity: 0;
    transform: translateY(10px) scale(.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.msg.bot.thinking .bubble {
  color: var(--muted);
}
.msg.bot.thinking .avatar svg {
  transform-origin: 50% 100%;
}
.msg.bot.thinking.tap .avatar svg {
  animation: anvil-strike .5s var(--spring);
}
.msg.bot.thinking .bubble p {
  animation: msg-in .3s ease both;
}
.dots::after {
  content: "…";
  animation: dots 1.2s steps(4, end) infinite;
}
@keyframes dots {
  0% {
    content: "";
  }
  25% {
    content: ".";
  }
  50% {
    content: "..";
  }
  75% {
    content: "...";
  }
}
@media (max-width: 640px) {
  .forge {
    min-height: calc(100dvh - var(--top-h, 120px));
  }
  .forge-hero h1 {
    font-size: 36px;
  }
  .hero-anvil .big-anvil {
    width: 92px;
    height: 63px;
  }
  .hero-anvil .hammer {
    width: 50px;
    height: 50px;
    top: -26px;
  }
  .msg.bot {
    grid-template-columns: minmax(0, 1fr);
  }
  .msg.bot .avatar {
    display: none;
  }
  .msg.user {
    max-width: 90%;
  }
}
@media (max-width: 640px) {
  .top::before {
    display: none;
  }
  .tabs {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    order: 0;
    margin: 0;
    border-radius: 0;
    border-width: var(--bw) 0 0;
    box-shadow: none;
    justify-content: space-around;
    gap: 6px;
    padding: 6px 12px calc(6px + env(safe-area-inset-bottom));
    background: var(--paper);
  }
  .tabs .tab {
    flex: 1;
    text-align: center;
    padding: 10px 8px;
  }
  body {
    padding-bottom: calc(58px + env(safe-area-inset-bottom));
  }
  .composer {
    bottom: calc(56px + env(safe-area-inset-bottom));
    padding-bottom: 10px;
  }
  .toast {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
  .forge {
    min-height: calc(100dvh - var(--top-h, 64px) - 58px - env(safe-area-inset-bottom));
  }
  .gallery-page .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .perks {
    display: none;
  }
  .client-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 2px;
    align-items: center;
    padding: 14px;
    border-radius: 14px;
  }
  .client-logo {
    grid-row: 1 / span 2;
    width: 44px;
    height: 44px;
    padding: 9px;
  }
  .client-name {
    margin: 0;
    font-size: 18px;
  }
  .client-tag {
    margin: 0;
  }
  .client-bullets {
    display: none;
  }
  .client-foot {
    grid-column: 1 / -1;
    margin-top: 6px;
    padding-top: 8px;
  }
  .client-new {
    top: 12px;
    right: 12px;
  }
}
.forge-hero {
  padding-top: 0;
}
.forge-sub {
  color: var(--text);
  opacity: .78;
  font-size: 17px;
}
.forge-claims {
  margin: 12px 0 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 8px;
}
.forge-claims span {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font: 700 12.5px/1 var(--font);
}
.forge-claims span:first-child {
  background: var(--yellow);
  color: var(--yellow-ink);
}
.forge:not(.started) .composer {
  position: static;
  background: none;
}
.forge:not(.started) {
  padding-top: 28px;
  padding-bottom: 28px;
}
.prompt-left {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.new-meme[hidden] {
  display: none;
}
.made {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 22px;
}
.made-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  text-align: left;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  font: inherit;
  transition:
    transform var(--t-quick) var(--ease-out),
    border-color var(--t-quick),
    box-shadow var(--t-quick);
}
.made-card:hover {
  transform: translateY(-2px);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.made-card:active {
  transform: none;
}
.made-ask {
  font: 600 12.5px/1.35 var(--font);
  color: var(--muted);
  min-height: 2.7em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.made-card img {
  width: 100%;
  height: 150px;
  object-fit: contain;
  border-radius: 8px;
  background: var(--card-2);
  display: block;
}
.forge-studio {
  margin: 16px 0 0;
  text-align: center;
}
.forge-studio .quiet-link {
  color: var(--muted);
  font-size: 14px;
}
.forge-studio .quiet-link:hover {
  color: var(--text);
}
.site-foot {
  margin: 14px 0 0;
  text-align: center;
  font-size: 12.5px;
  color: var(--faint);
}
.site-foot a {
  color: var(--muted);
}
.agents .site-foot {
  margin: 22px 0 8px;
}
.forge.started .made,
.forge.started .forge-studio,
.forge.started .site-foot {
  display: none;
}
.forge.restored .msg,
.forge.restored .msg * {
  animation: none !important;
  opacity: 1 !important;
}
.msg.bot.thinking .bubble:has(.ghost) {
  display: grid;
  padding-top: 0;
}
.ghost {
  grid-area: 1 / 1;
  width: min(100%, 440px);
  aspect-ratio: 16 / 10;
  border-radius: 14px;
  border: 1px dashed var(--line-soft);
  background:
    linear-gradient(
      100deg,
      var(--card-2) 35%,
      var(--card) 50%,
      var(--card-2) 65%);
  background-size: 220% 100%;
  animation: ghost-shimmer 1.5s linear infinite;
}
.ghost + p {
  grid-area: 1 / 1;
  width: min(100%, 440px);
  place-self: center start;
  text-align: center;
  font-weight: 600;
  padding: 0 16px;
}
@keyframes ghost-shimmer {
  from {
    background-position: 100% 0;
  }
  to {
    background-position: -120% 0;
  }
}
.msg-actions .break {
  display: none;
}
.cap input {
  text-overflow: ellipsis;
}
@media (max-width: 640px) {
  .forge:not(.started) {
    justify-content: flex-start;
    padding-top: 22px;
  }
  .made {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 18px -16px 0;
    padding: 0 16px 6px;
    scrollbar-width: none;
  }
  .made::-webkit-scrollbar {
    display: none;
  }
  .made-card {
    flex: 0 0 72%;
    scroll-snap-align: center;
  }
  .msg-actions .break {
    display: block;
    flex-basis: 100%;
    height: 0;
  }
  .msg-actions .btn {
    flex: 1 1 auto;
    justify-content: center;
  }
  .new-meme span {
    display: none;
  }
  .perks {
    display: block;
  }
}
.client-groups {
  display: flex;
  flex-direction: column;
  gap: 26px;
  padding-top: 6px;
}
.shelf-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.shelf-head h3 {
  margin: 0;
  font: 800 18px/1.2 var(--display);
}
.shelf-head p {
  margin: 0;
}
@media (min-width: 1181px) {
  .client-grid.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 640px) {
  .try {
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    margin: 12px -16px 0;
    padding: 0 16px 2px;
    scrollbar-width: none;
  }
  .try::-webkit-scrollbar {
    display: none;
  }
  .try .chip-btn,
  .try-label {
    flex: 0 0 auto;
  }
  .made {
    margin-top: 14px;
  }
}
@media (max-width: 980px) {
  body[data-page=memes] .editor .actions {
    background: var(--card);
    border-top: 1px solid var(--line-soft);
    padding-top: 10px;
    margin: 0 -2px;
  }
}
@media (max-width: 640px) {
  .perks {
    display: grid;
    gap: 8px;
    padding: 0;
    margin-top: 12px;
  }
}
.forge {
  position: relative;
  isolation: isolate;
}
.forge:not(.started)::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 40%;
  width: min(820px, 100vw);
  height: 460px;
  translate: -50% -50%;
  background:
    radial-gradient(
      closest-side,
      color-mix(in srgb, var(--yellow) 20%, transparent),
      transparent);
  pointer-events: none;
  z-index: -1;
}
.forge-hero,
.composer {
  width: 100%;
  margin-inline: auto;
}
.forge:not(.started) .forge-hero,
.forge:not(.started) .composer {
  max-width: 620px;
}
.composer {
  max-width: 720px;
  transition: max-width .45s var(--ease-out);
}
.forge-kicker {
  margin: 0 0 14px;
  font: 700 12px/1 var(--font);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.forge-kicker i {
  font-style: normal;
  color: var(--yellow);
  margin: 0 .35em;
}
:root[data-theme=light] .forge-kicker i {
  color: var(--text);
  opacity: .4;
}
.forge-hero h1 {
  font-size: clamp(44px, 7.2vw, 84px);
  letter-spacing: -2.5px;
  margin-bottom: 14px;
}
.forge-hero {
  padding-bottom: 22px;
}
.forge-sub {
  max-width: 440px;
}
.forge:not(.started) .prompt {
  padding: 16px 16px 12px;
  border-radius: 24px;
  box-shadow: 6px 6px 0 var(--yellow);
  transition: box-shadow .15s, translate .15s;
}
.forge:not(.started) .prompt:focus-within {
  box-shadow: 8px 8px 0 var(--yellow);
  translate: -1px -1px;
}
.forge:not(.started) .prompt textarea {
  font-size: 19px;
  min-height: 34px;
}
.forge:not(.started) .send {
  width: 48px;
  height: 48px;
}
.dice-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text);
  border-color: var(--line);
}
.dice-chip:hover svg {
  animation: dice-roll .5s var(--spring);
}
@keyframes dice-roll {
  from {
    rotate: -180deg;
    scale: .7;
  }
}
.wall-card {
  display: block;
  padding: 7px 7px 0;
  border: var(--bw) solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  box-shadow: 4px 4px 0 var(--line);
  cursor: pointer;
  text-align: left;
  font: inherit;
  rotate: var(--r, 0deg);
  translate: calc(var(--px, 0) * var(--d, 10) * 1px) calc(var(--py, 0) * var(--d, 10) * 1px);
  transition:
    rotate .35s var(--spring),
    scale .35s var(--spring),
    box-shadow .2s,
    translate .3s ease-out;
  animation: wall-in .6s var(--spring) backwards;
  animation-delay: calc(var(--i, 0) * 90ms + 150ms);
}
.wall-card img {
  width: 100%;
  height: auto;
  border-radius: 7px;
  display: block;
}
.wall-card span {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 7px 3px 9px;
  font: 600 12px/1.3 var(--font);
  color: var(--muted);
}
.wall-card:hover,
.wall-card:focus-visible {
  rotate: 0deg;
  scale: 1.07;
  z-index: 3;
  box-shadow: 6px 6px 0 var(--yellow);
}
.wall-card:hover span,
.wall-card:focus-visible span {
  color: var(--text);
}
.wall-card:active {
  scale: 1.02;
}
@keyframes wall-in {
  from {
    opacity: 0;
    scale: .6;
    rotate: 0deg;
  }
}
.forge.started .wall {
  display: none;
}
.wall {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  margin: 22px calc(50% - 50vw) 0;
  padding: 10px max(18px, calc(50vw - 310px)) 16px;
  scrollbar-width: none;
}
.wall::-webkit-scrollbar {
  display: none;
}
.wall .wall-card {
  flex: 0 0 210px;
  scroll-snap-align: center;
}
.wall .wall-card:nth-child(odd) {
  --r: -2deg;
}
.wall .wall-card:nth-child(even) {
  --r: 2deg;
}
@media (min-width: 1240px) and (min-height: 780px) {
  .wall {
    display: block;
    position: absolute;
    inset: 0 auto 0 50%;
    width: min(1360px, 100vw);
    translate: -50% 0;
    margin: 0;
    padding: 0;
    overflow: visible;
    pointer-events: none;
  }
  .wall .wall-card {
    position: absolute;
    width: clamp(196px, 16.5vw, 246px);
    pointer-events: auto;
  }
  .wall .wall-card.w1 {
    left: 1%;
    top: 4%;
    --r: -7deg;
    --d: 16;
  }
  .wall .wall-card.w2 {
    left: 3.2%;
    top: 33%;
    --r: 4deg;
    --d: 9;
  }
  .wall .wall-card.w3 {
    left: 0.5%;
    top: 71%;
    --r: -3deg;
    --d: 13;
  }
  .wall .wall-card.w4 {
    right: 1%;
    top: 4%;
    --r: 6deg;
    --d: 12;
  }
  .wall .wall-card.w5 {
    right: 3.2%;
    top: 38%;
    --r: -5deg;
    --d: 17;
  }
  .wall .wall-card.w6 {
    right: 0.5%;
    top: 63%;
    --r: 4deg;
    --d: 8;
  }
  .forge:not(.started) {
    justify-content: center;
  }
}
@media (max-width: 640px) {
  .forge-hero h1 {
    font-size: 44px;
    letter-spacing: -1.5px;
  }
  .wall .wall-card {
    flex-basis: 64%;
  }
  .forge:not(.started) .prompt {
    box-shadow: 4px 4px 0 var(--yellow);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wall-card {
    translate: none;
  }
}
.forge-hero h1 .nb {
  display: block;
  white-space: nowrap;
}
.top {
  border-bottom-color: var(--line-soft);
  border-bottom-width: 1px;
}
.tabs {
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  gap: 2px;
}
.tab {
  padding: 7px 12px;
  border-radius: 8px;
  font-weight: 600;
}
.tab:hover {
  color: var(--text);
}
.tab[aria-current=page] {
  background: none;
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--text);
  border-radius: 0;
}
.icon-round {
  box-shadow: none;
  border-color: transparent;
  background: none;
}
.icon-round:hover {
  background: var(--card-2);
}
.brand .mark,
:root:not([data-theme=light]) .brand .mark {
  box-shadow: none;
  transform: none;
}
@media (max-width: 640px) {
  .tabs {
    background: var(--paper);
    border-top: 1px solid var(--line-soft);
  }
  .tab[aria-current=page] {
    box-shadow: inset 0 2px 0 var(--text);
  }
}
p.try {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 4px 10px;
  margin: 18px 0 0;
  overflow: visible;
  padding: 0;
}
p.try i {
  font-style: normal;
  opacity: .45;
}
.text-btn {
  background: none;
  border: 0;
  padding: 4px 2px;
  font: 600 14.5px/1.2 var(--font);
  color: var(--text);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-thickness: 1.5px;
  text-underline-offset: 4px;
  text-decoration-color: color-mix(in srgb, currentColor 35%, transparent);
  transition: text-decoration-color var(--t-quick);
}
.text-btn:hover {
  text-decoration-color: currentColor;
}
.site-foot a {
  text-decoration-color: transparent;
}
.wall-card {
  padding: 0;
  border: 0;
  border-radius: 6px;
  background: none;
  box-shadow: 0 10px 28px rgba(0, 0, 0, .22);
  position: relative;
}
.wall-card img {
  border-radius: 6px;
}
.wall-card span {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  translate: -50% 0;
  width: max-content;
  max-width: 250px;
  margin: 0;
  padding: 6px 9px;
  border-radius: 6px;
  background: #15171c;
  color: #fff;
  font: 600 12px/1.3 var(--font);
  display: block;
  -webkit-line-clamp: unset;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-quick);
  z-index: 4;
}
.wall-card:hover span,
.wall-card:focus-visible span {
  opacity: 1;
  color: #fff;
}
.wall-card:hover,
.wall-card:focus-visible {
  box-shadow: 0 16px 40px rgba(0, 0, 0, .32);
  scale: 1.05;
  z-index: 5;
  filter: none;
  opacity: 1;
}
.wall .wall-card {
  flex-basis: 230px;
}
.wall .wall-card.sz-s {
  flex-basis: 170px;
  align-self: center;
}
@media (min-width: 1240px) and (min-height: 780px) {
  .wall {
    width: 100vw;
    overflow: hidden;
  }
  .wall .wall-card.sz-l {
    width: 21vw;
    z-index: 2;
  }
  .wall .wall-card.sz-m {
    width: 14.5vw;
    z-index: 3;
  }
  .wall .wall-card.sz-s {
    width: 9.5vw;
    z-index: 1;
  }
  .wall .wall-card {
    left: auto;
    right: auto;
    top: auto;
  }
  .wall .wall-card.c1 {
    left: -3vw;
    top: 5%;
    --r: -6deg;
    --d: 16;
  }
  .wall .wall-card.c2 {
    left: 10.5vw;
    top: 31%;
    --r: 5deg;
    --d: 22;
  }
  .wall .wall-card.c3 {
    left: -4.5vw;
    top: 57%;
    --r: 4deg;
    --d: 14;
  }
  .wall .wall-card.c4 {
    left: 17.5vw;
    top: 13%;
    --r: 9deg;
    --d: 6;
  }
  .wall .wall-card.c5 {
    left: 15vw;
    top: 82%;
    --r: -8deg;
    --d: 7;
  }
  .wall .wall-card.c6 {
    right: -3.5vw;
    top: 3%;
    --r: 5deg;
    --d: 15;
  }
  .wall .wall-card.c7 {
    right: 10vw;
    top: 35%;
    --r: -6deg;
    --d: 22;
  }
  .wall .wall-card.c8 {
    right: -5vw;
    top: 55%;
    --r: -4deg;
    --d: 13;
  }
  .wall .wall-card.c9 {
    right: 18vw;
    top: 16%;
    --r: -9deg;
    --d: 6;
  }
  .wall .wall-card.c10 {
    right: 15.5vw;
    top: 80%;
    --r: 7deg;
    --d: 7;
  }
}
@media (max-width: 640px) {
  .forge-hero h1 {
    font-size: clamp(58px, 19vw, 84px);
    letter-spacing: 0;
  }
  .wall .wall-card {
    flex-basis: 58%;
  }
  .wall .wall-card.sz-s {
    flex-basis: 40%;
  }
}
@media (max-width: 640px) {
  p.try i {
    display: none;
  }
  p.try {
    gap: 6px 18px;
  }
}
:root {
  --paper: #111214;
  --paper-2: #16181b;
  --card: #1a1c20;
  --card-2: #22252a;
  --line: #2e3138;
  --line-soft: #25282e;
  --bw: 1px;
  --shadow: 0 12px 32px rgba(0,0,0,.36);
  --shadow-sm: 0 1px 2px rgba(0,0,0,.3), 0 6px 16px rgba(0,0,0,.22);
  --shadow-hover: 0 16px 40px rgba(0,0,0,.46);
  --serif:
    "Instrument Serif",
    "Iowan Old Style",
    Georgia,
    serif;
}
:root[data-theme=light] {
  --paper: #f7f6f2;
  --paper-2: #f1efe9;
  --card: #ffffff;
  --card-2: #f3f1ec;
  --line: #dcd8ce;
  --line-soft: #e9e6de;
  --text: #1a1b1e;
  --muted: #62656d;
  --faint: #9a9da5;
  --shadow: 0 12px 32px rgba(30,28,20,.09);
  --shadow-sm: 0 1px 2px rgba(30,28,20,.05), 0 6px 16px rgba(30,28,20,.05);
  --shadow-hover: 0 16px 40px rgba(30,28,20,.13);
}
body[data-page=forge]:has(#page-forge:not(.started)) .top {
  border-bottom-color: transparent;
}
.brand .mark,
:root:not([data-theme=light]) .brand .mark {
  font: 700 19px/1 var(--font);
  letter-spacing: -.02em;
  text-transform: lowercase;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--text);
  box-shadow: none;
  transform: none;
  display: inline-flex;
  align-items: center;
}
.brand .mark::first-letter {
  text-transform: uppercase;
}
.brand .mark .anvil {
  color: var(--text);
  margin-right: 8px;
  vertical-align: 0;
}
.brand .mark b {
  font-weight: 700;
  color: inherit;
  background: none;
  padding: 0;
  margin: 0;
  border-radius: 0;
}
.brand .mark .anvil-wrap {
  margin-right: 0;
}
.forge-hero h1 {
  font-family: var(--serif);
  font-weight: 400;
  text-transform: none;
  font-size: clamp(52px, 6.6vw, 96px);
  line-height: 1;
  letter-spacing: -.02em;
  margin: 0 0 18px;
  color: var(--text);
  -webkit-text-stroke: 0;
  text-wrap: balance;
}
.forge-hero h1 em {
  font-style: italic;
}
.forge-sub,
:root[data-theme=light] .forge-sub {
  max-width: 430px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
  opacity: 1;
}
.forge-claims {
  margin: 14px 0 0;
  display: block;
  font: 500 13px/1 var(--font);
  color: var(--faint);
  letter-spacing: .01em;
}
.forge-claims i {
  font-style: normal;
  margin: 0 .45em;
  opacity: .7;
}
.forge-hero {
  padding-bottom: 30px;
}
.prompt,
.forge:not(.started) .prompt {
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  translate: none;
}
.forge:not(.started) .prompt {
  border-radius: 22px;
  box-shadow: var(--shadow);
  padding: 16px 16px 12px;
}
.prompt:focus-within,
.forge:not(.started) .prompt:focus-within {
  box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--text) 8%, transparent);
  border-color: color-mix(in srgb, var(--text) 30%, var(--line));
  translate: none;
}
.send,
.forge:not(.started) .send {
  background: var(--text);
  color: var(--paper);
  border: 0;
  box-shadow: none;
}
.send:hover {
  transform: scale(1.05);
}
p.try {
  margin-top: 20px;
  gap: 4px 6px;
}
p.try i {
  opacity: .3;
}
.text-btn {
  font-weight: 500;
  font-size: 14px;
  color: var(--muted);
  text-decoration: none;
  padding: 6px 8px;
  border-radius: 8px;
  transition: color var(--t-quick), background var(--t-quick);
}
.text-btn:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 6%, transparent);
}
.site-foot {
  margin-top: 26px;
}
.wall-card {
  border-radius: 14px;
  box-shadow: 0 1px 2px rgba(20, 20, 15, .08), 0 14px 34px rgba(20, 20, 15, .14);
  rotate: calc(var(--r, 0deg) * .45);
}
.wall-card img {
  border-radius: 14px;
}
.wall-card:hover,
.wall-card:focus-visible {
  box-shadow: 0 2px 4px rgba(20, 20, 15, .1), 0 22px 48px rgba(20, 20, 15, .2);
  scale: 1.04;
}
.wall-card span {
  background: var(--text);
  color: var(--paper);
  border-radius: 8px;
  font-weight: 500;
}
.wall-card:hover span,
.wall-card:focus-visible span {
  color: var(--paper);
}
@media (min-width: 1240px) and (min-height: 780px) {
  .wall .wall-card.sz-s {
    opacity: .92;
  }
}
@media (max-width: 640px) {
  .forge-hero h1 {
    font-size: clamp(50px, 15vw, 68px);
    letter-spacing: -.02em;
  }
}
.msg-actions .btn.primary,
.btn.primary {
  box-shadow: none;
}
.tab[aria-current=page] {
  box-shadow: inset 0 -1.5px 0 var(--text);
}
.forge:not(.started)::before {
  content: none;
}
@media (min-width: 1240px) and (min-height: 780px) {
  .wall .wall-card.sz-l {
    width: 18vw;
  }
  .wall .wall-card.sz-m {
    width: 13vw;
  }
  .wall .wall-card.sz-s {
    width: 9vw;
  }
  .wall .wall-card.c1 {
    left: 1.6vw;
    top: 6%;
  }
  .wall .wall-card.c2 {
    left: 9vw;
    top: 35%;
  }
  .wall .wall-card.c3 {
    left: 1.2vw;
    top: 61%;
  }
  .wall .wall-card.c4 {
    left: 18.6vw;
    top: 15%;
  }
  .wall .wall-card.c5 {
    left: 17.5vw;
    top: 80%;
  }
  .wall .wall-card.c6 {
    right: 1.6vw;
    top: 5%;
  }
  .wall .wall-card.c7 {
    right: 9vw;
    top: 38%;
  }
  .wall .wall-card.c8 {
    right: 1.2vw;
    top: 60%;
  }
  .wall .wall-card.c9 {
    right: 18.6vw;
    top: 17%;
  }
  .wall .wall-card.c10 {
    right: 17.5vw;
    top: 81%;
  }
}
:root {
  --round: "Plus Jakarta Sans", var(--font);
}
.forge:not(.started) {
  max-width: none;
  padding: 28px clamp(16px, 4vw, 48px);
  overflow: hidden;
}
.forge:not(.started) .forge-hero {
  position: relative;
  text-align: center;
  padding: 0 0 26px;
}
.forge-hero h1 {
  font-family: var(--round);
  font-weight: 800;
  font-size: clamp(42px, 5.4vw, 74px);
  line-height: 1.04;
  letter-spacing: -.035em;
  margin: 0 0 14px;
  color: var(--text);
}
.forge-sub,
:root[data-theme=light] .forge-sub {
  margin: 0 auto;
  max-width: 430px;
  font-size: 17px;
  line-height: 1.5;
  color: var(--muted);
}
.forge-kicker {
  margin: 14px 0 0;
  font: 600 13px/1 var(--font);
  letter-spacing: 0;
  text-transform: none;
  color: var(--faint);
}
.forge-kicker i,
:root[data-theme=light] .forge-kicker i {
  font-style: normal;
  margin: 0 .45em;
  color: inherit;
  opacity: .6;
}
.mascot {
  position: relative;
  display: block;
  width: 132px;
  height: 118px;
  margin: 6px auto 14px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--text);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.m-anvil {
  position: absolute;
  left: 0;
  bottom: 0;
  width: 132px;
  height: 90px;
  transform-origin: 50% 100%;
  animation: m-bob 2.8s ease-in-out infinite alternate;
  overflow: visible;
}
.m-hammer {
  position: absolute;
  left: 62%;
  top: -14px;
  width: 54px;
  height: 54px;
  transform-origin: 18% 92%;
  transform: rotate(-20deg);
  transition: transform .3s var(--spring);
}
.mascot:hover .m-hammer {
  transform: rotate(-34deg);
}
.m-eye {
  fill: var(--paper);
  transform-box: fill-box;
  transform-origin: center;
  transition: transform .1s ease-out;
}
.m-pupils {
  fill: var(--text);
  transform: translate(calc(var(--ex, 0) * 1px), calc(var(--ey, 0) * 1px));
  transition: transform .09s linear, opacity .15s;
}
.mascot.blink .m-eye,
.mascot.asleep .m-eye {
  transform: scaleY(.1);
}
.mascot.blink .m-pupils,
.mascot.asleep .m-pupils {
  opacity: 0;
}
.mascot.asleep .m-anvil {
  animation-duration: 4.5s;
}
.mascot.asleep .m-hammer {
  transform: rotate(8deg) translate(-4px, 16px);
}
.m-zzz {
  position: absolute;
  left: 84%;
  top: 6px;
  font: 800 15px/1 var(--round);
  font-style: normal;
  color: var(--muted);
  opacity: 0;
  pointer-events: none;
}
.m-zzz b {
  position: absolute;
  left: 11px;
  top: -13px;
  font-size: 20px;
  font-weight: 800;
}
.mascot.asleep .m-zzz {
  animation: m-zzz 2.4s ease-in-out infinite;
}
.m-sparks {
  position: absolute;
  left: 50%;
  top: 30px;
  width: 6px;
  height: 6px;
  margin-left: -3px;
  border-radius: 50%;
  background: transparent;
  opacity: 0;
  pointer-events: none;
}
.mascot.strike .m-hammer {
  animation: hammer-swing .55s cubic-bezier(.5, 0, .3, 1) both;
}
.mascot.strike .m-anvil {
  animation: anvil-strike .5s var(--spring) .3s;
}
.mascot.strike .m-sparks {
  animation: sparks-big .6s ease-out .36s;
}
@keyframes m-bob {
  from {
    transform: translateY(0) scaleY(1);
  }
  to {
    transform: translateY(-3px) scaleY(1.025);
  }
}
@keyframes m-zzz {
  0% {
    opacity: 0;
    transform: translate(0, 6px);
  }
  30% {
    opacity: .9;
  }
  100% {
    opacity: 0;
    transform: translate(10px, -16px);
  }
}
.forge:not(.started) .composer {
  max-width: 620px;
  margin-inline: auto;
}
.forge:not(.started) .prompt {
  border-radius: 22px;
}
.forge:not(.started) p.try {
  justify-content: center;
}
.forge:not(.started) .site-foot,
.forge:not(.started) .forge-foot {
  text-align: center;
}
.forge:not(.started) .wall .wall-card {
  padding: 0;
  border: 6px solid #fff;
  border-radius: 18px;
  background: #fff;
  cursor: grab;
  touch-action: none;
  user-select: none;
  -webkit-user-drag: none;
  opacity: 1;
  filter: none;
  box-shadow: 0 1px 2px rgba(20, 20, 15, .12), 0 10px 24px rgba(20, 20, 15, .14);
  rotate: var(--r, 0deg);
  scale: 1;
  translate: var(--x, 0px) var(--y, 0px);
  transition:
    rotate .35s var(--spring),
    scale .25s var(--spring),
    box-shadow .2s;
}
.forge:not(.started) .wall .wall-card img {
  border-radius: 12px;
  pointer-events: none;
  -webkit-user-drag: none;
}
.forge:not(.started) .wall .wall-card:hover,
.forge:not(.started) .wall .wall-card:focus-visible {
  rotate: calc(var(--r, 0deg) * .3);
  scale: 1.04;
  z-index: 6;
  box-shadow: 0 2px 4px rgba(20, 20, 15, .14), 0 18px 36px rgba(20, 20, 15, .2);
  translate: var(--x, 0px) var(--y, 0px);
}
.forge:not(.started) .wall .wall-card.held {
  cursor: grabbing;
  scale: 1.08;
  rotate: calc(var(--r, 0deg) + var(--lean, 0deg));
  z-index: 9;
  transition: scale .2s var(--spring), box-shadow .2s;
  box-shadow: 0 4px 8px rgba(20, 20, 15, .16), 0 30px 54px rgba(20, 20, 15, .28);
}
.forge:not(.started) .wall .wall-card.held span {
  opacity: 0;
}
.forge:not(.started) .wall .wall-card.thrown {
  transition:
    translate .6s cubic-bezier(.15, .8, .25, 1),
    rotate .5s var(--spring),
    scale .3s var(--spring),
    box-shadow .3s;
}
.wall-hint {
  display: none;
}
.forge:not(.started) .wall {
  position: static;
  inset: auto;
  translate: none;
  display: flex;
  align-items: center;
  gap: 18px;
  column-count: auto;
  width: auto;
  overflow-x: auto;
  margin: 26px calc(-1 * clamp(16px, 4vw, 48px)) 0;
  padding: 12px clamp(16px, 4vw, 48px) 20px;
  scrollbar-width: none;
  pointer-events: auto;
  grid-area: auto;
}
.forge:not(.started) .wall .wall-card {
  position: relative;
  left: auto;
  right: auto;
  top: auto;
  flex: 0 0 210px;
  width: auto;
  margin: 0;
  touch-action: pan-x;
  cursor: pointer;
}
.forge:not(.started) .wall .wall-card:nth-of-type(odd) {
  --r: -3deg;
}
.forge:not(.started) .wall .wall-card:nth-of-type(even) {
  --r: 3deg;
}
@media (min-width: 1240px) and (min-height: 720px) {
  .forge:not(.started) .wall {
    position: absolute;
    inset: 0;
    display: block;
    margin: 0;
    padding: 0;
    overflow: visible;
    pointer-events: none;
  }
  .forge:not(.started) .wall .wall-card {
    position: absolute;
    flex: none;
    pointer-events: auto;
    touch-action: none;
    cursor: grab;
  }
  .forge:not(.started) .wall .wall-card:nth-of-type(1) {
    left: 5vw;
    top: 10%;
    width: 17vw;
    --r: -7deg;
  }
  .forge:not(.started) .wall .wall-card:nth-of-type(2) {
    left: 8vw;
    top: 56%;
    width: 16vw;
    --r: 6deg;
  }
  .forge:not(.started) .wall .wall-card:nth-of-type(3) {
    right: 5vw;
    top: 7%;
    width: 17vw;
    --r: 6deg;
  }
  .forge:not(.started) .wall .wall-card:nth-of-type(4) {
    right: 11.5vw;
    top: 38%;
    width: 15vw;
    --r: -5deg;
  }
  .forge:not(.started) .wall .wall-card:nth-of-type(5) {
    right: 4.5vw;
    top: 62%;
    width: 13.5vw;
    --r: 7deg;
  }
  .wall-hint {
    display: block;
    position: absolute;
    left: 24.5vw;
    top: 49%;
    font:
      700 19px/1 Kalam,
      "Comic Sans MS",
      cursive;
    color: var(--muted);
    rotate: -10deg;
    pointer-events: none;
    transition: opacity .4s;
  }
  .wall-hint::after {
    content: "";
    position: absolute;
    right: 100%;
    top: 60%;
    width: 34px;
    height: 22px;
    margin-right: 4px;
    border: 2px solid currentColor;
    border-color: transparent transparent currentColor currentColor;
    border-radius: 0 0 0 22px;
    rotate: -8deg;
    opacity: .8;
  }
  .wall-hint.gone {
    opacity: 0;
  }
}
@media (max-width: 640px) {
  .forge-hero h1 {
    font-size: 40px;
    letter-spacing: -.03em;
  }
  .mascot {
    scale: .86;
    margin-bottom: 6px;
  }
  .forge:not(.started) .wall .wall-card {
    flex-basis: 62%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-anvil {
    animation: none;
  }
}
.forge-site-foot {
  margin-top: 22px;
}
@media (min-width: 1240px) and (min-height: 720px) {
  .forge-site-foot {
    margin-top: 26px;
  }
}
.prompt.drop-ok,
.forge:not(.started) .prompt.drop-ok {
  border-color: var(--text);
  box-shadow: var(--shadow), 0 0 0 5px color-mix(in srgb, var(--yellow) 70%, transparent);
  scale: 1.015;
  transition: scale .2s var(--spring), box-shadow .15s;
}
.forge:not(.started) .wall .wall-card.eaten {
  transition:
    translate .28s var(--ease-out),
    scale .28s var(--ease-out),
    opacity .28s,
    rotate .28s;
  scale: .2;
  opacity: 0;
  rotate: 0deg;
}
@media (min-width: 1240px) and (min-height: 720px) {
  .wall-hint {
    left: 24.4vw;
    top: 50%;
    width: 92px;
    text-align: center;
    line-height: 1.05;
    font-size: 18px;
  }
}
.mascot {
  width: 104px;
  height: 116px;
  margin: 4px auto 14px;
}
.m-flame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform-origin: 50% 100%;
  animation: m-flicker 2.6s ease-in-out infinite;
  filter: drop-shadow(0 10px 14px rgba(255, 138, 31, .28));
  transition: scale .4s var(--spring), filter .4s;
}
.m-outer {
  fill: #ff8a1f;
}
.m-inner {
  fill: #ffd23f;
  transform-origin: 50% 100%;
  transform-box: fill-box;
  animation: m-belly 1.9s ease-in-out infinite alternate;
}
.m-flame .m-eye {
  fill: #fff;
}
.m-flame .m-pupils {
  fill: #2a1708;
}
.m-smile {
  fill: none;
  stroke: #2a1708;
  stroke-width: 2.6;
  stroke-linecap: round;
  transition: d .2s;
}
.mascot:hover .m-flame {
  scale: 1.06;
}
.mascot.strike .m-flame {
  animation: m-flare .7s var(--spring);
}
.mascot.strike .m-sparks {
  top: 8px;
  animation: sparks-big .6s ease-out .1s;
}
.mascot.asleep .m-flame {
  scale: .88;
  animation-duration: 4.4s;
  filter: drop-shadow(0 6px 10px rgba(255, 138, 31, .16)) saturate(.7);
}
.mascot.asleep .m-smile {
  d: path("M46 85 q4 2 8 0");
}
.m-zzz {
  left: 88%;
  top: 18px;
}
@keyframes m-flicker {
  0%, 100% {
    transform: skewX(0deg) scaleY(1);
  }
  25% {
    transform: skewX(-2.4deg) scaleY(1.035);
  }
  50% {
    transform: skewX(1.2deg) scaleY(.985);
  }
  75% {
    transform: skewX(2.2deg) scaleY(1.03);
  }
}
@keyframes m-belly {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05, .96);
  }
}
@keyframes m-flare {
  0% {
    transform: scale(1);
  }
  35% {
    transform: scale(1.22, 1.3);
  }
  70% {
    transform: scale(.96, .94);
  }
  100% {
    transform: scale(1);
  }
}
@media (prefers-reduced-motion: reduce) {
  .m-flame,
  .m-inner {
    animation: none;
  }
}
.mascot {
  width: 108px;
  height: 128px;
}
.m-logs {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.m-logs rect {
  fill: #5b3418;
}
.m-logs rect + rect {
  fill: #74441f;
}
.m-flame {
  transform-origin: 50% 90%;
}
.m-smile {
  fill: #2a1708;
  stroke-linejoin: round;
}
.mascot.asleep .m-smile {
  d: path("M45 88 Q50 91 55 88 Z");
}
.mascot {
  width: 156px;
  height: 156px;
  margin: -6px auto 2px;
}
.mascot .mood {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  pointer-events: none;
  transform-origin: 50% 82%;
}
.mascot[data-mood=happy] .mood-happy,
.mascot[data-mood=excited] .mood-excited,
.mascot[data-mood=surprised] .mood-surprised,
.mascot[data-mood=laughing] .mood-laughing,
.mascot[data-mood=grumpy] .mood-grumpy,
.mascot[data-mood=sleeping] .mood-sleeping {
  opacity: 1;
  animation: m-breathe 2.4s ease-in-out infinite alternate;
}
.mascot[data-mood=laughing] .mood-laughing {
  animation: m-giggle .32s ease-in-out infinite alternate;
}
.mascot[data-mood=excited] .mood-excited {
  animation: m-giggle .26s ease-in-out infinite alternate;
}
.mascot[data-mood=sleeping] .mood-sleeping {
  animation-duration: 4s;
}
.mascot.pop {
  animation: m-pop .38s var(--spring);
}
.mascot:hover {
  scale: 1.04;
}
.mascot {
  transition: scale .25s var(--spring);
}
@keyframes m-breathe {
  from {
    transform: scale(1, 1);
  }
  to {
    transform: scale(1.025, 1.045);
  }
}
@keyframes m-giggle {
  from {
    transform: translateY(0) rotate(-1.5deg);
  }
  to {
    transform: translateY(-5px) rotate(1.5deg);
  }
}
@keyframes m-pop {
  0% {
    transform: scale(.9);
  }
  60% {
    transform: scale(1.08);
  }
  100% {
    transform: scale(1);
  }
}
@media (max-width: 640px) {
  .mascot {
    scale: 1;
    width: 128px;
    height: 128px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mascot .mood,
  .mascot.pop {
    animation: none !important;
  }
}
.mascot {
  width: 184px;
  height: 184px;
  margin: -14px auto -4px;
}
@media (max-width: 640px) {
  .mascot {
    width: 140px;
    height: 140px;
    margin: -8px auto -2px;
  }
}
.mascot {
  isolation: isolate;
  border-radius: 50%;
  background: var(--paper);
}
:root:not([data-theme=light]) .mascot {
  background:
    radial-gradient(
      closest-side,
      #fff0d2 0%,
      #ffd9a0 46%,
      #b9783c 70%,
      #3a2412 88%,
      var(--paper) 100%);
}
.mascot video.mood {
  object-fit: cover;
  border-radius: 50%;
  mix-blend-mode: multiply;
  filter: brightness(1.05) contrast(1.02);
}
.mascot[data-mood=happy] video.mood-happy {
  animation: none;
}
.mascot img.mood {
  scale: 1.2;
  translate: 0 -5%;
}
.mascot img.mood {
  scale: 1.06;
  translate: 0 -2%;
}
.mascot img.mood {
  scale: 1;
  translate: none;
}
.mascot {
  background: none;
}
:root:not([data-theme=light]) .mascot {
  background:
    radial-gradient(
      closest-side,
      rgba(255, 190, 110, .20) 0%,
      rgba(255, 160, 70, .10) 55%,
      transparent 100%);
}
.mascot img.mood-surprised,
.mascot img.mood-grumpy,
.mascot img.mood-sleeping {
  scale: 1.08;
  translate: 0 -1%;
}
.brand .mark img.anvil,
.brand .mark .flame-mark {
  width: 28px;
  height: 28px;
  margin-right: 6px;
  display: block;
  vertical-align: 0;
}
.brand .mark .anvil-wrap {
  display: inline-flex;
  line-height: 0;
}
.brand .mark .sparks {
  display: none;
}
.msg.bot .avatar {
  background: none;
  border-radius: 0;
}
.msg.bot .avatar img {
  width: 32px;
  height: 32px;
  margin: 0;
  display: block;
  transform-origin: 50% 90%;
}
.msg.bot.thinking.tap .avatar img {
  animation: m-pop .38s var(--spring);
}
.msg.bot.thinking .avatar img {
  animation: m-breathe 1.1s ease-in-out infinite alternate;
}
@media (max-width: 640px) {
  .brand .mark img.anvil {
    width: 26px;
    height: 26px;
    margin-right: 5px;
  }
}
.forge-hero h1 {
  white-space: nowrap;
  font-size: clamp(30px, 9.2vw, 66px);
  letter-spacing: -.035em;
  margin-inline: -40px;
}
@media (max-width: 640px) {
  .forge-hero h1 {
    font-size: clamp(30px, 9.2vw, 66px);
    margin-inline: -8px;
  }
}
.prompt textarea,
.forge:not(.started) .prompt textarea {
  min-height: 0;
  font: 400 18px/1.5 var(--font);
  letter-spacing: -.005em;
  padding: 4px 4px 0;
  overflow-y: hidden;
}
.prompt textarea::placeholder {
  color: var(--faint);
}
.ghost {
  display: grid;
  place-items: center;
  animation-duration: 2.2s;
}
.ghost-flame {
  width: 46%;
  height: auto;
  margin-top: -8%;
  transform-origin: 50% 90%;
  animation: m-giggle .3s ease-in-out infinite alternate;
}
.ghost + p {
  place-self: end center;
  padding: 0 16px 9%;
}
.msg.bot.thinking.tap .ghost-flame {
  animation: m-pop .38s var(--spring), m-giggle .3s ease-in-out .38s infinite alternate;
}
.msg.bot.thinking:has(.ghost) .avatar {
  visibility: hidden;
}
.msg.bot.cheer .avatar img {
  scale: 1.9;
  translate: -4px 6px;
  transition: scale .3s var(--spring), translate .3s var(--spring);
  animation: m-giggle .28s ease-in-out infinite alternate;
}
.msg.bot .avatar img {
  transition: scale .3s var(--spring), translate .3s var(--spring);
}
@media (max-width: 640px) {
  .new-meme span {
    display: inline;
  }
  .new-meme {
    padding: 0 8px;
  }
}
:root {
  --stamp: var(--font);
}
.stamp,
.eyebrow,
.card .badge,
.card .use span,
.stage-kicker,
.panel h3,
.key.head,
.client-logo .mono,
.pill,
.marker b,
.cap .dot,
.steps b {
  font-weight: 700;
}
.panel h3 {
  font-size: 12px;
  letter-spacing: .07em;
}
.stage-kicker {
  font-size: 22px;
  letter-spacing: -.01em;
  text-transform: none;
}
.msg.bot.thinking .bubble:has(.ghost) {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 0 14px;
  min-height: 250px;
  justify-content: center;
}
.ghost {
  display: block;
  width: 150px;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: none;
  animation: none;
  grid-area: auto;
}
.ghost-flame {
  display: block;
  width: 100%;
  height: auto;
  margin: 0;
  transform-origin: 50% 90%;
  animation: m-work 1.1s ease-in-out infinite;
}
.ghost + p {
  position: static;
  grid-area: auto;
  place-self: auto;
  width: auto;
  padding: 0;
  margin: 0;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}
.msg.bot.thinking.tap .ghost-flame {
  animation: m-pop .38s var(--spring), m-work 1.1s ease-in-out .38s infinite;
}
@keyframes m-work {
  0%, 100% {
    transform: translateY(0) scale(1, 1);
  }
  30% {
    transform: translateY(-7px) scale(.98, 1.05);
  }
  60% {
    transform: translateY(0) scale(1.04, .96);
  }
}
@media (prefers-reduced-motion: reduce) {
  .ghost-flame {
    animation: none;
  }
}
.btn.primary,
.msg-actions .btn.primary {
  background: var(--text);
  color: var(--paper);
  border-color: var(--text);
  box-shadow: none;
}
.btn.primary:hover {
  background: color-mix(in srgb, var(--text) 86%, var(--paper));
  border-color: transparent;
}
.btn.primary svg {
  color: inherit;
}
.msg-actions .btn.primary.copied {
  background: var(--mint);
  color: #0b1b12;
  border-color: var(--mint);
}
.chip[aria-pressed=true],
.shape-menu .menu button[aria-selected=true],
.console-nav a.on,
.msg-actions .tool[aria-pressed=true],
.msg-tools .tool[aria-pressed=true] {
  background: var(--text);
  color: var(--paper);
  border-color: var(--text);
}
.chip[aria-pressed=true] *,
.shape-menu .menu button[aria-selected=true] span {
  color: inherit;
  opacity: .8;
}
.shape-menu.set .shape-btn,
.shape-menu.set .shape-btn .caret {
  background: var(--card-2);
  color: var(--text);
  border-color: var(--line);
}
.card.active {
  border-color: var(--text);
  box-shadow: 0 0 0 1px var(--text), var(--shadow-sm);
}
.card .use span {
  background: var(--text);
  color: var(--paper);
}
.cap .dot,
.steps b,
.redeem-steps li::before {
  background: var(--card-2);
  color: var(--text);
  border: 1px solid var(--line);
  transform: none;
  box-shadow: none;
}
.toast {
  background: var(--text);
  color: var(--paper);
  border-color: var(--text);
  box-shadow: var(--shadow);
}
.hero,
:root:not([data-theme=light]) .hero {
  --line: var(--line-soft);
  grid-template-columns: minmax(0, 1fr) auto;
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 30px clamp(20px, 3vw, 40px);
}
.hero h1 {
  font-family: var(--round);
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -.03em;
  line-height: 1.05;
  margin-bottom: 10px;
}
.lede {
  color: var(--muted);
  font-size: 16.5px;
}
.perks {
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 13.5px;
}
.perks li {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
}
.perks b {
  font-family: var(--font);
  font-weight: 700;
  font-size: 13.5px;
  margin: 0;
  padding: 0;
  background: none;
  color: var(--text);
}
.hero-art {
  height: auto;
  display: grid;
  place-items: center;
}
.hero-art img {
  width: clamp(120px, 13vw, 170px);
  height: auto;
  display: block;
  transform-origin: 50% 90%;
  animation: m-breathe 2.4s ease-in-out infinite alternate;
}
@media (max-width: 640px) {
  .hero {
    grid-template-columns: 1fr;
  }
  .hero-art {
    display: none;
  }
  .perks {
    display: flex;
  }
}
.auth-side {
  background: var(--card);
  color: var(--text);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  background-image: none;
}
.eyebrow.light {
  color: var(--muted);
  font-size: 12px;
  letter-spacing: .07em;
}
.steps strong {
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -.01em;
}
.steps span {
  color: var(--muted);
}
.steps b {
  font-size: 14px;
  border-radius: 9px;
  width: 30px;
  height: 30px;
}
.steps li {
  grid-template-columns: 30px 1fr;
}
.forge-kicker {
  color: var(--muted);
  font-weight: 600;
  font-size: 13.5px;
}
.forge-kicker i,
:root[data-theme=light] .forge-kicker i {
  opacity: .5;
}
.wait-note {
  margin: 6px 0 0;
  max-width: 34ch;
  text-align: center;
  font-size: 13.5px;
  color: var(--faint);
}
@media (max-width: 640px) {
  .msg-actions .btn {
    height: 44px;
  }
  .msg-actions .tool {
    min-width: 44px;
    height: 44px;
  }
  .chip-btn {
    height: 38px;
  }
  .text-btn {
    padding: 10px 8px;
  }
}
.foot-link {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: var(--muted);
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}
.foot-link:hover {
  color: var(--text);
  text-decoration-color: currentColor;
}
dialog.feedback {
  width: min(480px, calc(100vw - 28px));
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
dialog.feedback h2 {
  font-family: var(--round);
  font-size: 24px;
  letter-spacing: -.02em;
  margin: 0 0 14px;
  text-align: left;
}
#fbAsk,
#fbThanks {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
#fbAsk[hidden],
#fbThanks[hidden] {
  display: none;
}
#fbThanks {
  align-items: center;
  text-align: center;
}
#fbThanks h2 {
  text-align: center;
  margin: 0;
}
.fb-flame {
  width: 130px;
  height: auto;
  animation: m-giggle .3s ease-in-out infinite alternate;
  transform-origin: 50% 90%;
}
.fb-kinds {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fb-kinds label {
  cursor: pointer;
}
.fb-kinds input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.fb-kinds span {
  display: inline-flex;
  align-items: center;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  font: 600 14px/1 var(--font);
  transition:
    background var(--t-quick),
    color var(--t-quick),
    border-color var(--t-quick);
}
.fb-kinds input:checked + span {
  background: var(--text);
  color: var(--paper);
  border-color: var(--text);
}
.fb-kinds input:focus-visible + span {
  outline: 2px solid var(--yellow);
  outline-offset: 2px;
}
dialog.feedback textarea,
dialog.feedback input[type=email] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card-2);
  color: var(--text);
  font: 400 16px/1.45 var(--font);
  padding: 11px 12px;
  resize: vertical;
}
dialog.feedback textarea {
  min-height: 120px;
}
.fb-status {
  margin: 0;
  min-height: 1.2em;
  font-size: 13.5px;
  color: var(--coral);
}
.why {
  margin: 0;
  animation: rise-in var(--t-std) var(--ease-out) both;
}
.why .text-btn {
  color: var(--muted);
  font-size: 13.5px;
  padding-left: 0;
}
@media (prefers-reduced-motion: reduce) {
  .fb-flame {
    animation: none;
  }
}
.side-toggle[hidden] {
  display: none;
}
body:not([data-page=forge]) .side-toggle {
  display: none;
}
.side-toggle {
  width: 38px;
  height: 38px;
  margin-right: -4px;
}
.side {
  position: fixed;
  left: 0;
  top: var(--top-h, 64px);
  bottom: 0;
  width: 268px;
  z-index: 15;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 14px 10px 12px;
  background: var(--paper-2);
  border-right: 1px solid var(--line-soft);
  transform: translateX(-102%);
  transition: transform .28s var(--ease-out);
  overflow: hidden;
}
body.side-show .side {
  transform: none;
}
body:not(.side-pinned).side-show .side {
  box-shadow: var(--shadow);
}
.side-shade {
  position: fixed;
  inset: var(--top-h, 64px) 0 0 0;
  z-index: 14;
  background: rgba(10, 11, 14, .28);
}
.side-shade[hidden] {
  display: none;
}
.side-new {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--card);
  color: var(--text);
  font: 600 14.5px/1 var(--font);
  cursor: pointer;
  transition: background var(--t-quick), transform var(--t-quick);
}
.side-new:hover {
  background: var(--card-2);
}
.side-new:active {
  transform: scale(.98);
}
.side-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  margin: 4px -4px 0;
  padding: 0 4px;
  scrollbar-width: thin;
}
.side-day {
  margin: 14px 8px 4px;
  font: 600 12px/1 var(--font);
  color: var(--faint);
}
.side-row {
  position: relative;
  display: flex;
  align-items: center;
  border-radius: 10px;
}
.side-row:hover,
.side-row.on {
  background: color-mix(in srgb, var(--text) 7%, transparent);
}
.side-item {
  flex: 1;
  min-width: 0;
  height: 36px;
  padding: 0 30px 0 10px;
  border: 0;
  background: none;
  color: var(--text);
  font: 500 14px/1 var(--font);
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  border-radius: 10px;
}
.side-row.on .side-item {
  font-weight: 600;
}
.side-del {
  position: absolute;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 7px;
  background: none;
  color: var(--muted);
  font-size: 17px;
  line-height: 1;
  cursor: pointer;
  opacity: 0;
  transition: opacity var(--t-quick);
}
.side-row:hover .side-del,
.side-del:focus-visible {
  opacity: 1;
}
.side-del:hover {
  background: color-mix(in srgb, var(--text) 10%, transparent);
  color: var(--text);
}
.side-note {
  margin: 4px 8px 0;
  font-size: 12px;
  color: var(--faint);
}
@media (min-width: 1100px) {
  body.side-pinned .forge.started {
    margin-left: calc(268px + max(0px, (100vw - 268px - 752px) / 2));
    margin-right: auto;
  }
}
@media (max-width: 640px) {
  .side {
    bottom: calc(58px + env(safe-area-inset-bottom));
    width: min(300px, 84vw);
  }
  .side-del {
    opacity: 1;
  }
  .side-item {
    height: 44px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .side {
    transition: none;
  }
}
.msg-actions,
.actions {
  position: relative;
}
.share-pop {
  position: absolute;
  left: 0;
  top: calc(100% + 8px);
  z-index: 12;
  width: min(380px, calc(100vw - 32px));
  padding: 12px;
  border-radius: 16px;
  background: var(--card);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  gap: 10px;
  animation: rise-in var(--t-std) var(--ease-out) both;
}
.actions .share-pop {
  top: auto;
  bottom: calc(100% + 8px);
  left: auto;
  right: 0;
}
.share-wait {
  margin: 2px 4px;
  color: var(--muted);
  font-size: 14px;
}
.share-link {
  display: flex;
  gap: 8px;
}
.share-link input {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--card-2);
  color: var(--text);
  font:
    500 13.5px/1 ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
}
.share-link .btn {
  height: 40px;
  padding: 0 16px;
  flex: none;
}
.share-to {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}
.share-to a {
  display: grid;
  place-items: center;
  height: 38px;
  border-radius: 10px;
  border: 1px solid var(--line-soft);
  background: var(--card);
  color: var(--text);
  font: 600 13.5px/1 var(--font);
  text-decoration: none;
  transition: background var(--t-quick), border-color var(--t-quick);
}
.share-to a:hover {
  background: var(--card-2);
  border-color: var(--line);
}
.share-note {
  margin: 0 2px;
  font-size: 12.5px;
  color: var(--faint);
}
.msg-actions {
  z-index: 6;
}
.msg.bot.landed .msg-actions {
  animation-fill-mode: backwards;
}
.share-pop {
  scroll-margin-bottom: 200px;
  scroll-margin-top: 90px;
}
.msg-actions .share-pop {
  top: auto;
  bottom: calc(100% + 8px);
}
.flame-anim {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  background: url(brand/mascot/idle-sprite.webp) 0 0 / 2000% 100% no-repeat;
  animation: flame-frames 1.7s steps(20, jump-none) infinite alternate;
}
@keyframes flame-frames {
  from {
    background-position-x: 0%;
  }
  to {
    background-position-x: 100%;
  }
}
.msg.bot {
  grid-template-columns: 44px minmax(0, 1fr);
}
.msg.bot .avatar {
  width: 44px;
  height: 44px;
  margin-top: -6px;
}
.msg.bot:not(:last-child) .flame-anim {
  animation-play-state: paused;
}
.msg.bot.cheer .flame-anim {
  background: url(brand/mascot/laughing.webp) center / contain no-repeat;
  animation: m-giggle .28s ease-in-out infinite alternate;
  scale: 1.7;
  translate: -4px 4px;
  transform-origin: 50% 90%;
}
.msg.bot .avatar .flame-anim {
  transition: scale .3s var(--spring), translate .3s var(--spring);
}
.ghost .flame-anim.ghost-flame {
  width: 150px;
  margin: 0;
  animation: flame-frames 1.7s steps(20, jump-none) infinite alternate;
}
.ghost {
  animation: m-work 1.1s ease-in-out infinite;
  transform-origin: 50% 90%;
}
.msg.bot.thinking.tap .ghost {
  animation: m-pop .38s var(--spring), m-work 1.1s ease-in-out .38s infinite;
}
.msg.bot.thinking.tap .ghost-flame {
  animation: flame-frames 1.7s steps(20, jump-none) infinite alternate;
}
@media (max-width: 640px) {
  .msg.bot {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (prefers-reduced-motion: reduce) {
  .flame-anim,
  .ghost .flame-anim.ghost-flame {
    animation: none;
    background: url(brand/mascot/happy.webp) center / contain no-repeat;
  }
  .ghost {
    animation: none;
  }
}
.side {
  padding-top: 10px;
}
.side-head {
  display: flex;
  align-items: center;
  height: 38px;
  margin: 0 0 4px -2px;
}
.side-toggle-in {
  width: 38px;
  height: 38px;
}
.side-note {
  margin: 6px 8px 2px;
  font-size: 13px;
  color: var(--muted);
}
.side-note[hidden] {
  display: none;
}
.side-note a {
  color: var(--text);
  font-weight: 600;
  text-underline-offset: 3px;
}
.side {
  top: 0;
  z-index: 25;
  padding-top: calc((var(--top-h, 64px) - 38px) / 2);
}
.side-shade {
  inset: 0;
  z-index: 24;
}
.wait-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 0 6px 6px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  animation: wait-in .22s var(--ease-out) both;
}
.wait-line .flame-anim {
  flex: none;
  width: 26px;
  height: 26px;
  margin-top: -4px;
}
.wait-line p {
  margin: 0;
  white-space: nowrap;
}
.wait-line .wait-note {
  margin: 0;
  max-width: none;
  min-width: 0;
  flex: 1;
  text-align: left;
  font-size: 13px;
  font-weight: 400;
  color: var(--faint);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.wait-line.tap .flame-anim {
  animation: m-pop .38s var(--spring), flame-frames 1.7s steps(20, jump-none) .38s infinite alternate;
}
@keyframes wait-in {
  from {
    opacity: 0;
    transform: translateY(4px);
  }
}
@media (prefers-reduced-motion: reduce) {
  .wait-line {
    animation: none;
  }
}
.prompt textarea,
.forge:not(.started) .prompt textarea {
  font: 500 16px/1.5 var(--font);
  letter-spacing: normal;
}
.prompt textarea::placeholder {
  font-weight: 400;
}
.msg.bot .avatar {
  visibility: hidden;
}
.msg.bot:nth-last-child(1 of .msg.bot) .avatar {
  visibility: visible;
}
.msg.bot:nth-last-child(1 of .msg.bot) .flame-anim {
  animation-play-state: running;
}
.fb-attach {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  margin: 2px 0 10px;
}
.fb-add {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 14px;
  border: 1px dashed var(--line);
  border-radius: 999px;
  background: none;
  color: var(--text);
  font: 500 14px var(--font);
  cursor: pointer;
}
.fb-add:hover {
  background: var(--card-2);
}
.fb-hint {
  color: var(--faint);
  font-size: 13px;
}
.fb-shot {
  position: relative;
}
.fb-shot img {
  display: block;
  max-height: 96px;
  max-width: 220px;
  border-radius: 10px;
  border: 1px solid var(--line);
}
.fb-shot button {
  position: absolute;
  top: -8px;
  right: -8px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
}
dialog.auth-modal {
  width: min(440px, calc(100vw - 24px));
}
dialog.auth-modal .auth-card {
  border: 0;
  box-shadow: none;
  background: none;
  padding: 0;
  margin: 0;
  max-height: none;
  overflow: visible;
}
dialog.auth-modal .auth-card h2 {
  font-family: var(--round);
  font-size: 26px;
  letter-spacing: -.02em;
  text-align: left;
  margin: 0;
}
dialog.auth-modal .auth-why {
  margin: 14px 0 0;
  text-align: center;
  font-size: 13px;
  color: var(--faint);
}
.fb-add[hidden],
.fb-hint[hidden],
.fb-shot[hidden] {
  display: none;
}
.brand .mark:hover {
  animation: none;
}
.brand .mark:hover .anvil,
.brand .mark.forging .anvil {
  animation: none;
}
.brand .mark .anvil-wrap {
  position: relative;
}
.brand .mark .anvil-wrap::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 28px;
  height: 28px;
  background: url(brand/mascot/idle-sprite.webp) 0 0 / 2000% 100% no-repeat;
  opacity: 0;
  transform-origin: 50% 90%;
  pointer-events: none;
}
.brand:hover .mark .anvil-wrap::after,
.brand:focus-visible .mark .anvil-wrap::after {
  opacity: 1;
  animation: flame-frames 1.1s steps(20, jump-none) infinite alternate, kindle .5s var(--spring) both;
}
.brand:hover .mark .flame-mark,
.brand:focus-visible .mark .flame-mark {
  opacity: 0;
}
@keyframes kindle {
  from {
    scale: 1;
  }
  45% {
    scale: 1.28;
  }
  to {
    scale: 1.14;
  }
}
@media (max-width: 640px) {
  .brand .mark .anvil-wrap::after {
    width: 26px;
    height: 26px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .brand:hover .mark .anvil-wrap::after {
    opacity: 0;
    animation: none;
  }
  .brand:hover .mark .flame-mark {
    opacity: 1;
  }
}
.msg.user {
  white-space: pre-line;
}
.redeem-close {
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 0;
  background: none;
  box-shadow: none;
  color: var(--muted);
  font-size: 24px;
  font-weight: 400;
  line-height: 1;
  padding: 0 0 2px;
  transition: background .15s, color .15s;
}
.redeem-close:hover {
  background: var(--card-2);
  color: var(--text);
}
.pw-rules {
  flex-direction: column;
  flex-wrap: nowrap;
  gap: 3px;
  margin-top: 2px;
  font-weight: 500;
}
.pw-wrap:has(.pw-match) {
  flex-wrap: wrap;
}
.pw-wrap:has(.pw-match) input {
  padding-right: 12px;
}
.pw-match {
  position: static;
  transform: none;
  flex: 0 0 100%;
  margin-top: 5px;
  font-weight: 600;
}
.pw-match:empty {
  display: none;
}
.redeem-close {
  z-index: 3;
  top: 10px;
  right: 10px;
  width: 40px;
  height: 40px;
  border-radius: 10px;
}
dialog.auth-modal .auth-head {
  padding-right: 40px;
}
dialog.feedback input[aria-invalid=true] {
  border-color: var(--coral);
}
.try .text-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.try .text-btn svg {
  flex: none;
  opacity: .8;
}
.try .text-btn#surprise:hover svg {
  animation: die-roll .45s var(--spring);
}
@keyframes die-roll {
  from {
    rotate: 0deg;
  }
  to {
    rotate: 180deg;
  }
}
@media (prefers-reduced-motion: reduce) {
  .try .text-btn#surprise:hover svg {
    animation: none;
  }
}
.site-foot a:hover,
.site-foot .foot-link:hover {
  color: var(--text);
  text-decoration: underline;
  text-decoration-color: currentColor;
  text-underline-offset: 3px;
}
.corner-feedback {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 20;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--muted);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  transition:
    color .15s,
    border-color .15s,
    translate .2s var(--spring);
}
.corner-feedback:hover {
  color: var(--text);
  border-color: var(--text);
  translate: 0 -2px;
}
@media (max-width: 640px) {
  .corner-feedback {
    right: 14px;
    bottom: calc(68px + env(safe-area-inset-bottom));
    width: 40px;
    height: 40px;
  }
  body:has(.forge.started:not(.hidden)) .corner-feedback {
    display: none;
  }
}
@media print {
  .corner-feedback {
    display: none;
  }
}
.fb-trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.redeem-close {
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
}
.redeem-close:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.tab {
  position: relative;
}
.tab[aria-current=page] {
  box-shadow: none;
}
.tab[aria-current=page]::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: -1px;
  height: 6px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3 Q3.5 0 7 3 T14 3' fill='none' stroke='%23F2701D' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") left center / 14px 6px repeat-x;
  animation: squiggle-in .3s var(--ease-out) both;
  transform-origin: left center;
}
@keyframes squiggle-in {
  from {
    clip-path: inset(0 100% 0 0);
  }
  to {
    clip-path: inset(0 0 0 0);
  }
}
@media (max-width: 640px) {
  .tab[aria-current=page] {
    box-shadow: none;
  }
  .tab[aria-current=page]::after {
    left: 22%;
    right: 22%;
    top: 0;
    bottom: auto;
  }
}
@media (prefers-reduced-motion: reduce) {
  .tab[aria-current=page]::after {
    animation: none;
  }
}
.forge-sub,
:root[data-theme=light] .forge-sub {
  max-width: 560px;
  text-wrap: balance;
}
@media (min-width: 560px) {
  .forge-sub span {
    display: block;
  }
}
.forge-kicker {
  margin-top: 16px;
}
.side {
  top: var(--top-h, 64px);
  z-index: 15;
  padding-top: 14px;
}
.side-head {
  display: none;
}
body:not([data-page=forge]) .side-toggle:not([hidden]) {
  display: inline-grid;
}
.side-toggle[aria-expanded=true] {
  background: color-mix(in srgb, var(--text) 8%, transparent);
}
.share-to {
  display: flex;
  justify-content: space-between;
  gap: 6px;
}
.share-to a {
  flex: none;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--text);
}
.share-to a:hover {
  background: var(--text);
  color: var(--paper);
  border-color: var(--text);
}
.share-link .btn {
  white-space: nowrap;
}
@media (min-width: 1100px) {
  .side-shade {
    display: none;
  }
}
.side-shade {
  background: rgba(10, 11, 14, .16);
}
.side-shade {
  inset: var(--top-h, 64px) 0 0 0;
  z-index: 14;
}
dialog.feedback h2 {
  padding-right: 44px;
  text-wrap: balance;
}
dialog.feedback #fbSend,
dialog.feedback #fbDone {
  display: block;
  width: auto;
  min-width: 132px;
  height: 44px;
  margin: 4px auto 0;
  padding-inline: 28px;
  font-size: 15px;
}
.prompt {
  position: relative;
}
.tab-hint {
  display: none;
  position: absolute;
  right: 64px;
  bottom: 21px;
  font-size: 12.5px;
  color: var(--faint);
  pointer-events: none;
  white-space: nowrap;
}
.tab-hint kbd {
  font: 600 11.5px var(--font);
  padding: 2px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card-2);
  color: var(--muted);
  margin-right: 3px;
}
@media (hover: hover) and (pointer: fine) {
  .forge:not(.started) .prompt.can-tab:has(textarea:placeholder-shown:focus) .tab-hint {
    display: block;
  }
}
.tab-hint {
  position: static;
  margin-left: auto;
  margin-right: 8px;
}
.send,
.forge:not(.started) .send {
  width: 40px;
  height: 40px;
}
.send svg {
  width: 18px;
  height: 18px;
}
.msg.bot .avatar {
  margin-top: -10px;
}
.msg.bot.landed .msg-actions {
  opacity: 1;
}
@media (max-width: 820px) {
  body:has(.forge.started:not(.hidden)) .corner-feedback {
    display: none;
  }
}
@media (max-width: 640px) {
  body[data-page=connect] .corner-feedback {
    display: none;
  }
}
@media (hover: none) {
  .side-del {
    opacity: 1;
  }
}
.toast.has-action {
  pointer-events: auto;
}
.toast-btn {
  margin-left: 6px;
  padding: 2px 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
:root {
  --faint: #8a90a0;
}
:root[data-theme=light] {
  --faint: #6b6e76;
}
@media (prefers-reduced-motion: reduce) {
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
:root[data-theme=light] dialog.feedback .fb-kinds input:focus-visible + span {
  outline-color: var(--text);
}
:root:not([data-theme=light]) dialog.feedback input[aria-invalid=true] {
  border-color: var(--coral);
}
@media (max-width: 1239px) {
  .forge:not(.started) .wall .wall-card {
    touch-action: pan-x pan-y;
  }
}
@media (max-width: 640px) {
  input,
  select,
  textarea,
  .share-link input,
  .link-out {
    font-size: 16px;
  }
  .tabs .tab {
    min-height: 48px;
    display: grid;
    place-items: center;
  }
  .send,
  .forge:not(.started) .send {
    width: 44px;
    height: 44px;
  }
  .side-toggle,
  .redeem-close,
  .corner-feedback {
    width: 44px;
    height: 44px;
  }
  .shape-btn,
  .chip-btn,
  .try .text-btn,
  dialog.feedback .fb-kinds span {
    min-height: 44px;
  }
  .side-del {
    width: 44px;
    height: 44px;
    right: 0;
  }
  .site-foot a {
    display: inline-block;
    padding: 12px 8px;
  }
  .pw-toggle {
    padding: 12px 10px;
  }
}
@media (max-width: 640px) {
  input[type=text],
  input[type=email],
  input[type=password],
  input[type=number],
  input[type=url],
  input[type=search],
  .search input,
  .swatch.custom input,
  .share-link input,
  dialog.feedback input[type=email],
  select,
  textarea {
    font-size: 16px;
  }
  .tabs {
    padding: 0 12px env(safe-area-inset-bottom);
  }
}
.toast:not(.show) {
  visibility: hidden;
}
.forge.started .forge-foot {
  display: none;
}
#keysCard {
  gap: 16px;
}
#newKeyBtn {
  gap: 6px;
  flex: none;
}
.klist {
  display: flex;
  flex-direction: column;
}
.klist .kempty {
  margin: 0;
  padding: 18px 0 6px;
  font-size: 14.5px;
}
.krow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
}
.klist > .krow:first-child {
  border-top: 0;
  padding-top: 4px;
}
.kmain {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.krow p {
  margin: 0;
}
.ktitle {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 12px;
}
.kname {
  font-weight: 700;
  font-size: 15.5px;
  overflow-wrap: anywhere;
}
.kstate {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.kstate::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}
.kstate.active::before {
  background: #1f9d55;
}
.kstate.soon {
  color: #b45309;
}
:root:not([data-theme=light]) .kstate.soon {
  color: #f0b35a;
}
.kfacts {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.kfacts code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 12px;
  background: var(--card-2);
  color: var(--text);
  padding: 2px 7px;
  border-radius: 6px;
  margin-right: 10px;
}
.kfacts span + span::before {
  content: "·";
  margin: 0 8px;
  opacity: .6;
}
.kbtns {
  display: flex;
  gap: 6px;
  flex: none;
}
.kbtn {
  height: 34px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: none;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition:
    background .15s,
    border-color .15s,
    color .15s;
}
.kbtn:hover {
  background: var(--card-2);
}
.kbtn[data-act=delete] {
  border-color: transparent;
  color: var(--muted);
}
.kbtn[data-act=delete]:hover {
  color: #c0392b;
  background: color-mix(in srgb, #c0392b 9%, transparent);
}
:root:not([data-theme=light]) .kbtn[data-act=delete]:hover {
  color: #ff8a7a;
}
.krow.dead .kname {
  color: var(--muted);
  font-weight: 600;
}
.kold {
  border-top: 1px solid var(--line-soft);
  padding-top: 4px;
}
.kold summary {
  cursor: pointer;
  padding: 12px 0 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  list-style-position: inside;
}
.kold summary:hover {
  color: var(--text);
}
.kold .krow:first-of-type {
  border-top: 0;
}
@media (max-width: 640px) {
  .krow {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }
  .kbtns {
    justify-content: flex-start;
  }
  .kbtn {
    height: 40px;
    padding: 0 16px;
  }
  .kbtn[data-act=delete] {
    border-color: var(--line-soft);
  }
}
dialog.keydlg {
  width: min(480px, calc(100vw - 28px));
}
.keyform,
.kreveal {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.keyform.hidden,
.kreveal.hidden {
  display: none;
}
.keydlg h2,
dialog.confirm h2 {
  font-size: 24px;
  margin: 0;
}
.kfield {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.kfield input,
.kfield select {
  font-size: 16px;
}
.kscope-list {
  border: 0;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.kscope-list legend {
  padding: 0;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}
.kscope-list label {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 9px 10px;
  margin: 0 -10px;
  border-radius: 10px;
  cursor: pointer;
}
.kscope-list label:hover {
  background: var(--card-2);
}
.kscope-list input {
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  flex: none;
  accent-color: var(--text);
}
.kscope-list span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.kscope-list b {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
}
.kscope-list small {
  font-size: 12.5px;
  color: var(--muted);
  line-height: 1.45;
}
.kscope-list code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 11.5px;
}
.kreveal p {
  margin: -8px 0 0;
  font-size: 14px;
}
.kreveal > code {
  display: block;
  padding: 14px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
  color: var(--text);
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow-wrap: anywhere;
  user-select: all;
}
dialog.confirm {
  width: min(420px, calc(100vw - 28px));
}
dialog.confirm .redeem-inner {
  padding: 28px 24px 22px;
  gap: 12px;
}
dialog.confirm p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.5;
}
.confirm-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}
.confirm-row .btn {
  height: 46px;
  box-shadow: none;
}
.btn.primary.danger {
  background: #c0392b;
  border-color: #c0392b;
  color: #fff;
}
.btn.primary.danger:hover {
  background: #a93226;
  border-color: #a93226;
}
@media (max-width: 640px) {
  .kfacts {
    gap: 2px 14px;
  }
  .kfacts code {
    margin-right: 0;
  }
  .kfacts span + span::before {
    content: none;
  }
}
.kreveal-key {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 6px 6px 14px;
  border-radius: 12px;
  background: var(--card-2);
  border: 1px solid var(--line-soft);
}
.kreveal-key > code {
  flex: 1;
  min-width: 0;
  padding: 8px 0;
  background: none;
  border: 0;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
  overflow-wrap: anywhere;
  user-select: all;
}
.kcopy {
  flex: none;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: background .15s, color .15s;
}
.kcopy:hover {
  background: color-mix(in srgb, var(--text) 8%, transparent);
  color: var(--text);
}
.kcopy .i-done,
.kcopy.copied .i-copy {
  display: none;
}
.kcopy.copied .i-done {
  display: block;
}
.kcopy.copied {
  color: #1f9d55;
}
.kbtn {
  transition: background .15s;
}
.subtabs {
  display: flex;
  gap: 4px;
  width: 100%;
  max-width: 980px;
  margin: 0 auto 18px;
  border-bottom: 1px solid var(--line-soft);
}
.agents .subtabs {
  max-width: none;
  margin-top: 4px;
}
.subtabs a {
  position: relative;
  padding: 12px 14px;
  font-size: 15px;
  font-weight: 700;
  color: var(--muted);
  text-decoration: none;
  border-radius: 10px 10px 0 0;
}
.subtabs a:hover {
  color: var(--text);
  background: color-mix(in srgb, var(--text) 5%, transparent);
}
.subtabs a[aria-current=page] {
  color: var(--text);
}
.subtabs a[aria-current=page]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}
@media (max-width: 640px) {
  .subtabs a {
    flex: 1;
    text-align: center;
    padding: 14px 8px;
  }
}
.agents-top {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.agents-top .subtabs,
.agents .subtabs {
  max-width: none;
  margin: 4px 0 0;
}
.subtabs a[aria-current=page]::after {
  left: 14px;
  right: 14px;
  bottom: -4px;
  height: 6px;
  border-radius: 0;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='6' viewBox='0 0 14 6'%3E%3Cpath d='M0 3 Q3.5 0 7 3 T14 3' fill='none' stroke='%23F2701D' stroke-width='1.9' stroke-linecap='round'/%3E%3C/svg%3E") left center / 14px 6px repeat-x;
  animation: squiggle-in .3s var(--ease-out) both;
  transform-origin: left center;
}
@media (prefers-reduced-motion: reduce) {
  .subtabs a[aria-current=page]::after {
    animation: none;
  }
}
.connect .console {
  max-width: none;
}
html {
  scrollbar-gutter: stable;
}
.agents-top {
  max-width: 1100px;
  margin: 0 auto;
  padding: 28px clamp(16px, 2.5vw, 28px) 0;
  width: 100%;
  box-sizing: border-box;
}
.agents-top.hidden {
  display: none;
}
main.agents.page,
main.connect.page {
  padding-top: 22px;
}
main.agents .sheet,
main.connect .sheet,
.agents-top .hero {
  animation: none;
}
main.agents #snippetsCard {
  margin-top: 0;
}
main.connect #signedIn,
main.connect #signedOut {
  padding: 0;
  overflow: visible;
}
dialog.redeem:focus {
  outline: none;
}
@media (max-width: 640px) {
  .agents-top {
    padding-top: 14px;
    gap: 8px;
  }
  .agents-top .hero {
    padding: 18px 18px 16px;
  }
  .agents-top .hero h1 {
    font-size: 24px;
    line-height: 1.12;
    margin-bottom: 6px;
  }
  .agents-top .hero .lede {
    font-size: 14px;
    margin: 0;
  }
  .agents-top .perks {
    display: none;
  }
}
