:root {
  --ink: #172028;
  --muted: #65717a;
  --line: #dce3df;
  --paper: #f7f5ed;
  --panel: #fffdf6;
  --dark: #16212b;
  --green: #56d6a3;
  --gold: #f6c247;
  --soft: #eaf0e9;
  --radius: 8px;
}

/* Dark liquid-glass theme */
:root { color-scheme: dark; --ink:#f5f7f8; --muted:#a7b0b8; --line:rgba(255,255,255,.13); --paper:#090b0d; --panel:rgba(27,31,35,.66); --dark:rgba(14,17,20,.82); --green:#70e1c1; --gold:#efc875; --soft:rgba(255,255,255,.07); --glass-shadow:0 18px 60px rgba(0,0,0,.34),inset 0 1px 0 rgba(255,255,255,.08); }
html { background:#090b0d; }
body { background-color:var(--paper); background-image:linear-gradient(rgba(112,225,193,.035) 1px,transparent 1px),linear-gradient(90deg,rgba(112,225,193,.035) 1px,transparent 1px); background-size:64px 64px; background-attachment:fixed; }
body::before { content:""; position:fixed; inset:0; z-index:-1; pointer-events:none; background:linear-gradient(135deg,rgba(112,225,193,.09),transparent 30%,transparent 68%,rgba(239,200,117,.07)); }
::selection { background:rgba(112,225,193,.3); color:#fff; }
.site-nav { position:sticky; top:12px; z-index:20; }
.site-nav a,.contact-box,.launch-grid article,.control-panel,.summary-card,.table-panel,.addon-panel,.script-panel,.intake-panel,.workflow-panel,.poster-preview,.policy-grid article { border-color:var(--line); background:var(--panel); box-shadow:var(--glass-shadow); -webkit-backdrop-filter:blur(24px) saturate(135%); backdrop-filter:blur(24px) saturate(135%); }
.site-nav a { background:rgba(18,22,25,.72); transition:border-color 180ms ease,background 180ms ease,transform 180ms ease; }
.site-nav a:hover { border-color:rgba(112,225,193,.62); background:rgba(41,49,51,.84); transform:translateY(-2px); }
.topbar { min-height:250px; border-color:var(--line); }
.eyebrow { border:1px solid rgba(239,200,117,.42); background:rgba(239,200,117,.12); color:var(--gold); box-shadow:inset 0 1px 0 rgba(255,255,255,.08); }
h1 { max-width:820px; color:#fff; text-shadow:0 8px 32px rgba(0,0,0,.42); }
.booking-entry,.terms-check a,.back-link:hover { color:var(--green); }
.launch-grid article,.package-card,.addon-item,.policy-grid article,.workflow-list li { transition:transform 200ms ease,border-color 200ms ease,background 200ms ease,box-shadow 200ms ease; }
.launch-grid article:hover,.policy-grid article:hover { transform:translateY(-3px); border-color:rgba(112,225,193,.32); }
.package-card,.addon-item,.workflow-list li,.segment,.ghost-action,select,input,textarea { background:rgba(255,255,255,.055); color:var(--ink); }
.package-card:hover,.addon-item:hover { transform:translateY(-2px); border-color:rgba(112,225,193,.5); background:rgba(112,225,193,.075); }
.package-card.active { border-color:var(--green); background:rgba(112,225,193,.1); box-shadow:inset 0 0 0 1px var(--green),0 18px 42px rgba(0,0,0,.28); }
.package-price,.summary-top strong,.booking-summary>strong { color:var(--green); }
.summary-card { border:1px solid rgba(112,225,193,.2); background:rgba(12,16,18,.78); box-shadow:var(--glass-shadow); -webkit-backdrop-filter:blur(28px) saturate(140%); backdrop-filter:blur(28px) saturate(140%); }
.public-cta { border:1px solid rgba(239,200,117,.18); background:rgba(239,200,117,.08); }
.summary-booking-link,.primary-action { background:var(--green); color:#07110e; box-shadow:0 10px 30px rgba(112,225,193,.18),inset 0 1px 0 rgba(255,255,255,.52); transition:transform 180ms ease,filter 180ms ease,box-shadow 180ms ease; }
.summary-booking-link:hover,.primary-action:hover { filter:brightness(1.07); transform:translateY(-2px); box-shadow:0 14px 38px rgba(112,225,193,.26),inset 0 1px 0 rgba(255,255,255,.58); }
.summary-booking-link:active,.primary-action:active,.ghost-action:active { transform:scale(.985); }
.poster-preview img { opacity:.88; }
.segment button.active { background:rgba(112,225,193,.18); color:var(--green); box-shadow:inset 0 0 0 1px rgba(112,225,193,.3); }
.price-table tr { transition:background 160ms ease; }
.price-table tbody tr:hover { background:rgba(112,225,193,.055); }
.rush-card { border:1px solid var(--line); background:var(--soft); }
.switch span { background:#3d444a; }
.switch input:checked+span { background:var(--green); }
.toast { border:1px solid var(--line); background:rgba(20,24,27,.86); box-shadow:var(--glass-shadow); -webkit-backdrop-filter:blur(20px); backdrop-filter:blur(20px); }
@media (prefers-reduced-motion:no-preference) { .summary-card,.contact-box { animation:glass-arrive 520ms cubic-bezier(.2,.8,.2,1) both; } @keyframes glass-arrive { from { opacity:0; transform:translateY(10px); } to { opacity:1; transform:translateY(0); } } }
@media (max-width:560px) { body { background-size:44px 44px; } .topbar { min-height:0; } .site-nav { top:6px; } }

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--paper);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

.app-shell {
  min-height: 100vh;
  padding: 24px;
}

.workspace {
  width: min(1240px, 100%);
  margin: 0 auto;
}

.site-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  padding-top: 10px;
}

.site-nav a {
  min-height: 38px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.site-nav a:hover {
  border-color: var(--ink);
}

.topbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 22px;
  border-bottom: 1px solid var(--line);
}

.launch-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 20px;
}

.launch-grid article {
  min-height: 112px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.launch-grid strong {
  display: block;
  margin-bottom: 8px;
  font-size: 17px;
}

.launch-grid span {
  color: var(--muted);
  line-height: 1.55;
}

.eyebrow {
  display: inline-flex;
  margin: 0 0 12px;
  padding: 7px 12px;
  border-radius: 999px;
  background: var(--gold);
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  letter-spacing: 0;
}

.subline {
  margin-top: 12px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
}

h2 {
  font-size: 22px;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  font-size: 18px;
}

.contact-box {
  min-width: 220px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.contact-box span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.contact-box strong {
  display: block;
  margin-top: 5px;
  font-size: 20px;
}

.booking-entry {
  display: inline-block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  text-decoration: none;
}

.booking-entry:hover {
  text-decoration: underline;
}

.quote-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr);
  gap: 20px;
  margin-top: 20px;
}

.control-panel,
.summary-card,
.table-panel,
.addon-panel,
.script-panel,
.intake-panel,
.workflow-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.control-panel,
.table-panel,
.addon-panel,
.script-panel,
.intake-panel,
.workflow-panel {
  padding: 18px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.section-head span {
  color: var(--muted);
  font-size: 14px;
}

#selectedBadge {
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--soft);
  color: var(--ink);
  font-weight: 700;
}

.package-list {
  display: grid;
  gap: 12px;
}

.package-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: left;
  cursor: pointer;
}

.package-card.active {
  border-color: var(--ink);
  background: #f1f7ef;
  box-shadow: inset 0 0 0 2px var(--ink);
}

.package-card strong {
  display: block;
  margin-bottom: 7px;
  font-size: 24px;
}

.package-check {
  display: inline-grid;
  width: 22px;
  height: 22px;
  margin: 0 8px 8px 0;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.07);
}

.package-check::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: inherit;
  background: transparent;
}

.package-card.active .package-check {
  border-color: var(--green);
  background: rgba(112, 225, 193, 0.16);
  box-shadow: inset 0 0 0 1px rgba(112, 225, 193, 0.34);
}

.package-card.active .package-check::before {
  background: var(--green);
}

.package-card p {
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}

.package-price {
  align-self: center;
  min-width: 150px;
  text-align: right;
  font-size: 28px;
  font-weight: 800;
}

.field-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 14px;
}

.field-row label {
  color: var(--muted);
  font-size: 15px;
}

select,
input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
}

select,
input {
  height: 44px;
  padding: 0 12px;
}

.summary-panel {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.summary-card {
  padding: 20px;
  background: var(--dark);
  color: #fffdf6;
}

.summary-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: baseline;
}

.summary-top span {
  color: #c8d4d0;
}

.summary-top strong {
  color: var(--green);
  font-size: 48px;
  line-height: 1;
}

.summary-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 16px 0;
}

.summary-meta span {
  padding: 7px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #e7eeeb;
  font-size: 14px;
}

.summary-lines {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  border-bottom: 1px solid rgba(255, 255, 255, 0.16);
}

.receipt-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.receipt-head,
.receipt-line {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) 58px 84px 92px;
  gap: 10px;
  align-items: center;
}

.receipt-head {
  color: #9facaa;
  font-size: 12px;
}

.receipt-head span:not(:first-child),
.receipt-line span,
.receipt-line em {
  text-align: right;
}

.receipt-line {
  min-height: 38px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.13);
}

.receipt-line strong {
  min-width: 0;
  color: #fffdf6;
  font-size: 14px;
  overflow-wrap: anywhere;
}

.receipt-line span {
  color: #c8d4d0;
  font-size: 13px;
}

.receipt-line em {
  color: var(--green);
  font-style: normal;
  font-weight: 800;
}

.receipt-rush {
  margin: 14px 0 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.055);
}

.receipt-rush h3 {
  font-size: 15px;
}

.summary-line {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  color: #d7dfdc;
}

.summary-line dd {
  margin: 0;
  color: #fffdf6;
  font-weight: 700;
}

.deposit-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 16px 0;
}

.deposit-line span {
  color: #c8d4d0;
}

.deposit-line strong {
  font-size: 24px;
}

.public-cta {
  display: grid;
  gap: 6px;
  margin-top: 16px;
  padding: 14px;
  border-radius: var(--radius);
  background: rgba(246, 194, 71, 0.12);
  color: #fffdf6;
}

.public-cta strong {
  color: var(--gold);
}

.public-cta span {
  color: #d7dfdc;
  line-height: 1.5;
}

.summary-booking-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  margin-top: 8px;
  border-radius: var(--radius);
  background: var(--gold);
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}

.reference-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.reference-row strong {
  display: block;
  margin-bottom: 4px;
}

.reference-row span {
  color: var(--muted);
  font-size: 13px;
}

.price-dialog {
  width: min(1120px, calc(100vw - 28px));
  max-height: min(820px, calc(100vh - 42px));
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius);
  background: rgba(12, 16, 18, 0.92);
  color: var(--ink);
  box-shadow: var(--glass-shadow);
  -webkit-backdrop-filter: blur(28px) saturate(145%);
  backdrop-filter: blur(28px) saturate(145%);
  overflow: hidden;
}

.price-dialog::backdrop {
  background: rgba(0, 0, 0, 0.58);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}

.price-dialog-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}

.price-dialog-bar h2 {
  font-size: 24px;
}

.price-dialog-panel {
  max-height: calc(min(820px, 100vh - 42px) - 72px);
  padding: 20px;
  overflow: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.admin-only,
body.admin-mode .public-only {
  display: none !important;
}

body.admin-mode .admin-only {
  display: revert !important;
}

body.admin-mode section.admin-only {
  display: block !important;
}

body.admin-mode .field-row.admin-only {
  display: grid !important;
}

body.admin-mode button.admin-only,
body.admin-mode .public-cta.admin-only {
  display: block !important;
}

.primary-action,
.ghost-action,
.segment button {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 800;
}

.primary-action {
  width: 100%;
  height: 48px;
  background: var(--gold);
  color: var(--ink);
}

.ghost-action {
  height: 40px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
}

.poster-preview {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: #fff;
}

.poster-preview img {
  display: block;
  width: 100%;
  max-height: 560px;
  object-fit: cover;
  object-position: top;
}

.detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  margin-top: 20px;
}

.segment {
  display: inline-grid;
  grid-template-columns: repeat(3, 1fr);
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.segment button {
  height: 34px;
  padding: 0 13px;
  background: transparent;
  color: var(--muted);
}

.segment button.active {
  background: var(--dark);
  color: #fff;
}

.price-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
}

.price-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

.price-table th,
.price-table td {
  padding: 15px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.price-table th {
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
}

.price-table td:first-child {
  font-weight: 800;
}

.price-table td:nth-child(2) {
  white-space: nowrap;
  font-weight: 800;
}

.addon-list {
  display: grid;
  gap: 10px;
}

.addon-item {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

.addon-item input {
  width: 18px;
  height: 18px;
}

.addon-item strong {
  font-size: 16px;
}

.addon-item span {
  color: var(--muted);
  font-size: 14px;
}

.addon-price {
  font-weight: 800;
}

.rush-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 14px;
  padding: 14px;
  border-radius: var(--radius);
  background: var(--soft);
}

.rush-card p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 14px;
}

.switch {
  position: relative;
  display: inline-block;
  width: 54px;
  height: 30px;
}

.switch input {
  position: absolute;
  opacity: 0;
}

.switch span {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: #aeb9b3;
  transition: 0.18s ease;
}

.switch span::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  transition: 0.18s ease;
}

.switch input:checked + span {
  background: var(--green);
}

.switch input:checked + span::after {
  transform: translateX(24px);
}

.script-panel {
  margin-top: 20px;
}

.policy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.policy-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.policy-grid p {
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.6;
}

#salesScript,
#intakeOutput,
#clientNotes {
  display: block;
  padding: 14px;
  resize: vertical;
  line-height: 1.7;
}

#salesScript {
  min-height: 158px;
}

.ops-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
  margin-top: 20px;
}

body.admin-mode .ops-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.intake-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.intake-form label {
  display: grid;
  gap: 7px;
}

.intake-form label span {
  color: var(--muted);
  font-size: 14px;
}

.intake-form .wide {
  grid-column: 1 / -1;
}

#clientNotes {
  min-height: 94px;
}

.compact-head {
  margin-top: 18px;
}

#intakeOutput {
  min-height: 210px;
}

.workflow-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.workflow-list li {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-list strong {
  color: var(--ink);
}

.workflow-list span {
  color: var(--muted);
  line-height: 1.5;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 12px 16px;
  border-radius: var(--radius);
  background: var(--dark);
  color: #fff;
  opacity: 0;
  pointer-events: none;
  transform: translateY(8px);
  transition: 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 920px) {
  .app-shell {
    padding: 14px;
  }

  .topbar,
  .quote-grid,
  .detail-grid,
  .ops-grid,
  .launch-grid {
    grid-template-columns: 1fr;
    min-width: 0;
  }

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

  .topbar {
    display: grid;
    align-items: start;
  }

  .contact-box {
    min-width: 0;
  }

  .package-card {
    grid-template-columns: 1fr;
  }

  .package-price {
    text-align: left;
  }

  .poster-preview img {
    max-height: 360px;
  }

  .field-row {
    grid-template-columns: 1fr;
    gap: 7px;
  }

  .intake-form {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .section-head {
    align-items: start;
    flex-direction: column;
  }

  .summary-top {
    display: grid;
  }

  .summary-top strong {
    font-size: 42px;
  }

  .segment {
    width: 100%;
  }
}

/* Service catalog estimator */
.service-category {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.045);
  overflow: hidden;
}

.service-category-toggle {
  display: flex;
  width: 100%;
  min-height: 78px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.service-category-toggle strong {
  display: block;
  margin-bottom: 5px;
  font-size: 22px;
}

.service-category-toggle small {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.service-category-toggle em {
  flex: 0 0 auto;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.service-sublist {
  display: grid;
  gap: 10px;
  padding: 0 12px 12px;
}

.service-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 112px;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.service-item.active {
  border-color: rgba(112, 225, 193, 0.64);
  background: rgba(112, 225, 193, 0.1);
  box-shadow: inset 0 0 0 1px rgba(112, 225, 193, 0.26);
}

.service-item-check {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.service-item-check input {
  width: 18px;
  height: 18px;
}

.service-item-check strong {
  display: block;
  margin-bottom: 4px;
  font-size: 17px;
}

.service-item-check small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.service-item-price {
  color: var(--green);
  white-space: nowrap;
}

.quantity-control {
  display: grid;
  gap: 5px;
}

.quantity-control span {
  color: var(--muted);
  font-size: 12px;
}

.quantity-control input {
  height: 38px;
  text-align: center;
}

.selected-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.055);
}

.selected-line span {
  min-width: 0;
  color: var(--muted);
  font-size: 14px;
}

.selected-line strong {
  color: var(--green);
  white-space: nowrap;
}

.empty-selected {
  padding: 14px;
  color: var(--muted);
}

@media (max-width: 640px) {
  .service-item {
    grid-template-columns: 1fr;
  }

  .service-item-price {
    justify-self: start;
  }

  .quantity-control {
    max-width: 160px;
  }

  .receipt-head {
    display: none;
  }

  .receipt-line {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .receipt-line span {
    text-align: left;
  }

  .receipt-line span:nth-of-type(2) {
    display: none;
  }

  .receipt-line em {
    text-align: right;
  }

  .reference-row {
    align-items: stretch;
    flex-direction: column;
  }

  .reference-row .ghost-action {
    width: 100%;
  }
}
