:root {
  font-family: Alexandria, sans-serif;
  color: #1d1d1f;
  background: #f5f5f7;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
header {
  height: 62px;
  background: #ffffffdd;
  border-bottom: 1px solid #0000000d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 5%;
  gap: 18px;
}
header a {
  font-size: 24px;
  font-weight: 700;
  color: #08055f;
  text-decoration: none;
}
header span {
  font-size: 11px;
  color: #6e6e73;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 48px 24px 80px;
}
.intro {
  text-align: center;
  margin-bottom: 40px;
}
.intro > p:first-child {
  font-size: 13px;
  color: #1554ee;
}
.intro h1 {
  font-size: clamp(30px, 4vw, 48px);
  margin: 18px 0;
}
.intro p {
  font-size: 14px;
  line-height: 1.9;
  color: #6e6e73;
}
.workspace {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: start;
}
.controls {
  background: #fff;
  border-radius: 26px;
  padding: 30px;
}
.controls h2 {
  font-size: 18px;
  margin: 25px 0 20px;
}
.controls h2:first-child {
  margin-top: 0;
}
label {
  display: block;
  font-size: 12px;
  margin: 16px 0 8px;
}
input,
select,
textarea,
button {
  font: inherit;
}
input,
select,
textarea {
  width: 100%;
  padding: 12px;
  border: 1px solid #dadde5;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
  font-size: 13px;
}
input[type='color'] {
  height: 46px;
  padding: 5px;
  cursor: pointer;
}
.fields {
  display: flex;
  gap: 12px;
}
.fields > div {
  flex: 1;
  min-width: 0;
}
button {
  cursor: pointer;
}
.primary,
.secondary {
  border: 0;
  border-radius: 30px;
  padding: 14px 19px;
  font-size: 12px;
  margin-top: 18px;
}
.primary {
  background: #1554ee;
  color: white;
  width: 100%;
}
.secondary {
  background: #edf2ff;
  color: #1554ee;
}
.text-button {
  border: 0;
  background: transparent;
  color: #6e6e73;
  font-size: 11px;
  padding: 12px 0;
}
.hint {
  font-size: 11px;
  line-height: 1.9;
  color: #6e6e73;
}
.item-editor {
  border: 1px solid #e7e9ee;
  border-radius: 14px;
  padding: 14px;
  margin: 14px 0;
}
.item-editor .item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.item-top strong {
  font-size: 11px;
  color: #6e6e73;
}
.remove {
  border: 0;
  background: #f5f5f7;
  border-radius: 8px;
  padding: 7px 10px;
  color: #963d48;
  font-size: 11px;
}
.item-editor label {
  margin-top: 10px;
  font-size: 10px;
}
.item-editor input,
.item-editor select {
  font-size: 12px;
  padding: 9px;
}
.preview-area {
  position: sticky;
  top: 25px;
  display: flex;
  align-items: center;
  flex-direction: column;
}
.preview-label {
  width: 340px;
  max-width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.preview-label h2 {
  font-size: 14px;
}
.preview-label span {
  font-size: 10px;
  color: #1554ee;
  background: #e8efff;
  padding: 7px 12px;
  border-radius: 30px;
}
.phone {
  width: 340px;
  max-width: 100%;
  border: 7px solid #08055f;
  border-radius: 40px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 25px 60px #08055f12;
}
.notch {
  height: 13px;
  width: 80px;
  border-radius: 20px;
  background: #08055f;
  margin: 13px auto;
}
.menu {
  --accent: #1554ee;
  --bg: #fff;
  --text: #1d1d1f;
  background: var(--bg);
  color: var(--text);
  height: 540px;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 24px 18px;
}
.menu.dark {
  --bg: #161a25;
  --text: #f5f5f7;
}
.menu.warm {
  --bg: #fcf7ed;
}
.menu-logo {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  width: 55px;
  height: 55px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  margin: auto;
  font-size: 25px;
}
.menu h2 {
  text-align: center;
  font-size: 23px;
  margin: 17px 0 8px;
  overflow-wrap: anywhere;
}
.menu-tagline {
  text-align: center;
  font-size: 11px;
  opacity: 0.65;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.categories {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  justify-content: center;
  margin: 25px 0 15px;
}
.categories button {
  border: 1px solid #88888830;
  background: transparent;
  color: inherit;
  padding: 8px 10px;
  border-radius: 20px;
  font: inherit;
  font-size: 10px;
}
.categories button[aria-pressed='true'] {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  border-color: transparent;
}
.menu-item {
  border-bottom: 1px solid #88888825;
  padding: 20px 0;
  animation: appear 0.3s ease-out;
}
.menu-item h3 {
  font-size: 14px;
  margin: 0 0 8px;
  overflow-wrap: anywhere;
}
.menu-item p {
  font-size: 10px;
  opacity: 0.65;
  line-height: 1.8;
  overflow-wrap: anywhere;
}
.menu-item b {
  font-size: 12px;
}
.menu.cards .menu-items {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.menu.cards .menu-item {
  border: 1px solid #88888825;
  border-radius: 13px;
  padding: 15px 10px;
}
.empty {
  text-align: center;
  font-size: 12px;
  padding-top: 30px;
}
#status {
  font-size: 12px;
  color: #1554ee;
  line-height: 1.8;
}
:focus-visible {
  outline: 2px solid #1554ee;
  outline-offset: 4px;
}
@keyframes appear {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@media (max-width: 760px) {
  header {
    height: auto;
    min-height: 62px;
    padding: 14px 20px;
    flex-wrap: wrap;
  }
  header span {
    font-size: 9px;
  }
  .workspace {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .preview-area {
    position: static;
    grid-row: 1;
  }
  .menu {
    height: 360px;
    overscroll-behavior: auto;
  }
  .controls {
    padding: 22px;
  }
  main {
    padding: 30px 18px;
  }
  .preview-area > .hint {
    max-width: 320px;
    text-align: center;
  }
  .intro {
    margin-bottom: 25px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
    scroll-behavior: auto !important;
  }
}
.menu.square .menu-item {
  border-radius: 0;
}
.menu.compact .menu-item {
  padding-block: 10px;
}
.menu.minimal .menu-item {
  border: 0;
  padding-block: 14px;
}
.export-actions {
  flex-wrap: wrap;
}
.export-actions button {
  flex: 1;
}
button:disabled {
  opacity: 0.5;
  cursor: wait;
}
#add-category {
  margin: 0;
  white-space: nowrap;
}
.menu-tagline:empty {
  display: none;
}
@media (prefers-reduced-motion: no-preference) {
  .menu {
    animation: design-change 0.22s ease-out;
  }
  .controls input,
  .controls select,
  .controls textarea {
    transition:
      border-color 0.2s,
      box-shadow 0.2s;
  }
  .controls input:focus,
  .controls select:focus {
    border-color: #1554ee;
    box-shadow: 0 0 0 3px #1554ee10;
  }
  button {
    transition:
      transform 0.18s,
      background 0.18s;
  }
  button:active {
    transform: scale(0.98);
  }
}
@keyframes design-change {
  from {
    opacity: 0.65;
    transform: translateY(3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Keep mobile layouts within the viewport and hide preview scrollbars. */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}
.workspace > * {
  min-width: 0;
}
.preview-area,
.controls,
.phone {
  min-width: 0;
  max-width: 100%;
}
.menu {
  scrollbar-width: none;
}
.menu::-webkit-scrollbar {
  display: none;
}
@media (max-width: 760px) {
  .fields {
    flex-wrap: wrap;
  }
  .fields > div {
    flex: 1 1 120px;
  }
  .fields > input {
    min-width: 0;
    flex: 1 1 150px;
    width: auto;
  }
  .fields > button {
    max-width: 100%;
  }
  .menu {
    height: auto;
    max-height: none;
    overflow: visible;
  }
  .phone {
    width: 340px;
  }
  .menu.cards .menu-items {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .menu-item {
    min-width: 0;
  }
}
:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #f2f3f5;
}
.dependency {
  display: block;
  color: #7b8090;
  font-size: 10px;
  line-height: 1.8;
  margin: 6px 0;
}
.dependency:empty {
  display: none;
}
.menu.logo-soft .menu-logo {
  border-radius: 14px;
}
.menu.text-large .menu-item h3 {
  font-size: 18px;
}
.menu.text-large .menu-item p {
  font-size: 13px;
}
.menu.text-large .menu-item b {
  font-size: 15px;
}

#custom-items {
  border: 0;
  padding: 0;
  margin: 24px 0 0;
  min-width: 0;
}
#custom-items[hidden] {
  display: none;
}
#custom-items legend {
  font-size: 15px;
  font-weight: 600;
}
#content-hint {
  background: #f0f5ff;
  padding: 14px;
  border-radius: 12px;
  color: #43536e;
}
.phone {
  position: relative;
  width: 350px;
  border: 7px solid #14151b;
  border-radius: 47px;
  background: #fff;
  box-shadow:
    0 0 0 2px #727680,
    0 0 0 4px #d2d4da,
    0 24px 55px #08055f18;
  overflow: visible;
  padding: 0 0 23px;
}
.phone::before {
  content: '';
  position: absolute;
  width: 3px;
  height: 48px;
  left: -11px;
  top: 127px;
  background: #737783;
  border-radius: 3px;
  box-shadow: 0 62px #737783;
}
.phone::after {
  content: '';
  position: absolute;
  width: 3px;
  height: 72px;
  right: -11px;
  top: 154px;
  background: #737783;
  border-radius: 3px;
}
.iphone-status {
  height: 40px;
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 22px;
  direction: ltr;
  color: #161a25;
  font:
    600 11px Arial,
    sans-serif;
  border-radius: 38px 38px 0 0;
  background: #fff;
}
.iphone-status .notch {
  position: absolute;
  left: 50%;
  top: -1px;
  transform: translateX(-50%);
  width: 142px;
  height: 28px;
  margin: 0;
  background: #14151b;
  border-radius: 0 0 18px 18px;
}
.notch i {
  position: absolute;
  left: 27px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #202a40;
  box-shadow: inset 0 0 0 2px #303b4d;
}
.iphone-indicators {
  display: flex;
  gap: 7px;
  align-items: center;
}
.signal {
  display: block;
  width: 15px;
  height: 10px;
  background: linear-gradient(to top, #161a25, #161a25);
  clip-path: polygon(
    0 65%,
    20% 65%,
    20% 100%,
    28% 100%,
    28% 40%,
    48% 40%,
    48% 100%,
    56% 100%,
    56% 20%,
    76% 20%,
    76% 100%,
    84% 100%,
    84% 0,
    100% 0,
    100% 100%,
    0 100%
  );
}
.battery {
  position: relative;
  display: block;
  border: 1px solid #161a25;
  border-radius: 3px;
  width: 19px;
  height: 9px;
  background: #161a25;
  box-shadow: inset 0 0 0 1px #fff;
}
.battery::after {
  content: '';
  position: absolute;
  right: -3px;
  top: 2px;
  width: 2px;
  height: 3px;
  background: #161a25;
}
.phone .menu {
  height: 615px;
  border-radius: 0 0 29px 29px;
}
.home-indicator {
  height: 4px;
  width: 110px;
  border-radius: 5px;
  background: #161a25;
  position: absolute;
  bottom: 8px;
  left: 50%;
  transform: translateX(-50%);
}
@media (max-width: 760px) {
  .phone {
    width: min(330px, calc(100vw - 56px));
  }
  .phone .menu {
    height: auto;
    min-height: 460px;
    overflow: visible;
  }
  .preview-area {
    padding-inline: 6px;
  }
}

/* Compact phone proportions, independent of the number of menu items. */
.phone {
  width: 310px;
}
.phone .menu {
  height: 475px;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior: auto;
  scrollbar-width: none;
}
@media (max-width: 760px) {
  .phone {
    width: min(290px, calc(100vw - 64px));
  }
  .phone .menu {
    height: 410px;
    min-height: 0;
    overflow-y: auto;
  }
}

.native-select {
  display: none !important;
}
.custom-select {
  position: relative;
  width: 100%;
  min-width: 0;
}
.select-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: start;
  width: 100%;
  padding: 12px;
  border: 1px solid #dadde5;
  border-radius: 10px;
  background: #fff;
  color: #1d1d1f;
  font-size: 12px;
  line-height: 1.7;
}
.select-trigger[aria-expanded='true'] {
  border-color: #1554ee;
  box-shadow: 0 0 0 3px #1554ee12;
}
.select-trigger:disabled {
  background: #f2f3f5;
}
.select-options {
  position: absolute;
  top: calc(100% + 7px);
  inset-inline: 0;
  z-index: 30;
  max-height: 240px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid #e0e5ef;
  box-shadow: 0 14px 35px #08055f18;
  border-radius: 14px;
}
.select-options[hidden] {
  display: none;
}
.select-options button {
  display: block;
  width: 100%;
  padding: 11px;
  text-align: start;
  border: 0;
  border-radius: 8px;
  background: white;
  color: #424245;
  font-size: 12px;
  white-space: normal;
}
.select-options button:hover,
.select-options button:focus-visible,
.select-options button[aria-selected='true'] {
  background: #edf2ff;
  color: #1554ee;
}
.color-palette {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 15px 0;
}
.swatch {
  width: 31px;
  height: 31px;
  border-radius: 50%;
  border: 1px solid #00000025;
  background: var(--swatch);
  box-shadow: inset 0 0 0 3px #ffffff70;
}
.color-targets {
  display: flex;
  gap: 8px;
}
.color-targets button {
  background: #f5f5f7;
  border: 0;
  border-radius: 20px;
  padding: 9px 15px;
  font-size: 11px;
  color: #6e6e73;
}
.color-targets button[aria-pressed='true'] {
  background: #eaf0ff;
  color: #1554ee;
}
#color,
#backgroundColor {
  font-family: monospace;
}
.palette-section {
  padding-block: 8px;
}
.controls .fields {
  align-items: flex-start;
}
@media (prefers-reduced-motion: no-preference) {
  .select-options:not([hidden]) {
    animation: appear 0.15s ease-out;
  }
  .swatch {
    transition: transform 0.15s;
  }
  .swatch:hover {
    transform: scale(1.12);
  }
}

.template-gallery {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
}
.template-card {
  min-width: 0;
  padding: 12px;
  border: 1px solid #e0e5ef;
  border-radius: 14px;
  background: white;
  text-align: start;
}
.template-card[aria-pressed='true'] {
  border: 2px solid #1554ee;
  padding: 11px;
  box-shadow: 0 0 0 3px #1554ee0a;
}
.template-card strong {
  display: block;
  font-size: 12px;
  margin: 10px 0 7px;
}
.template-card small {
  font-size: 10px;
  color: #6e6e73;
  line-height: 1.7;
  display: block;
}
.template-thumbnail {
  height: 82px;
  display: grid;
  padding: 12px 20px;
  gap: 5px;
  background: #f5f5f7;
  border-radius: 8px;
}
.template-thumbnail i {
  height: 5px;
  background: #b8c6e6;
  border-radius: 3px;
}
.template-thumbnail i:first-child {
  width: 50%;
  height: 10px;
  justify-self: center;
  margin-bottom: 5px;
}
.template-modern .template-thumbnail,
.template-sweet .template-thumbnail {
  grid-template-columns: 1fr 1fr;
}
.template-modern .template-thumbnail i,
.template-sweet .template-thumbnail i {
  height: 22px;
  width: 100%;
  margin: 0;
}
.template-coffee .template-thumbnail {
  background: #f5ead9;
}
.template-coffee .template-thumbnail i {
  background: #9e7e60;
}
.template-night .template-thumbnail {
  background: #191c24;
}
.template-night .template-thumbnail i {
  background: #d8b47a;
}
.template-sweet .template-thumbnail {
  background: #fff0f5;
}
.template-sweet .template-thumbnail i {
  background: #d4a4b7;
}
.template-bakery .template-thumbnail {
  border: 3px double #99724f;
  background: #fcf7ed;
}
.menu-section-title {
  grid-column: 1/-1;
  font-size: 12px !important;
  color: var(--accent);
  margin: 17px 0 0;
  padding: 8px 0;
  border-bottom: 1px solid #88888835;
}
.menu.style-coffee > h2 {
  font-size: 30px;
  letter-spacing: -1px;
}
.menu.style-coffee .menu-logo {
  width: 43px;
  height: 43px;
}
.menu.style-coffee .menu-section-title {
  text-align: center;
  border-top: 1px solid #88888845;
  border-bottom: 1px solid #88888845;
  padding: 12px 0;
  margin-bottom: 10px;
  letter-spacing: 1px;
}
.menu.style-coffee .menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 5px 12px;
  padding: 14px 0;
  border-bottom: 1px dotted #88888845;
}
.menu.style-coffee .menu-item h3 {
  grid-column: 1;
  grid-row: 1;
  margin: 0;
}
.menu.style-coffee .menu-item b {
  grid-column: 2;
  grid-row: 1;
  align-self: center;
}
.menu.style-coffee .menu-item p {
  grid-column: 1/-1;
  margin: 0;
}
.menu.style-night > h2 {
  font-size: 29px;
}
.menu.style-night .menu-section-title {
  padding-inline: 10px;
  border-inline-start: 3px solid var(--accent);
  border-bottom: 0;
}
.menu.style-night .menu-item {
  background: #ffffff09;
  border-color: #ffffff20;
}
.menu.style-night .menu-item b {
  color: var(--accent);
}
.menu.style-classic {
  padding: 24px;
  border: 3px double #88888850;
}
.menu.style-classic > h2 {
  padding-bottom: 16px;
  border-bottom: 3px double #88888860;
}
.menu.style-classic .menu-section-title {
  text-align: center;
}
.menu.style-classic .menu-item {
  position: relative;
  padding-inline-end: 65px;
}
.menu.style-classic .menu-item b {
  position: absolute;
  inset-inline-end: 0;
  top: 20px;
}
.menu.style-sweet > h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--accent);
  margin: 16px auto;
  border-radius: 5px;
}
.menu.style-sweet .menu-item {
  background: #ffffff85;
  border-style: dashed;
  box-shadow: 0 4px 12px #00000004;
}
.menu.style-sweet .menu-section-title {
  text-align: center;
  border: 0;
}
.menu.style-bakery {
  border: 5px double #88888850;
  padding: 22px;
}
.menu.style-bakery .menu-logo {
  border-radius: 8px;
}
.menu.style-bakery .menu-section-title {
  border: 1px solid #88888840;
  text-align: center;
  padding: 10px;
}
.menu.style-bakery .menu-item {
  border-bottom-style: dashed;
}
.menu.style-modern .menu-section-title {
  border: 0;
  background: #8888880c;
  padding: 10px;
  border-radius: 8px;
}
.menu.style-modern .menu-item b {
  display: inline-block;
  padding: 6px 9px;
  border-radius: 8px;
  background: #8888880b;
}

.business-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 22px;
}
.business-gallery button {
  flex: 1;
  min-width: 95px;
  border: 1px solid #dfe4ef;
  background: #fff;
  border-radius: 12px;
  padding: 14px 8px;
  font-size: 12px;
}
.business-gallery button[aria-pressed='true'] {
  border-color: #1554ee;
  background: #edf2ff;
  color: #1554ee;
}
.template-gallery {
  gap: 14px;
}
.template-card {
  padding: 9px;
  overflow: hidden;
}
.template-card[aria-pressed='true'] {
  padding: 8px;
}
.style-window {
  display: block;
  position: relative;
  height: 190px;
  overflow: hidden;
  border: 1px solid #e8e9ed;
  border-radius: 9px;
  background: #fafafa;
  pointer-events: none;
}
.mini-menu {
  position: absolute;
  top: 0;
  left: 50%;
  margin-left: -140px;
  width: 280px;
  height: 480px !important;
  overflow: hidden !important;
  transform: scale(0.56);
  transform-origin: top center;
  font-family: Alexandria, sans-serif;
  padding: 20px 16px !important;
  background: #fff;
  color: #1d1d1f;
  --accent: #1554ee;
}
.mini-menu .menu-logo {
  width: 40px;
  height: 40px;
  font-size: 19px;
}
.mini-menu h2 {
  font-size: 24px;
}
.mini-menu .categories {
  font-size: 10px;
  gap: 12px;
}
.mini-menu .menu-item {
  display: block;
}
.mini-menu .menu-items {
  display: block;
}
.mini-menu.cards .menu-items {
  display: grid;
}
.mini-menu.style-night {
  background: #161a25;
  color: #fff;
  --accent: #d8b47a;
}
.mini-menu:is(.style-coffee, .style-bakery, .style-roastery, .style-bistro, .style-boutique) {
  background: #fcf7ed;
  --accent: #805b38;
}
.mini-menu:is(.style-sweet, .style-pastel) {
  background: #fff0f5;
  --accent: #ab456d;
}
.menu.style-bistro > h2 {
  text-align: start;
  border-inline-start: 5px solid var(--accent);
  padding-inline-start: 14px;
}
.menu.style-bistro .menu-logo {
  margin-inline-start: 0;
  border-radius: 8px;
}
.menu.style-bistro .menu-item {
  border-bottom: 3px double #88888850;
}
.menu.style-street > h2 {
  background: var(--accent);
  color: var(--accent-ink, #fff);
  margin-inline: -18px;
  padding: 25px 12px;
  font-size: 32px;
  transform: skewY(-3deg);
}
.menu.style-street .menu-items {
  counter-reset: menu;
}
.menu.style-street .menu-item {
  counter-increment: menu;
  padding-inline-start: 40px;
  position: relative;
  border-bottom: 2px solid #88888835;
}
.menu.style-street .menu-item::before {
  content: counter(menu, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0;
  top: 22px;
  font-size: 24px;
  font-weight: 700;
  color: var(--accent);
}
.menu.style-editorial .menu-logo {
  display: none;
}
.menu.style-editorial > h2 {
  text-align: start;
  font-size: 38px;
  padding: 28px 0;
  border-top: 7px solid var(--accent);
  border-bottom: 1px solid #88888850;
}
.menu.style-editorial .menu-item:first-of-type {
  grid-column: 1/-1;
  background: #8888880b;
  min-height: 120px;
}
.menu.style-editorial .menu-item {
  border: 0;
  border-top: 2px solid var(--accent);
  border-radius: 0;
}
.menu.style-roastery {
  border: 8px double #88888860;
}
.menu.style-roastery .menu-logo {
  width: 80px;
  height: 80px;
  background: transparent;
  color: var(--accent);
  border: 3px double var(--accent);
}
.menu.style-roastery .menu-section-title {
  text-align: center;
  letter-spacing: 2px;
}
.menu.style-roastery .menu-item {
  padding: 18px 8px;
  border-bottom: 1px solid #88888855;
}
.menu.style-ticket {
  margin: 12px;
  background: var(--bg);
  border: 1px dashed #88888870;
  height: calc(100% - 24px) !important;
}
.menu.style-ticket .menu-logo {
  display: none;
}
.menu.style-ticket > h2 {
  font-size: 23px;
  border-bottom: 2px dashed #88888860;
  padding-bottom: 20px;
}
.menu.style-ticket .menu-item {
  display: grid;
  grid-template-columns: 1fr auto;
  border-bottom: 1px dashed #88888860;
}
.menu.style-ticket .menu-item h3 {
  grid-column: 1;
}
.menu.style-ticket .menu-item b {
  grid-row: 1;
  grid-column: 2;
}
.menu.style-ticket .menu-item p {
  grid-column: 1/-1;
}
.menu.style-sidebar {
  position: relative;
  padding-inline-start: 76px;
}
.menu.style-sidebar .menu-logo {
  border-radius: 8px;
}
.menu.style-sidebar .categories {
  position: absolute;
  inset-inline-start: 0;
  top: 0;
  bottom: 0;
  width: 62px;
  margin: 0;
  padding: 25px 6px;
  background: var(--accent);
  color: var(--accent-ink, #fff);
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  align-content: center;
  border-radius: 0;
}
.menu.style-sidebar .categories button {
  color: inherit;
  font-size: 9px;
  padding: 9px 4px;
  border-color: #ffffff40;
}
.menu.style-sidebar .menu-item {
  font-size: 11px;
}
.menu.style-boutique > h2 {
  border: 1px solid #88888850;
  border-radius: 90px 90px 0 0;
  padding: 40px 8px 20px;
}
.menu.style-boutique .menu-logo {
  display: none;
}
.menu.style-boutique .menu-item {
  border-radius: 35px 35px 10px 10px;
  text-align: center;
  padding-top: 27px;
  border-color: #88888835;
}
.menu.style-catalog .menu-logo {
  margin-inline-start: 0;
  border-radius: 0;
}
.menu.style-catalog > h2 {
  text-align: start;
  font-size: 32px;
}
.menu.style-catalog .menu-items {
  counter-reset: catalog;
}
.menu.style-catalog .menu-item {
  counter-increment: catalog;
  position: relative;
  margin-inline-start: 30px;
  padding-inline-start: 22px;
  border-inline-start: 1px solid var(--accent);
  border-bottom: 0;
}
.menu.style-catalog .menu-item::before {
  content: counter(catalog);
  position: absolute;
  inset-inline-start: -28px;
  color: var(--accent);
  font-size: 23px;
}
.menu.style-pastel .menu-item {
  background: #ffffffa0;
  text-align: center;
  min-height: 120px;
  border: 0;
}
.menu.style-pastel .menu-item:nth-of-type(even) {
  background: #88888812;
}
.menu.style-pastel > h2 {
  border-radius: 20px;
  background: #ffffff70;
  padding: 20px 8px;
}
.menu.style-pastel .menu-section-title {
  text-align: center;
  letter-spacing: 2px;
  border: 0;
}

/* Keep controls and previews steady while editing; only template changes fade locally. */
.menu,
.menu-item,
.mini-menu,
.mini-menu .menu-item {
  animation: none !important;
}

#accent-picker,
#background-picker {
  height: 46px;
  width: 100%;
  border-radius: 10px;
  padding: 4px;
  cursor: pointer;
}
#color,
#backgroundColor {
  font-size: 11px;
  margin-top: 7px;
  padding: 7px;
  color: #6e6e73;
}
.layout-gallery {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin: 10px 0;
}
.layout-choice {
  border: 1px solid #dfe4ef;
  background: #fff;
  border-radius: 12px;
  padding: 12px 8px;
}
.layout-choice[aria-pressed='true'] {
  border-color: #1554ee;
  background: #f5f8ff;
  box-shadow: 0 0 0 1px #1554ee;
}
.layout-choice strong {
  font-size: 11px;
}
.layout-diagram {
  display: grid;
  height: 68px;
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px 8px;
}
.layout-diagram i {
  display: block;
  background: #d7e1f8;
  border-radius: 3px;
  min-width: 0;
}
.diagram-cards {
  grid-template-columns: 1fr 1fr;
}
.diagram-list i {
  background: linear-gradient(90deg, #ccd9f5 18%, transparent 18%, transparent 30%, #d7e1f8 30%);
  border-bottom: 1px solid #b8c7e7;
  border-radius: 0;
}
.diagram-minimal i {
  background: #d7e1f8;
  height: 3px;
  align-self: center;
  width: 75%;
}
.diagram-minimal i:nth-child(even) {
  width: 50%;
}
.option-explanation {
  font-size: 11px;
  line-height: 1.9;
  background: #f5f5f7;
  border-radius: 10px;
  padding: 13px;
  color: #586174;
}

/* Shared Korvix navigation and neutral workspace. */
body {
  padding-top: 48px;
  font-family: Alexandria, sans-serif;
}
body > .site-header {
  height: 48px;
  padding: 0;
  display: block;
  position: fixed;
}
.site-header .nav-shell {
  padding: 0;
}
.site-header .brand {
  font-size: 25px;
  color: #08055f;
}
.site-header .nav-links > a {
  font-size: 12px;
  font-weight: 400;
  color: #424245;
}
.site-header .nav-links > a[aria-current] {
  color: #1554ee;
}
.site-header .nav-actions {
  flex-shrink: 0;
}
main {
  padding-top: 48px;
}
@media (max-width: 760px) {
  body > .site-header {
    padding: 0;
    height: 48px;
  }
  main {
    padding-top: 30px;
  }
}

/* A short guided workflow, with optional detail kept out of the main path. */
.workspace {
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 0.8fr);
  gap: 54px;
  align-items: start;
}
.controls {
  padding: 30px;
  border: 1px solid #e9ebf1;
  box-shadow: 0 10px 40px #08055f04;
}
.intro {
  margin-bottom: 30px;
}
.intro h1 {
  font-size: 36px;
  margin-block: 10px;
}
.intro p {
  font-size: 13px;
}
#designer {
  scroll-margin-top: 70px;
}
.designer-steps {
  display: flex;
  gap: 8px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e9ebf1;
  margin-bottom: 25px;
}
.designer-steps button {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 8px 3px;
  display: flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  color: #7d8492;
  font-size: 11px;
  white-space: nowrap;
}
.step-number {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f2f3f7;
  color: #727987;
  font-size: 11px;
}
.designer-steps [aria-current='step'] {
  color: #1554ee;
  font-weight: 600;
}
.designer-steps [aria-current='step'] .step-number {
  background: #1554ee;
  color: white;
}
.designer-steps .is-complete .step-number {
  background: #eaf0ff;
  color: #1554ee;
}
.designer-step[hidden],
.simple-field[hidden] {
  display: none !important;
}
.step-kicker {
  font-size: 10px;
  letter-spacing: 0.02em;
  color: #1554ee;
  margin: 0 0 11px;
}
.designer-step > h2 {
  font-size: 25px;
  margin: 0 0 12px !important;
  line-height: 1.6;
}
.step-help {
  font-size: 12px;
  line-height: 1.9;
  color: #6e6e73;
  margin-bottom: 24px;
}
.section-title {
  font-size: 14px;
  margin: 22px 0 14px;
}
.quiet-note {
  font-size: 11px;
  line-height: 1.9;
  color: #6e6e73;
  background: #f6f7fa;
  padding: 14px;
  border-radius: 12px;
}
.template-gallery {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.style-window {
  height: 170px;
}
.template-card strong {
  font-size: 12px;
}
.template-card small {
  font-size: 10px;
}
.business-gallery {
  margin: 10px 0 25px;
}
.essential-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px 14px;
}
.essential-fields > [data-control='restaurant'] {
  grid-column: 1/-1;
}
.simple-field > label {
  margin-top: 12px;
}
.simple-colors {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 12px;
}
.simple-colors [type='color'] {
  height: 48px;
}
.palette-section {
  padding-top: 0;
  padding-bottom: 12px;
}
.palette-section > .hint:last-child {
  display: none;
}
.designer-disclosure {
  border: 1px solid #e5e8f0;
  border-radius: 14px;
  margin: 15px 0;
  background: white;
}
.designer-disclosure > summary {
  display: flex;
  flex-direction: column;
  position: relative;
  padding: 18px 17px;
  padding-inline-end: 38px;
  cursor: pointer;
  list-style: none;
  gap: 7px;
}
.designer-disclosure > summary::-webkit-details-marker {
  display: none;
}
.designer-disclosure > summary::after {
  content: '+';
  position: absolute;
  inset-inline-end: 17px;
  top: 17px;
  color: #1554ee;
  font-size: 19px;
}
.designer-disclosure[open] > summary::after {
  content: '−';
}
.designer-disclosure strong {
  font-size: 13px;
}
.designer-disclosure summary span {
  font-size: 10px;
  color: #858a94;
  line-height: 1.7;
}
.disclosure-body {
  padding: 0 17px 18px;
}
.advanced-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3px 14px;
}
.advanced-grid > [data-control='tagline'],
.advanced-grid > [data-control='footerText'] {
  grid-column: 1/-1;
}
.designer-disclosure .layout-gallery {
  margin-top: 0;
}
.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  border-top: 1px solid #e9ebf1;
  padding-top: 20px;
  margin-top: 25px;
}
.wizard-actions button {
  margin: 0;
  font-size: 12px;
  min-height: 46px;
}
.wizard-next {
  width: auto !important;
  flex: 1;
  max-width: 260px;
  margin-inline-start: auto !important;
}
.wizard-back {
  background: #f4f5f8;
  border: 0;
  border-radius: 30px;
  padding: 13px 20px;
  color: #596173;
}
.simple-exports {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 25px 0 20px;
}
.simple-exports button {
  margin: 0;
  min-height: 58px;
}
.simple-exports #share-design {
  grid-column: 1/-1;
  background: #1554ee;
  min-height: 52px;
}
.whatsapp-action {
  width: 100%;
  background: white;
  border: 1px solid #dfe5f0;
  color: #1554ee;
}
.preview-drawer {
  position: sticky;
  top: 80px;
  border: 0;
  margin: 0;
  padding: 0;
  background: transparent;
}
.preview-drawer > summary {
  display: none;
}
.preview-drawer > .preview-area {
  position: static;
}
.preview-area > .hint {
  max-width: 290px;
  text-align: center;
  font-size: 10px;
}
.category-editor {
  margin-bottom: 20px;
}
.category-editor #new-category {
  margin-bottom: 8px;
}
.phone-interactive,
.iphone-indicators .signal {
  animation: none;
}
.controls #reset {
  display: block;
  margin: 8px auto 0;
  font-size: 10px;
  color: #9296a0;
}
.controls #status:empty {
  display: none;
}
@media (max-width: 760px) {
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .workspace > .controls {
    width: 100%;
    padding: 20px 16px;
    order: 2;
  }
  .workspace > .preview-drawer {
    width: 100%;
    order: 1;
    position: static;
    background: #fff;
    border: 1px solid #e4e8f1;
    border-radius: 16px;
    overflow: hidden;
  }
  .preview-drawer > summary {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 17px 18px;
    cursor: pointer;
    font-size: 13px;
    color: #1554ee;
    list-style: none;
  }
  .preview-drawer > summary span {
    font-size: 10px;
    color: #7c8492;
  }
  .preview-drawer[open] > summary {
    border-bottom: 1px solid #e9ebf1;
    margin-bottom: 22px;
  }
  .preview-drawer > .preview-area {
    padding-bottom: 20px;
  }
  .preview-label {
    display: none;
  }
  .intro h1 {
    font-size: 28px;
  }
  .intro {
    margin-bottom: 20px;
  }
  .intro p {
    font-size: 11px;
  }
  .designer-steps {
    gap: 2px;
    margin-bottom: 22px;
    padding-bottom: 17px;
  }
  .designer-steps button {
    font-size: 10px;
    gap: 5px;
  }
  .step-number {
    width: 23px;
    height: 23px;
  }
  .designer-step > h2 {
    font-size: 22px;
  }
  .style-window {
    height: 155px;
  }
  .mini-menu {
    transform: scale(0.48);
  }
  .business-gallery button {
    min-width: 80px;
    font-size: 11px;
  }
  .simple-colors,
  .essential-fields,
  .advanced-grid {
    gap: 8px 11px;
  }
  .wizard-next {
    max-width: none;
  }
  .template-card small {
    font-size: 9px;
  }
  .phone .menu {
    height: 400px;
  }
  .preview-area {
    min-height: 0;
  }
}

/* All menu compositions share the same vector renderer as the exported file. */
.phone .menu.scene-menu {
  padding: 0;
  border: 0;
  border-radius: 0 0 29px 29px;
  min-width: 0;
  overflow-y: auto;
  overflow-x: hidden;
}
.menu-scene {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  overflow: hidden;
}
.scene-category {
  cursor: pointer;
  outline: none;
}
.scene-category:hover rect {
  stroke-width: 3;
}
.scene-category:focus-visible rect {
  stroke-width: 4;
  stroke: #1554ee;
}
.style-window .menu-scene {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  max-width: none;
}
.style-window {
  height: 205px;
}
.style-card-caption {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.style-card-caption strong {
  font-size: 12px;
}
.style-card-number {
  font-size: 9px;
  color: #a2a8b4;
  font-weight: 400;
}
.template-card {
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
  background: #fff;
}
.template-card[aria-pressed='true'] .style-window {
  box-shadow: 0 0 0 1px #1554ee;
}
.more-menu-styles {
  display: block;
  width: 100%;
  border: 1px solid #dce4f4;
  background: #f5f8ff;
  color: #1554ee;
  border-radius: 12px;
  padding: 15px;
  margin: 16px 0;
  font-size: 12px;
  font-weight: 500;
}
.more-menu-styles:hover {
  background: #eaf0ff;
}
.template-gallery {
  align-items: start;
}
.template-card small {
  min-height: 32px;
}
.phone .scene-menu:focus-within {
  scroll-behavior: auto;
}
@media (max-width: 760px) {
  .style-window {
    height: 180px;
  }
  .template-card small {
    min-height: 34px;
    font-size: 9px;
    line-height: 1.8;
  }
}

.category-nav-gallery {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 14px 0;
}
.category-nav-gallery > button {
  border: 1px solid #dfe4ef;
  background: #fff;
  border-radius: 11px;
  padding: 10px 7px;
}
.category-nav-gallery > button[aria-pressed='true'] {
  border-color: #1554ee;
  background: #f4f7ff;
  box-shadow: 0 0 0 1px #1554ee;
}
.category-nav-gallery strong {
  font-size: 10px;
}
.nav-diagram {
  display: grid;
  position: relative;
  height: 56px;
  gap: 5px;
  padding: 8px;
  margin-bottom: 8px;
  background: #f5f6fa;
  border-radius: 5px;
}
.nav-diagram i {
  display: block;
  background: #d3dff7;
  height: 5px;
  border-radius: 2px;
}
.nav-diagram-top::before {
  content: '';
  height: 8px;
  background: repeating-linear-gradient(90deg, #1554ee 0 12px, transparent 12px 16px);
  margin-bottom: 3px;
}
.nav-diagram-side {
  padding-right: 21px;
}
.nav-diagram-side::before {
  content: '';
  position: absolute;
  right: 5px;
  top: 6px;
  bottom: 6px;
  width: 11px;
  background: #1554ee;
  border-radius: 2px;
}
.nav-diagram-corner::before {
  content: '';
  position: absolute;
  right: 5px;
  top: 5px;
  width: 12px;
  height: 11px;
  background: #1554ee;
  border-radius: 3px;
}
.nav-diagram-corner {
  padding-top: 22px;
}
.nav-diagram-none i:nth-child(odd) {
  width: 45%;
  background: #819ed3;
}
.scene-menu {
  position: relative;
}
.corner-navigation {
  position: sticky;
  top: 10px;
  z-index: 5;
  height: 0;
  margin-inline: 12px;
  display: block;
  pointer-events: none;
}
.corner-nav-trigger {
  pointer-events: auto;
  width: max-content;
  margin: 0 0 0 auto;
  flex-shrink: 0;
  background: #fff;
  border: 1px solid #dbe2f0;
  border-radius: 10px;
  color: #25304a;
  font-size: 10px !important;
  padding: 9px 12px;
  display: flex;
  gap: 7px;
  align-items: center;
  box-shadow: 0 4px 16px #08055f12;
}
.corner-nav-trigger > span {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.corner-nav-trigger i {
  width: 12px;
  height: 1px;
  background: var(--nav-accent);
}
.corner-nav-panel {
  position: absolute;
  top: 38px;
  right: 0;
  left: auto;
  flex-shrink: 0;
  pointer-events: auto;
  background: #fff;
  border: 1px solid #dce2ed;
  border-radius: 12px;
  padding: 6px;
  margin-top: 7px;
  width: min(190px, 90%);
  max-height: 240px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  box-shadow: 0 12px 30px #08055f20;
}
.corner-nav-panel[hidden] {
  display: none;
}
.corner-nav-panel button {
  display: block;
  width: 100%;
  background: transparent;
  border: 0;
  border-radius: 7px;
  text-align: right;
  padding: 10px;
  font-size: 11px;
  color: #475064;
}
.corner-nav-panel button[aria-pressed='true'],
.corner-nav-panel button:hover {
  background: #eef3ff;
  color: #1554ee;
}
@media (max-width: 400px) {
  .category-nav-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .nav-diagram {
    height: 60px;
  }
}

.phone .scene-menu,
.corner-nav-panel {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.phone .scene-menu::-webkit-scrollbar,
.corner-nav-panel::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}
.corner-nav-panel button {
  white-space: normal;
  overflow-wrap: anywhere;
  min-height: 38px;
}
@media (prefers-reduced-motion: no-preference) {
  .corner-nav-panel:not([hidden]) {
    animation: corner-menu-open 0.16s ease-out;
  }
}
@keyframes corner-menu-open {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.section-names-editor {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 8px 10px;
  align-items: center;
  margin: 12px 0 20px;
}
.section-names-editor label {
  font-size: 10px;
  margin: 0;
}
.section-names-editor input {
  padding: 9px;
  font-size: 11px;
}
.intro .intro-custom-note {
  max-width: 640px;
  margin: 6px auto 0;
}
