:root {
  --ink: #17211c;
  --muted: #63746d;
  --paper: #fbfaf6;
  --panel: #ffffff;
  --line: #dce4df;
  --accent: #0f9f7b;
  --accent-2: #f0b23f;
  --accent-3: #3b82c4;
  --danger: #b93c3c;
  --shadow: 0 18px 50px rgba(24, 34, 29, 0.12);
  --soft: #eef5f1;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  background: var(--paper);
  color: var(--ink);
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
}

.topbar {
  align-items: center;
  background: rgba(251, 250, 246, 0.92);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 24px;
  justify-content: space-between;
  min-height: 66px;
  padding: 12px clamp(16px, 3vw, 34px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(16px);
}

.brand {
  align-items: center;
  display: inline-flex;
  gap: 12px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.brand-mark {
  background: #17211c;
  border-radius: 8px;
  box-shadow: 0 10px 24px rgba(23, 33, 28, 0.18);
  display: grid;
  gap: 3px;
  grid-template-columns: 1fr 1fr;
  height: 36px;
  padding: 6px;
  width: 36px;
}

.brand-mark span {
  border-radius: 3px;
  display: block;
}

.brand-mark span:nth-child(1) {
  background: #0f9f7b;
  grid-row: span 2;
}

.brand-mark span:nth-child(2) {
  background: #f0b23f;
}

.brand-mark span:nth-child(3) {
  background: #3b82c4;
}

.brand-name {
  display: grid;
  gap: 1px;
  line-height: 1;
}

.brand-name strong {
  font-size: 1rem;
}

.brand-name small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 800;
}

.topnav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
  font-size: 0.95rem;
}

.topnav a {
  color: var(--muted);
  text-decoration: none;
}

.topnav a:hover {
  color: var(--ink);
}

.lang-switch {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  display: inline-flex;
  flex-shrink: 0;
  gap: 2px;
  padding: 3px;
}

.lang-switch button {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: var(--muted);
  cursor: pointer;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1;
  min-width: 34px;
  padding: 7px 10px;
}

.lang-switch button.active {
  background: var(--ink);
  color: #fff;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(286px, 340px) minmax(0, 1fr);
  min-height: calc(100vh - 66px);
  min-width: 0;
  overflow-x: hidden;
}

.mobile-quickbar {
  display: none;
}

.intro-maker {
  align-items: center;
  background:
    radial-gradient(circle at 20% 18%, rgba(15, 159, 123, 0.2), transparent 26%),
    radial-gradient(circle at 86% 22%, rgba(240, 178, 63, 0.24), transparent 28%),
    linear-gradient(180deg, #fffdf8, #eef4f0);
  display: grid;
  gap: 24px;
  justify-items: center;
  min-height: calc(100vh - 66px);
  padding: clamp(28px, 6vw, 70px) 18px;
  text-align: center;
  overflow: hidden;
}

body.has-images .intro-maker {
  display: none;
}

body:not(.has-images) .editor-workspace {
  display: none;
}

body.has-images .content-band,
body.has-images .faq {
  display: none;
}

body.has-images {
  overflow-x: hidden;
}

.intro-copy {
  max-width: 820px;
  width: 100%;
}

.eyebrow {
  color: var(--accent);
  font-size: 0.82rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  margin: 0 0 14px;
  text-transform: uppercase;
}

.intro-copy h1 {
  font-size: clamp(2.2rem, 7vw, 6.2rem);
  letter-spacing: 0;
  line-height: 0.95;
  margin: 0;
  text-wrap: balance;
}

.intro-copy p:not(.eyebrow) {
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.25rem);
  line-height: 1.6;
  margin: 18px auto 0;
  max-width: 700px;
}

.intro-drop {
  align-items: center;
  background: rgba(255, 255, 255, 0.92);
  border: 1px dashed #91aaa0;
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 8px;
  justify-items: center;
  min-height: 230px;
  padding: 28px;
  width: min(620px, 100%);
}

.intro-drop:hover,
.intro-drop.drag-over {
  background: #fff;
  border-color: var(--accent);
}

.intro-drop strong {
  font-size: 1.2rem;
}

.intro-drop small {
  color: var(--muted);
}

.intro-actions {
  align-items: center;
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  max-width: 100%;
}

.intro-actions span {
  max-width: 34ch;
}

.trust-row {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  max-width: min(100%, 640px);
  width: 100%;
}

.trust-row span {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.88rem;
  font-weight: 800;
  padding: 8px 12px;
}

.panel {
  background: linear-gradient(180deg, #f5f8f6, #edf3ef);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: calc(100vh - 66px);
  overflow: auto;
  padding: 16px;
}

.panel-section {
  background: rgba(255, 255, 255, 0.48);
  border: 1px solid rgba(220, 228, 223, 0.8);
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}

.section-title {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dropzone {
  align-items: center;
  background: #fff;
  border: 1px dashed #91aaa0;
  border-radius: 8px;
  color: var(--ink);
  display: grid;
  gap: 6px;
  justify-items: center;
  min-height: 126px;
  padding: 16px;
  text-align: center;
  transition: border-color 0.18s ease, transform 0.18s ease, background 0.18s ease;
}

body.has-images .dropzone {
  align-items: center;
  grid-template-columns: auto 1fr;
  justify-items: start;
  min-height: 70px;
  text-align: left;
}

body.has-images .dropzone small {
  grid-column: 2;
}

body.has-images .dropzone .drop-icon {
  grid-row: span 2;
}

.dropzone.drag-over {
  background: #e9fff8;
  border-color: var(--accent);
}

.dropzone:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.drop-icon {
  align-items: center;
  background: var(--accent);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  font-size: 1.4rem;
  font-weight: 700;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.dropzone small {
  color: var(--muted);
}

.sample-btn {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-weight: 800;
  min-height: 42px;
}

.start-panel .sample-btn {
  background: #fff;
}

.sample-btn:hover {
  background: #fff;
}

.thumbs {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fill, minmax(70px, 1fr));
}

.thumb {
  background: #d9e1dc;
  border: 2px solid transparent;
  border-radius: 8px;
  display: block;
  height: 76px;
  overflow: hidden;
  padding: 0;
  position: relative;
}

.thumb img {
  display: block;
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.thumb.active {
  border-color: var(--accent);
}

.thumb::after {
  background: rgba(23, 33, 28, 0.7);
  border-radius: 999px;
  color: #fff;
  content: attr(data-index);
  font-size: 0.7rem;
  font-weight: 800;
  height: 22px;
  left: 6px;
  line-height: 22px;
  position: absolute;
  text-align: center;
  top: 6px;
  width: 22px;
}

.segmented {
  background: #dfe7e2;
  border: 1px solid #cbd8d1;
  border-radius: 8px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 4px;
}

.segmented button {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: var(--muted);
  font-weight: 800;
  min-height: 40px;
}

.segmented button.active {
  background: var(--ink);
  color: #fff;
}

.layout-list {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.layout-tray {
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 14px;
  overflow: hidden;
  padding: 12px;
}

.tray-head {
  align-items: baseline;
  display: flex;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 10px;
}

.tray-head span {
  font-weight: 900;
}

.tray-head small {
  color: var(--muted);
}

.layout-tray .layout-list {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 2px 2px 6px;
  scrollbar-width: thin;
}

.layout-tray .layout-card {
  flex: 0 0 128px;
}

.layout-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  min-height: 86px;
  padding: 10px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, transform 0.16s ease;
}

.layout-card:hover {
  transform: translateY(-1px);
}

.layout-card.active {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(15, 159, 123, 0.18);
}

.layout-preview {
  aspect-ratio: 1 / 1;
  background: #edf2ee;
  border-radius: 6px;
  display: grid;
  gap: 3px;
  overflow: hidden;
  padding: 4px;
}

.layout-preview span {
  background: linear-gradient(135deg, #0f9f7b, #3b82c4 52%, #f0b23f);
  border-radius: 3px;
  min-height: 8px;
}

.layout-preview.svg-preview {
  display: block;
}

.layout-preview.svg-preview svg {
  display: block;
  height: 100%;
  width: 100%;
}

.layout-preview[data-layout="auto"],
.layout-preview[data-layout="grid"] {
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: repeat(2, 1fr);
}

.layout-preview[data-layout="columns"] {
  grid-template-columns: repeat(3, 1fr);
}

.layout-preview[data-layout="rows"] {
  grid-template-rows: repeat(3, 1fr);
}

.layout-preview[data-layout="feature-left"],
.layout-preview[data-layout="mosaic"] {
  grid-template-columns: 1.5fr 1fr;
  grid-template-rows: 1fr 1fr;
}

.layout-preview[data-layout="feature-left"] span:first-child,
.layout-preview[data-layout="mosaic"] span:first-child {
  grid-row: span 2;
}

.layout-preview[data-layout="feature-right"] {
  grid-template-columns: 1fr 1.5fr;
  grid-template-rows: 1fr 1fr;
}

.layout-preview[data-layout="feature-right"] span:last-child {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.layout-preview[data-layout="split"] {
  grid-template-columns: 1fr 1fr;
}

.layout-preview[data-layout="free"] {
  background:
    linear-gradient(135deg, rgba(15, 159, 123, 0.14), transparent),
    #edf2ee;
  display: block;
  position: relative;
}

.layout-preview[data-layout="free"] span {
  height: 42%;
  position: absolute;
  width: 48%;
}

.layout-preview[data-layout="free"] span:nth-child(1) {
  left: 10%;
  top: 14%;
  transform: rotate(-7deg);
}

.layout-preview[data-layout="free"] span:nth-child(2) {
  right: 9%;
  top: 30%;
  transform: rotate(8deg);
}

.layout-preview[data-layout="free"] span:nth-child(3) {
  bottom: 9%;
  left: 26%;
  transform: rotate(-2deg);
}

.layout-card small {
  color: var(--muted);
  font-weight: 800;
}

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

.swatches {
  display: grid;
  gap: 7px;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, 1fr);
}

.swatches button {
  background: var(--swatch);
  border: 2px solid #fff;
  border-radius: 999px;
  box-shadow: 0 0 0 1px rgba(23, 33, 28, 0.16);
  height: 40px;
  min-width: 40px;
}

.swatches button.active {
  box-shadow: 0 0 0 2px var(--accent);
}

label {
  color: var(--muted);
  display: grid;
  font-size: 0.82rem;
  font-weight: 800;
  gap: 7px;
}

select,
input[type="range"],
input[type="color"] {
  width: 100%;
}

select,
input[type="color"] {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  min-height: 42px;
  padding: 8px 10px;
}

input[type="color"] {
  padding: 4px;
}

input[type="range"] {
  accent-color: var(--accent);
  min-height: 44px;
}

.wide-label {
  grid-column: 1 / -1;
}

.wide-label span {
  display: flex;
  justify-content: space-between;
}

.examples-grid {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 22px;
}

.examples-grid figure {
  margin: 0;
}

.examples-grid img {
  aspect-ratio: 1 / 1;
  background: #eef2ee;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: block;
  height: auto;
  object-fit: cover;
  width: 100%;
}

.examples-grid figcaption {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
  margin-top: 8px;
  text-align: center;
}

@media (max-width: 720px) {
  .examples-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.button-row {
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr;
}

.panel-hint {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
  margin: 0;
}

#textTools {
  display: grid;
  gap: 12px;
}

#textTools[hidden] {
  display: none;
}

#textBoldBtn.active {
  background: var(--ink);
  border-color: var(--ink);
  color: #fff;
}

.button-row button,
.secondary,
.primary {
  border-radius: 8px;
  font-weight: 800;
  min-height: 44px;
  padding: 0 16px;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.button-row button,
.secondary {
  background: #fff;
  border: 1px solid var(--line);
  color: var(--ink);
}

.primary {
  background: var(--accent);
  border: 1px solid var(--accent);
  color: #fff;
}

.stage-wrap {
  background:
    radial-gradient(circle at 18% 12%, rgba(15, 159, 123, 0.16), transparent 28%),
    radial-gradient(circle at 86% 22%, rgba(240, 178, 63, 0.18), transparent 26%),
    linear-gradient(180deg, #fffdf8, #eef4f0);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  overflow-x: hidden;
  padding: clamp(14px, 2vw, 26px);
}

.stage-actions {
  align-items: center;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin-bottom: 16px;
  min-width: 0;
  max-width: 100%;
}

.stage-actions h1 {
  font-size: clamp(1.35rem, 2vw, 2rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 4px;
}

.stage-actions h2 {
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 4px;
}

.stage-actions p {
  color: var(--muted);
  margin: 0;
}

.action-group {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.action-group .secondary,
.action-group .primary {
  flex: 0 1 auto;
  min-width: 96px;
  white-space: normal;
}

.canvas-shell {
  align-items: center;
  background:
    linear-gradient(90deg, rgba(23, 33, 28, 0.05) 1px, transparent 1px),
    linear-gradient(rgba(23, 33, 28, 0.05) 1px, transparent 1px),
    #fff;
  background-size: 26px 26px;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  justify-content: center;
  min-height: 460px;
  overflow: hidden;
  padding: clamp(12px, 2.4vw, 28px);
  position: relative;
  max-width: 100%;
  min-width: 0;
}

#collageCanvas {
  background: #f4efe5;
  border-radius: 8px;
  box-shadow: 0 20px 50px rgba(23, 33, 28, 0.18);
  display: block;
  max-height: min(68vh, 760px);
  max-width: 100%;
  touch-action: none;
}

body:not(.has-images) #collageCanvas {
  opacity: 0.2;
}

.statusbar {
  color: var(--muted);
  display: flex;
  font-size: 0.9rem;
  gap: 12px;
  justify-content: space-between;
  margin-top: 14px;
}

.mobile-quickbar button {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 900;
  min-height: 44px;
  padding: 0 8px;
}

.mobile-quickbar button:last-child {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.content-band {
  background: #fff;
  border-top: 1px solid var(--line);
  padding: clamp(38px, 7vw, 80px) 18px;
}

.content-inner {
  margin: 0 auto;
  max-width: 1080px;
}

.content-inner h2 {
  font-size: clamp(1.5rem, 2.7vw, 2.5rem);
  letter-spacing: 0;
  line-height: 1.1;
  margin: 0 0 18px;
}

.content-inner p {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.feature-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 28px;
}

.feature-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}

.feature-grid h3 {
  margin: 0 0 8px;
}

.feature-grid p {
  font-size: 0.98rem;
  margin: 0;
}

.faq {
  padding: clamp(36px, 7vw, 72px) 18px;
}

.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin: 10px 0;
  padding: 16px 18px;
}

.faq summary {
  cursor: pointer;
  font-weight: 800;
}

.footer {
  align-items: center;
  background: var(--ink);
  color: #dce4df;
  display: flex;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
  padding: 28px 18px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  justify-content: center;
}

.footer-brand {
  font-size: 0.92rem;
  opacity: 0.92;
}

.footer a {
  color: #dce4df;
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.page {
  background: #fff;
  margin: 0 auto;
  max-width: 900px;
  min-height: calc(100vh - 66px);
  padding: clamp(34px, 7vw, 78px) 18px;
}

.page h1 {
  font-size: clamp(2rem, 5vw, 4rem);
  line-height: 1;
  margin: 0 0 20px;
}

.page h2 {
  margin-top: 34px;
}

.page p,
.page li {
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.7;
}

.page a {
  color: var(--accent);
  font-weight: 800;
}

.page .crumbs {
  color: var(--muted);
  font-size: 0.9rem;
  margin: 0 0 22px;
}

.page .crumbs a {
  color: var(--muted);
  font-weight: 600;
}

.page .crumbs .sep {
  margin: 0 8px;
  opacity: 0.55;
}

.page .page-lead {
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.7;
  max-width: 62ch;
}

.page .page-cta {
  align-items: center;
  background: var(--accent);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-weight: 800;
  margin-top: 6px;
  padding: 13px 26px;
  text-decoration: none;
}

.page .page-cta:hover {
  filter: brightness(0.95);
}

.page .feature-grid {
  margin-top: 24px;
}

.page .faq {
  padding: 8px 0 0;
}

.page .faq h2 {
  margin-top: 34px;
}

@media (max-width: 980px) {
  .workspace {
    grid-template-columns: 1fr;
    max-width: 100vw;
    width: 100%;
  }

  .panel {
    border-bottom: 1px solid var(--line);
    border-right: 0;
    max-height: none;
    order: 2;
    padding-bottom: 22px;
    width: 100%;
    max-width: 100vw;
  }

  .panel-section {
    padding: 14px;
  }

  .stage-wrap {
    min-height: auto;
    order: 1;
    width: 100%;
    max-width: 100vw;
  }

  .stage-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .action-group {
    width: 100%;
    max-width: 100%;
  }

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

@media (max-width: 680px) {
  .topbar {
    align-items: center;
    flex-direction: row;
    min-height: 58px;
    padding: 10px 14px;
  }

  .topnav {
    display: none;
  }

  .lang-switch button {
    min-height: 44px;
    min-width: 44px;
  }

  .intro-copy h1 {
    font-size: clamp(1.85rem, 8.7vw, 2.45rem);
    line-height: 1;
    margin-left: auto;
    margin-right: auto;
    max-width: 12ch;
    overflow-wrap: anywhere;
  }

  .intro-copy p:not(.eyebrow) {
    max-width: 32ch;
  }

  .trust-row {
    display: grid;
    gap: 8px;
    grid-template-columns: 1fr;
    margin-left: auto;
    margin-right: auto;
    max-width: 240px;
    padding: 0 8px;
  }

  .trust-row span {
    white-space: nowrap;
  }

  .intro-actions {
    flex-direction: column;
  }

  .intro-actions span {
    line-height: 1.45;
    max-width: 27ch;
  }

  .stage-actions,
  .statusbar {
    align-items: stretch;
    flex-direction: column;
  }

  .action-group {
    display: none;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #addMoreBtn {
    grid-column: auto;
  }

  .canvas-shell {
    min-height: 340px;
    max-width: 100%;
    padding: 12px;
    width: 100%;
  }

  #collageCanvas {
    height: auto;
    max-height: min(52vh, 520px);
    max-width: 100%;
    width: min(100%, calc(100vw - 28px));
  }

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

  .layout-tray .layout-card {
    flex-basis: 116px;
  }

  .layout-tray {
    max-width: 100%;
    width: 100%;
  }

  .layout-tray .layout-list {
    max-width: 100%;
    width: 100%;
  }

  .statusbar {
    font-size: 0.82rem;
  }

  body.has-images {
    padding-bottom: 74px;
  }

  body.has-images .mobile-quickbar {
    background: rgba(251, 250, 246, 0.94);
    border-top: 1px solid var(--line);
    bottom: 0;
    box-shadow: 0 -12px 28px rgba(23, 33, 28, 0.1);
    display: grid;
    gap: 8px;
    grid-template-columns: repeat(5, 1fr);
    left: 0;
    padding: 10px 10px max(10px, env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 30;
    backdrop-filter: blur(14px);
  }
}

@media (max-width: 520px) {
  .brand-name small {
    display: none;
  }

  .intro-drop {
    min-height: 190px;
  }

  .action-group {
    grid-template-columns: 1fr 1fr;
  }

  .stage-actions h2 {
    font-size: 1.25rem;
  }

  .tray-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .thumbs {
    grid-template-columns: repeat(4, 1fr);
  }

  .thumb {
    height: 70px;
  }

  .button-row {
    grid-template-columns: 1fr 1fr;
  }
}
