:root {
  --background: #fffdf5;
  --foreground: #1e293b;
  --muted: #f1f5f9;
  --muted-foreground: #64748b;
  --accent: #8b5cf6;
  --accent-foreground: #ffffff;
  --secondary: #f472b6;
  --tertiary: #fbbf24;
  --quaternary: #34d399;
  --border: #1e293b;
  --soft-border: #e2e8f0;
  --input: #ffffff;
  --card: #ffffff;
  --ring: #8b5cf6;
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --shadow-pop: 4px 4px 0 0 var(--border);
  --shadow-pop-lg: 8px 8px 0 0 var(--border);
  --shadow-soft: 8px 8px 0 0 #e2e8f0;
  --bounce: cubic-bezier(0.34, 1.56, 0.64, 1);
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--foreground);
  background:
    radial-gradient(circle, rgba(30, 41, 59, 0.12) 1.4px, transparent 1.4px) 0 0 / 24px 24px,
    linear-gradient(135deg, rgba(251, 191, 36, 0.14), transparent 34%),
    var(--background);
}

button {
  font: inherit;
}

a {
  color: var(--accent);
  text-decoration-line: none;
  text-decoration-style: wavy;
  text-decoration-thickness: 2px;
  text-underline-offset: 4px;
  transition:
    color 160ms ease,
    text-decoration-color 160ms ease;
}

a:hover,
a:focus-visible {
  color: var(--foreground);
  text-decoration-line: underline;
  text-decoration-color: #ef4444;
}

button:focus-visible {
  outline: 3px solid var(--ring);
  outline-offset: 4px;
}

.app-shell {
  position: relative;
  z-index: 1;
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 34px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 60px;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 18px;
}

.brand-mark {
  display: grid;
  width: 74px;
  height: 74px;
  place-items: center;
  border: 3px solid var(--border);
  border-radius: 22px;
  background: var(--accent);
  box-shadow: var(--shadow-pop);
  rotate: -2deg;
}

.brand-mark span {
  display: block;
  width: 38px;
  height: 38px;
  border: 3px solid var(--border);
  border-radius: 50%;
  background:
    linear-gradient(135deg, transparent 44%, var(--border) 45% 55%, transparent 56%),
    var(--accent-foreground);
  box-shadow: inset 0 -8px 0 rgba(251, 191, 36, 0.45);
}

h1,
h2,
h3,
.panel-tab,
.total-range,
.receipt-head h2 {
  font-family: "Outfit", system-ui, sans-serif;
  letter-spacing: 0;
}

h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 900;
  line-height: 0.95;
}

.topbar p {
  margin: 8px 0 0;
  color: var(--foreground);
  font-size: 15px;
  font-weight: 700;
}

.top-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.utility-button,
.secondary-button,
.candy-button {
  min-height: 46px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-weight: 800;
  cursor: pointer;
  transition:
    transform 220ms var(--bounce),
    box-shadow 220ms var(--bounce),
    background 180ms ease;
}

.utility-button,
.secondary-button {
  padding: 0 18px;
  color: var(--foreground);
  background: var(--card);
}

.utility-button:hover,
.secondary-button:hover {
  background: var(--tertiary);
  transform: translate(-2px, -2px);
  box-shadow: var(--shadow-pop);
}

.utility-button.dark,
.secondary-button.dark {
  color: #ffffff;
  background: #070707;
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(250px, 0.88fr) minmax(520px, 1.36fr) minmax(330px, 0.95fr);
  column-gap: 24px;
  row-gap: 44px;
  align-items: start;
}

.left-stack {
  display: grid;
  gap: 44px;
}

.sticker-panel {
  position: relative;
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-pop-lg);
}

.catalog-panel,
.deployment-panel,
.quote-panel,
.summary-card,
.rule-panel {
  padding: 42px 20px 20px;
}

.panel-tab {
  position: absolute;
  top: -28px;
  left: 24px;
  z-index: 2;
  min-height: 48px;
  padding: 11px 22px;
  border: 3px solid var(--border);
  border-radius: 14px 14px 0 0;
  color: #ffffff;
  font-size: 22px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--border);
}

.panel-tab.pink {
  background: var(--secondary);
}

.panel-tab.violet {
  background: var(--accent);
}

.panel-tab.emerald {
  background: var(--quaternary);
}

.panel-tab.yellow {
  color: var(--foreground);
  background: var(--tertiary);
}

.panel-note {
  margin: 0 0 16px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.6;
}

.addon-list,
.deployment-options,
.side-stack {
  display: grid;
  gap: 44px;
}

.side-stack {
  position: sticky;
  top: 40px;
}

.line-items {
  display: grid;
}

.addon-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 54px;
  gap: 14px;
  align-items: center;
  min-width: 0;
  padding: 17px;
  border: 3px solid var(--border);
  border-radius: 14px;
  background: var(--card);
  box-shadow: 5px 5px 0 var(--accent);
  transition:
    transform 220ms var(--bounce),
    box-shadow 220ms var(--bounce);
}

.addon-card:nth-child(2) {
  box-shadow: 5px 5px 0 var(--secondary);
}

.addon-card:nth-child(3) {
  box-shadow: 5px 5px 0 var(--tertiary);
}

.addon-card:nth-child(4) {
  box-shadow: 5px 5px 0 var(--quaternary);
}

.addon-card.selected {
  background: #fff8db;
  transform: rotate(-1deg);
}

.addon-card:hover {
  transform: rotate(-1deg) scale(1.015);
}

.addon-card h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  line-height: 1.22;
}

.addon-card p,
.line-main p {
  margin: 7px 0 0;
  color: var(--muted-foreground);
  font-size: 13px;
  font-weight: 500;
  line-height: 1.55;
}

.price-chip {
  display: inline-flex;
  margin-top: 11px;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  color: var(--foreground);
  background: #d9f99d;
  font-size: 13px;
  font-weight: 900;
}

.toggle-button,
.remove-button {
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  border: 3px solid var(--border);
  border-radius: 50%;
  color: #ffffff;
  background: var(--accent);
  box-shadow: var(--shadow-pop);
  font-size: 28px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  transition:
    transform 220ms var(--bounce),
    box-shadow 220ms var(--bounce),
    background 180ms ease;
}

.toggle-button:hover,
.remove-button:hover {
  transform: translate(-2px, -2px);
  box-shadow: 6px 6px 0 var(--border);
}

.toggle-button:active,
.remove-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--border);
}

.toggle-button.selected {
  color: var(--foreground);
  background: var(--tertiary);
}

.deployment-option {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  width: 100%;
  padding: 16px;
  border: 3px solid var(--border);
  border-radius: 18px;
  color: var(--foreground);
  background: var(--card);
  box-shadow: 5px 5px 0 var(--soft-border);
  text-align: left;
  cursor: pointer;
  transition:
    transform 220ms var(--bounce),
    box-shadow 220ms var(--bounce),
    background 180ms ease;
}

.deployment-option:hover {
  transform: translate(-2px, -2px);
  box-shadow: 7px 7px 0 var(--border);
}

.deployment-option.selected {
  background: #fff8db;
  box-shadow: 5px 5px 0 var(--tertiary);
}

.radio-mark {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border: 3px solid var(--border);
  border-radius: 50%;
  background: #ffffff;

  ~span {
    display: grid;
    justify-items: start;
  }
}

.deployment-option.selected .radio-mark::after {
  content: "";
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
}

.deployment-option strong,
.deployment-option small,
.deployment-option em {
  display: inline-block;
}

.deployment-option strong {
  font-size: 17px;
  font-weight: 900;
  line-height: 1.25;
}

.deployment-option small {
  margin-top: 6px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

.deployment-option em {
  font-style: normal;
  /* margin-top: 10px;
  color: var(--accent);
  font-size: 13px;
  font-style: normal;
  font-weight: 900; */
}

.quote-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.quote-heading.compact {
  margin-top: 18px;
}

.quote-heading.compact:has(~.add-on-rows:empty),
.add-on-rows:empty~.section-divider {
  display: none;
}

.quote-heading h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.count-badge {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  padding: 4px 16px;
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  background: #ffffff;
  font-size: 13px;
  font-weight: 900;
}

.line-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) minmax(100px, auto) 54px;
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 2px solid var(--soft-border);
}

.line-item:last-child {
  border-bottom: 0;
}

.line-index {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--muted);
  font-weight: 900;
}

.line-main h3 {
  margin: 0;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.line-price {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

.line-price:not(.price-chip) {
  color: var(--accent);
  font-size: 14px;
  font-weight: 900;
  text-align: right;
  white-space: nowrap;
}

.toggle-button {
  padding-bottom: 10px;
}

.remove-button {
  width: 40px;
  height: 40px;
  color: var(--foreground);
  background: #ffffff;
  box-shadow: none;
  font-size: 20px;
  padding-bottom: 4px;
}

.locked-dot {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 2px solid var(--soft-border);
  border-radius: 50%;
  background: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.section-divider,
.receipt-divider {
  height: 0;
  border-top: 2px dashed var(--border);
}

.section-divier {
  margin: 18px 0;
}

.receipt-divider {
  margin: 12px 0;
}

/* .empty-state::before {
  content: "尚未加入 Add-ons。左側貼紙卡片可以直接加入。";
  display: block;
  padding: 18px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: rgba(251, 191, 36, 0.14);
  font-weight: 800;
} */

.empty-state .line-item {
  display: none;
}

.summary-card h2,
.rule-panel h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 900;
}

.total-range {
  margin: 12px 0 14px;
  font-size: clamp(30px, 2.1vw, 40px);
  font-weight: 900;
  line-height: 1.02;
}

.total-range span {
  display: inline;
}

.estimate-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin-top: 14px;
  padding: 13px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-md);
  background: rgba(52, 211, 153, 0.12);
}

.estimate-note p {
  margin: 0;
  color: var(--foreground);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.55;
}

.summary-message,
.rule-message li {
  color: var(--foreground);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.65;
}

.rule-message li {
  margin-top: 0.5em;
}

.summary-message {
  padding: 13px;
  border: 2px solid rgba(52, 211, 153, 0.85);
  border-radius: var(--radius-md);
  background: rgba(52, 211, 153, 0.12);
}

.warning .summary-message {
  border-color: var(--tertiary);
  background-color: #fff8db;
}

.candy-button {
  display: flex;
  width: 100%;
  min-height: 68px;
  align-items: center;
  justify-content: space-between;
  margin-top: 24px;
  padding: 0 14px 0 24px;
  color: #ffffff;
  background: var(--accent);
  box-shadow: var(--shadow-pop);
  font-size: 19px;
}

.candy-button:hover {
  transform: translate(-3px, -3px);
  box-shadow: 7px 7px 0 var(--border);
}

.candy-button:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 0 var(--border);
}

.button-icon {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 2px solid var(--border);
  border-radius: 50%;
  color: var(--foreground);
  background: #ffffff;
}

.rule-panel {
  box-shadow: 6px 6px 0 var(--tertiary);
}

.rule-panel.warning {
  background: #fff7ed;
  box-shadow: 6px 6px 0 var(--secondary);
}

.rule-panel.danger {
  background: #ffe4e6;
  box-shadow: 6px 6px 0 var(--secondary);
}

.rule-panel ul {
  margin: 12px 0 0;
  padding-left: 18px;
}

.receipt-dialog {
  width: min(560px, calc(100% - 28px));
  max-height: min(900px, 88dvh);
  margin: auto;
  padding: 0;
  border: 0;
  color: inherit;
  background: transparent;
  overflow: visible;
  opacity: 0;
  transform: translateY(18px) scale(0.92) rotate(-1.5deg);
  transition:
    opacity 150ms ease,
    transform 300ms var(--bounce),
    overlay 300ms allow-discrete,
    display 300ms allow-discrete;
}

.receipt-dialog::backdrop {
  background-color: rgba(30, 41, 59, 0);
  background-image: radial-gradient(circle, rgba(251, 191, 36, 0.18) 1.5px, transparent 1.5px);
  background-position: 0 0;
  background-size: 24px 24px;
  backdrop-filter: blur(0);
  transition:
    background-color 220ms ease,
    backdrop-filter 220ms ease,
    overlay 300ms allow-discrete,
    display 300ms allow-discrete;
}

.receipt-dialog[open] {
  opacity: 1;
  transform: translateY(0) scale(1) rotate(0);
  transition:
    opacity 240ms ease,
    transform 300ms var(--bounce),
    overlay 300ms allow-discrete,
    display 300ms allow-discrete;
}

.receipt-dialog[open]::backdrop {
  background-color: rgba(30, 41, 59, 0.72);
  backdrop-filter: blur(4px);
}

@starting-style {
  .receipt-dialog[open] {
    opacity: 0;
    transform: translateY(18px) scale(0.92) rotate(-1.5deg);
  }

  .receipt-dialog[open]::backdrop {
    background-color: rgba(30, 41, 59, 0);
    backdrop-filter: blur(0);
  }
}

.receipt-shell {
  position: relative;
  display: block;
  max-height: min(900px, 88dvh);
  padding: 70px 20px 22px;
  /* border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle, rgba(30, 41, 59, 0.08) 1.3px, transparent 1.3px) 0 0 / 18px 18px,
    linear-gradient(135deg, rgba(244, 114, 182, 0.18), transparent 46%),
    rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-pop-lg); */
  overflow: auto;
}

.receipt-tab {
  display: inline-flex;
  position: absolute;
  top: 14px;
  left: 22px;
  z-index: 3;
  padding: 8px 14px;
  border: 3px solid var(--border);
  border-radius: 14px;
  background: var(--tertiary);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 4px 4px 0 var(--border);
  rotate: -2deg;
}

.receipt-printer {
  position: relative;
  display: grid;
  justify-items: center;
  align-items: start;
  padding-top: 4px;
}

.printer-body {
  position: relative;
  width: min(100%, 470px);
  height: 142px;
  border: 3px solid var(--border);
  border-radius: 28px 28px 24px 24px;
  background:
    radial-gradient(circle at 22% 24%, rgba(255, 255, 255, 0.24), transparent 30%),
    linear-gradient(180deg, #9f7aea 0%, #7c3aed 58%, #5b21b6 100%);
  box-shadow:
    inset 0 -12px 0 rgba(30, 41, 59, 0.18),
    8px 8px 0 var(--border);
}

.printer-body::before,
.printer-body::after {
  content: "";
  position: absolute;
  top: 48px;
  z-index: -1;
  width: 68px;
  height: 86px;
  border: 3px solid var(--border);
  background: #172033;
  box-shadow: inset 0 -18px 0 rgba(255, 255, 255, 0.08);
}

.printer-body::before {
  left: -48px;
  border-radius: 28px 0 0 42px;
}

.printer-body::after {
  right: -48px;
  border-radius: 0 28px 42px 0;
}

.printer-screen {
  width: min(78%, 340px);
  height: 34px;
  margin: 20px auto 0;
  border: 3px solid var(--border);
  border-radius: var(--radius-full);
  background:
    linear-gradient(180deg, #f8fafc, #cbd5e1);
  box-shadow:
    inset 0 -6px 0 rgba(30, 41, 59, 0.16),
    0 4px 0 rgba(30, 41, 59, 0.38);
}

.printer-slot {
  position: absolute;
  right: 50px;
  bottom: 27px;
  left: 50px;
  height: 17px;
  border: 3px solid var(--border);
  border-radius: var(--radius-full);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.2), transparent 34%),
    #111827;
  box-shadow:
    0 4px 0 rgba(255, 255, 255, 0.34),
    inset 0 -5px 0 rgba(59, 130, 246, 0.18);
}

.receipt-paper-wrapper {
  --receipt-tear-depth: 16px;
  --receipt-tear-step: 22px;
  --receipt-tear-radius: 11px;
  position: relative;
  z-index: 2;
  width: calc(min(100%, 470px) - 120px);
  /* max-width: 360px; */
  margin-top: -40px;
  overflow: hidden;
  background: transparent;
  filter:
    drop-shadow(0 8px 0 rgba(30, 41, 59, 0.2)) drop-shadow(0 18px 18px rgba(30, 41, 59, 0.28));
}

.receipt-paper {
  position: relative;
  z-index: 1;
  width: 100%;
  padding: 26px 24px 42px;
  border: 0;
  border-right: 2px solid rgba(17, 24, 39, 0.3);
  border-left: 2px solid rgba(17, 24, 39, 0.3);
  background:
    repeating-linear-gradient(90deg, transparent 0 18px, rgba(30, 41, 59, 0.035) 18px 19px),
    #fbfaf5;
  box-shadow: 0 0 0 1px rgba(17, 24, 39, 0.08);
  color: #101010;
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  transform-origin: top center;
  will-change: clip-path, transform, opacity;
  -webkit-mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--receipt-tear-depth)) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M0 0H22V16H0Z M11 16m-11 0a11 11 0 1 0 22 0a11 11 0 1 0 -22 0Z'/%3E%3C/svg%3E") bottom / var(--receipt-tear-step) var(--receipt-tear-depth) repeat-x;
  mask:
    linear-gradient(#000 0 0) top / 100% calc(100% - var(--receipt-tear-depth)) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 22 16'%3E%3Cpath fill='%23000' fill-rule='evenodd' d='M0 0H22V16H0Z M11 16m-11 0a11 11 0 1 0 22 0a11 11 0 1 0 -22 0Z'/%3E%3C/svg%3E") bottom / var(--receipt-tear-step) var(--receipt-tear-depth) repeat-x;
}

.receipt-dialog[open] .receipt-paper {
  animation: receiptPrintOut 1400ms cubic-bezier(0.2, 0.84, 0.28, 1) 120ms both;
}

.receipt-head {
  text-align: center;
}

.receipt-head h2 {
  margin: 0;
  font-size: 34px;
  font-style: italic;
  font-weight: 700;
}

.receipt-head p {
  margin: 16px 0 -4px;
  color: #666;
  font-size: 12px;
  letter-spacing: 0.16em;
  display: flex;
  justify-content: space-between;
}

.receipt-items {
  display: grid;
  gap: 9px;
}

.receipt-items .included {
  color: #aaa;
  font-size: 0.8em;
}

.receipt-row,
.receipt-total {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: baseline;
}

.receipt-row span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.receipt-row span:last-child,
.receipt-total strong {
  font-weight: 900;
  white-space: nowrap;
}

.receipt-total {
  font-size: 15px;
}

.receipt-meta {
  display: grid;
  gap: 12px;
  margin: 20px 0 0;
}

.receipt-meta div {
  display: grid;
  gap: 4px;
}

.receipt-meta dt {
  color: #aaa;
  font-size: 13px;
  letter-spacing: 0.16em;
}

.receipt-meta dd {
  margin: 0;
  font-size: 13px;
}

.receipt-footer {
  margin: 22px 0 8px;
  text-align: center;
  font-size: 12px;
  letter-spacing: 0.08em;
  font-weight: 700;
}

.receipt-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 24px;
}

.print-receipt-mount {
  display: none;
}

@keyframes receiptPrintOut {
  0% {
    transform: translateY(-100%);
  }

  28% {
    transform: translateY(-60%);
  }

  62% {
    transform: translateY(-40%);
  }

  100% {
    transform: translateY(0);
  }
}

.contact-footer {
  display: grid;
  grid-template-columns: auto auto 1fr;
  gap: 16px;
  align-items: center;
  margin-top: 32px;
  padding: 18px;
  border: 3px solid var(--border);
  border-radius: var(--radius-lg);
  background: #ffffff;
  box-shadow: var(--shadow-pop);
}

.contact-footer::before {
  content: "";
  display: block;
  width: 44px;
  height: 44px;
  border: 3px solid var(--border);
  border-radius: 14px 14px 14px 2px;
  background:
    radial-gradient(circle, var(--border) 2px, transparent 2.5px) 5px 5px / 12px 12px,
    linear-gradient(135deg, transparent 43%, #ffffff 44% 56%, transparent 57%),
    var(--tertiary);
  box-shadow: 4px 4px 0 var(--secondary);
  rotate: -7deg;
}

.contact-kicker {
  display: block;
  margin-bottom: 5px;
  color: var(--muted-foreground);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.info-dot {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 3px solid var(--border);
  border-radius: 50%;
  background: var(--quaternary);
  font-family: "Outfit", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 900;
  font-style: italic;
}

.contact-footer p {
  margin: 0;
  font-size: 15px;
  font-weight: 900;
  line-height: 1.5;
}

.contact-footer ul {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-footer li {
  padding: 8px 12px;
  border: 2px dashed var(--border);
  border-radius: var(--radius-full);
  font-size: 12px;
  font-weight: 900;
}

.shape {
  position: fixed;
  z-index: 0;
  pointer-events: none;
}

.shape-violet {
  top: -80px;
  right: -72px;
  width: 220px;
  height: 220px;
  border: 3px solid var(--border);
  border-radius: 42px 42px 90px 42px;
  background:
    radial-gradient(circle, #070707 2px, transparent 2px) 0 0 / 18px 18px,
    var(--accent);
  rotate: 9deg;
}

.shape-pink {
  bottom: 70px;
  left: -130px;
  width: 350px;
  height: 350px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #070707 2px, transparent 2px) 0 0 / 18px 18px,
    var(--secondary);
}

.shape-emerald {
  top: 72px;
  left: 54%;
  width: 0;
  height: 0;
  border-right: 18px solid transparent;
  border-bottom: 32px solid var(--quaternary);
  border-left: 18px solid transparent;
  rotate: -20deg;
}

.shape-yellow {
  top: 72px;
  left: 47%;
  width: 48px;
  height: 48px;
  border: 3px solid var(--border);
  border-radius: 0 100% 0 0;
  background: var(--tertiary);
  rotate: 12deg;
}

@media (max-width: 1240px) {
  .quote-layout {
    grid-template-columns: minmax(280px, 0.9fr) minmax(520px, 1.35fr);
  }

  .side-stack {
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .rule-panel {
    grid-column: auto;
  }

  .receipt-shell {
    grid-column: 1 / -1;
  }
}

@media (max-width: 860px) {
  .app-shell {
    width: min(100% - 28px, 720px);
    padding-top: 18px;
  }

  .topbar,
  .brand-block,
  .quote-layout,
  .side-stack,
  .contact-footer {
    grid-template-columns: 1fr;
  }

  .topbar,
  .brand-block {
    display: grid;
  }

  .brand-mark {
    width: 58px;
    height: 58px;
  }

  .top-actions {
    justify-content: stretch;
  }

  .utility-button {
    flex: 1 1 140px;
  }

  .quote-layout {
    display: grid;
    gap: 44px;
  }

  .sticker-panel {
    box-shadow: 4px 4px 0 var(--border);
  }

  .line-item {
    grid-template-columns: 34px minmax(0, 1fr) 42px;
  }

  .line-price {
    grid-column: 2 / -1;
    text-align: left;
  }

  .receipt-dialog {
    width: min(390px, calc(100% - 20px));
  }

  .receipt-shell {
    padding: 62px 16px 18px;
  }

  .printer-body {
    width: min(100%, 330px);
    height: 116px;
  }

  .printer-body::before,
  .printer-body::after {
    top: 42px;
    width: 46px;
    height: 68px;
  }

  .printer-body::before {
    left: -28px;
  }

  .printer-body::after {
    right: -28px;
  }

  .printer-screen {
    height: 28px;
    margin-top: 16px;
  }

  .printer-slot {
    right: 34px;
    bottom: 22px;
    left: 34px;
  }

  .printer-label {
    top: 78px;
    right: 32px;
  }

  .receipt-paper-wrapper {
    width: min(86%, 286px);
  }

  .receipt-paper {
    padding: 24px 16px 22px;
  }

  .receipt-actions,
  .contact-footer {
    display: grid;
  }

  .contact-footer ul {
    justify-content: flex-start;
  }

  .shape-emerald,
  .shape-yellow {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition: none !important;
    animation: none !important;
  }
}

@media print {
  @page {
    margin: 12mm;
  }

  html,
  body {
    margin: 0;
    background: #ffffff;
  }

  body * {
    visibility: hidden;
  }

  #receiptDialog {
    display: none !important;
  }

  .print-receipt-mount,
  .print-receipt-mount * {
    visibility: visible;
  }

  .print-receipt-mount {
    display: block !important;
    position: absolute;
    top: 0;
    left: 50%;
    width: min(100%, 420px);
    max-width: 420px;
    transform: translateX(-50%);
  }

  .print-receipt-mount .receipt-paper {
    position: static !important;
    width: 100%;
    margin: 0;
    border: 1px solid #111111;
    background: #ffffff;
    box-shadow: none;
    filter: none;
    transform: none !important;
    clip-path: none;
    animation: none;
    -webkit-mask: none;
    mask: none;
  }
}