@font-face {
  font-family: "MR Register";
  src: url("/api/v1/fonts/PTM55FT.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MR Terminal";
  src: url("/api/v1/fonts/DejaVuSansMono.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MR Counter";
  src: url("/api/v1/fonts/ArchivoNarrow-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MR Storefront";
  src: url("/api/v1/fonts/Oswald-Light.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MR Clerk";
  src: url("/api/v1/fonts/Roboto-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MR VT323";
  src: url("/generate/fonts/vt323-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MR Receipt Clean";
  src: url("/generate/fonts/receipt-clean-400.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "MR Receipt Clean";
  src: url("/generate/fonts/receipt-clean-500.ttf") format("truetype");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: "MR Receipt Clean";
  src: url("/generate/fonts/receipt-clean-600.ttf") format("truetype");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: "MR Receipt Clean";
  src: url("/generate/fonts/receipt-clean-700.ttf") format("truetype");
  font-weight: 700;
  font-display: swap;
}
@font-face {
  font-family: "MR Lexend";
  src: url("/generate/fonts/lexend-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: "MR Outfit";
  src: url("/generate/fonts/outfit-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}
.builder-page {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  height: 100vh;
  margin: 0;
  overflow: hidden;
  background: #f4f6f8;
  color: #172033;
  font-family: Montserrat, "Segoe UI", sans-serif;
}
.builder-shell {
  position: relative;
  display: grid;
  box-sizing: border-box;
  flex: 1 1 auto;
  grid-template-columns: minmax(520px, 50%) minmax(0, 1fr);
  height: auto;
  min-height: 0;
  overflow: clip;
}
.builder-editor {
  background: #f7f8fa;
  border-right: 1px solid #e4e8ee;
  padding: 16px;
  min-height: 0;
  height: 100%;
  overflow: auto;
}
.builder-stage {
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  background: #e7eef3;
  padding: 18px 18px 40px;
  min-height: 0;
  height: 100%;
  overflow: clip;
}
.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-sizing: border-box;
  gap: 12px 16px;
  flex: 0 0 auto;
  z-index: 4;
  flex-wrap: wrap;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.live-copy { min-width: 180px; }
.live-head h2 { margin: 0 0 2px; font-size: 16px; font-weight: 700; color: #172033; }
.live-head p { margin: 0; color: #657085; font-size: 13px; }
.live-head .stage-actions { margin-left: auto; flex-wrap: wrap; justify-content: flex-end; }
.live-head .stage-actions button,
.live-head .upsell-btn { white-space: nowrap; padding: 7px 10px; font-size: 13px; }
.stage-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.stage-actions button, .text-btn, .gold-btn {
  border-radius: 8px;
  border: 1px solid #d5dbe3;
  background: #fff;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
}
.gold-btn, .gold-btn.primary { background: #1778b5; border-color: #1778b5; color: #fff; }
.picker, .section-card, .add-section {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  margin-bottom: 12px;
}
.picker { padding: 12px; }
.picker h2, .group-label {
  margin: 0 0 8px;
  font-size: 14px;
}
.picker input[type="search"], .modal input[type="search"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 8px 10px;
}
.thumb-row, .template-grid { display: grid; gap: 8px; }
.thumb-row { grid-template-columns: repeat(5, 1fr); }
.thumb, .template-card {
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  background: #fff;
  padding: 6px;
  text-align: center;
  cursor: pointer;
  font-size: 11px;
}
.thumb strong, .template-card strong { display: block; margin-top: 4px; font-size: 11px; }
.mini-paper {
  position: relative;
  height: 108px;
  overflow: hidden;
  background: #f7f8fa;
  border: 1px solid #eee;
  font-family: "Courier New", monospace;
  font-size: 6px;
  line-height: 1.2;
  text-align: left;
  padding: 6px;
  color: #333;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.mini-paper img {
  display: block;
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  background: #fff;
}
.mini-paper .pro-crown-badge {
  position: absolute;
  z-index: 2;
  top: 4px;
  right: 4px;
  display: grid;
  min-width: 34px;
  padding: 3px 4px 2px;
  place-items: center;
  border: 1px solid #f6c84c;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff9d8, #fbbf24);
  color: #854d0e;
  font-family: "Segoe UI", sans-serif;
  font-size: 8px;
  font-weight: 900;
  line-height: 1;
  letter-spacing: .04em;
}
.mini-paper .pro-crown-badge svg {
  width: 16px;
  height: 13px;
  margin-bottom: 1px;
  fill: #f59e0b;
  stroke: #92400e;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.linkish { background: none; border: 0; color: #1778b5; font-weight: 700; cursor: pointer; width: 100%; padding: 8px; }
.group-label {
  background: #243246;
  color: #fff;
  border-radius: 10px;
  padding: 10px 12px;
}
.kicker-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: nowrap;
}
.kicker-row .basics-kicker { margin: 0; white-space: nowrap; }
.advanced-inline {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-left: auto;
  text-align: right;
  white-space: nowrap;
  flex: 0 0 auto;
}
.advanced-copy {
  display: flex;
  align-items: baseline;
  gap: 6px;
  white-space: nowrap;
}
.advanced-copy strong { display: inline; font-size: 13px; color: #172033; white-space: nowrap; }
.advanced-copy small { display: inline; max-width: none; color: #657085; font-weight: 600; font-size: 11px; line-height: 1; white-space: nowrap; }
.template-name-bar {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 12px;
}
.template-name-bar strong {
  display: block;
  font-size: 18px;
  line-height: 1.3;
  color: #172033;
}
.advanced-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 12px;
}
.advanced-bar strong { display: block; font-size: 15px; }
.advanced-bar small { display: block; color: #657085; font-weight: 600; font-size: 12px; line-height: 1.35; }
.item-heads { color: #657085; font-size: 12px; font-weight: 700; margin-bottom: 2px; }
.ai-live {
  background: #fff;
  border: 1px solid #d7e6f4;
  border-radius: 12px;
  margin-bottom: 12px;
  padding: 12px 14px;
}
.ai-live-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.ai-live-head strong { color: #172033; font-size: 14px; }
.ai-live-head span { color: #657085; font-size: 12px; font-weight: 700; text-align: right; }
.ai-live-row { display: flex; align-items: center; gap: 8px; }
.ai-live textarea {
  display: block;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  box-sizing: border-box;
  min-height: 68px;
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  resize: vertical;
}
.ai-live-go {
  flex: 0 0 auto;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: #102a56;
  color: #fff;
  font: inherit;
  font-weight: 800;
  padding: 10px 14px;
  white-space: nowrap;
  cursor: pointer;
}
.ai-live-error { margin: 8px 0 0; color: #b42318; font-size: 13px; }
.basics {
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  margin-bottom: 12px;
  overflow: hidden;
}
.basics-head {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border: 0;
  background: #243246;
  color: #fff;
  padding: 12px 14px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  text-align: left;
}
.basics-head .grow { flex: 1; }
.basics-head .sec-icon, .basics-head .chev { color: #fff; }
.basics-body { padding: 12px 14px 16px; }
.basics-body label, .basics-body .field-label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #243246;
}
.basics-body input[type="number"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  background: #fff;
}
.basics-body select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
  background: #fff;
}
.basics-kicker {
  margin: 16px 0 8px;
  color: #657085;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.upsell-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 11px;
  background: #f4aa0b;
  color: #1c1404;
  padding: 12px 16px;
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-decoration: none;
  box-shadow: 0 8px 18px rgba(244, 170, 11, 0.35);
}
.upsell-btn:hover, .upsell-btn:focus { background: #e09a06; color: #1c1404; }
.upsell-crown {
  display: grid;
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(145deg, #fff7cc, #fbbf24);
  box-shadow: 0 5px 12px rgba(217, 119, 6, 0.22);
  color: #a16207;
}
.upsell-crown svg {
  width: 17px;
  height: 17px;
  fill: #f59e0b;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.choice-row { display: flex; flex-wrap: wrap; gap: 8px; }
.own-symbol { margin-top: 8px; }
.own-symbol input {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 8px 10px;
  font: inherit;
}
.own-symbol input.is-on { border-color: #1778b5; background: #e7f3fb; }
.basics-body .own-symbol + .field-label { margin-top: 10px; }
.choice-row + .choice-row { margin-top: 8px; }
.choice-row button {
  flex: 1;
  border: 1px solid #d5dbe3;
  background: #fff;
  border-radius: 8px;
  padding: 10px 4px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  color: #172033;
}
.choice-row button.on {
  border-color: #1778b5;
  color: #1778b5;
  background: #e7f3fb;
}
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle-row .basics-kicker { margin: 0; }
.switch {
  width: 44px;
  height: 26px;
  border: 0;
  border-radius: 999px;
  background: #d5dbe3;
  position: relative;
  cursor: pointer;
  flex: 0 0 auto;
}
.switch.on { background: #1778b5; }
.switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #fff;
}
.switch.on i { left: 21px; }
.paper.has-bg {
  background-color: #f4f1ea;
  background-image: repeating-linear-gradient(180deg, transparent, transparent 26px, rgba(40, 30, 10, 0.04) 27px);
}
.section-card.is-selected { outline: 2px solid #1778b5; }
.section-head, .section-body { padding: 10px 12px; }
.section-head { display: flex; align-items: center; gap: 10px; cursor: pointer; }
.section-head .grow { flex: 1; min-width: 0; }
.section-head strong { font-size: 16px; color: #243246; }
.section-head small { display: block; color: #657085; font-weight: 500; }
.chev { width: 16px; color: #8b95a5; font-size: 16px; line-height: 1; flex: 0 0 auto; }
.sec-badge {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #f2f4f7;
  color: #5c6778;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}
.sec-icon { width: 18px; height: 18px; color: inherit; display: inline-flex; }
.sec-icon svg { width: 18px; height: 18px; display: block; }
.section-trash {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e15b64;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
  padding: 0;
}
.section-trash .sec-icon { width: 18px; height: 18px; }
.section-trash:hover { background: #fdecec; color: #c43740; }
.drag-grip {
  color: #172033;
  letter-spacing: 0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1;
  cursor: grab;
  padding: 2px 3px;
  user-select: none;
}
.drag-grip:active { cursor: grabbing; }
.icon-btn { border: 0; background: transparent; cursor: pointer; color: #657085; font-size: 18px; }
.field-label, .section-body label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; color: #243246; }
.section-body input, .section-body textarea, .section-body select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 8px;
  font: inherit;
}
.section-body input[type="range"] {
  border: 0;
  padding: 0;
  height: 22px;
  accent-color: #1778b5;
  background: transparent;
}
.section-body input[type="checkbox"] { width: auto; accent-color: #1778b5; margin-right: 6px; }
.check-line { display: flex; align-items: center; font-weight: 600; margin-top: 12px; }
.section-body label.logo-drop {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  margin: 0;
  padding: 6px 2px;
  border: 0;
  background: transparent;
  font-weight: 400;
  font-size: inherit;
  color: inherit;
  cursor: pointer;
  border-radius: 12px;
}
.logo-drop.is-over, .logo-empty.is-over { background: #f7fafc; }
.logo-current {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
  min-height: 0;
  margin: 0 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
}
.logo-current img { display: block; width: auto; max-width: 220px; max-height: 96px; object-fit: contain; }
.logo-current img.is-mono { filter: grayscale(1) contrast(1.15); }
.logo-trash {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #8b95a5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.logo-trash:hover { background: #f4f6f8; color: #9d1c1c; }
.logo-picker { margin-top: 4px; }
.logo-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  margin-bottom: 10px;
  background: #eef1f5;
  border-radius: 12px;
}
.logo-tabs button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #6d7888;
  padding: 8px 10px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.logo-tabs button.on {
  background: #fff;
  color: #172033;
  box-shadow: 0 1px 2px rgba(23, 32, 51, 0.08);
}
.logo-tabs .sec-icon { width: 16px; height: 16px; color: currentColor; }
.section-body label.logo-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 100%;
  margin: 0;
  padding: 28px 16px;
  border: 1.5px dashed #d5dbe3;
  border-radius: 14px;
  background: #fff;
  color: #8b95a5;
  font-weight: 500;
  font-size: 15px;
  text-align: center;
  cursor: pointer;
}
.logo-empty strong { font-size: 16px; font-weight: 600; color: #7b8798; }
.logo-empty span { font-size: 13px; color: #9aa3b2; font-weight: 500; }
.logo-empty .sec-icon, .logo-empty .logo-empty-icon { width: 34px; height: 34px; color: #8b95a5; }
.logo-empty input { display: none; }
.logo-url { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.logo-url .text-btn { margin-top: 0; }
.logo-drop input { display: none; }
.logo-drop-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #e7f3fb;
  color: #1778b5;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}
.logo-drop-icon .sec-icon { width: 26px; height: 26px; }
.logo-drop-icon svg { width: 26px; height: 26px; display: block; }
.logo-drop-copy { display: flex; flex-direction: column; gap: 2px; text-align: left; }
.logo-drop-copy strong { font-size: 18px; line-height: 1.2; color: #1c2b3a; font-weight: 800; }
.logo-drop-copy span { font-size: 14px; color: #8b95a5; font-weight: 500; }
.logo-tools { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; }
.logo-tools .check-line { margin: 0; }
.logo-head, .logo-size { display: grid; grid-template-columns: 92px minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.logo-choice { display: block; }
.logo-choice .logo-kicker { display: block; margin-bottom: 6px; }
.logo-head { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; }
.logo-kicker { font-size: 13px; font-weight: 800; color: #243246; }
.opt-pill { padding: 2px 8px; border-radius: 999px; background: #eef2f6; color: #657085; font-size: 11px; font-weight: 800; }
.logo-add { display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 14px; align-items: center; }
.section-body .header-edit label.logo-empty,
.section-body .image-edit label.logo-empty { width: 88px; height: 88px; margin: 0; padding: 0; }
.logo-add-copy { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
.logo-add-copy strong { font-size: 15px; font-weight: 800; color: #172033; }
.logo-add-copy span { font-size: 12px; color: #8b95a5; font-weight: 600; }
.logo-actions, .logo-file-actions { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.logo-upload { border: 1px solid #b9d7ee; background: #fff; color: #1778b5; font-weight: 800; border-radius: 10px; padding: 7px 12px; cursor: pointer; }
.logo-url-link { border: 0; background: transparent; color: #1778b5; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; }
.logo-file-actions input { display: none; }
.logo-ready { display: flex; align-items: center; gap: 12px; }
.logo-thumb { width: 72px; height: 72px; border: 1px solid #e4e8ee; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; flex: none; }
.logo-thumb img { max-width: 56px; max-height: 56px; object-fit: contain; }
.logo-thumb img.is-mono { filter: grayscale(1) contrast(1.15); }
.logo-meta { min-width: 0; }
.logo-meta strong { display: block; font-size: 14px; }
.logo-controls { display: flex; flex-direction: column; gap: 12px; margin-top: 14px; }
.logo-controls.is-locked { opacity: 0.55; }
.logo-size input[type="range"] { width: 100%; margin: 0; }
.layout-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.layout-cards.image-aligns { grid-template-columns: 1fr 1fr 1fr; }
.layout-card { display: flex; align-items: center; gap: 8px; width: 100%; margin: 0; padding: 8px 10px; border: 1px solid #d5dbe3; border-radius: 12px; background: #fff; color: #172033; font: inherit; font-weight: 700; cursor: pointer; }
.layout-card .sec-icon { width: 22px; height: 22px; color: #657085; }
.layout-card.on { border-color: #1778b5; box-shadow: inset 0 0 0 1px #1778b5; }
.layout-dot { width: 16px; height: 16px; border: 2px solid #c5ced8; border-radius: 50%; flex: none; }
.layout-card.on .layout-dot { border-color: #1778b5; box-shadow: inset 0 0 0 4px #1778b5; }
.layout-card:disabled { cursor: default; }
.color-switch { display: inline-flex; padding: 3px; background: #eef1f5; border-radius: 10px; }
.color-switch button { border: 0; background: transparent; color: #172033; border-radius: 8px; padding: 6px 12px; font: inherit; font-weight: 800; cursor: pointer; }
.color-switch button.on { background: #1778b5; color: #fff; }
.color-locked { display: flex; align-items: center; justify-content: space-between; width: 180px; padding: 8px 12px; border: 1px solid #d5dbe3; border-radius: 10px; background: #f4f7fa; color: #8b95a5; font-weight: 700; }
.logo-note { margin: 8px 0 0; color: #8b95a5; font-size: 12px; }
.biz-title { margin: 18px 0 8px; font-size: 15px; font-weight: 800; color: #172033; }
.biz-row { display: flex; align-items: center; gap: 8px; margin-top: 8px; min-width: 0; }
.biz-row.is-address { align-items: flex-start; }
.biz-row > .when-eye { flex: none; width: 32px; height: 32px; }
.biz-label { flex: none; white-space: nowrap; font-size: 13px; font-weight: 700; color: #243246; }
.biz-row > input, .biz-row > textarea { flex: 1 1 0; min-width: 0; width: auto; margin: 0; }
.biz-tools { display: flex; align-items: center; gap: 6px; flex: none; flex-wrap: nowrap; }
.biz-tools input[type="color"] { width: 32px; height: 32px; padding: 2px; }
.biz-size { display: inline-flex; align-items: stretch; height: 32px; border: 1px solid #d5dbe3; border-radius: 8px; overflow: hidden; background: #fff; flex: none; }
.biz-size button { width: 24px; border: 0; background: #f4f7fa; color: #243246; font-weight: 800; cursor: pointer; padding: 0; }
.biz-size span { min-width: 22px; display: inline-flex; align-items: center; justify-content: center; padding: 0 2px; border-left: 1px solid #d5dbe3; border-right: 1px solid #d5dbe3; color: #1778b5; font-size: 12px; font-weight: 800; }
.align-menu { display: inline-flex; align-items: center; gap: 2px; height: 32px; margin: 0; padding: 0 6px; border: 1px solid #d5dbe3; border-radius: 8px; background: #fff; color: #172033; cursor: pointer; }
.align-menu .sec-icon { width: 16px; height: 16px; }
.align-chev { color: #8b95a5; font-size: 11px; }
.text-link { background: none; border: 0; padding: 0; color: #172033; font-weight: 600; cursor: pointer; }
.text-link:disabled { color: #9aa3b2; cursor: default; }
.ghost-btn {
  margin-top: 8px;
  background: #f3f5f8;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  padding: 8px 12px;
  font-weight: 700;
  cursor: pointer;
  color: #172033;
}
.name-line { display: flex; gap: 6px; align-items: center; }
.name-line .name-row { flex: 1; min-width: 0; }
.name-row { position: relative; }
.name-row.has-color input[type="text"] { padding-right: 44px; }
.name-row input[type="color"] {
  position: absolute;
  right: 6px;
  top: 50%;
  width: 28px;
  height: 28px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  transform: translateY(-50%);
  cursor: pointer;
}
.item-row { display: grid; grid-template-columns: 52px 1fr 80px 28px; gap: 6px; margin-bottom: 6px; }
.item-sheet { margin-top: 8px; padding: 0; background: transparent; }
.items-kicker { margin: 16px 0 8px; font-size: 15px; font-weight: 800; color: #172033; }
.items-hint { margin: 2px 0 8px; color: #8b95a5; font-size: 12px; }
.note-text { display: flex; align-items: center; gap: 6px; min-width: 0; }
.note-badge { flex: 0 0 auto; padding: 4px 8px; border-radius: 999px; background: #eef2f6; color: #657085; font-size: 10px; font-weight: 800; letter-spacing: 0.04em; text-transform: uppercase; }
.section-body .note-text input { margin: 0; }
.section-body .suffix-box { text-align: center; padding-left: 4px; padding-right: 4px; }
.item-sheet .cols-toggle { margin-top: 0; }
.cols-toggle {
  display: flex;
  width: 100%;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0 8px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 700;
  color: #243246;
  cursor: pointer;
}
.item-edit { position: relative; display: grid; gap: 6px; align-items: center; margin-bottom: 6px; }
.item-edit.c2 { grid-template-columns: 22px 18px minmax(0, 1fr) 84px 36px 44px 28px; }
.item-edit.c3 { grid-template-columns: 22px 18px minmax(0, 1fr) 48px 84px 36px 44px 28px; }
.item-edit.c4 { grid-template-columns: 22px 18px minmax(0, 1fr) 42px 52px 72px 36px 44px 28px; }
.item-edit.note { grid-template-columns: 22px 18px minmax(0, 1fr) 32px 28px; }
.item-edit.note.has-mid { grid-template-columns: 22px 18px minmax(0, 1fr) 72px 32px 28px; }
.item-edit input.indent-box { width: 16px; height: 16px; margin: 0 auto; padding: 0; border: 0; accent-color: #1778b5; cursor: pointer; }
.item-edit.drop-before::before,
.item-edit.drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #1778b5;
  border-radius: 2px;
  z-index: 2;
}
.item-edit.drop-before::before { top: -5px; }
.item-edit.drop-after::after { bottom: -5px; }
.item-edit.heads { color: #657085; font-size: 12px; font-weight: 700; }
.title-bar { display: flex; align-items: flex-end; gap: 8px; margin-bottom: 8px; }
.title-bar .when-eye { margin-bottom: 6px; flex: 0 0 auto; }
.title-fields { flex: 1; min-width: 0; display: grid; gap: 8px; }
.title-fields.c2 { grid-template-columns: minmax(0, 1.4fr) minmax(76px, 0.8fr); }
.title-fields.c3 { grid-template-columns: minmax(0, 1.4fr) minmax(76px, 0.7fr) minmax(76px, 0.8fr); }
.title-fields.c4 { grid-template-columns: minmax(0, 1.2fr) minmax(72px, 0.7fr) minmax(72px, 0.7fr) minmax(76px, 0.8fr); }
.title-rule { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.title-rule .rule-styles { margin-left: 0; flex: 1; }
.title-rule .rule-styles button { flex: 1; min-width: 0; }
.col-title { min-width: 0; }
.col-title-line { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 700; color: #657085; }
.title-field { position: relative; }
.section-body .title-field input { padding-right: 34px; }
.col-align-btn { width: 22px; min-width: 22px; height: 22px; padding: 0; border-radius: 7px; vertical-align: middle; margin-left: 4px; }
.col-head { display: flex; align-items: center; gap: 4px; min-width: 0; white-space: nowrap; }
.col-head .col-align-btn { margin-left: 0; }
.row-grip { color: #9aa3b2; letter-spacing: -2px; font-size: 14px; cursor: grab; text-align: center; }
.item-adds { display: flex; gap: 8px; margin-top: 4px; }
.price-options { display: flex; align-items: flex-start; gap: 12px; }
.price-options .check-line { flex: 1; margin: 8px 0 0; min-width: 0; align-items: flex-start; }
.item-adds .text-btn { flex: 1; color: #1778b5; border-color: #b9d7ee; background: #fff; }
.item-adds .ghost-btn { flex: 1; margin-top: 0; }
.bold-toggle {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #d5dbe3;
  background: #fff;
  font-weight: 800;
  cursor: pointer;
  color: #172033;
}
.bold-toggle.on { box-shadow: inset 0 0 0 2px #1778b5; color: #1778b5; }
.style-icons { display: flex; gap: 8px; margin-top: 10px; }
.format-row .style-icons { margin-top: 0; }
.style-icons .bold-toggle.is-italic { font-style: italic; }
.style-icons .bold-toggle.is-under { text-decoration: underline; }
.type-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.type-bar .style-icons { margin-top: 0; }
.section-body .type-font,
.basics-body .type-font { display: inline-flex; margin: 0; width: auto; }
.type-font select { width: auto; max-width: 148px; height: 36px; padding: 0 8px; font-weight: 700; }
.type-tool {
  height: 36px;
  min-width: 36px;
  padding: 0 8px;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  background: #f4f7fa;
  color: #243246;
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
}
.type-tool.on { background: #e8f3fb; color: #1778b5; box-shadow: inset 0 0 0 1.5px #1778b5; }
.col-title .type-tool,
.col-head .type-tool,
.totals-align .type-tool { width: 22px; min-width: 22px; height: 22px; padding: 0; border-radius: 7px; }
.col-title .title-field .type-tool,
.pay-line .title-field .type-tool,
.tri-edit .title-field .type-tool { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 28px; min-width: 28px; height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; overflow: visible; }
.track-arrows { font-size: 12px; font-weight: 700; }
.space-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 8px; margin-top: 12px; align-items: start; }
.section-body .space-field { display: flex; flex-direction: column; align-items: stretch; min-width: 0; }
.space-row .indent-group { margin-top: 6px; }
.space-row .indent-group button { width: 28px; height: 32px; }
.space-row .space-value { min-width: 38px; padding: 0 4px; }
.section-body .space-field { margin: 0; }
.space-line { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.space-line input[type="range"] { flex: 1; width: auto; min-width: 0; }
.space-value {
  min-width: 46px;
  height: 32px;
  padding: 0 6px;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fff;
  color: #1778b5;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.style-icons .bold-toggle.is-flip.on { background: #172033; color: #fff; box-shadow: none; }
.col-aligns { display: grid; gap: 8px; margin-top: 12px; }
.col-aligns.c2 { grid-template-columns: 1fr 1fr; }
.col-aligns.c3 { grid-template-columns: 1fr 1fr 1fr; }
.col-aligns.c4 { grid-template-columns: 1fr 1fr 1fr 1fr; }
.col-aligns label { margin-top: 0; }
.add-row {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 12px 16px;
  border: 1px solid #e1e6ee;
  border-radius: 12px;
  background: #fff;
  color: #172033;
  font: inherit;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.pay-heads, .pay-line {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) minmax(0, 1fr) 32px 32px 36px;
  gap: 6px;
  align-items: center;
}
.pay-line .title-field { overflow: visible; }
.pay-line .title-field input { padding-right: 36px; }
.pay-source { display: inline-flex; align-items: center; justify-content: center; padding: 0; }
.pay-source .sec-icon { width: 16px; height: 16px; }
.pay-source-menu {
  position: fixed;
  z-index: 40;
  min-width: 148px;
  padding: 6px;
  border: 1px solid #d5dbe3;
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(23, 32, 51, 0.12);
}
.pay-source-option {
  display: block;
  width: 100%;
  margin: 0;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172033;
  font: inherit;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.pay-source-option.on, .pay-source-option:hover { background: #e8f3fb; color: #1778b5; }
.pay-line input[readonly] { background: #f4f7fa; }
.pay-heads { margin: 2px 0 8px; color: #657085; font-size: 12px; font-weight: 700; }
.pay-line { margin-bottom: 8px; position: relative; }
.pay-line input { border-radius: 12px; padding: 10px 12px; }
.pay-line .row-grip { justify-self: center; }
.pay-x {
  width: 36px;
  height: 36px;
  border: 1px solid #f3c1c1;
  border-radius: 10px;
  background: #fff;
  color: #e15b64;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.pay-add {
  display: block;
  width: 100%;
  margin: 4px 0 16px;
  padding: 12px 16px;
  border: 0;
  border-radius: 12px;
  background: #eaf3fb;
  color: #1778b5;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.pay-line.drop-before::before,
.pay-line.drop-after::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 2px;
  background: #1778b5;
}
.pay-line.drop-before::before { top: -5px; }
.pay-line.drop-after::after { bottom: -5px; }
.split-line { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; margin-top: 10px; }
.split-line .check-line { margin: 0; }
.split-line.gratuity { grid-template-columns: 1fr 88px 96px; }
.totals-panel { margin-top: 4px; }
.sum-board { overflow-x: auto; }
.sum-layout { display: flex; align-items: center; gap: 14px; margin: 4px 0 14px; }
.sum-layout select { width: auto; min-width: 190px; margin: 0; }
.sum-reset { display: inline-flex; align-items: center; gap: 6px; border: 0; background: transparent; color: #1778b5; font-weight: 800; cursor: pointer; padding: 0; white-space: nowrap; }
.sum-reset .sec-icon { width: 16px; height: 16px; }
.sum-heads, .sum-line {
  display: grid;
  grid-template-columns: 16px 32px minmax(96px, 1.2fr) minmax(112px, 0.9fr) minmax(92px, 0.75fr) 32px 32px;
  gap: 6px;
  align-items: center;
}
.sum-heads { margin-bottom: 6px; }
.sum-head { display: flex; align-items: center; gap: 4px; color: #657085; font-size: 12px; font-weight: 800; letter-spacing: 0.02em; }
.sum-head .type-tool { width: 28px; min-width: 28px; height: 28px; padding: 0; border-radius: 8px; }
.sum-line input, .sum-line select { margin: 0; }
.sum-line input.is-locked, .sum-line input:disabled { background: #f4f7fa; color: #657085; }
.sum-money { display: flex; align-items: center; gap: 4px; min-width: 0; border: 1px solid #d5dbe3; border-radius: 8px; background: #fff; padding: 0 8px; }
.sum-money input { width: auto; flex: 1; min-width: 0; border: 0; padding: 8px 0; margin: 0; background: transparent; }
.sum-mode { width: auto; border: 0; background: transparent; color: #657085; font-weight: 800; cursor: pointer; padding: 0; }
.sum-affix { color: #657085; font-weight: 800; }
.sum-line .when-eye, .sum-line .bold-toggle, .sum-line .section-trash { width: 32px; height: 32px; }
.sum-line .rule-styles { margin: 0; width: 100%; min-width: 0; }
.sum-line .rule-styles button { flex: 1; min-width: 0; height: 32px; padding: 0 2px; }
.sum-rule { height: 0; border-top: 2px dashed #c5ced8; }
.sum-block { position: relative; margin-bottom: 6px; }
.sum-block.drop-before::before,
.sum-block.drop-after::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  height: 3px;
  background: #1778b5;
  border-radius: 2px;
  z-index: 2;
  pointer-events: none;
}
.sum-block.drop-before::before { top: -5px; }
.sum-block.drop-after::after { bottom: -5px; }
.sum-block.is-open { margin: 6px 0; padding: 8px 0; border-radius: 14px; background: #e7f3fb; }
.sum-detail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(120px, 150px); gap: 12px 16px; align-items: center; margin: 8px 0 0 48px; }
.sum-money .when-eye, .sum-rate .when-eye { width: 22px; height: 22px; border: 0; background: transparent; border-radius: 6px; flex: 0 0 auto; }
.sum-money .when-eye .sec-icon, .sum-money .when-eye .sec-icon svg,
.sum-rate .when-eye .sec-icon, .sum-rate .when-eye .sec-icon svg { width: 16px; height: 16px; }
.sum-rate { display: flex; align-items: center; gap: 2px; }
.sum-rate .sum-money { flex: 1 0 auto; }
.sum-rate .sum-money input { flex: 1 0 auto; width: 5.4ch; min-width: 5.4ch; }
.sum-rate .sum-money input::-webkit-outer-spin-button,
.sum-rate .sum-money input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.sum-detail > .check-line { grid-column: 1 / -1; }
.sum-block.is-open .sum-detail { margin-top: 10px; }
.sum-detail label { margin: 0; }
.sum-result span, .sum-result small { display: block; color: #657085; font-size: 12px; font-weight: 700; }
.sum-result strong { display: block; margin: 2px 0; font-size: 18px; }
.sum-add { margin-top: 12px; border: 1px solid #b9d7ee; background: #fff; color: #1778b5; font-weight: 800; border-radius: 10px; padding: 8px 14px; cursor: pointer; }
.sum-menu { position: fixed; z-index: 40; min-width: 180px; padding: 6px; border: 1px solid #d5dbe3; border-radius: 12px; background: #fff; box-shadow: 0 10px 24px rgba(23, 32, 51, 0.12); }
.sum-option { display: block; width: 100%; margin: 0; padding: 8px 10px; border: 0; border-radius: 8px; background: transparent; color: #172033; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.sum-option:hover { background: #e8f3fb; color: #1778b5; }
.sum-detail .check-line { display: flex; margin: 0; align-items: center; }
.totals-kicker { margin: 14px 0 8px; color: #7b8798; font-size: 11px; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; }
.totals-group { margin-top: 8px; padding: 10px; border: 1px solid #e6ebf1; border-radius: 14px; background: #f7f9fc; }
.totals-group .totals-kicker { margin: 0; }
.totals-group-head { display: flex; align-items: center; gap: 8px; }
.totals-add { margin-left: auto; border: 0; border-radius: 10px; background: #1778b5; color: #fff; font: inherit; font-weight: 700; padding: 8px 12px; cursor: pointer; }
.totals-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(148px, 188px); gap: 10px; align-items: center; margin-top: 10px; }
.totals-row:has(select) { grid-template-columns: 38px minmax(0, 1fr) 118px 108px; }
.totals-row.is-adjust { grid-template-columns: 38px minmax(72px, 0.7fr) minmax(96px, 1fr) minmax(108px, 128px) 100px; }
.totals-eye-gap { width: 38px; }
.totals-copy strong { display: block; color: #172033; font-size: 14px; }
.totals-copy small { display: block; margin-top: 2px; color: #7b8798; font-size: 12px; line-height: 1.35; }
.totals-row > input, .totals-row > select { margin: 0; }
.tax-sheet { margin-top: 10px; padding: 8px; border: 1px solid #e6ebf1; border-radius: 12px; background: #fff; }
.tax-heads, .tax-line { display: grid; grid-template-columns: minmax(0, 1fr) auto 32px; gap: 8px; align-items: center; }
.tax-heads { color: #7b8798; font-size: 12px; font-weight: 700; padding: 0 2px 6px; }
.tax-line { margin-top: 6px; }
.tax-line input, .rate-box input { margin: 0; }
.section-body .rate-box input { width: 72px; }
.rate-box { display: flex; align-items: center; gap: 6px; }
.rate-box .when-eye { width: 32px; height: 32px; flex: 0 0 32px; }
.rate-box span, .money-box > span { color: #657085; font-weight: 700; }
.money-box { display: flex; align-items: center; gap: 6px; min-width: 0; }
.money-box input { margin: 0; }
.tax-trash { width: 32px; height: 32px; border: 0; background: transparent; color: #d64545; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.tax-trash .sec-icon { width: 16px; height: 16px; }
.divider-sample { height: 0; border-top: 2px dashed #b7c0cc; }
.totals-col-heads { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(148px, 188px); gap: 10px; align-items: center; }
.totals-align { display: flex; justify-content: space-between; gap: 8px; margin: 0; padding: 0; }
.totals-align-item { display: flex; align-items: center; gap: 4px; color: #657085; font-size: 12px; font-weight: 700; }
.totals-hint { margin: 14px 0 0; color: #8b95a5; font-size: 12px; }
.tax-row { display: grid; grid-template-columns: 1fr 96px 28px; gap: 8px; align-items: end; margin-top: 8px; }
.tax-row label.compact, .section-body label.compact { margin: 0; font-size: 12px; }
.plus-btn {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid #1778b5;
  background: #e7f3fb;
  color: #1778b5;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.add-section { width: 100%; padding: 12px; color: #1778b5; font-weight: 800; background: #e7f3fb; cursor: pointer; }
.paper-wrap {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  justify-content: center;
  align-items: flex-start;
  box-sizing: border-box;
  overflow-x: hidden;
  overflow-y: auto;
}
#paper-slot { width: 100%; min-width: 0; max-width: 100%; display: flex; justify-content: center; align-items: flex-start; }
.paper {
  position: relative;
  flex: 0 0 auto;
  align-self: flex-start;
  height: auto;
  width: min(360px, 100%);
  min-width: 0;
  max-width: 100%;
  min-height: 520px;
  background: #fff;
  color: #1c1c1c;
  box-shadow: 0 12px 40px rgba(16, 40, 70, 0.12);
  overflow: hidden;
  padding: 22px 16px 28px;
  font-family: "MR Register", "Courier New", Courier, monospace;
  font-size: 12px;
  line-height: 1.35;
}
.paper .wm {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  display: flex;
  flex-wrap: wrap;
  align-content: center;
  justify-content: center;
  gap: 40px 64px;
  transform: rotate(-24deg) scale(1.1);
}
.paper .wm span {
  color: rgba(80, 80, 80, 0.11);
  font-family: Montserrat, sans-serif;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.paper .sheet { position: relative; z-index: 1; min-width: 0; max-width: 100%; }
.paper [data-sid] { cursor: pointer; border-radius: 2px; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; }
.paper [data-sid].is-hot,
.paper [data-sid].is-coach {
  isolation: isolate;
  background: rgba(23, 120, 181, 0.1);
  box-shadow: inset 0 0 0 2px #1778b5;
  border-radius: 3px;
}
/* White padding in a logo or barcode is part of the picture, so it covers the
   highlight. Multiply lets that white take the blue, and clear barcode gaps do the same. */
.paper [data-sid].is-hot img,
.paper [data-sid].is-coach img {
  mix-blend-mode: multiply;
}
.paper [data-sid].is-hot .upc,
.paper [data-sid].is-coach .upc,
.paper [data-sid].is-hot .qr,
.paper [data-sid].is-coach .qr,
.paper [data-sid].is-hot .qr-img,
.paper [data-sid].is-coach .qr-img,
.paper [data-sid].is-hot .upc span.off,
.paper [data-sid].is-coach .upc span.off,
.paper [data-sid].is-hot .qr span.off,
.paper [data-sid].is-coach .qr span.off {
  background: transparent;
}
.coach-tip {
  position: absolute;
  z-index: 30;
  display: flex;
  align-items: center;
  pointer-events: auto;
  filter: drop-shadow(0 10px 22px rgba(23, 32, 51, 0.16));
}
.coach-tip.is-moving {
  animation: coach-slide 0.65s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes coach-slide {
  from { transform: translateX(-42px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
.coach-tip.is-above {
  flex-direction: column;
  align-items: flex-start;
}
.coach-tip.is-above .coach-tip-arrow {
  width: 16px;
  height: 46px;
  margin: 0 0 0 28px;
}
.coach-tip.is-above .coach-tip-arrow svg {
  width: 16px;
  height: 46px;
  transform: rotate(90deg);
}
.coach-tip-label {
  display: inline-block;
  padding: 12px 18px;
  border-radius: 999px;
  background: #fff;
  color: #172033;
  font-family: "Segoe UI", sans-serif;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  white-space: nowrap;
  box-shadow: 0 8px 24px rgba(23, 32, 51, 0.1);
}
.coach-tip-arrow {
  display: flex;
  width: 46px;
  height: 16px;
  margin-left: 2px;
  color: #2f86e6;
}
.coach-tip-arrow svg { display: block; width: 46px; height: 16px; }
.header-block.center { text-align: center; }
.header-block.left { text-align: left; }
.header-block.right { text-align: right; }
.header-block .logo { display: block; height: auto; margin: 0 auto 6px; }
.header-block .logo.is-mono { filter: grayscale(1) contrast(1.15); }
.header-block.left .logo { margin-left: 0; margin-right: auto; }
.header-block.right .logo { margin-left: auto; margin-right: 0; }
.header-block.logo-align-center .logo { margin-left: auto; margin-right: auto; }
.header-block.logo-align-left .logo { margin-left: 0; margin-right: auto; }
.header-block.logo-align-right .logo { margin-left: auto; margin-right: 0; }
.header-block.is-inline { display: flex; align-items: center; gap: 10px; }
.header-block.is-inline .header-text { flex: 1; min-width: 0; }
.header-block.is-inline .logo { width: 25%; margin: 0; flex: 0 0 auto; }
.header-block.is-logo-right { flex-direction: row-reverse; }
.paper .center { text-align: center; }
.paper .right { text-align: right; }
.paper h3 { margin: 0; font-size: 1.25em; letter-spacing: 0.04em; }
.paper .char-rule {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 8px 0;
  overflow: hidden;
  line-height: 1;
  text-align: center;
  background: none;
}
.paper .char-rule.is-chars { position: relative; height: 1.15em; }
.paper .char-rule .rule-text {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 100%;
  overflow: hidden;
  white-space: nowrap;
}
.paper .char-rule.is-solid {
  height: 1px;
  background-color: currentColor;
  margin: 10px 0;
}
.paper .char-rule.is-blank {
  background: none;
  height: 16px;
}
.rule-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 10px;
  margin-top: 14px;
}
.rule-label { font-weight: 700; color: #243246; }
.rule-styles {
  display: flex;
  margin-left: auto;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  overflow: hidden;
  background: #fff;
}
.rule-styles button {
  border: 0;
  border-right: 1px solid #d5dbe3;
  background: #fff;
  min-width: 42px;
  padding: 8px 8px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  color: #172033;
}
.rule-tools { display: flex; align-items: center; gap: 8px; min-width: 0; }
.rule-tools .rule-styles { flex: 1; min-width: 0; margin-left: 0; }
.rule-tools .rule-styles button { flex: 1; min-width: 0; padding-left: 4px; padding-right: 4px; }
.title-rule .rule-tools { flex: 1; }
.rule-width { display: flex; align-items: center; gap: 2px; flex: none; margin: 0; color: #657085; font-size: 12px; font-weight: 700; }
.rule-width input { width: 52px; height: 36px; padding: 0 6px; box-sizing: border-box; border: 1px solid #d5dbe3; border-radius: 10px; background: #fff; text-align: right; font: inherit; font-weight: 700; color: #172033; }
.rule-tools .rule-align { flex: none; }
.rule-styles button:last-child { border-right: 0; }
.rule-styles button.on { box-shadow: inset 0 0 0 2px #1778b5; }
.rule-styles .solid-sample {
  display: block;
  width: 26px;
  height: 2px;
  margin: 0 auto;
  background: #172033;
}
.rule-styles .blank-sample {
  display: block;
  width: 26px;
  height: 10px;
  margin: 0 auto;
  border: 1px dashed #9aa3b2;
  border-radius: 2px;
}
.ghost-btn {
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: #eef1f5;
  color: #172033;
  font-weight: 700;
  cursor: pointer;
}
.paper .is-invert { background: #111; color: #fff; }
.paper pre.is-invert { padding: 2px 6px; }
.paper .item-totals { margin-top: 4px; }
.paper .pair-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.paper .grid-row { display: grid; gap: 6px; }
.paper .grid-row.span-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.paper .grid-row.span-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.paper .grid-row.is-bold { font-weight: 700; }
.pair-edit { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-edit { display: grid; gap: 6px; margin-top: 8px; }
.grid-edit.span-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) 28px; }
.grid-edit.span-5 { grid-template-columns: repeat(5, minmax(0, 1fr)) 28px; }
.total-line { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 36px 36px; }
.paper .items-table { width: 100%; border-collapse: collapse; table-layout: auto; }
.paper .items-table td, .paper .items-table th { vertical-align: top; padding: 0; font-weight: inherit; }
.paper .items-table td.num, .paper .items-table th.num { white-space: nowrap; padding-left: 10px; }
.paper .items-table .wrap { white-space: pre-wrap; }
.paper .items-table .rule-cell { padding: 0; }
.paper .items-table .rule-cell .char-rule { margin: 1px 0; }
.paper .items-table td.is-indent { padding-left: 1.25em; }
.paper .is-bold { font-weight: 700; }
.paper[data-font="register"] .is-bold,
.paper[data-font="terminal"] .is-bold,
.paper[data-font="counter"] .is-bold,
.paper[data-font="storefront"] .is-bold,
.paper[data-font="clerk"] .is-bold,
.paper[data-font="vt323"] .is-bold,
.paper [data-font="register"] .is-bold,
.paper [data-font="terminal"] .is-bold,
.paper [data-font="counter"] .is-bold,
.paper [data-font="storefront"] .is-bold,
.paper [data-font="clerk"] .is-bold,
.paper [data-font="vt323"] .is-bold,
.paper[data-font="register"] .is-bold *,
.paper[data-font="terminal"] .is-bold *,
.paper[data-font="counter"] .is-bold *,
.paper[data-font="storefront"] .is-bold *,
.paper[data-font="clerk"] .is-bold *,
.paper[data-font="vt323"] .is-bold * {
  text-shadow: 0.45px 0 0 currentColor;
}
.paper [data-font="poppins"] .is-bold,
.paper [data-font="lexend"] .is-bold,
.paper [data-font="outfit"] .is-bold,
.paper [data-font="poppins"].is-bold,
.paper [data-font="lexend"].is-bold,
.paper [data-font="outfit"].is-bold,
.paper [data-font="poppins"].is-bold *,
.paper [data-font="lexend"].is-bold *,
.paper [data-font="outfit"].is-bold * {
  text-shadow: none;
}
.paper .items-table .ta-left { text-align: left; }
.paper .items-table .ta-center { text-align: center; }
.paper .items-table .ta-right { text-align: right; }
.paper .tri-row { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; align-items: start; }
.paper .tri-row span:nth-child(1) { text-align: left; }
.paper .tri-row span:nth-child(2) { text-align: center; }
.paper .tri-row span:nth-child(3) { text-align: right; }
.paper .tri-row.fit-edges { grid-template-columns: max-content minmax(0, 1fr) max-content; column-gap: 8px; }
.paper .items-table.cols-4.has-titles { table-layout: fixed; }
.paper .items-table.cols-4.has-titles th:nth-child(1),
.paper .items-table.cols-4.has-titles td:nth-child(1) { width: 34%; }
.paper .items-table.cols-4.has-titles th:nth-child(2),
.paper .items-table.cols-4.has-titles td:nth-child(2) { width: 14%; }
.paper .items-table.cols-4.has-titles th:nth-child(3),
.paper .items-table.cols-4.has-titles td:nth-child(3) { width: 26%; }
.paper .items-table.cols-4.has-titles th:nth-child(4),
.paper .items-table.cols-4.has-titles td:nth-child(4) { width: 26%; }
.paper .tri-row.fit-edges span { text-align: left; }
.paper .tri-row.fit-edges span:nth-child(1),
.paper .tri-row.fit-edges span:nth-child(3) { white-space: nowrap; }
.paper .tri-row.fit-edges span:nth-child(2) { min-width: 0; white-space: pre-wrap; }
.paper .tri-row span.ta-left { text-align: left; }
.paper .tri-row span.ta-center { text-align: center; }
.paper .tri-row span.ta-right { text-align: right; }
.tri-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 28px; gap: 6px; margin-top: 8px; }
.tri-edit input { width: 100%; }
.paper .line { display: flex; justify-content: space-between; gap: 8px; }
.paper .line.pay-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.paper .line span { min-width: 0; }
.paper .price-pair { display: inline-flex; gap: 14px; margin-left: 12px; }
.paper .price-pair span { min-width: 4.2em; text-align: right; }
.paper .line.is-center { justify-content: center; }
.paper .line.amount-row { justify-content: flex-end; gap: 16px; }
.paper .line.amount-row.is-center { justify-content: center; }
.paper .line.amount-row .amt { min-width: 4.6em; text-align: right; }
.paper .totals-line { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.paper[data-font="register"] .line.is-bold,
.paper[data-font="terminal"] .line.is-bold,
.paper[data-font="counter"] .line.is-bold,
.paper[data-font="storefront"] .line.is-bold,
.paper[data-font="clerk"] .line.is-bold,
.paper[data-font="vt323"] .line.is-bold { font-weight: 400; }
.paper .totals-label.ta-left, .paper .totals-amt.ta-left { text-align: left; }
.paper .totals-label.ta-center, .paper .totals-amt.ta-center { text-align: center; }
.paper .totals-label.ta-right, .paper .totals-amt.ta-right { text-align: right; }
.paper .fmt-center { text-align: center; }
.paper .fmt-right { text-align: right; }
.paper .fmt-left .code-block { align-items: flex-start; }
.paper .fmt-right .code-block { align-items: flex-end; }
.paper .char-rule,
.paper .upc,
.paper .qr { letter-spacing: 0; }
.paper .when { display: flex; gap: 12px; justify-content: flex-start; }
.paper .when.center { justify-content: center; }
.paper .when.right { justify-content: flex-end; }
.paper pre { margin: 0; white-space: pre-wrap; font: inherit; }
.code-block { display: flex; flex-direction: column; align-items: center; margin: 8px 0; }
.upc { display: flex; width: 100%; height: 56px; background: #fff; }
.upc span { flex: 1 1 0; height: 100%; }
.upc span.on, .qr span.on { background: #111; }
.upc span.off, .qr span.off { background: #fff; }
.qr {
  display: grid;
  width: 148px;
  height: 148px;
  padding: 8px;
  background: #fff;
  box-sizing: content-box;
}
.qr-img { display: block; height: auto; background: #fff; }
.image-block { display: flex; justify-content: center; margin: 8px 0; }
.image-block img { display: block; height: auto; max-width: 100%; }
.image-empty {
  box-sizing: border-box;
  border: 1px dashed #b7c0cc;
  border-radius: 6px;
  color: #657085;
  text-align: center;
  padding: 18px 8px;
  font-size: 12px;
}
.paper .fmt-left .image-block { justify-content: flex-start; }
.paper .fmt-right .image-block { justify-content: flex-end; }
.code-caption { letter-spacing: 0.2em; margin-top: 2px; font-size: 11px; }
.code-value { position: relative; line-height: 1.2; }
.code-note, .hint { color: #657085; font-size: 12px; font-weight: 500; margin: 4px 0 0; }
.range-value { font-weight: 700; color: #1778b5; }
.format-panel { margin-top: 14px; padding-top: 4px; border-top: 1px solid #e6ebf1; }
.rule-panel { margin-top: 14px; padding-top: 4px; border-top: 1px solid #e6ebf1; }
.pad-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.section-body .pad-row label { margin: 0; }
.rule-panel > .format-title { display: block; padding: 8px 0 2px; }
.when-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto;
  gap: 8px 10px;
  align-items: end;
  margin-top: 8px;
}
.when-grid.is-advanced {
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto auto;
  column-gap: 6px;
}
.when-grid.is-advanced .when-date { grid-column: 1; grid-row: 1; }
.when-grid.is-advanced .when-eye:nth-of-type(1),
.when-grid.is-advanced .when-date + .when-eye { grid-column: 2; grid-row: 1; }
.when-grid.is-advanced .when-time { grid-column: 3; grid-row: 1; }
.when-grid.is-advanced .when-time + .when-eye { grid-column: 4; grid-row: 1; }
.when-grid.is-advanced .ghost-btn { grid-column: 5; grid-row: 1; }
.when-grid.is-advanced .when-date-format { grid-column: 1; grid-row: 2; }
.when-grid.is-advanced .when-layout { grid-column: 3; grid-row: 2; }
.when-grid > label,
.when-grid .check-line { margin: 0; }
.when-grid .ghost-btn { margin: 0; white-space: nowrap; }
.when-eye {
  position: relative;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  background: #fff;
  color: #1778b5;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.when-eye .eye-slash { display: none; }
.when-eye.is-off { color: #9aa3b2; }
.when-eye.is-off .eye-slash { display: block; }
.format-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  margin: 0;
  padding: 8px 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  text-align: left;
}
.format-title { font-size: 15px; font-weight: 800; color: #243246; }
.format-toggle .chev { color: #8b95a5; }
.format-row { display: flex; align-items: center; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.format-row.is-text { flex-wrap: nowrap; }
.format-name { width: 52px; flex: 0 0 auto; margin: 0; font-size: 13px; font-weight: 700; color: #243246; }
.format-name.indent-name { width: auto; margin-left: 6px; }
.align-group, .indent-group, .format-size {
  display: inline-flex;
  align-items: stretch;
  border: 1px solid #d5dbe3;
  border-radius: 10px;
  overflow: hidden;
  background: #f4f7fa;
}
.align-group button, .indent-group button, .format-size button {
  width: 40px;
  height: 36px;
  border: 0;
  border-right: 1px solid #d5dbe3;
  background: transparent;
  color: #243246;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  padding: 0;
}
.align-group button:last-child, .indent-group button:last-child, .format-size button:last-child { border-right: 0; }
.align-group button.on { background: #fff; color: #1778b5; box-shadow: inset 0 0 0 1.5px #1778b5; }
.weight-group { display: inline-flex; align-items: center; padding: 3px; background: #eef1f5; border-radius: 10px; }
.weight-group button { border: 0; background: transparent; color: #172033; border-radius: 8px; height: 30px; padding: 0 12px; font: inherit; font-weight: 800; cursor: pointer; }
.weight-group button.on { background: #1778b5; color: #fff; }
.indent-count, .format-size span {
  min-width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  color: #1778b5;
  border-right: 1px solid #d5dbe3;
  background: #fff;
}
.align-ico { display: flex; flex-direction: column; justify-content: center; gap: 3px; width: 18px; height: 16px; }
.align-ico i { display: block; height: 2px; border-radius: 1px; background: currentColor; }
.align-ico.left i:nth-child(1), .align-ico.center i:nth-child(1), .align-ico.right i:nth-child(1) { width: 100%; }
.align-ico.left i:nth-child(2), .align-ico.center i:nth-child(2), .align-ico.right i:nth-child(2) { width: 62%; }
.align-ico.left i:nth-child(3), .align-ico.center i:nth-child(3), .align-ico.right i:nth-child(3) { width: 84%; }
.align-ico.center { align-items: center; }
.align-ico.right { align-items: flex-end; }
.align-ico.split { flex-direction: row; align-items: stretch; justify-content: space-between; }
.align-ico.split i { width: 2px; height: 100%; }
.indent-ico { width: 18px; height: 18px; display: inline-flex; }
.indent-ico svg { width: 18px; height: 18px; display: block; }
.format-panel input[type="color"] { width: 36px; height: 32px; padding: 2px; border-radius: 8px; }
.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(20, 24, 33, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 20;
}
.modal.is-narrow { width: min(460px, 100%); box-sizing: border-box; }
.modal.is-adder { width: min(400px, 100%); box-sizing: border-box; }
.modal.is-admin { width: min(640px, 100%); box-sizing: border-box; padding-top: 0; }
.modal.is-admin > header { position: sticky; top: 0; z-index: 2; background: #fff; margin: 0 -18px 4px; padding: 16px 18px 12px; border-bottom: 1px solid #e4e8ee; }
.modal.is-admin > header .gold-btn { margin: 0; flex: none; }
.modal textarea, .modal select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.modal textarea { min-height: 72px; resize: vertical; }
.modal .hint { margin: 6px 0 0; color: #657085; font-size: 13px; }
.faq-edit { display: grid; gap: 6px; margin-top: 8px; }
.modal .text-btn { margin-top: 8px; }
.modal {
  width: min(920px, 100%);
  max-height: calc(100vh - 80px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  padding: 18px;
}
.modal header { display: flex; justify-content: space-between; align-items: center; }
.modal h2 { margin: 0; }
.modal p { margin: 10px 0 0; color: #3d4a5c; }
.modal label { display: block; font-weight: 700; margin: 14px 0 6px; }
.modal input[type="text"] {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid #d5dbe3;
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}
.save-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 16px; }
.save-actions.is-split { justify-content: space-between; align-items: center; }
.save-actions-end { display: flex; gap: 8px; }
.danger-btn {
  border: 1px solid #e7b4b4;
  border-radius: 8px;
  background: #fff;
  color: #9d1c1c;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.chips { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0; }
.chips button { border: 0; background: transparent; font-weight: 700; cursor: pointer; color: #657085; }
.chips button.on { background: #e7f3fb; color: #1778b5; border-radius: 999px; padding: 6px 10px; }
.template-grid { grid-template-columns: repeat(4, 1fr); }
.choice {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid #e4e8ee;
  border-radius: 12px;
  background: #fff;
  padding: 14px;
  margin: 8px 0;
  cursor: pointer;
}
.choice strong { display: block; }
.choice span { color: #657085; }
.hidden { display: none !important; }
.toast {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  background: #172033;
  color: #fff;
  padding: 10px 14px;
  border-radius: 8px;
  z-index: 30;
}
.download-menu { position: relative; }
.download-menu .menu {
  position: absolute;
  right: 0;
  top: 110%;
  background: #fff;
  border: 1px solid #e4e8ee;
  border-radius: 8px;
  min-width: 140px;
  z-index: 5;
}
.download-menu .menu button { display: block; width: 100%; text-align: left; border: 0; background: #fff; padding: 8px 10px; cursor: pointer; }
.crop-back { z-index: 40; align-items: center; }
.crop-modal { width: min(560px, 100%); }
.crop-hint { margin: 8px 0 12px; color: #657085; font-size: 13px; }
.crop-stage {
  position: relative;
  height: 340px;
  border-radius: 12px;
  overflow: hidden;
  touch-action: none;
  cursor: grab;
  background:
    linear-gradient(45deg, #e6ebf1 25%, transparent 25%),
    linear-gradient(-45deg, #e6ebf1 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e6ebf1 75%),
    linear-gradient(-45deg, transparent 75%, #e6ebf1 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0;
  background-color: #f7f9fb;
}
.crop-stage:active { cursor: grabbing; }
.crop-stage img { position: absolute; max-width: none; user-select: none; -webkit-user-drag: none; }
.crop-frame {
  position: absolute;
  border: 2px solid #fff;
  box-shadow: 0 0 0 999px rgba(15, 23, 32, 0.55);
  cursor: move;
}
.crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #fff;
  border: 2px solid #1778b5;
  border-radius: 4px;
  box-sizing: border-box;
}
.crop-nw { left: -8px; top: -8px; cursor: nwse-resize; }
.crop-ne { right: -8px; top: -8px; cursor: nesw-resize; }
.crop-sw { left: -8px; bottom: -8px; cursor: nesw-resize; }
.crop-se { right: -8px; bottom: -8px; cursor: nwse-resize; }
.crop-zoom { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 10px; align-items: center; margin-top: 12px; font-weight: 800; color: #243246; }
.crop-zoom input { width: 100%; }
.crop-aspects { margin: 12px 0 0; }
.crop-aspects button { border: 1px solid transparent; padding: 6px 12px; }
.crop-modal .save-actions { margin-top: 8px; }
.crop-modal .gold-btn:disabled { opacity: 0.6; cursor: wait; }
.section-sheet {
  display: none;
}
@media (max-width: 900px) {
  .builder-page {
    height: 100vh;
    height: 100dvh;
    min-height: 0;
    overflow: hidden;
  }
  .builder-shell {
    display: flex;
    flex-direction: column;
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: hidden;
  }
  .builder-stage {
    order: -1;
    flex: 1 1 auto;
    height: auto;
    max-height: none;
    min-height: 0;
    overflow: hidden;
  }
  .builder-editor {
    flex: 0 1 auto;
    height: auto;
    max-height: 34%;
    overflow: auto;
    border-right: 0;
    border-top: 1px solid #e4e8ee;
  }
  body.section-sheet-open .builder-editor { display: none; }
  #editor-sections { display: none; }
  .paper-wrap { max-height: none; overflow: auto; }
  .builder-stage { padding: 8px 10px 16px; }
  .live-head {
    position: static;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
    padding: 8px 10px;
    margin-bottom: 8px;
  }
  .live-copy { min-width: 0; }
  .live-head h2 { font-size: 15px; margin-bottom: 0; }
  .live-head p { font-size: 12px; }
  #reset-receipt { display: none; }
  .live-head .stage-actions {
    width: 100%;
    margin-left: 0;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 6px;
  }
  .live-head .stage-actions > * { flex: 0 0 auto; min-width: 0; }
  .live-head .stage-actions button,
  .live-head .upsell-btn,
  .live-head #download-toggle {
    padding: 6px 8px;
    font-size: 12px;
  }
  .live-head .upsell-btn {
    flex: 1 1 auto;
    gap: 4px;
    border-radius: 8px;
    box-shadow: none;
  }
  .live-head .upsell-crown {
    width: 16px;
    height: 16px;
    flex-basis: 16px;
    border-radius: 4px;
    box-shadow: none;
  }
  .live-head .upsell-crown svg { width: 11px; height: 11px; }
  .coach-tip { display: none; }
  .template-grid, .thumb-row { grid-template-columns: repeat(2, 1fr); }
  .section-sheet {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 30;
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
    max-height: min(58dvh, 520px);
    padding: 8px 12px calc(12px + env(safe-area-inset-bottom));
    background: #fff;
    border-radius: 18px 18px 0 0;
    box-shadow: 0 -10px 32px rgba(16, 42, 86, 0.18);
  }
  .section-sheet[hidden] { display: none !important; }
  .section-sheet-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex: 0 0 auto;
    padding: 4px 4px 8px;
  }
  .section-sheet-bar strong { color: #102a56; font-size: 16px; }
  .section-sheet-bar button {
    border: 0;
    background: #1778b5;
    color: #fff;
    border-radius: 8px;
    padding: 8px 14px;
    font-weight: 800;
    cursor: pointer;
  }
  #section-sheet-body {
    min-height: 0;
    overflow: auto;
  }
  #section-sheet-body .section-card {
    margin: 0;
    border: 0;
    box-shadow: none;
  }
}
