:root {
  color-scheme: light;
  --red: #e52322;
  --ink: #17191b;
  --paper: #f5f0e6;
  --white: #fffdf7;
  --line: rgba(23, 25, 27, 0.2);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

a {
  color: inherit;
}

.site-header,
main,
footer {
  width: min(1120px, calc(100% - 40px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 24px;
  border-bottom: 2px solid var(--ink);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-decoration: none;
}

.brand img {
  width: 38px;
  height: 38px;
}

.status,
.notice {
  border: 2px solid var(--ink);
  background: var(--white);
  font-weight: 750;
}

.contract-notice {
  display: grid;
  width: min(100%, 720px);
  gap: 9px;
}

.contract-notice > span {
  color: var(--red);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.contract-notice code {
  overflow-wrap: anywhere;
  font-size: clamp(0.78rem, 2vw, 0.98rem);
  line-height: 1.45;
}

.contract-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contract-actions button,
.contract-actions a {
  padding: 7px 10px;
  border: 1.5px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 850;
  text-decoration: none;
}

.contract-actions button:hover,
.contract-actions a:hover {
  background: var(--ink);
  color: var(--white);
}

.status {
  padding: 7px 12px;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
}

.hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 64px;
  padding-block: 72px;
}

.eyebrow {
  margin: 0 0 14px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.78rem;
  font-weight: 850;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.88;
  letter-spacing: -0.07em;
}

.lede {
  max-width: 650px;
  font-size: clamp(1.15rem, 2vw, 1.55rem);
  line-height: 1.45;
}

.notice {
  display: inline-block;
  margin-top: 20px;
  padding: 14px 16px;
  box-shadow: 6px 6px 0 var(--ink);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px 28px;
}

.hero-cta {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 12px;
  margin-top: 34px;
  color: var(--red);
  font-weight: 900;
  text-decoration: none;
}

.telegram-cta {
  color: var(--ink);
}

.token-cta {
  color: var(--red);
}

.hero-cta span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.hero-mark {
  width: 100%;
  max-width: 390px;
  justify-self: center;
}

.mint-main {
  padding-bottom: 32px;
}

.mint-hero {
  min-height: 610px;
  display: grid;
  grid-template-columns: 1.4fr 0.8fr;
  align-items: center;
  gap: 64px;
  padding-block: 72px;
}

.mint-contract {
  display: grid;
}

.mint-facts {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
  border-top: 2px solid var(--ink);
  padding-block: 64px;
}

.mint-facts dl {
  margin: 0;
}

.mint-facts dl > div {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.mint-facts dt {
  font-weight: 900;
}

.mint-facts dd {
  margin: 0;
  line-height: 1.5;
}

.token-monitor {
  padding-block: 64px;
  border-top: 2px solid var(--ink);
}

.monitor-heading {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  align-items: end;
  gap: 64px;
}

.monitor-heading h2 {
  margin-bottom: 0;
}

.monitor-status {
  margin-bottom: 8px;
  font-weight: 850;
  line-height: 1.5;
}

.monitor-status[data-state="live"]::before {
  content: "●";
  margin-right: 8px;
  color: #176c35;
}

.monitor-status[data-state="stale"],
.monitor-status[data-state="error"] {
  color: #9c1111;
}

.monitor-sample-note {
  margin-bottom: 0;
  font-size: 0.84rem;
  line-height: 1.5;
  opacity: 0.75;
}

.monitor-metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 44px 0 24px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.monitor-metrics > div {
  min-width: 0;
  padding: 18px;
  border-right: 1px solid var(--line);
}

.monitor-metrics > div:last-child {
  border-right: 0;
}

.monitor-metrics dt {
  margin-bottom: 9px;
  color: var(--red);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.monitor-metrics dd {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: clamp(1rem, 2vw, 1.35rem);
  font-weight: 900;
}

.monitor-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.monitor-panels article {
  min-width: 0;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.monitor-panel-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 18px;
  border-bottom: 2px solid var(--ink);
}

.monitor-panel-title h3 {
  margin: 0;
  font-size: 1.25rem;
}

.monitor-panel-title span {
  flex: none;
  color: var(--red);
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.distribution-list,
.flow-map-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.distribution-list li,
.flow-map-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.distribution-list li:last-child,
.flow-map-list li:last-child {
  border-bottom: 0;
}

.distribution-list li > div,
.flow-map-list li > div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 0.76rem;
}

.distribution-list a,
.flow-map-list a {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 750;
}

.distribution-bar {
  display: block;
  height: 7px;
  margin-top: 9px;
  background: var(--paper);
}

.distribution-bar > span {
  display: block;
  height: 100%;
  background: var(--red);
}

.flow-map-list li > div:last-child {
  margin-top: 8px;
  font-size: 0.72rem;
}

.flow-map-list li > div:last-child a {
  font-family: inherit;
  font-weight: 650;
  opacity: 0.75;
}

.flow-arrow {
  flex: 1;
  border-bottom: 2px solid var(--red);
  color: var(--red);
  font-weight: 900;
  line-height: 0.65;
  text-align: right;
}

.monitor-empty {
  color: rgba(23, 25, 27, 0.65);
  font-size: 0.82rem;
  line-height: 1.5;
}

.monitor-limit {
  max-width: 900px;
  margin: 22px 0 0;
  font-size: 0.75rem;
  line-height: 1.55;
  opacity: 0.78;
}

.meme-machine {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 56px;
  margin-bottom: 64px;
  padding: 56px;
  border: 3px solid var(--ink);
  background: var(--red);
  box-shadow: 12px 12px 0 var(--ink);
  color: var(--white);
}

.meme-machine h2 {
  margin-bottom: 24px;
  font-size: clamp(3.2rem, 7vw, 6.4rem);
  line-height: 0.86;
  color: var(--white);
}

.meme-intro > p:not(.eyebrow) {
  max-width: 430px;
  font-size: 1.1rem;
  line-height: 1.55;
}

.meme-reference {
  display: flex;
  width: fit-content;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  padding: 10px 16px 10px 10px;
  border: 2px solid var(--ink);
  border-radius: 999px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 850;
}

.meme-reference img {
  width: 50px;
  height: 50px;
  border-radius: 50%;
}

.meme-studio {
  align-self: start;
  padding: 28px;
  border: 3px solid var(--ink);
  background: var(--paper);
  box-shadow: 8px 8px 0 var(--ink);
  color: var(--ink);
}

.openrouter-connect {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 18px;
  margin-bottom: 26px;
  padding-bottom: 24px;
  border-bottom: 2px solid var(--ink);
}

.openrouter-connect h3 {
  margin-bottom: 8px;
  font-size: 1.45rem;
}

.openrouter-connect p:last-child {
  margin-bottom: 0;
  font-size: 0.82rem;
  line-height: 1.45;
}

#openrouter-state[data-connected="true"] {
  color: #176c35;
  font-weight: 750;
}

.openrouter-actions {
  display: flex;
  align-content: flex-start;
  align-items: stretch;
  flex-direction: column;
  gap: 8px;
}

.openrouter-actions button,
.openrouter-actions a {
  min-height: 42px;
  padding: 9px 12px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  text-align: center;
  text-decoration: none;
}

.openrouter-actions .openrouter-primary {
  background: var(--ink);
  color: var(--white);
}

.openrouter-actions button:hover:not(:disabled),
.openrouter-actions a:hover {
  background: var(--red);
  color: var(--white);
}

.openrouter-actions button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.meme-roll > label,
.studio-controls label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.meme-studio textarea,
.meme-studio select {
  width: 100%;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.meme-studio textarea {
  min-height: 130px;
  padding: 16px;
  resize: vertical;
  font-size: 1.05rem;
  line-height: 1.45;
}

.meme-studio textarea:focus,
.meme-studio select:focus,
.meme-studio button:focus-visible,
.meme-studio a:focus-visible,
.hero-cta:focus-visible {
  outline: 4px solid #ffd744;
  outline-offset: 2px;
}

.meme-roll {
  display: grid;
  gap: 12px;
  margin-bottom: 18px;
}

.meme-roll-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.meme-roll-heading > div {
  display: grid;
  gap: 2px;
}

.idea-kicker {
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.meme-roll-heading button,
.output-actions button {
  padding: 11px 16px;
  border: 2px solid var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 900;
}

.meme-roll-heading button {
  background: var(--red);
  box-shadow: 3px 3px 0 var(--ink);
  color: var(--white);
}

.output-actions button {
  background: transparent;
  color: var(--ink);
}

.meme-roll-heading button:hover:not(:disabled),
.output-actions button:hover {
  background: var(--ink);
  color: var(--white);
}

.meme-roll-heading button:disabled {
  cursor: wait;
  opacity: 0.65;
}

.meme-studio .meme-result {
  min-height: 122px;
  overflow: hidden;
  resize: none;
  background: var(--white);
  color: var(--ink);
  cursor: default;
  font-weight: 700;
}

.idea-roll-status {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1.4;
}

.studio-controls {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  align-items: end;
  gap: 14px;
}

.roll-controls {
  grid-template-columns: 1fr;
}

.studio-controls label {
  margin: 0;
}

.meme-studio select {
  display: block;
  height: 50px;
  margin-top: 10px;
  padding: 0 12px;
}

.generate-button {
  min-height: 50px;
  padding: 12px 18px;
  border: 2px solid var(--ink);
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--white);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.generate-button:hover:not(:disabled) {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.generate-button:disabled {
  cursor: not-allowed;
  filter: grayscale(1);
  opacity: 0.55;
}

.generator-status {
  min-height: 24px;
  margin: 18px 0 0;
  font-size: 0.84rem;
  font-weight: 750;
}

.generator-status[data-state="error"] {
  color: #b20b0b;
}

.generator-status[data-state="ready"] {
  color: #176c35;
}

.meme-output {
  margin-top: 22px;
  padding-top: 22px;
  border-top: 2px solid var(--ink);
}

.meme-output img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid var(--ink);
  background: var(--white);
  object-fit: contain;
}

.output-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.generator-fine-print {
  margin: 20px 0 0;
  font-size: 0.72rem;
  line-height: 1.45;
  opacity: 0.75;
}

.meme-gallery,
.agent,
.principles,
.flow,
.disclosure {
  border-top: 2px solid var(--ink);
  padding-block: 64px;
}

.gallery-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
}

.gallery-heading h2 {
  margin-bottom: 12px;
}

.gallery-heading p:last-child {
  max-width: 620px;
  margin-bottom: 0;
  line-height: 1.55;
}

.gallery-heading button,
.gallery-heading > a,
.gallery-card button,
.gallery-card-actions a {
  padding: 9px 12px;
  border: 2px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
}

.gallery-heading button:hover,
.gallery-heading > a:hover,
.gallery-card button:hover,
.gallery-card-actions a:hover {
  background: var(--ink);
  color: var(--white);
}

.gallery-empty {
  margin: 34px 0 0;
  padding: 28px;
  border: 2px dashed var(--line);
  color: rgba(23, 25, 27, 0.7);
  text-align: center;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 34px;
}

.gallery-card {
  overflow: hidden;
  border: 2px solid var(--ink);
  background: var(--white);
  box-shadow: 5px 5px 0 var(--ink);
}

.gallery-media {
  position: relative;
  display: block;
}

.gallery-card img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  border-bottom: 2px solid var(--ink);
  object-fit: cover;
}

.personal-gallery .gallery-card img {
  background: var(--paper);
  object-fit: contain;
}

.gallery-video-badge {
  position: absolute;
  right: 10px;
  bottom: 10px;
  padding: 7px 9px;
  border: 2px solid var(--ink);
  background: var(--red);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 900;
}

.gallery-card-copy {
  padding: 14px;
}

.gallery-card-copy p {
  display: -webkit-box;
  min-height: 2.8em;
  margin-bottom: 12px;
  overflow: hidden;
  font-size: 0.85rem;
  font-weight: 750;
  line-height: 1.4;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.gallery-card-copy time {
  display: block;
  margin-bottom: 12px;
  color: rgba(23, 25, 27, 0.65);
  font-size: 0.72rem;
}

.gallery-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.agent {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 64px;
}

.agent-copy > p {
  max-width: 680px;
  font-size: 1.15rem;
  line-height: 1.6;
}

.agent-copy ul {
  margin: 28px 0 0;
  padding: 0;
  border-top: 2px solid var(--ink);
  list-style: none;
}

.agent-copy li {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: 24px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  line-height: 1.5;
}

.agent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.agent-actions a {
  padding: 10px 13px;
  border: 2px solid var(--ink);
  background: var(--white);
  font-size: 0.82rem;
  font-weight: 850;
  text-decoration: none;
}

.agent-actions a:first-child {
  background: var(--red);
  color: var(--white);
}

.agent-actions a:hover {
  background: var(--ink);
  color: var(--white);
}

h2 {
  margin-bottom: 32px;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -0.05em;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid article {
  min-height: 230px;
  padding: 24px;
  border: 2px solid var(--ink);
  background: var(--white);
}

.card-grid article > span {
  color: var(--red);
  font-weight: 900;
}

.card-grid h3 {
  margin: 48px 0 12px;
  font-size: 1.45rem;
}

.card-grid p,
.flow li span,
.disclosure p {
  line-height: 1.55;
}

.flow {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
}

.flow ol {
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: fee-step;
}

.flow li {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.disclosure {
  max-width: 860px;
}

.disclosure p {
  font-size: 1.05rem;
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding-block: 32px;
  border-top: 2px solid var(--ink);
  font-size: 0.85rem;
}

.admin-main {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(420px, 1.1fr);
  align-items: start;
  gap: 64px;
  padding-block: 72px;
}

.admin-hero h1 {
  margin-bottom: 28px;
  font-size: clamp(3.8rem, 7vw, 6.8rem);
}

.admin-hero > p:last-child {
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.6;
}

.admin-card {
  padding: 32px;
  border: 3px solid var(--ink);
  background: var(--white);
  box-shadow: 9px 9px 0 var(--ink);
}

.admin-card h2,
.admin-notes h2 {
  margin-bottom: 20px;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.admin-card h3 {
  margin: 0 0 18px;
  font-size: 1.55rem;
}

.admin-card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.connection-dot {
  width: 22px;
  height: 22px;
  flex: 0 0 auto;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: #aaa;
  box-shadow: 3px 3px 0 var(--ink);
}

.connection-dot[data-connected="true"] {
  background: #35bd63;
}

.admin-card label {
  display: block;
  margin-bottom: 10px;
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.admin-card input {
  width: 100%;
  height: 52px;
  margin-bottom: 14px;
  padding: 0 14px;
  border: 2px solid var(--ink);
  border-radius: 0;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}

.admin-card input:focus,
.admin-card button:focus-visible,
.admin-links a:focus-visible {
  outline: 4px solid #ffd744;
  outline-offset: 2px;
}

.admin-primary-button,
.admin-danger-button,
.admin-quiet-button {
  min-height: 48px;
  padding: 11px 16px;
  border: 2px solid var(--ink);
  cursor: pointer;
  font: inherit;
  font-weight: 900;
}

.admin-primary-button {
  background: var(--red);
  box-shadow: 4px 4px 0 var(--ink);
  color: var(--white);
}

.admin-danger-button {
  background: var(--ink);
  color: var(--white);
}

.admin-quiet-button {
  background: transparent;
  color: var(--ink);
}

.admin-card button:hover:not(:disabled) {
  transform: translate(1px, 1px);
}

.admin-card button:disabled {
  cursor: wait;
  opacity: 0.6;
}

.admin-warning {
  background: #ffd744;
}

.admin-warning code {
  overflow-wrap: anywhere;
}

.connection-details {
  margin: 12px 0 26px;
  padding-block: 8px 20px;
  border-bottom: 1px solid var(--line);
}

.connection-details dl {
  margin: 0;
}

.connection-details dl > div {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.connection-details dt {
  font-weight: 850;
}

.connection-details dd {
  margin: 0;
  overflow-wrap: anywhere;
}

.admin-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 18px;
  font-size: 0.85rem;
  font-weight: 800;
}

.admin-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.admin-message {
  min-height: 22px;
  margin: 18px 0 0;
  color: #9c1111;
  font-size: 0.84rem;
  font-weight: 750;
}

.telegram-admin {
  margin-top: 30px;
  padding-top: 30px;
  border-top: 3px solid var(--ink);
}

.telegram-admin .admin-actions {
  margin-top: 4px;
}

.admin-notes {
  grid-column: 2;
  padding-top: 20px;
  border-top: 2px solid var(--ink);
}

.admin-notes p {
  max-width: 660px;
  line-height: 1.55;
}

@media (max-width: 760px) {
  .hero,
  .mint-hero,
  .mint-facts,
  .monitor-heading,
  .monitor-panels,
  .agent,
  .flow,
  .card-grid,
  .meme-machine {
    grid-template-columns: 1fr;
  }

  .hero,
  .mint-hero {
    min-height: auto;
    gap: 36px;
    padding-block: 52px;
  }

  .hero-mark {
    max-width: 250px;
  }

  .agent {
    gap: 24px;
  }

  .agent-copy li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .gallery-heading {
    align-items: flex-start;
    flex-direction: column;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .meme-machine {
    gap: 34px;
    margin-bottom: 48px;
    padding: 28px 20px;
    box-shadow: 7px 7px 0 var(--ink);
  }

  .meme-studio {
    padding: 20px;
    box-shadow: 5px 5px 0 var(--ink);
  }

  .studio-controls {
    grid-template-columns: 1fr;
  }

  .meme-roll-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .meme-roll-heading button {
    min-height: 48px;
  }

  .openrouter-connect {
    grid-template-columns: 1fr;
  }

  .flow li {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .monitor-metrics {
    grid-template-columns: repeat(2, 1fr);
  }

  .monitor-metrics > div:nth-child(2) {
    border-right: 0;
  }

  .monitor-metrics > div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  footer {
    flex-direction: column;
  }

  .admin-main {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-block: 52px;
  }

  .admin-notes {
    grid-column: auto;
  }

  .admin-card {
    padding: 24px 20px;
    box-shadow: 6px 6px 0 var(--ink);
  }

  .connection-details dl > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }

}

@media (max-width: 480px) {
  .monitor-metrics {
    grid-template-columns: 1fr;
  }

  .monitor-metrics > div,
  .monitor-metrics > div:nth-child(2) {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .monitor-metrics > div:last-child {
    border-bottom: 0;
  }

  .monitor-panel-title,
  .distribution-list li > div {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }
}
