:root {
  --ink: #1c1917;
  --paper: #fffdf8;
  --sky: #8fd8ff;
  --muted: #3f4b57;
}

* { box-sizing: border-box; }

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

body {
  font-family: "Nunito", "Avenir Next", "Segoe UI", sans-serif;
  color: var(--ink);
  background: linear-gradient(180deg, #8fd8ff 0%, #d9f4ff 42%, #fff6d8 100%);
}

html:has(body.editor-open),
body.editor-open {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  height: 100dvh;
  overflow: hidden;
  overscroll-behavior: none;
}

body.editor-open {
  touch-action: none;
}

body.editor-open #app,
body.editor-open .editor-host {
  height: 100%;
  overflow: hidden;
}

button, a { font: inherit; color: inherit; -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid #4c8dff; outline-offset: 3px; }
button:disabled { cursor: default; }

.clouds {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.cloud {
  position: absolute;
  height: 54px;
  width: 150px;
  background: #fff;
  border-radius: 40px;
  opacity: 0.9;
  top: var(--top);
  left: -20vw;
  animation: drift var(--time) linear infinite;
}

.cloud::before, .cloud::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.cloud::before { width: 64px; height: 64px; top: -28px; left: 24px; }
.cloud::after { width: 42px; height: 42px; top: -16px; left: 74px; }

#app, #modal { position: relative; z-index: 1; }

.home, .gallery {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding:
    max(16px, env(safe-area-inset-top))
    max(16px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(16px, env(safe-area-inset-left));
}

.home-top, .gallery-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 16px;
}

.home-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex: 1 1 220px;
}

.brand-copy {
  min-width: 0;
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
}

@media (max-width: 699px) {
  .home-top {
    flex-wrap: wrap;
    gap: 8px;
  }
  .home-brand {
    flex: 1 1 auto;
    min-width: 0;
  }
  .brand-copy h1 {
    font-size: 1.5rem;
    white-space: nowrap;
  }
  .home-actions {
    width: auto;
    margin-left: auto;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    justify-content: flex-end;
  }
  .home-top .cloud-btn {
    min-height: 40px;
    padding: 6px 12px;
    font-size: 0.88rem;
  }
  .home-top .age-switch {
    flex: 1 1 100%;
    justify-content: flex-end;
  }
}

.hero { flex: 1 1 220px; }
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  border: 2.5px solid var(--ink);
  background: #fffdf8;
  object-fit: cover;
  flex: 0 0 auto;
  box-shadow: 0 4px 0 rgba(28, 25, 23, 0.1);
}

@media (min-width: 700px) {
  .brand-mark {
    width: 64px;
    height: 64px;
    border-radius: 18px;
  }
}
.brand-copy h1 {
  margin: 0;
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.brand-copy p {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.3;
}

.hero h1, .gallery-top h1, .editor-title h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.05;
}

.hero p, .hint, .modal-card p, .category-count {
  margin: 4px 0 0;
  font-weight: 600;
  color: var(--muted);
}

.cloud-btn, .text-btn, .unlock-btn, .wide-btn, .quiet-btn, .round-btn, .icon-btn, .action-btn, .tool, .size, .swatch, .key, .zone-item {
  border: 2px solid var(--ink);
  background: var(--paper);
  border-radius: 999px;
  font-weight: 600;
}

.cloud-btn, .text-btn, .unlock-btn {
  min-height: 48px;
  padding: 8px 16px;
}

.unlock-btn, .wide-btn { background: #6ed24a; }

.wide-btn.secondary { background: var(--paper); }

.sun {
  width: 72px;
  height: 72px;
  margin: 8px 0 0 auto;
  border-radius: 50%;
  background: #ffd23f;
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 8px rgba(255, 210, 63, 0.35);
}

.category-grid, .picture-grid {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

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

@media (min-width: 700px) {
  .category-grid, .picture-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (min-width: 980px) {
  .picture-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .category-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.category-card, .picture-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px;
  border: 0;
  background: transparent;
  text-align: left;
}

.mini-frame, .frame {
  display: block;
  position: relative;
  aspect-ratio: 1;
  border-radius: 24px;
  overflow: hidden;
  background: #fffdf8;
  border: 5px solid #f0c84a;
  box-shadow:
    inset 0 0 0 3px #fff8e1,
    0 6px 0 rgba(214, 160, 40, 0.22),
    0 10px 18px rgba(214, 160, 40, 0.12);
}

.frame { background: #fffdf8; }
.mini-frame svg, .frame svg { width: 100%; height: 100%; display: block; pointer-events: none; }

.category-name, .picture-name { font-weight: 700; font-size: 1rem; line-height: 1.2; }

.age-switch { background: #ffe56a; }

.gallery .gallery-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 2px;
  gap: 6px;
}

.gallery-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.gallery .gallery-top h1 {
  width: 100%;
  margin: 0;
  min-height: 2.5em;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: clamp(1.45rem, 4vw, 2.2rem);
}

.gallery .pager {
  justify-content: center;
  flex: 0 0 auto;
}

.gallery-pictures,
.gallery .plus-grid {
  margin-top: 2px;
}

.plus-block { margin-top: 26px; }
.plus-block h2 { margin: 0; font-size: 1.45rem; font-weight: 700; }
.plus-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-width: 860px;
}
.plus-grid .frame { aspect-ratio: 4 / 3; background: var(--tint, #fffdf8); }

.plus-grid--mindful {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  max-width: 1100px;
}
.plus-grid--mindful .frame {
  aspect-ratio: 760 / 520;
  background: #fffdf8;
  border-color: var(--ink);
  border-width: 3px;
}

.empty-age {
  margin: 18px 0 0;
  text-align: center;
  font-weight: 700;
}

.lock, .star {
  position: absolute;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 2px solid white;
}

.lock {
  width: 36px;
  height: 36px;
  right: 8px;
  bottom: 8px;
  background: #2ec9a0;
  color: white;
}

.lock svg { width: 18px; height: 18px; }

.star {
  width: 32px;
  height: 32px;
  top: 8px;
  right: 8px;
  background: #ffd23f;
  color: var(--ink);
  font-size: 1.1rem;
}

.pager { display: flex; gap: 8px; }
.round-btn {
  width: 48px;
  height: 48px;
  padding: 0;
  font-size: 1.6rem;
  line-height: 1;
}

.editor-host, .editor { height: 100%; min-height: 0; }
.editor {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  touch-action: manipulation;
  padding:
    max(8px, env(safe-area-inset-top))
    max(8px, env(safe-area-inset-right))
    max(8px, env(safe-area-inset-bottom))
    max(8px, env(safe-area-inset-left));
  gap: 8px;
}

.editor-top {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 0 0 auto;
  min-width: 0;
}

.editor-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  flex: 0 0 auto;
}

.action-btn {
  min-height: 52px;
  padding: 8px 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex: 0 0 auto;
  background: #fffdf8;
  color: var(--ink);
  border-width: 3px;
  font-size: 1.05rem;
  white-space: nowrap;
}

.action-btn svg { width: 22px; height: 22px; display: block; flex: 0 0 auto; }

.action-btn:disabled {
  background: #fffdf8;
  color: #3a342e;
  border-color: #3a342e;
}

.action-btn:not(:disabled) {
  background: #d7ecff;
}

@media (max-width: 560px) {
  .action-btn { padding: 4px 7px; font-size: 0.78rem; gap: 3px; }
}

.editor-title {
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
.editor-title h1 {
  font-size: 1.35rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hint {
  font-size: 0.95rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.done {
  background: #7ad13f;
  color: var(--ink);
}

.icon-btn {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  padding: 0;
  flex: 0 0 auto;
}

.icon-btn svg { width: 22px; height: 22px; display: block; }
.tool svg { width: 26px; height: 26px; display: block; }

.editor-body {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.stage { order: 1; }
.right-rail { order: 2; flex: 0 0 auto; }

.stage {
  position: relative;
  flex: 1;
  min-height: 0;
  background: var(--paper);
  border-radius: 24px;
  overflow: hidden;
  display: flex;
  box-shadow: 0 12px 30px rgba(40, 70, 100, 0.12);
}

.stage.is-zoomed { touch-action: none; }

.picture {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}

.zoom-fab {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 40px;
  padding: 6px 14px 6px 10px;
  font-size: 0.95rem;
  font-weight: 800;
  line-height: 1;
  color: var(--ink);
  background: #fff4c2;
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: 0 4px 0 rgba(28, 25, 23, 0.16);
  cursor: pointer;
}

.zoom-fab svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.zoom-fab[aria-pressed="true"] {
  background: #ffd23f;
  box-shadow: 0 2px 0 rgba(28, 25, 23, 0.16);
  transform: translateY(1px);
}

.right-rail, .tool-list, .sizes, .swatches {
  display: flex;
  gap: 8px;
}

.right-rail { align-items: center; }
.right-rail, .swatches, .tool-list { overflow-x: auto; -webkit-overflow-scrolling: touch; touch-action: pan-x; }
.sizes.is-dim { opacity: 0.4; pointer-events: none; }

.swatch {
  width: 42px;
  height: 42px;
  padding: 0;
  border: 2px solid rgba(28, 25, 23, 0.22);
  background: var(--c);
  flex: 0 0 auto;
}

.swatch.custom {
  position: relative;
  overflow: hidden;
  background: conic-gradient(#ff5a5f, #ffd23f, #63d146, #4c8dff, #8b6cff, #ff6bb5, #ff5a5f);
}

.swatch.custom[aria-pressed="true"] { background: var(--c); }

.swatch.custom input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: 0;
  padding: 0;
  cursor: pointer;
}

.swatch[aria-pressed="true"], .size[aria-pressed="true"] {
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
}

.eraser {
  background: white;
  border: 2px solid #e4e0db;
  display: grid;
  place-items: center;
}

.slash {
  width: 58%;
  height: 4px;
  border-radius: 999px;
  background: #ff6bb5;
  transform: rotate(-42deg);
}

.draw-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.tool-list {
  flex: 0 0 auto;
}

.tool {
  width: 46px;
  height: 46px;
  min-height: 46px;
  padding: 0;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 16px;
  background: #fff;
}

.tool[aria-pressed="true"] {
  background: #fff4c2;
  color: var(--ink);
  box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--ink);
}

.sizes {
  margin-left: auto;
  padding: 4px 6px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: #fff;
  flex: 0 0 auto;
}

.size {
  width: 38px;
  height: 38px;
  padding: 0;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  box-shadow: none;
}

.size .nib {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}

.size[data-size="1"] .nib { width: 13px; height: 13px; }
.size[data-size="2"] .nib { width: 18px; height: 18px; }

.size[aria-pressed="true"] {
  background: #fff4c2;
  border-radius: 50%;
  box-shadow: 0 0 0 2px var(--ink);
}

/* Phone: one toolbar row, no title, as much paper as possible */
@media (max-width: 899px) {
  .editor {
    padding-top: max(2px, env(safe-area-inset-top));
    padding-right: max(4px, env(safe-area-inset-right));
    padding-bottom: max(4px, env(safe-area-inset-bottom));
    padding-left: max(4px, env(safe-area-inset-left));
    gap: 4px;
  }

  .editor-top {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
  }

  .editor-title { display: none; }
  .hint { display: none; }

  .editor-actions {
    display: flex;
    flex-wrap: nowrap;
    flex: 1 1 auto;
    min-width: 0;
    gap: 4px;
  }

  .icon-btn {
    width: 40px;
    height: 40px;
  }

  .text-btn {
    min-height: 40px;
    padding: 4px 10px;
    flex: 0 0 auto;
  }

  .action-btn {
    min-height: 40px;
    min-width: 0;
    padding: 4px 8px;
    font-size: 0.82rem;
    gap: 4px;
    flex: 0 1 auto;
  }

  .action-btn svg { width: 18px; height: 18px; }

  .editor-body {
    gap: 4px;
  }

  .stage {
    order: 1;
    border-radius: 18px;
  }

  .zoom-fab {
    top: 8px;
    left: 8px;
    min-height: 36px;
    padding: 5px 12px 5px 8px;
    font-size: 0.82rem;
  }

  .zoom-fab svg { width: 16px; height: 16px; }

  .right-rail {
    order: 2;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    overflow: visible;
    touch-action: manipulation;
  }

  .swatch {
    width: 34px;
    height: 34px;
  }

  .swatches {
    display: grid;
    grid-auto-flow: column;
    grid-template-rows: repeat(2, 34px);
    grid-auto-columns: 34px;
    gap: 6px;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding-bottom: 2px;
  }

  .draw-controls {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    touch-action: pan-x;
    padding-bottom: 2px;
  }

  .tool-list,
  .sizes {
    flex: 0 0 auto;
  }

  .tool {
    width: 42px;
    height: 42px;
    min-height: 42px;
    border-radius: 14px;
  }

  .tool svg { width: 24px; height: 24px; }

  .size {
    width: 34px;
    height: 34px;
  }
}

@media (min-width: 900px) {
  .editor-top {
    flex-wrap: nowrap;
  }
  .editor-actions {
    flex: 0 0 auto;
    flex-wrap: nowrap;
  }
  .action-btn {
    flex: 0 0 auto;
    min-width: 0;
    min-height: 44px;
    padding: 6px 12px;
  }

  .editor-body {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 196px;
    grid-template-rows: minmax(0, 1fr);
    align-items: stretch;
  }

  .stage, .right-rail { order: 0; }

  .right-rail {
    flex-direction: column;
    align-items: stretch;
    overflow: auto;
    justify-content: flex-start;
    touch-action: pan-y;
  }

  .swatches {
    display: grid;
    grid-template-columns: repeat(4, 36px);
    justify-content: center;
    gap: 6px;
    overflow: auto;
  }

  .draw-controls {
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
  }

  .tool-list {
    display: grid;
    grid-template-columns: repeat(3, 46px);
    justify-content: center;
    overflow: visible;
    gap: 8px;
  }

  .tool {
    width: 46px;
    height: 46px;
    justify-content: center;
  }

  .sizes {
    margin-left: 0;
    justify-content: space-evenly;
  }

  .swatch { width: 36px; height: 36px; }
  .size { width: 40px; height: 40px; }
}

#modal.modal-root {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(36, 70, 96, 0.28);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.modal-card {
  width: min(440px, 100%);
  max-height: calc(100dvh - 36px);
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-sizing: border-box;
  background: linear-gradient(180deg, #8eb6ff, #b98cff);
  color: white;
  border-radius: 28px;
  padding: 28px 20px 20px;
  border: 3px solid white;
  box-shadow: 0 18px 50px rgba(30, 40, 70, 0.28);
  overflow: auto;
}

@media (max-width: 699px) {
  #modal.modal-root {
    padding: 0;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .modal-card {
    width: 100%;
    min-height: 100dvh;
    max-height: none;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    padding:
      max(28px, env(safe-area-inset-top))
      max(20px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(20px, env(safe-area-inset-left));
  }
}

.modal-card h2 {
  margin: 0 8px 12px;
  text-align: center;
  font-size: 1.7rem;
  font-weight: 700;
  line-height: 1.15;
}

.modal-card p { color: white; text-align: center; font-size: 1.05rem; }

.modal-bar {
  position: sticky;
  top: 0;
  z-index: 6;
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 0 4px;
  padding: 0 0 8px;
  background: inherit;
}

.modal-x,
.modal-back {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fffdf8;
  color: var(--ink);
  font-size: 1.4rem;
  font-weight: 700;
  display: grid;
  place-items: center;
  padding: 0;
  border: 2px solid var(--ink);
  box-shadow: 0 3px 0 rgba(28, 25, 23, 0.1);
}

.modal-back:active,
.modal-x:active {
  transform: translateY(2px);
  box-shadow: 0 1px 0 rgba(28, 25, 23, 0.1);
}

.modal-back svg {
  width: 20px;
  height: 20px;
  display: block;
}

.modal-card.gate {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

.gate-hint {
  margin: 0 12px 4px !important;
  font-size: 0.95rem !important;
  color: var(--muted) !important;
  font-weight: 600 !important;
  opacity: 1;
}

.gate-error {
  width: min(520px, 100%);
  margin: 0 auto 10px;
  min-height: 1.2em;
  text-align: center;
  font-weight: 700;
  color: #9d2556;
}

.sum {
  width: min(520px, 100%);
  margin: 8px auto 14px;
  background: white;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 16px;
  min-height: 72px;
  display: grid;
  place-items: center;
  font-size: 2rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.sum.has-answer {
  color: var(--ink);
  box-shadow: inset 0 0 0 3px #ffe56a;
}

.pad {
  width: min(520px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}

.key {
  min-height: 56px;
  background: #dff4ff;
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 600;
  text-shadow: none;
}

.key-wide {
  grid-column: 1 / -1;
  background: #fff0c8;
}

.wide-btn, .quiet-btn {
  display: block;
  width: min(520px, 100%);
  margin-left: auto;
  margin-right: auto;
  min-height: 52px;
  margin-top: 10px;
}

.quiet-btn {
  background: transparent;
  color: white;
  border-color: transparent;
  text-decoration: underline;
}

.account-card .quiet-btn,
.account-signout,
.forgot-link {
  color: var(--muted);
  border-color: transparent;
  background: transparent;
  text-decoration: underline;
  font-weight: 700;
}

.forgot-link {
  display: block;
  width: 100%;
  margin-top: 8px;
  min-height: 40px;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
}

.forgot-link[hidden] {
  display: none;
}

.account-details {
  margin-top: 18px;
  border: 2px solid var(--ink);
  border-radius: 20px;
  overflow: hidden;
  background: #fff;
}

.account-details > div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-top: 2px solid #efeae3;
}

.account-details > div:first-child { border-top: none; }

.account-details span {
  font-weight: 700;
  color: var(--muted);
}

.account-details strong {
  font-weight: 700;
  text-align: right;
  word-break: break-word;
}

.account-actions {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.modal-card.is-paper {
  background: var(--paper);
  color: var(--ink);
  border-color: var(--ink);
}

.modal-card.is-paper h2,
.modal-card.is-paper p { color: var(--ink); }

.modal-card.is-paper .modal-x,
.modal-card.is-paper .modal-back {
  background: #fffdf8;
  color: var(--ink);
  border: 2px solid var(--ink);
}

.modal-card.is-paper .quiet-btn { color: var(--muted); }

.modal-card.is-paper .form-error { color: #9d2556; }
.modal-card .form-error { width: min(520px, 100%); margin-left: auto; margin-right: auto; }

.modal-card.is-paper .crayon-row { margin-bottom: 8px; }

.modal-card.is-paper .price {
  margin: 0;
  font-size: 3rem;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.modal-card.is-paper .price small {
  display: block;
  margin-top: 6px;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0;
  color: var(--muted);
}

.shake { animation: shake 0.35s linear; }

.celebrate {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(36, 70, 96, 0.35);
}

.celebrate-card {
  width: min(420px, 100%);
  background: var(--paper);
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 28px;
  padding: 22px 18px 16px;
  text-align: center;
  box-shadow: 0 18px 50px rgba(30, 40, 70, 0.28);
}

.celebrate-card h2 { margin: 0; font-size: 2rem; }
.celebrate-card p { margin: 8px 0 0; font-weight: 700; }

.burst { display: flex; justify-content: center; gap: 10px; font-size: 1.6rem; }

.reward {
  width: 84px;
  height: 84px;
  margin: 8px auto 0;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffd23f;
  border: 3px solid var(--ink);
  font-size: 2.6rem;
  line-height: 1;
}

.celebrate-card .quiet-btn { color: var(--muted); }

@media (prefers-reduced-motion: no-preference) {
  .celebrate-card { animation: pop 0.35s ease; }
  .burst span { animation: twinkle 0.45s ease both; }
}

@keyframes pop {
  from { transform: scale(0.86); }
  to { transform: none; }
}

@keyframes twinkle {
  from { transform: translateY(8px); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@keyframes drift {
  from { transform: translateX(0); }
  to { transform: translateX(130vw); }
}

@keyframes shake {
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .category-card:active, .picture-card:active, .tool:active, .swatch:active, .icon-btn:active, .action-btn:active, .key:active, .google-btn:active {
    transform: scale(0.97);
  }
}

.account {
  width: min(460px, 100%);
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(36px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.account:has(.plan-grid) {
  width: min(720px, 100%);
}

.account > .text-btn {
  display: inline-flex;
  align-items: center;
  width: auto;
  margin: 0 0 18px;
}

.account-card {
  margin-top: 0;
  background: #fff6d8;
  border: 3px solid var(--ink);
  border-radius: 32px;
  padding: 26px 20px 28px;
  box-shadow: 0 16px 40px rgba(40, 70, 100, 0.14);
}

.crayon-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}

.crayon-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--ink);
}

.account-card h1 {
  margin: 0;
  text-align: center;
  font-size: clamp(1.8rem, 5vw, 2.4rem);
  letter-spacing: -0.03em;
}

.account-card .lede {
  margin: 6px 0 0;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

.mode-switch {
  display: flex;
  gap: 6px;
  margin-top: 18px;
  padding: 5px;
  border-radius: 999px;
  background: #e5f4ff;
}

.mode-switch button {
  flex: 1;
  min-height: 44px;
  border: 2px solid transparent;
  border-radius: 999px;
  background: transparent;
  font-weight: 700;
}

.mode-switch button[aria-pressed="true"] {
  background: var(--paper);
  border-color: var(--ink);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 14px;
}

.field[hidden] { display: none; }

.field span {
  font-weight: 700;
}

.field input,
.field textarea {
  min-height: 52px;
  width: 100%;
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 8px 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 600;
  background: #fff8e8;
  color: var(--ink);
  resize: vertical;
}

.field textarea {
  min-height: 120px;
  line-height: 1.35;
}

.field input:focus,
.field textarea:focus {
  outline: 3px solid #4c8dff;
  outline-offset: 2px;
}

.modal-card.is-form {
  align-items: stretch;
  text-align: left;
}

.modal-card.is-form .contact-form {
  width: min(420px, 100%);
  margin: 0 auto;
}

.modal-card.is-form h2,
.modal-card.is-form > p {
  text-align: center;
}

.form-error, .form-note {
  margin: 14px 0 0;
  border: 2px solid var(--ink);
  border-radius: 16px;
  padding: 10px 12px;
  font-weight: 700;
  text-align: center;
}

.form-error { background: #ffe1ee; }
.form-note { background: #fff4c8; }

.google-btn {
  width: 100%;
  min-height: 52px;
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 3px solid var(--ink);
  border-radius: 999px;
  background: #fff8e8;
  font-weight: 700;
}

.google-btn svg { width: 22px; height: 22px; display: block; }

.or-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 4px;
  font-weight: 700;
  color: var(--muted);
}

.or-line::before, .or-line::after {
  content: "";
  height: 3px;
  flex: 1;
  border-radius: 999px;
  background: #efeae3;
}

.account-hello {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}

.account-badge {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffd23f;
  border: 3px solid var(--ink);
  box-shadow: 0 0 0 8px rgba(255, 210, 63, 0.35);
  font-size: 2.2rem;
  font-weight: 700;
}

.account-email {
  margin: 0;
  font-weight: 700;
  color: var(--muted);
}

.modal-card.parent-zone {
  width: min(520px, 100%);
  padding: 40px 28px 32px;
  border-radius: 36px;
  border-width: 4px;
  background:
    radial-gradient(120px 80px at 12% 12%, rgba(255, 214, 232, 0.7), transparent 70%),
    radial-gradient(140px 90px at 92% 8%, rgba(196, 232, 255, 0.7), transparent 70%),
    linear-gradient(180deg, #fff8fc 0%, #eef8ff 52%, #fff8e8 100%);
  border-color: #ffcfe3;
}

.modal-card.parent-zone.zone-pop {
  animation: zone-pop 0.38s cubic-bezier(0.2, 0.9, 0.3, 1.15);
}

@keyframes zone-pop {
  from { transform: translateY(18px) scale(0.94); opacity: 0; }
  to { transform: none; opacity: 1; }
}

.modal-card.parent-zone .crayon-row {
  margin: 4px 0 18px;
  gap: 10px;
}

.modal-card.parent-zone .crayon-dot {
  width: 18px;
  height: 18px;
}

.modal-card.parent-zone h2 {
  margin: 0 8px 10px;
  font-size: 2rem;
  font-weight: 800;
}

.zone-lede {
  margin: 0 16px 22px !important;
  font-size: 1.05rem !important;
  line-height: 1.45;
}

.zone-menu {
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: min(440px, 100%);
  margin: 0 auto;
}

.zone-item {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  min-height: 92px;
  padding: 16px 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.94);
  border-radius: 26px;
  box-shadow: 0 10px 0 rgba(255, 182, 214, 0.4);
}

.zone-item:active {
  transform: translateY(3px);
  box-shadow: 0 5px 0 rgba(255, 182, 214, 0.4);
}

.zone-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #ffe56a, #ffd1e8);
  font-size: 1.7rem;
  border: 2px solid var(--ink);
}

.zone-item-account .zone-icon { background: linear-gradient(180deg, #ffe7b0, #ffd4ea); }
.zone-item-settings .zone-icon { background: linear-gradient(180deg, #e6ffc4, #c9f3ff); }
.zone-item-contact .zone-icon { background: linear-gradient(180deg, #d7eeff, #eadbff); }
.zone-item-unlock .zone-icon { background: linear-gradient(180deg, #fff4a8, #ffd978); }

.zone-copy {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}

.zone-copy strong {
  font-size: 1.18rem;
  font-weight: 800;
}

.zone-copy span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.98rem;
  line-height: 1.35;
}

.zone-premium-badge {
  margin: 4px auto 0;
  padding: 14px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, #fff3a8, #ffd1e8);
  border: 2px solid var(--ink);
  text-align: center;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--ink);
  width: min(520px, 100%);
  box-sizing: border-box;
}

.zone-premium-badge.inline {
  margin-top: 14px;
  margin-bottom: 4px;
}

.zone-details {
  width: min(520px, 100%);
  margin: 12px auto 0;
}

.zone-settings {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: min(440px, 100%);
  margin: 0 auto;
}

.zone-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
}

.zone-toggle span {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.zone-toggle strong {
  font-weight: 700;
}

.zone-toggle span span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.9rem;
}

.zone-toggle input {
  width: 22px;
  height: 22px;
  accent-color: #7ad13f;
  flex: 0 0 auto;
}

.zone-volume,
.zone-playlist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 0;
  padding: 16px 18px;
  border-radius: 18px;
  border: 2px solid var(--ink);
  background: rgba(255, 255, 255, 0.9);
  text-align: left;
}

.zone-volume input[type="range"] {
  width: 100%;
  accent-color: #7ad13f;
  height: 22px;
}

.zone-playlist {
  gap: 8px;
}

.zone-playlist-title {
  margin: 0;
  font-weight: 800;
  font-size: 0.95rem;
}

.zone-song {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 2px solid var(--ink);
  background: #fffdf8;
  text-align: left;
}

.zone-song span {
  color: var(--muted);
  font-weight: 600;
  font-size: 0.88rem;
}

.zone-song.is-on {
  background: linear-gradient(180deg, #fff3a8, #d7f0ff);
}

.zone-benefits {
  width: min(520px, 100%);
  margin: 0 auto 8px;
  padding: 0 8px 0 28px;
  color: var(--ink);
  font-weight: 600;
}

.zone-benefits li {
  margin: 6px 0;
}

.modal-card.parent-zone,
.modal-card.parent-zone.is-plans {
  justify-content: flex-start;
}

.modal-card.parent-zone.is-plans {
  width: min(720px, 100%);
}

.plan-banner {
  width: min(640px, 100%);
  margin: 8px auto 4px;
  padding: 10px 14px;
  border-radius: 16px;
  background: #e8ffd4;
  border: 2.5px solid #3f9a28;
  font-weight: 800;
  color: var(--ink);
  text-align: center;
}

.plan-intro {
  margin: 0 0 8px;
  font-weight: 700;
}

.plan-free {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  color: #2f7a1f;
}

.plan-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  width: min(640px, 100%);
  margin: 8px auto 10px;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 18px 16px 16px;
  border-radius: 24px;
  border: 3px solid #ffd0e4;
  background: #fffdfb;
  text-align: left;
  box-shadow: 0 8px 0 rgba(255, 182, 211, 0.28);
  cursor: pointer;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(110, 210, 74, 0.28);
}

.plan-card.is-featured {
  border-color: #ffb7d4;
  background: #fff7fb;
  box-shadow: 0 8px 0 rgba(255, 182, 211, 0.4);
}

.plan-card h3 {
  margin: 8px 0 0;
  font-size: 1.15rem;
}

.plan-price {
  margin: 0;
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
}

.plan-price small {
  display: block;
  margin-top: 4px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--muted);
  letter-spacing: 0;
}

.plan-note {
  margin: 0 0 8px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--muted);
  line-height: 1.35;
}

.plan-card .wide-btn {
  margin-top: auto;
  width: 100%;
  min-height: 56px;
  touch-action: manipulation;
}

.trial-chip {
  align-self: flex-start;
  padding: 6px 12px;
  border-radius: 999px;
  background: #6ed24a;
  color: var(--ink);
  border: 2px solid var(--ink);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.plan-tax,
.plan-legal {
  width: min(640px, 100%);
  margin: 0 auto 8px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.plan-legal a {
  color: #4c7dff;
  font-weight: 800;
}

.plan-ack {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  width: min(640px, 100%);
  margin: 8px auto 12px;
  font-weight: 700;
  text-align: left;
}

.plan-ack input {
  margin-top: 4px;
}

.premium-status {
  width: min(520px, 100%);
  margin: 8px auto 12px;
  padding: 14px 16px;
  border-radius: 20px;
  border: 2px solid #ffd0e4;
  background: #fffdf8;
  text-align: left;
}

.premium-status strong {
  display: block;
  margin-bottom: 6px;
  font-size: 1.05rem;
}

.premium-status ul {
  margin: 0;
  padding-left: 18px;
  font-weight: 600;
  color: var(--muted);
}

.legal-page {
  width: min(760px, 100%);
}

.legal-copy {
  text-align: left;
  font-weight: 600;
  color: var(--ink);
}

.legal-copy p {
  margin: 0 0 12px;
  text-align: left;
}

.legal-copy h2 {
  margin: 22px 0 8px;
  font-size: 1.12rem;
  font-weight: 800;
  text-align: left;
  line-height: 1.3;
}

.legal-updated {
  color: var(--muted) !important;
  font-size: 0.92rem !important;
}

.legal-agree {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 14px 0 6px;
  padding: 12px 14px;
  border: 2px solid var(--ink);
  border-radius: 18px;
  background: #fff4c2;
  text-align: left;
  font-weight: 700;
  cursor: pointer;
}

.legal-agree input {
  width: 22px;
  height: 22px;
  margin-top: 2px;
  accent-color: #7ad13f;
  flex: 0 0 auto;
}

.legal-inline {
  display: inline;
  padding: 0;
  min-height: 0;
  border: 0;
  background: none;
  color: #3558c8;
  text-decoration: underline;
  font-weight: 800;
  border-radius: 0;
}

.legal-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}

@media (max-width: 699px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 699px) {
  .modal-card.parent-zone {
    padding:
      max(36px, env(safe-area-inset-top))
      max(22px, env(safe-area-inset-right))
      max(28px, env(safe-area-inset-bottom))
      max(22px, env(safe-area-inset-left));
  }

  .zone-item {
    min-height: 84px;
  }
}

.flow-hero-card {
  grid-column: 1 / -1;
}
@media (min-width: 700px) {
  .flow-hero-card { grid-column: span 2; }
}
.flow-mini svg { width: 100%; height: 100%; display: block; }
.flow-create {
  display: block;
  width: min(420px, 100%);
  margin: 18px 0 8px;
  min-height: 64px;
  font-size: 1.15rem;
}
.flow-sub {
  margin: 22px 0 0;
  font-size: 1.35rem;
}
.flow-card { gap: 6px; }
.flow-open { padding: 0; width: 100%; }
.flow-card .frame img { width: 100%; height: 100%; object-fit: cover; display: block; }
.flow-card-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.flow-card-actions .quiet-btn {
  color: var(--ink);
  width: auto;
  min-height: 32px;
  margin: 0;
}
.flow-export { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.flow-editor .flow-export .quiet-btn {
  color: var(--ink);
  text-decoration: none;
  border: 2px solid var(--ink);
  background: #fffdf8;
  min-height: 40px;
  width: auto;
  margin: 0;
  padding: 6px 12px;
}
.size-slider {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.9rem;
  flex: 1 1 auto;
  min-width: 140px;
}
.size-slider input { flex: 1; }
.recent-colours { display: flex; gap: 6px; flex-wrap: wrap; }
.flow-float {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  z-index: 5;
  background: #fffdf8;
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 6px 8px;
}
.flow-float button {
  border: 2px solid var(--ink);
  background: #d7ecff;
  border-radius: 999px;
  font-weight: 700;
  padding: 6px 10px;
}
.flow-editor { position: relative; }
.flow-body {
  display: flex;
  flex-direction: column;
  min-height: 0;
}
.flow-stage { flex: 1 1 auto; min-height: 0; }
.flow-dock {
  flex: 0 0 auto;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  overflow: visible;
  touch-action: manipulation;
  padding: 2px 0 4px;
}
.flow-draw-controls {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  overflow: visible;
}
.flow-editor .tool-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  overflow: visible;
  flex: none;
}
.flow-editor .tool {
  width: auto;
  min-width: 0;
  height: auto;
  min-height: 58px;
  padding: 8px 6px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 16px;
}
.flow-editor .tool svg { width: 24px; height: 24px; }
.flow-editor .tool span {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.1;
  white-space: nowrap;
}
.flow-size-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.flow-editor .sizes { margin-left: 0; }
.flow-editor .swatches {
  max-height: none;
  width: 100%;
}
.flow-picker {
  width: min(680px, 100%);
  max-height: min(86dvh, 780px);
  overflow: auto;
}
.flow-picker h3 { margin: 14px 0 8px; text-align: center; }
.flow-picker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}
.flow-pick {
  min-height: 48px;
  border: 2.5px solid var(--ink);
  background: #fffdf8;
  border-radius: 18px;
  font-weight: 800;
}
.flow-pick-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-height: 0;
  padding: 10px 8px 12px;
  box-shadow: 0 4px 0 rgba(28, 25, 23, 0.12);
}
.flow-pick-preview {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 1;
  background: #f3fbff;
  border-radius: 16px;
  border: 2px solid rgba(28, 25, 23, 0.1);
}
.flow-pick-preview svg {
  width: 78%;
  height: 78%;
  display: block;
}
.flow-pick-name {
  font-size: 0.88rem;
  line-height: 1.1;
}
.flow-pick-art:hover,
.flow-pick-art:focus-visible {
  transform: translateY(-2px);
  background: #fff4c2;
}
.flow-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  z-index: 40;
  background: #6ed24a;
  color: var(--ink);
  border: 3px solid var(--ink);
  border-radius: 999px;
  padding: 10px 18px;
  font-weight: 800;
}
.flow-paper { background: #fff; touch-action: none; }

@media (max-width: 899px) {
  .flow-editor {
    overflow: hidden;
    touch-action: none;
  }
  .flow-editor .editor-top,
  .flow-editor .flow-dock,
  .flow-editor .tool,
  .flow-editor .swatch,
  .flow-editor .size,
  .flow-editor .action-btn,
  .flow-editor .text-btn,
  .flow-editor .size-slider {
    touch-action: manipulation;
  }
  .flow-body,
  .flow-dock,
  .flow-draw-controls {
    overflow: hidden;
  }
  .flow-editor .recent-colours,
  .flow-editor .flow-export {
    display: none;
  }
  .flow-editor .swatches {
    max-height: 76px;
    overflow-x: auto;
    overflow-y: hidden;
    touch-action: pan-x;
  }
  .flow-editor .tool-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }
  .flow-editor .tool {
    min-height: 48px;
    padding: 4px 4px 6px;
    gap: 2px;
  }
  .flow-editor .tool svg { width: 20px; height: 20px; }
  .flow-editor .tool span { font-size: 0.68rem; }
  .flow-size-row {
    gap: 8px;
    flex-wrap: nowrap;
  }
  .flow-editor .flow-stage,
  .flow-editor .flow-paper {
    touch-action: none;
  }
}

@media (min-width: 700px) {
  .flow-editor .tool-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .flow-editor .editor-body.flow-body {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    grid-template-rows: none;
  }
  .flow-editor .flow-dock {
    overflow: visible;
  }
  .flow-editor .swatches {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-start;
    grid-template-columns: none;
    max-height: 92px;
    overflow: auto;
  }
  .flow-editor .tool-list {
    grid-template-columns: repeat(9, minmax(0, 1fr));
  }
  .flow-editor .tool {
    min-height: 70px;
  }
  .flow-editor .tool span { font-size: 0.78rem; }
}
