@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Inter:wght@400;500;600;700;800&display=swap');

:root {
  font-family: Inter, Segoe UI, Arial, sans-serif;
  color: #132433;
  background: #eef3f7;
  font-size: 16px;
  --blue: #174ddd;
  --navy: #102c49;
  --lime: #d2fa72;
  --ink: #132433;
  --muted: #5b7386;
  --line: #d7e1ea;
  --dot-line: #8eabc8;
  --dot: 2px dotted var(--dot-line);
  --dot-on-dark: 2px dotted rgba(184, 214, 255, 0.7);
  --card: #ffffff;
  --tap: 48px;
  --shadow: 0 10px 30px rgba(16, 44, 73, 0.08);
  --radius: 16px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --motion: 240ms;
  --motion-fast: 160ms;
  --motion-slow: 340ms;
}
* { box-sizing: border-box; }
html {
  height: 100%;
  overflow-x: hidden;
  max-width: 100%;
}
body {
  margin: 0;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  max-width: 100%;
  background:
    radial-gradient(1200px 520px at 8% -10%, rgba(210, 250, 114, 0.14), transparent 55%),
    radial-gradient(900px 480px at 100% 0%, rgba(23, 77, 221, 0.1), transparent 50%),
    linear-gradient(180deg, #d7e8ff 0%, #eef3f7 48%, #e8f0d8 100%);
  color: var(--ink);
}
body.help-open,
body.success-open,
body.confirm-open { overflow: hidden; }
body.help-open .sticky-pay,
body.success-open .sticky-pay,
body.confirm-open .sticky-pay { display: none !important; }

header {
  min-height: 72px;
  padding: 12px 5%;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(215, 225, 234, 0.9);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  text-decoration: none;
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand small {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: #697b8c;
}
.mark {
  background: linear-gradient(160deg, #2f63f0 0%, var(--blue) 70%);
  color: white;
  border-radius: 12px;
  width: 42px;
  height: 42px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(23, 77, 221, 0.25);
}
.mark img,
.brand-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  display: block;
  background: #fff;
}
.header-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.app-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px;
}
.app-nav a,
.app-nav button.nav-logout {
  min-height: 44px;
  padding: 10px 12px;
  border: 0;
  background: transparent;
  text-decoration: none;
  color: #243c51;
  font-weight: 600;
  font-size: 14px;
  border-radius: 8px;
  transition: background var(--motion) var(--ease-out), color var(--motion) var(--ease-out);
}
.app-nav a:hover,
.app-nav button.nav-logout:hover {
  background: #eaf0ff;
  color: var(--blue);
  border-color: transparent;
}
.app-nav a.active {
  background: #eaf0ff;
  color: var(--blue);
}
.nav-user {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #102c49;
  padding: 4px 10px 4px 4px;
  max-width: 200px;
  overflow: hidden;
  background: #f3f6fb;
  border-radius: 999px;
}
.nav-user .name-avatar {
  width: 28px;
  height: 28px;
  font-size: 11px;
}
.nav-user-name {
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.nav-logout { font: inherit; }
.access-timer {
  margin-left: auto;
  font-variant-numeric: tabular-nums;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 6px 12px;
  border-radius: 999px;
  border: var(--dot);
  white-space: nowrap;
  background: #e8f8d8;
  color: #1f6b2a;
  text-decoration: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
}
a.access-timer:hover {
  filter: brightness(0.97);
  color: #1f6b2a;
}
.access-timer-demo {
  background: #102c49;
  color: #d2fa72;
  border-color: rgba(210, 250, 114, 0.55);
}
.access-timer-warn {
  background: #fff3cc;
  color: #8a5a00;
}
.pay-meter {
  margin-top: 8px;
  height: 8px;
  border-radius: 999px;
  background: #e6edf3;
  overflow: hidden;
  border: var(--dot);
}
.pay-meter span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #d2fa72, #7ed321);
  border-radius: 999px;
}
.demo-url,
.demo-url-line {
  font-family: ui-monospace, Consolas, monospace;
  font-size: 13px;
  overflow-wrap: anywhere;
  color: var(--navy);
  font-weight: 650;
}
.admin-panel-demos .section-title { gap: 12px; }
.offline { font-size: 14px; color: #476575; }
.help-launch {
  min-height: var(--tap);
  padding: 10px 16px;
  border-radius: 999px;
  background: #eaf0ff;
  border-color: #c5d4f5;
  color: var(--blue);
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

main {
  position: relative;
  z-index: 1;
  max-width: 1250px;
  margin: auto;
  padding: 32px 20px 110px;
}
.intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 18px 22px;
  box-shadow: var(--shadow);
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 2px;
  font-weight: 750;
  color: var(--blue);
}
h1 {
  font-family: Fraunces, Georgia, serif;
  font-size: 38px;
  line-height: 1.08;
  letter-spacing: -0.8px;
  margin: 12px 0;
  font-weight: 700;
  color: var(--navy);
}
p { line-height: 1.6; }
h2 { font-size: 19px; margin: 0; }
.intro p:last-child {
  color: #243c51;
  font-weight: 500;
  max-width: 62ch;
  margin: 0;
}

.site-coach {
  margin: 0 0 16px;
  padding: 14px 16px;
  background: #fff8e6;
  border: 1px solid #ead59a;
  border-radius: 10px;
  font-weight: 600;
  color: #5a4712;
}
.site-coach.ready {
  background: #e7f7e8;
  border-color: #8dcf93;
  color: #1d4a24;
}

button, .button, a.primary, a.ghost {
  font: inherit;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  background: white;
  border: 1px solid #c6d2dd;
  color: #243c51;
  min-height: var(--tap);
  padding: 12px 16px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    background var(--motion) var(--ease-out),
    border-color var(--motion) var(--ease-out),
    color var(--motion) var(--ease-out),
    box-shadow var(--motion) var(--ease-out),
    transform var(--motion-fast) var(--ease-out),
    filter var(--motion-fast) var(--ease-out);
}
button:hover, .button:hover { border-color: var(--blue); color: var(--blue); }
button:active, .button:active, a.primary:active, a.ghost:active {
  transform: translateY(1px) scale(0.985);
}
button:focus-visible, .button:focus-within {
  outline: 3px solid #8dacf9;
  outline-offset: 2px;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(300px, 1fr);
  gap: 24px;
}
section {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  margin-bottom: 20px;
  box-shadow: var(--shadow);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.section-title > span {
  font-size: 15px;
  color: var(--blue);
  background: #eaf0ff;
  border-radius: 8px;
  min-width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}
.section-title.light > span {
  background: #2a4d78;
  color: #d7e6ff;
}
.section-title.light h2 { color: white; }

.fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.fields-span { grid-column: 1 / -1; }
label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
}
.field-hint {
  font-size: 13px;
  font-weight: 400;
  color: #607384;
  line-height: 1.4;
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
select,
textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-size: 16px;
  font-weight: 400;
  color: #172b3a;
  border: 1px solid #becbd6;
  border-radius: 8px;
  padding: 12px;
  min-height: var(--tap);
  background: #fff;
  transition: border-color var(--motion) var(--ease-out), box-shadow var(--motion) var(--ease-out);
}
input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-width: 0;
  min-height: 0;
  padding: 0;
}
textarea { min-height: 88px; resize: vertical; }
input:focus, textarea:focus, select:focus {
  outline: 2px solid #9bb8ff;
  border-color: var(--blue);
}
.hint { font-size: 14px; color: #2a4256; line-height: 1.5; }

.phone-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  max-width: 340px;
}
.phone-label {
  display: block;
  letter-spacing: 0.01em;
  word-spacing: 0.06em;
  color: #172b3a;
}
.fields .phone-field,
.fields .phone-box {
  max-width: none;
  width: 100%;
}
.phone-box {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  min-height: var(--tap);
  height: 48px;
  padding: 0 14px 0 12px;
  border: 1px solid #becbd6;
  border-radius: 8px;
  background: #fff;
  cursor: text;
}
.phone-box:hover { border-color: var(--blue); }
.phone-box:focus-within {
  outline: 2px solid #9bb8ff;
  border-color: var(--blue);
}
.phone-field.is-invalid .phone-box {
  border-color: #c0392b;
  outline: 2px solid #f5c2c0;
}
.field-error {
  color: #b42318;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.phone-country {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: auto;
  padding: 0 10px 0 0;
  border: 0;
  border-right: 1px solid #d7e1ea;
  background: transparent;
  border-radius: 0;
  flex-shrink: 0;
  cursor: text;
}
.phone-dial {
  font-size: 14px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
  line-height: 1;
}
.phone-box input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.phone-box input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]):focus {
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  min-height: 0;
  height: 46px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  outline: none;
  text-align: left;
  cursor: text;
  font: inherit;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}
.phone-box input::placeholder {
  color: #8a9aab;
  font-weight: 400;
}
.phone-flag {
  font-size: 20px;
  line-height: 1;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  cursor: text;
}
.phone-flag-img,
.phone-flag img {
  width: 24px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  display: block;
  box-shadow: 0 0 0 1px rgba(23, 43, 58, 0.14);
  pointer-events: none;
}
.info-tip {
  width: 16px;
  height: 16px;
  border: 1.5px solid #8a9aab;
  border-radius: 50%;
  color: #5d7080;
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  cursor: help;
  flex-shrink: 0;
}
.contact-phone-row.display {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  border-top: 1px solid #e6edf3;
  padding: 10px 0;
  margin-top: 4px;
}
.contact-phone-row.display .contact-phone-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 15px;
  font-weight: 600;
  color: #172b3a;
  white-space: nowrap;
}
.contact-phone-row.display .contact-phone-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  color: #172b3a;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.more-options, .owner-settings, .job-numbers {
  background: white;
  border: 1px solid #dce3e9;
  border-radius: 14px;
  padding: 8px 18px 18px;
  margin-bottom: 20px;
}
.more-options {
  padding: 10px;
}
.more-options summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 16px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid #c6d2dd;
  border-radius: 12px;
  background: #f6f8fb;
  color: #172b3a;
}
.more-options summary::-webkit-details-marker { display: none; }
.more-options summary::marker { content: ''; }
.more-options summary:hover,
.more-options summary:focus-visible {
  border-color: var(--blue);
  background: #eaf0ff;
  color: #172b3a;
}
.more-options summary:focus-visible {
  outline: 3px solid #8dacf9;
  outline-offset: 2px;
}
.more-options[open] summary {
  border-color: var(--blue);
  background: #eaf0ff;
}
.more-options-lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.more-options-chevron {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #eaf0ff;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: transform var(--motion) var(--ease-out);
}
.more-options-chevron::before {
  content: '';
  width: 8px;
  height: 8px;
  border-right: 2.5px solid currentColor;
  border-bottom: 2.5px solid currentColor;
  transform: rotate(45deg);
  margin-top: -3px;
}
.more-options[open] .more-options-chevron {
  transform: rotate(180deg);
}
.more-options[open] .more-options-hint { display: none; }
.more-options-hint {
  font-weight: 500;
  color: #4d6578;
  font-size: 13px;
}
.more-options > .hint { padding: 0 8px; }
.more-options:not([open]) > :not(summary) {
  display: none;
}
.owner-settings summary {
  cursor: pointer;
  font-weight: 700;
  padding: 14px 0;
  font-size: 16px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.owner-settings summary + .hint {
  font-weight: 400;
  color: #607384;
  font-size: 14px;
}

.summary {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(210, 250, 114, 0.16), transparent 60%),
    #102c49;
  color: white;
  position: relative;
}
.summary .eyebrow { color: #9fbcff; }
.total {
  font-family: Fraunces, Georgia, serif;
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -1.5px;
  overflow-wrap: anywhere;
  line-height: 1.05;
}
.summary-sub { color: #b8c9d9; font-size: 14px; margin-top: 6px; }
.big-deposit {
  margin: 18px 0 8px;
  padding: 16px;
  background: rgba(22, 54, 86, 0.9);
  border: 1px solid rgba(210, 250, 114, 0.22);
  border-radius: 12px;
}
.big-deposit strong {
  color: var(--lime);
  font-size: 36px;
  letter-spacing: -1px;
  overflow-wrap: anywhere;
}
.metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  border-top: 1px solid #36516b;
  padding: 20px 0;
}
.metrics.inner { border-top: 0; padding: 8px 0 0; }
.metrics span { display: block; font-size: 14px; color: #b8c9d9; margin-bottom: 6px; }
.metrics strong { font-size: 20px; }
.job-numbers {
  background: transparent;
  border: 0;
  color: white;
  margin: 8px 0 0;
  padding: 0;
}
.job-numbers summary {
  list-style: none;
  cursor: pointer;
  user-select: none;
  font-weight: 700;
  font-size: 15px;
  min-height: var(--tap);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 10px 12px;
  border: 1px solid #3d5873;
  border-radius: 12px;
  background: #163656;
  color: #e8f0f8;
}
.job-numbers summary::-webkit-details-marker { display: none; }
.job-numbers summary::marker { content: ''; }
.job-numbers summary:hover,
.job-numbers summary:focus-visible {
  border-color: #9fbcff;
  background: #1a3d5e;
  color: #e8f0f8;
}
.job-numbers summary:focus-visible {
  outline: 3px solid #8dacf9;
  outline-offset: 2px;
}
.job-numbers[open] summary {
  border-color: #9fbcff;
  background: #1a3d5e;
}
.job-numbers .more-options-chevron {
  background: #2a4d78;
  color: #9fbcff;
}
.job-numbers[open] .more-options-chevron {
  transform: rotate(180deg);
}
.job-numbers[open] .more-options-hint { display: none; }
.job-numbers .more-options-hint { color: #9fbcff; }
.job-numbers:not([open]) > :not(summary) {
  display: none;
}

.pay-card .primary,
.pay-card .ghost,
.pay-card .pay-full,
.summary .primary,
.summary .secondary {
  display: block;
  width: 100%;
  margin: 10px 0;
}
.primary {
  background: var(--lime);
  color: #18331c;
  border: 0;
  font-size: 17px;
  box-shadow: 0 8px 18px rgba(183, 214, 90, 0.28);
}
a.primary {
  background: var(--lime);
  color: #18331c;
  border: 0;
}
.primary:hover, a.primary:hover { background: #e3ffad; color: #18331c; }
.pay-full {
  background: #174ddd;
  color: white;
  border: 0;
  font-size: 17px;
}
.pay-full:hover { background: #3a6bff; color: white; }
.ghost, .secondary {
  background: transparent;
  border-color: #c6d2dd;
}
.pay-card .ghost { border-color: #c6d2dd; color: #243c51; }
.summary .secondary { border-color: #587087; color: white; }
.btn-hint {
  font-size: 13px;
  color: #607384;
  margin: -4px 0 14px;
  line-height: 1.45;
}
#notice:not(:empty) {
  padding: 14px;
  background: #e8efff;
  border: 1px solid #b3c9fd;
  border-radius: 8px;
  margin-bottom: 16px;
}
.saved-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-top: 12px;
}
.saved-row button:first-child {
  flex: 1;
  text-align: left;
  overflow-wrap: anywhere;
}
.continue-card {
  background: linear-gradient(180deg, #ffffff 0%, #f7fafc 100%);
}
.pay-pill {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.03em;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eef3f7;
  color: #476575;
  white-space: nowrap;
}
.pay-pill.paid {
  background: #e7f7e8;
  color: #1d4a24;
}
.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
}
.trust-row li {
  font-size: 12px;
  font-weight: 700;
  color: var(--navy);
  background: #f3f7fb;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}
.saved-empty {
  padding: 28px 18px;
  background:
    radial-gradient(180px 80px at 20% 0%, rgba(210, 250, 114, 0.2), transparent 70%),
    #f6f9fb;
  border: 1px dashed #c9d6e2;
  border-radius: 14px;
  color: #476575;
  text-align: center;
}
footer {
  text-align: center;
  font-size: 14px;
  color: #243c51;
  padding: 14px 16px;
  margin-top: 8px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 12px;
}
main > .row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 16px 18px;
  box-shadow: var(--shadow);
}
.customer-pay main {
  max-width: 640px;
}
.customer-pay .intro h1 {
  font-size: 34px;
}

[hidden] { display: none !important; }

@keyframes cq-rise {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
@keyframes cq-fade {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes cq-overlay-card {
  from { opacity: 0; transform: translateY(12px) scale(0.97); }
  to { opacity: 1; transform: none; }
}

header,
.auth-card,
.intro,
section,
.admin-panel,
main > .row,
footer {
  animation: cq-rise var(--motion-slow) var(--ease-out) both;
}
.auth-error:not([hidden]),
.waiting-box:not([hidden]),
.created-box:not([hidden]),
#notice:not(:empty),
.site-coach {
  animation: cq-rise var(--motion) var(--ease-out);
}
.help-overlay:not([hidden]),
.success-overlay:not([hidden]),
.confirm-overlay {
  animation: cq-fade var(--motion) ease-out;
}
.help-overlay:not([hidden]) .help-card,
.success-overlay:not([hidden]) .success-card,
.confirm-overlay .confirm-card {
  animation: cq-overlay-card var(--motion-slow) var(--ease-out);
}

.preview article {
  max-width: 820px;
  margin: auto;
  padding: 12px 0 8px;
}
.preview-empty { margin-bottom: 8px; }
.quote-sheet {
  --quote-ink: #13281d;
  --quote-paper: #f6f0e4;
  --quote-navy: #102c49;
  --quote-lime: #d2fa72;
  --quote-rule: #d8cbb3;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: var(--quote-ink);
  background:
    radial-gradient(520px 180px at 100% 0%, rgba(210, 250, 114, 0.16), transparent 60%),
    linear-gradient(180deg, #fbf6ec 0%, var(--quote-paper) 48%, #f3ead8 100%);
  border-radius: 8px;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.7) inset,
    0 18px 40px rgba(16, 44, 73, 0.12);
  font-family: Inter, Segoe UI, Arial, sans-serif;
}
.quote-sheet::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 8px;
  background: var(--quote-lime);
  z-index: 5;
}
.quote-sheet-frame {
  pointer-events: none;
  position: absolute;
  inset: 10px 10px 10px 16px;
  border: 1px solid rgba(19, 40, 29, 0.16);
  z-index: 2;
  background:
    linear-gradient(var(--quote-navy), var(--quote-navy)) top right / 18px 2px no-repeat,
    linear-gradient(var(--quote-navy), var(--quote-navy)) top right / 2px 18px no-repeat,
    linear-gradient(var(--quote-navy), var(--quote-navy)) bottom left / 18px 2px no-repeat,
    linear-gradient(var(--quote-navy), var(--quote-navy)) bottom left / 2px 18px no-repeat;
}
.quote-sheet-frame::before,
.quote-sheet-frame::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid var(--quote-navy);
}
.quote-sheet-frame::before {
  top: -2px;
  left: -2px;
  border-right: 0;
  border-bottom: 0;
}
.quote-sheet-frame::after {
  right: -2px;
  bottom: -2px;
  border-left: 0;
  border-top: 0;
}
.quote-masthead {
  position: relative;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 24px;
  padding: 28px 32px 24px;
  color: #f6f0e4;
  background:
    radial-gradient(circle at 12% 20%, rgba(210, 250, 114, 0.16) 0 2px, transparent 2.6px),
    radial-gradient(420px 160px at 100% 0%, rgba(210, 250, 114, 0.18), transparent 55%),
    linear-gradient(165deg, #163656 0%, var(--quote-navy) 58%, #0c2238 100%);
  background-size: 16px 16px, auto, auto;
}
.quote-masthead::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 7px;
  background: linear-gradient(90deg, var(--quote-lime) 0%, #f4e7a1 50%, var(--quote-lime) 100%);
}
.quote-letterhead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}
.quote-brand-block { min-width: 0; }
.quote-kicker {
  margin: 0 0 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #9fbcff;
}
.quote-masthead h2 {
  margin: 0;
  font-family: Fraunces, Georgia, serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1.15;
  color: #fbf6ec;
  letter-spacing: -0.03em;
}
.quote-brand-contact {
  margin: 8px 0 0;
  color: #c5d6e6;
  font-size: 13px;
  font-weight: 500;
}
.quote-seal,
.quote-logo {
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(210, 250, 114, 0.35);
}
.quote-seal { display: grid; place-items: center; }
.quote-seal svg { display: block; }
.quote-docmark {
  text-align: right;
  flex-shrink: 0;
  padding: 4px 0 4px 16px;
  border-left: 1px solid rgba(210, 250, 114, 0.28);
}
.quote-docmark-label {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--quote-lime);
}
.quote-docmark strong {
  display: block;
  margin-top: 4px;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
}
.quote-meta {
  margin: 8px 0 0;
  color: #c5d6e6;
  font-size: 12px;
  line-height: 1.45;
}
.quote-meta span { display: block; }
.quote-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 22px;
  align-items: stretch;
  padding: 26px 32px 8px;
}
.quote-for { min-width: 0; }
.quote-for .quote-kicker { color: #6a5840; }
.quote-sheet .name-avatar { display: none; }
.quote-sheet .quote-customer .name-text,
.quote-sheet .name-text {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.15;
  color: var(--quote-navy);
  letter-spacing: -0.03em;
}
.quote-sheet .quote-for .name-chip { margin: 0 0 6px; }
.quote-sheet .quote-address {
  display: block;
  margin-top: 2px;
  color: #5b5346;
  font-size: 14px;
}
.quote-sheet .contact-phone-row.display {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  border: 0;
  margin: 14px 0 0;
  padding: 0;
  gap: 6px;
}
.quote-sheet .contact-phone-row.display .contact-phone-label {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6a5840;
}
.quote-sheet .contact-phone-row.display .contact-phone-value {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  background: #fffdf8;
  border: 1px solid #e6dcc8;
  border-radius: 999px;
  font-weight: 700;
  color: var(--quote-navy);
  font-variant-numeric: tabular-nums;
}
.quote-sheet .contact-phone-row.display .phone-number {
  letter-spacing: 0.02em;
}
.quote-sheet .info-tip { display: none; }
.quote-hero-total {
  position: relative;
  min-width: 210px;
  padding: 18px 22px 16px;
  color: var(--quote-lime);
  background: var(--quote-navy);
  isolation: isolate;
}
.quote-hero-total::before,
.quote-hero-total::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--quote-paper);
  transform: translateY(-50%);
  z-index: 1;
}
.quote-hero-total::before { left: -8px; }
.quote-hero-total::after { right: -8px; }
.quote-hero-total .quote-kicker { color: #9fbcff; }
.quote-hero-total strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 34px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.04em;
  color: var(--quote-lime);
}
.quote-hero-sub {
  display: block;
  margin-top: 8px;
  color: #d5e4f0;
  font-size: 12px;
  font-weight: 650;
}
.quote-body {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  gap: 20px;
  padding: 18px 32px 8px;
}
.quote-work {
  background: rgba(255, 252, 246, 0.88);
  border: 1px solid var(--quote-rule);
  padding: 16px 18px 14px;
}
.quote-work h3 {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a5840;
}
.quote-scope {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  margin: 0;
  color: var(--quote-ink);
  font-size: 14px;
  line-height: 1.55;
}
.quote-total {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 4px 0 0;
  border: 0;
}
.quote-row,
.quote-total div {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 8px 0;
  border-bottom: 1px dotted #cbbda6;
  font-size: 14px;
}
.quote-row span:last-child {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.quote-total .grand {
  margin: 6px 0 4px;
  padding: 10px 12px;
  border: 0;
  background: var(--quote-lime);
  color: var(--quote-navy);
  font-family: Fraunces, Georgia, serif;
  font-size: 18px;
  font-weight: 700;
}
.quote-total .grand span:last-child { font-size: 22px; }
.quote-total .accent {
  border-bottom: 1px dotted #cbbda6;
  color: var(--quote-navy);
  font-weight: 750;
}
.quote-notes {
  position: relative;
  z-index: 1;
  margin: 8px 32px 0;
  padding: 12px 0 0;
  border-top: 1px solid var(--quote-rule);
  color: #5b5346;
  font-size: 13px;
  line-height: 1.5;
  font-style: italic;
  white-space: pre-wrap;
}
.quote-signoff {
  position: relative;
  z-index: 1;
  padding: 22px 32px 28px;
}
.quote-thanks {
  margin: 0 0 18px;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 17px;
  font-weight: 600;
  color: var(--quote-navy);
}
.quote-sign-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}
.quote-sign {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 4px;
  min-height: 64px;
  margin: 0;
  border-bottom: 1px solid var(--quote-navy);
  font-size: 15px;
  font-weight: 600;
}
.quote-sign span {
  display: block;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6a5840;
}
.quote-sheet .quote-sign input {
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 2px 0 8px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font-family: Fraunces, Georgia, serif;
  font-size: 22px;
  font-style: italic;
  font-weight: 600;
  color: var(--quote-navy);
}
.quote-sheet .quote-sign input:focus {
  outline: none;
  box-shadow: none;
  border-color: transparent;
}
.quote-signature,
.quote-sign.is-filled strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-style: italic;
  font-size: 22px;
  font-weight: 600;
  color: var(--quote-navy);
  line-height: 1.2;
  padding: 2px 0 8px;
}
.quote-sign-btn,
.quote-sign-clear {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  min-height: 44px;
  width: auto;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
}
.quote-sign-btn {
  background: var(--quote-navy);
  color: var(--quote-lime);
}
.quote-sign-clear {
  background: transparent;
  color: #6a5840;
  min-height: 36px;
  padding: 0;
  text-decoration: underline;
  font-weight: 700;
}
button:disabled { opacity: .5; cursor: not-allowed; }

.stripe-status {
  padding: 14px 16px;
  border-radius: 8px;
  margin-bottom: 16px;
  border: 1px solid #b3c9fd;
  background: #e8efff;
  line-height: 1.5;
}
.stripe-status.warn { background: #fff4d6; border-color: #e6c56e; }
.stripe-status.ok { background: #e7f7e8; border-color: #8dcf93; }
.stripe-status button.linkish,
.stripe-status a.linkish {
  display: inline;
  min-height: 0;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  text-decoration: underline;
  font-weight: 700;
}
.setup-card { margin-bottom: 12px; border: 0; padding: 8px 0 16px; }
.setup-list { margin: 0 0 12px; padding-left: 20px; line-height: 1.7; }
.owner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.secondary-light {
  margin-top: 10px;
  background: white;
}
.pay-link { margin-top: 16px; padding: 14px; background: #f3f7fb; border-radius: 10px; }
.pay-link p { color: #31485a; font-size: 14px; }
.pay-link input { margin: 8px 0; }
.pay-sheet .primary,
.pay-sheet .ghost {
  display: block;
  width: 100%;
  margin: 10px 0;
}
.pay-sheet #payError:not(:empty) {
  padding: 12px;
  background: #fff4d6;
  border: 1px solid #e6c56e;
  border-radius: 8px;
  color: #5a4712;
}

.help-overlay {
  position: fixed;
  inset: 0;
  background: rgba(16, 32, 48, 0.55);
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.help-overlay[hidden] { display: none !important; }
.help-card {
  background: white;
  border-radius: 16px;
  max-width: 520px;
  width: 100%;
  padding: 28px 24px;
  box-shadow: 0 20px 50px rgba(16, 32, 48, 0.25);
}
.help-steps {
  margin: 16px 0;
  padding-left: 22px;
  color: #243c51;
}
.help-steps li { margin: 10px 0; line-height: 1.45; }
.help-note { color: #566b7c; }
.help-done {
  width: 100%;
  margin-top: 8px;
  background: #d2fa72;
  border: 0;
  color: #18331c;
  font-size: 17px;
}

.auth-page {
  min-height: 100vh;
}
.auth-page header.auth-header,
.auth-page header {
  justify-content: center;
  min-height: 64px;
}
.auth-page main.auth-wrap {
  max-width: none;
  min-height: calc(100vh - 72px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px 32px;
}
.auth-card {
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
  border: 1px solid #dce3e9;
  border-radius: 20px;
  padding: 32px 32px 24px;
  width: 100%;
  max-width: 520px;
  box-shadow: 0 18px 50px rgba(16, 44, 73, 0.08);
}
.auth-card-login { max-width: 440px; }
.auth-card .eyebrow { margin: 0; }
.auth-card h1 {
  font-size: 28px;
  letter-spacing: -0.8px;
  margin: 8px 0 6px;
  line-height: 1.15;
}
.auth-tagline {
  color: #566b7c;
  margin: 0 0 22px;
  font-size: 15px;
  line-height: 1.45;
}
.auth-card form.auth-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.auth-card form.auth-stack {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
.auth-card label {
  min-width: 0;
}
.auth-card .phone-field { min-width: 0; max-width: 320px; }
.auth-card .field-hint { font-size: 12px; }
.auth-card .auth-cta {
  grid-column: 1 / -1;
  width: 100%;
  margin-top: 4px;
  min-height: 52px;
  border-radius: 12px;
  font-weight: 750;
  box-shadow: 0 10px 20px rgba(183, 214, 90, 0.28);
}
.auth-card .auth-cta:hover {
  box-shadow: 0 8px 16px rgba(183, 214, 90, 0.4);
}
.plan-pick {
  grid-column: 1 / -1;
  border: 1px solid #dce3e9;
  border-radius: 14px;
  padding: 12px 14px 8px;
  margin: 0 0 4px;
  background: #f7fafc;
}
.plan-pick legend {
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: var(--blue);
  padding: 0 6px;
}
.plan-option {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  font-weight: 500;
  cursor: pointer;
  padding: 8px 4px 12px;
}
.plan-option input {
  width: auto;
  min-height: 22px;
  margin-top: 4px;
  flex-shrink: 0;
}
.plan-option strong {
  display: block;
  font-size: 16px;
  color: var(--navy);
}
.plan-option em {
  display: block;
  font-style: normal;
  font-weight: 800;
  color: var(--blue);
  margin: 2px 0 4px;
}
.plan-pay-card { max-width: 760px; }
.plan-pay-card .auth-tagline { margin-bottom: 16px; }
.plan-pay-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 16px 20px;
  align-items: stretch;
}
.plan-pay-side {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  padding-top: 4px;
}
.plan-pay-side .waiting-box,
.plan-pay-side .auth-error { margin: 0; }
.plan-pay-side form.auth-grid {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  gap: 12px;
}
.plan-pay-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 16px;
}
.plan-pay-card .phone-field {
  max-width: none;
  grid-column: 1 / -1;
}
.plan-pay-card .phone-box {
  max-width: none;
}
.plan-pay-card .auth-cta {
  grid-column: 1 / -1;
  margin-top: 0;
  min-height: 48px;
}
.signup-tos {
  flex: 1;
  min-height: 120px;
  background: #f7fafc;
  border-radius: 14px;
  padding: 12px 14px 10px;
  text-align: left;
}
.signup-tos .eyebrow {
  margin: 0 0 6px;
  font-size: 11px;
}
.signup-tos ul {
  margin: 0;
  padding: 0 0 0 16px;
  color: #3d5364;
  font-size: 12px;
  line-height: 1.45;
  font-weight: 500;
}
.signup-tos li { margin: 0 0 6px; }
.signup-tos li:last-of-type { margin-bottom: 8px; }
.tos-agree {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  position: relative;
  margin: 2px 0 0;
  padding: 11px 16px;
  min-height: 48px;
  border-radius: 14px;
  background: #fff;
  border: 2px solid #c5d3df;
  box-shadow: 0 1px 0 rgba(24, 51, 28, 0.04);
  cursor: pointer;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--navy);
  user-select: none;
  transition: background var(--motion) var(--ease-out), border-color var(--motion) var(--ease-out), box-shadow var(--motion) var(--ease-out), transform var(--motion-fast) var(--ease-out);
}
.tos-agree:active {
  transform: scale(0.99);
}
.tos-agree:hover {
  border-color: var(--blue);
  background: #f7fbff;
}
.tos-agree input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  min-height: 0;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
.tos-agree-mark {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid #7d9bb6;
  background: #fff;
  flex-shrink: 0;
  display: grid;
  place-items: center;
  transition: background var(--motion) var(--ease-out), border-color var(--motion) var(--ease-out);
}
.tos-agree-mark::after {
  content: "";
  width: 5px;
  height: 9px;
  margin-top: -1px;
  border: solid transparent;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg) scale(0.6);
  opacity: 0;
  transition: border-color var(--motion-fast) var(--ease-out), opacity var(--motion-fast) var(--ease-out), transform var(--motion) var(--ease-out);
}
.tos-agree input:checked + .tos-agree-mark {
  background: #18331c;
  border-color: #18331c;
}
.tos-agree input:checked + .tos-agree-mark::after {
  border-color: #fff;
  opacity: 1;
  transform: rotate(45deg) scale(1);
}
.tos-agree:has(input:checked) {
  background: var(--lime);
  border-color: #9cc63a;
  box-shadow: 0 2px 0 #8eb82f;
}
.tos-agree:has(input:checked):hover {
  background: #c8f45c;
  border-color: #8eb82f;
}
.tos-agree input:focus-visible + .tos-agree-mark {
  outline: 2px solid #9bb8ff;
  outline-offset: 2px;
}
.cashapp-box {
  text-align: center;
  background: #fff;
  border: 1px solid #dce3e9;
  border-radius: 16px;
  padding: 14px 12px 12px;
  margin: 8px 0 16px;
}
.plan-pay-card .cashapp-box {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cashapp-box img {
  display: block;
  width: 156px;
  height: 156px;
  margin: 0 auto 8px;
  background: #fff;
  border-radius: 12px;
}
.cashapp-box img[hidden] { display: none; }
.settings-cash img {
  width: 180px;
  height: 180px;
}
.cash-tag {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.4px;
  color: var(--navy);
  margin: 0 0 2px;
}
.cash-amount {
  font-size: 18px;
  font-weight: 750;
  color: #00d54b;
  margin: 0 0 10px;
}
.cashapp-box .primary { width: 100%; }
.auth-page .nav-logout {
  position: absolute;
  right: 5%;
}
.auth-error {
  background: #fff4d6;
  border: 1px solid #e6c56e;
  color: #5a4712;
  padding: 12px 14px;
  border-radius: 8px;
  margin: 0 0 16px;
  line-height: 1.45;
}
.auth-switch { margin: 18px 0 0; color: #566b7c; text-align: center; font-size: 14px; }
.auth-switch a { color: var(--blue); font-weight: 700; }
.auth-card .username-field { grid-column: 1 / -1; }
.gen-field {
  display: flex;
  gap: 8px;
  align-items: stretch;
}
.gen-field input { flex: 1; min-width: 0; }
.gen-btn {
  flex: 0 0 auto;
  min-height: 44px;
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.waiting-box {
  background: #fff8d9;
  border: 1px solid #e6c56e;
  border-radius: 14px;
  padding: 16px 16px 12px;
  margin: 0 0 14px;
  text-align: left;
}
.waiting-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 800;
  color: #5a4712;
}
.waiting-box p { margin: 0; color: #5a4712; line-height: 1.45; }
.admin-main { max-width: 1180px; }
.admin-board {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.95fr);
  gap: 18px;
  margin-bottom: 8px;
  align-items: start;
}
.admin-panel {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.98);
}
.admin-panel .section-title {
  align-items: flex-start;
  margin-bottom: 10px;
}
.admin-panel .section-title > div { min-width: 0; flex: 1; }
.admin-panel .section-title .eyebrow { margin: 0 0 4px; }
.admin-panel .section-title h2 { font-family: Fraunces, Georgia, serif; font-size: 22px; }
.admin-refresh { margin-left: auto; min-height: 40px; padding: 8px 14px; }
.admin-panel-pending {
  background:
    radial-gradient(280px 140px at 100% 0%, rgba(210, 250, 114, 0.22), transparent 62%),
    rgba(255, 255, 255, 0.92);
}
.admin-create {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 16px;
}
.account-head {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.account-pill {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 999px;
  background: #eaf0ff;
  color: var(--blue);
}
.account-pill-ok {
  background: #e8f8d8;
  color: #1f6b2a;
}
.account-pill-warn {
  background: #fff3cc;
  color: #8a5a00;
}
.account-pill-locked {
  background: #fde8e6;
  color: #b42318;
}
.admin-days {
  width: 4.6em;
  min-height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 8px 10px;
  font: inherit;
}
.admin-delete {
  background: #fff;
  color: #b42318;
  border-color: #f0b4b0;
}
.admin-delete:hover:not(:disabled) { background: #fff4f3; }
.admin-delete:disabled { opacity: 0.45; cursor: not-allowed; }
.account-actions { flex-wrap: wrap; justify-content: flex-end; }
.pending-row-claim {
  background: rgba(255, 255, 255, 0.88);
  border-color: #d7e8c4;
}
.admin-create .owner-actions,
.admin-create .check-row { grid-column: 1 / -1; }
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 650;
  color: var(--navy);
}
.check-row input { margin-top: 3px; width: 18px; height: 18px; min-height: 0; flex-shrink: 0; }
.auth-header .nav-admin-link {
  margin-left: auto;
  margin-right: 10px;
  font-weight: 700;
  color: var(--navy);
  text-decoration: none;
}
.auth-header .nav-admin-link:hover { text-decoration: underline; }
.pending-list { display: grid; gap: 10px; }
.pending-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fafc;
}
.pending-meta strong { display: block; color: var(--navy); }
.pending-bits {
  margin: 4px 0 0;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.pending-actions { display: flex; gap: 8px; flex-shrink: 0; }
.admin-check,
.admin-reject {
  width: 48px;
  height: 48px;
  min-height: 48px;
  border-radius: 50%;
  border: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  padding: 0;
}
.admin-check {
  background: #16c75a;
  color: #fff;
  box-shadow: 0 8px 16px rgba(22, 199, 90, 0.28);
}
.admin-check:hover { background: #12b351; color: #fff; }
.admin-reject {
  background: #fff;
  color: #b42318;
  border: 1px solid #f0b4b0;
}
.admin-reject:hover { background: #fff4f3; color: #912018; }
.created-box {
  margin-top: 18px;
  background: #f3fde4;
  border: 1px solid #c6e38a;
  border-radius: 14px;
  padding: 16px;
}
.created-box .waiting-title { color: #18331c; }
.cred-list { margin: 10px 0 8px; }
.cred-list > div { margin: 0 0 8px; }
.cred-list dt {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: var(--muted);
  text-transform: uppercase;
}
.cred-list dd {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.2px;
  color: var(--navy);
  font-family: ui-monospace, Consolas, monospace;
}
@media (max-width: 900px) {
  .admin-board { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .admin-create { grid-template-columns: 1fr; }
  .pending-row { flex-direction: column; align-items: stretch; }
  .account-actions { justify-content: stretch; }
  .account-actions button { flex: 1 1 calc(50% - 8px); }
}

#scene,
.scene {
  position: fixed;
  inset: 0;
  width: auto;
  height: auto;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  contain: paint;
  isolation: isolate;
}
.scene-sky {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #c5dcff 0%, #e4eefc 36%, #eef4e4 68%, #dff0a8 100%);
}
.scene-ground {
  position: absolute;
  left: -15vw;
  right: -15vw;
  width: auto;
  bottom: -4vh;
  height: 26%;
  min-height: 140px;
  background: linear-gradient(180deg, #d2fa72 0%, #c5ea62 55%, #b7db55 100%);
}
.scene-sun {
  position: absolute;
  top: 6%;
  right: 10%;
  width: 120px;
  height: 120px;
  animation: scene-sun-glow 9s ease-in-out infinite;
}
.scene-cloud {
  position: absolute;
  top: 10%;
  left: -240px;
  animation: scene-cloud-drift 48s linear infinite;
  will-change: transform;
}
.scene-cloud-b {
  top: 18%;
  animation-duration: 64s;
  animation-delay: -20s;
}
.scene-cloud-c {
  top: 8%;
  animation-duration: 56s;
  animation-delay: -36s;
}
.scene-layer {
  position: absolute;
  left: -12vw;
  width: 124vw;
  bottom: -8vh;
  height: 56%;
  overflow: visible;
}
.scene-far { height: 72%; min-height: 380px; }
.scene-mid { height: 58%; min-height: 300px; }
.scene-hills { height: 44%; min-height: 240px; }
.scene-layer svg {
  display: block;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  top: auto;
  width: 100%;
  height: 118%;
  min-width: 100%;
}
@keyframes scene-sun-glow {
  0%, 100% { opacity: 0.92; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes scene-cloud-drift {
  from { transform: translateX(0); }
  to { transform: translateX(calc(100vw + 280px)); }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .scene-sun,
  .scene-cloud,
  #scene.scene-static .rellax {
    animation: none !important;
  }
}

.cq-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  margin-right: 6px;
  flex-shrink: 0;
  color: inherit;
}
.cq-icon svg {
  display: block;
  width: 16px;
  height: 16px;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
}
.trust-row li {
  display: inline-flex;
  align-items: center;
}
.trust-row li .cq-icon { color: var(--blue); }
.auth-card .eyebrow .cq-icon,
.intro .eyebrow .cq-icon { color: var(--blue); }

.logo-field {
  max-width: 520px;
  margin: 8px 0 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.logo-label {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
}
.logo-row {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.logo-preview {
  width: 64px;
  height: 64px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f6f8fb;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  pointer-events: none;
}
.logo-preview img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.logo-preview .mark {
  width: 42px;
  height: 42px;
  box-shadow: none;
}
.logo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.logo-actions input[type="file"] {
  display: none;
}
.settings-prices {
  margin: 4px 0 20px;
  position: relative;
  z-index: 1;
}
.settings-prices summary {
  position: relative;
  z-index: 2;
}
.settings-prices .more-options-chevron {
  background: transparent;
  color: #3a556b;
  margin-left: auto;
}
.settings-prices[open] .more-options-chevron {
  background: transparent;
}
#pricingDefaults label {
  margin-top: 12px;
}

.quote-letterhead {
  display: flex;
  align-items: center;
  gap: 14px;
}

@media (max-width: 720px) {
  .plan-pay-card { max-width: 460px; }
  .plan-pay-layout { grid-template-columns: 1fr; }
  .plan-pay-side form.auth-grid { flex: none; }
  .plan-pay-fields { grid-template-columns: 1fr; }
  .signup-tos { min-height: 0; }
  .auth-page main.auth-wrap {
    align-items: flex-start;
    padding: 16px 12px 28px;
  }
  .auth-page header.auth-header,
  .auth-page header {
    justify-content: space-between;
  }
  .auth-page .nav-logout {
    position: static;
    min-height: 44px;
  }
}
@media (max-width: 600px) {
  .auth-card {
    padding: 22px 16px 16px;
    border-radius: 16px;
  }
  .auth-card h1 { font-size: 24px; }
  .auth-card form.auth-grid { grid-template-columns: 1fr; }
  .owner-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .owner-actions button,
  .owner-actions .button,
  .owner-actions .primary {
    width: 100%;
  }
  .intro > a.primary,
  .dash-cta {
    width: 100%;
  }
}

.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  gap: 20px;
  margin-bottom: 8px;
}
.hero-card {
  background:
    radial-gradient(420px 180px at 100% 0%, rgba(210, 250, 114, 0.18), transparent 60%),
    radial-gradient(280px 160px at 0% 100%, rgba(159, 188, 255, 0.22), transparent 55%),
    linear-gradient(165deg, #163656 0%, #102c49 58%, #0c2238 100%);
  color: white;
  border: 0;
  overflow: hidden;
  position: relative;
}
.hero-card .eyebrow { color: #9fbcff; }
.hero-card h2 { color: white; font-size: 28px; margin: 8px 0 12px; font-family: Fraunces, Georgia, serif; }
.hero-card p { color: #b8c9d9; }
.dash-cta { margin-top: 8px; }
.continue-card h2 { margin-bottom: 8px; }
.quote-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 16px 16px 16px 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: white;
  margin-bottom: 12px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 18px rgba(16, 44, 73, 0.05);
  border-left: 4px solid var(--lime);
  transition: transform var(--motion) var(--ease-out), box-shadow var(--motion) var(--ease-out), border-color var(--motion) var(--ease-out);
}
a.quote-item:hover {
  border-color: #c5d4f5;
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(16, 44, 73, 0.1);
}
.quote-item .contact-phone-row {
  margin-top: 8px;
  padding-top: 8px;
  min-height: 0;
}
.quote-item .contact-phone-row.display {
  border-top: 1px solid #eef2f6;
}
.quote-actions { display: flex; gap: 8px; flex-wrap: wrap; flex-shrink: 0; }
.quote-who {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}
.quote-ref {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #174ddd;
  background: #eaf0ff;
  padding: 4px 9px;
  border-radius: 999px;
}
.name-chip {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  max-width: 100%;
}
.name-avatar {
  --hue: 210;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.02em;
  color: #102c49;
  background: hsl(var(--hue) 58% 80%);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55);
  flex-shrink: 0;
}
.name-text {
  font-weight: 750;
  color: #102c49;
  letter-spacing: -0.3px;
  overflow-wrap: anywhere;
}
.quote-item .name-text { font-size: 17px; }
.quote-customer .name-text {
  font-size: 20px;
  color: #174ddd;
}
.quote-for .name-chip { margin: 8px 0 4px; }
.quote-address {
  display: block;
  margin-top: 4px;
  color: #536879;
}
.hello-line {
  display: flex;
  align-items: center;
  gap: 14px;
}
.hello-avatar {
  width: 48px;
  height: 48px;
  font-size: 16px;
}
.hello-copy { display: block; }
.hello-kicker {
  font-weight: 600;
  color: #4a6274;
}
.hello-name {
  font-weight: 800;
  color: #174ddd;
  letter-spacing: -0.6px;
}
#draftName {
  display: inline-flex;
  vertical-align: middle;
}
#draftName .name-text { font-size: 16px; color: #174ddd; }

.success-overlay,
.confirm-overlay {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.success-overlay { background: rgba(16, 44, 73, 0.58); }
.success-overlay .confetti-canvas { z-index: 2; }
.success-overlay .success-card { z-index: 3; }
.confirm-overlay { background: rgba(16, 44, 73, 0.62); }
.success-overlay[hidden],
.confirm-overlay[hidden] { display: none !important; }
.confetti-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}
.success-card,
.confirm-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  border-radius: 20px;
  padding: 32px 28px;
  box-shadow: 0 24px 60px rgba(16, 32, 48, 0.35);
}
.success-card {
  background: white;
  text-align: center;
}
.success-card .eyebrow { color: #174ddd; margin: 0; }
.success-card h2 {
  font-size: 30px;
  letter-spacing: -0.7px;
  margin: 8px 0 16px;
  color: #102c49;
}
.success-who { display: flex; justify-content: center; margin-bottom: 8px; }
.success-ref {
  display: inline-block;
  font-size: 13px;
  font-weight: 750;
  letter-spacing: 0.04em;
  color: #174ddd;
  background: #eaf0ff;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 8px;
}
.success-total {
  font-size: 36px;
  font-weight: 800;
  color: #102c49;
  margin: 8px 0 4px;
  letter-spacing: -1px;
}
.success-copy {
  color: #536879;
  line-height: 1.45;
  margin: 8px 0 0;
}
.success-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 22px;
}
.confirm-card {
  background: #102c49;
  color: white;
  text-align: left;
}
.confirm-card .eyebrow { color: #d2fa72; margin: 0; }
.confirm-card h2 {
  color: white;
  font-size: 24px;
  margin: 8px 0 12px;
  letter-spacing: -0.4px;
  line-height: 1.25;
}
.confirm-detail {
  color: #b8c9d9;
  margin: 0 0 22px;
  font-weight: 600;
}
.confirm-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
}
.confirm-keep {
  background: #d2fa72;
  border: 0;
  color: #18331c;
  font-weight: 750;
}
.confirm-delete {
  background: #ff6b57;
  border: 0;
  color: white;
  font-weight: 750;
}

section.settings-card {
  border: 1px solid #dce3e9;
  padding: 22px;
}

.sticky-pay { display: none; }

@media screen and (max-width: 800px) {
  html { scroll-padding-bottom: 96px; }
  .workspace { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .intro { display: block; margin-bottom: 12px; padding: 16px 16px 18px; }
  .intro p:last-child { display: block; }
  .app-nav { width: 100%; }
  .header-tools { width: 100%; justify-content: flex-start; }
  .nav-user { display: none; }
  .quote-item.row { flex-direction: column; align-items: stretch; }
  h1 { font-size: 26px; margin: 8px 0 0; }
  .offline { display: none; }
  .scene-far { height: 62%; min-height: 0; }
  .scene-mid { height: 48%; min-height: 0; }
  .scene-hills { height: 34%; min-height: 0; }
  .scene-ground { height: 24%; min-height: 0; left: -8vw; right: -8vw; bottom: -2vh; }
  .scene-layer { left: -8vw; width: 116vw; bottom: -4vh; }
  .scene-layer svg { height: 112%; }
  .scene-sun { width: 88px; height: 88px; right: 6%; }
  main { padding: 16px 12px 132px; }
  .auth-card,
  section,
  .intro {
    background: #fff;
  }
  main > .row { grid-template-columns: 1fr; }
  section { padding: 18px; }
  .quote-masthead,
  .quote-hero,
  .quote-body {
    display: flex;
    flex-direction: column;
  }
  .quote-masthead,
  .quote-hero {
    padding-left: 16px;
    padding-right: 16px;
  }
  .quote-body { padding: 16px 16px 8px; }
  .quote-notes { margin-left: 16px; margin-right: 16px; }
  .quote-signoff { padding: 18px 16px 22px; }
  .quote-docmark {
    text-align: left;
    border-left: 0;
    padding: 12px 0 0;
    border-top: 1px solid rgba(210, 250, 114, 0.28);
  }
  .quote-hero-total { min-width: 0; }
  .quote-sign-row { grid-template-columns: 1fr; gap: 18px; }
  .quote-sheet .quote-customer .name-text { font-size: 24px; }
  .fields { grid-template-columns: 1fr; }
  .phone-field,
  .phone-box { width: 100%; max-width: none; }
  .contact-phone-row.display { flex-wrap: wrap; }
  .total { font-size: 44px; }
  .big-deposit strong { font-size: 30px; }
  .site-coach, .stripe-status { padding: 10px 12px; margin-bottom: 10px; font-size: 14px; }
  .quote-actions { width: 100%; }
  .quote-actions a,
  .quote-actions button { flex: 1 1 auto; }
  .sticky-pay {
    display: grid;
    grid-template-columns: 1fr 1fr auto;
    gap: 10px;
    align-items: center;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 20;
    background: #102c49;
    color: white;
    padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    box-shadow: 0 -8px 24px rgba(16, 32, 48, 0.2);
    animation: cq-rise var(--motion-slow) var(--ease-out) both;
  }
  .sticky-pay span { display: block; font-size: 11px; color: #b8c9d9; }
  .sticky-pay strong { font-size: 18px; overflow-wrap: anywhere; }
  .sticky-pay-btn {
    background: #d2fa72;
    color: #18331c;
    text-decoration: none;
    font-weight: 700;
    border-radius: 10px;
    min-height: var(--tap);
    padding: 12px 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
  }
  body:has(#form:focus-within) .sticky-pay {
    display: none;
  }
}

@media (max-width: 430px) {
  header { padding: 10px 4%; }
  .brand small { display: none; }
  .total { font-size: 40px; }
  .help-card { padding: 22px 16px; }
  .metrics { grid-template-columns: 1fr; }
  .contact-phone-row.display .contact-phone-value {
    white-space: normal;
  }
  .sticky-pay {
    grid-template-columns: 1fr 1fr;
  }
  .sticky-pay-btn {
    grid-column: 1 / -1;
    width: 100%;
  }
}

@media (min-width: 1400px) {
  .scene-far { height: 78%; min-height: 560px; }
  .scene-mid { height: 64%; min-height: 440px; }
  .scene-hills { height: 50%; min-height: 340px; }
  .scene-ground { height: 30%; min-height: 200px; }
  .scene-sun { width: 148px; height: 148px; right: 8%; }
  .scene-layer {
    left: -16vw;
    width: 132vw;
    bottom: -10vh;
  }
  .scene-layer svg { height: 124%; }
}

@media (min-width: 1800px) {
  .scene-far { height: 82%; min-height: 680px; }
  .scene-mid { height: 68%; min-height: 520px; }
  .scene-hills { height: 54%; min-height: 400px; }
  .scene-ground { height: 32%; min-height: 240px; }
  .scene-sun { width: 168px; height: 168px; }
  .scene-layer {
    left: -20vw;
    width: 140vw;
  }
}

@media (min-width: 1400px) and (min-height: 1000px) {
  .scene-far { height: 84%; }
  .scene-mid { height: 70%; }
  .scene-hills { height: 56%; }
  .scene-ground { height: 34%; }
}

section,
.intro,
.auth-card,
.admin-panel,
.cashapp-box,
.waiting-box,
.created-box,
.signup-tos,
.pending-row,
.continue-card,
.quote-item,
.saved-empty,
.site-coach,
footer,
main > .row,
.more-options,
.owner-settings,
.help-card,
.plan-pick,
.preview,
.logo-preview,
.success-card,
#notice:not(:empty),
.stripe-status,
.settings-prices {
  border: var(--dot);
}

.hero-card,
.summary,
.confirm-card,
.big-deposit {
  border: var(--dot-on-dark);
}

.quote-item {
  border-left: 4px solid var(--lime);
}

@media print {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  @page {
    size: letter;
    margin: 8mm;
  }

  html, body {
    background: #f6f0e4 !important;
    color: #13281d !important;
    margin: 0;
    padding: 0;
    height: auto !important;
    min-height: 0 !important;
    overflow: visible !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }
  body.help-open,
  body.success-open,
  body.confirm-open {
    overflow: visible !important;
  }

  #scene,
  .scene,
  header,
  .intro,
  #notice,
  .workspace,
  form#form,
  aside,
  .summary,
  .pay-card,
  .more-options,
  .job-numbers,
  footer,
  .preview > .section-title,
  .help-overlay,
  .help-launch,
  .success-overlay,
  .confirm-overlay,
  .confetti-canvas,
  .owner-settings,
  .site-coach,
  .sticky-pay,
  #stripeBanner,
  .stripe-status,
  .preview-empty,
  .pay-sheet,
  .header-tools,
  .app-nav,
  .info-tip,
  .quote-sign-btn,
  .quote-sign-clear {
    display: none !important;
  }

  main {
    display: block;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0 !important;
    height: auto;
    overflow: visible;
    background: transparent;
  }

  .preview {
    display: block;
    border: 0 !important;
    margin: 0;
    padding: 0;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    overflow: visible;
  }

  .preview article,
  #quote {
    display: block;
    max-width: none;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    overflow: visible;
  }

  .quote-sheet,
  .quote-masthead,
  .quote-hero-total,
  .quote-work,
  .quote-total .grand,
  .quote-seal,
  .quote-logo {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .quote-sheet {
    display: flex;
    flex-direction: column;
    box-shadow: none;
    border-radius: 0;
    min-height: calc(100vh - 16mm);
  }
  .quote-masthead {
    display: flex !important;
    flex-direction: row !important;
  }
  .quote-hero {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
  }
  .quote-body {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(200px, 0.9fr) !important;
  }
  .quote-docmark {
    text-align: right;
    border-top: 0;
    border-left: 1px solid rgba(210, 250, 114, 0.28);
    padding: 4px 0 4px 16px;
  }
  .quote-sign-row { grid-template-columns: 1fr 1fr; }
  .quote-signoff { margin-top: auto; }
  .quote-sheet-frame {
    inset: 6px 6px 6px 14px;
  }
  .quote-masthead,
  .quote-hero,
  .quote-signoff {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .quote-hero-total::before,
  .quote-hero-total::after {
    background: #f6f0e4;
  }
  .quote-sheet .quote-customer .name-text,
  .quote-sheet .name-text {
    color: #102c49;
    font-size: 26pt;
  }
  .name-avatar { display: none !important; }
}
