.uhero-grid { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.uhero-copy { display: grid; gap: 26px; align-content: center; }
.uhero-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; color: var(--muted); font-size: 15px; }
.uhero-meta b { color: var(--ink); font-weight: 600; }
.uhero-meta .link { min-height: 44px; font-size: 15px; }
@media (max-width: 960px) { .uhero-grid { grid-template-columns: minmax(0, 1fr); gap: 48px; } }

.browser { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 40px 80px -56px color-mix(in srgb, var(--ink) 45%, transparent); min-width: 0; }
.browser-bar { display: flex; align-items: center; gap: 14px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.dots { display: flex; gap: 6px; flex: none; }
.dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); display: block; }
.url { flex: 1; min-width: 0; padding: 6px 12px; border-radius: 999px; background: var(--sunk); font-family: var(--mono); font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.url b { color: var(--ink); font-weight: 500; }
.browser-body { display: grid; grid-template-columns: 158px minmax(0, 1fr); min-height: 300px; }
.b-side { display: grid; align-content: start; gap: 2px; padding: 14px 10px; border-right: 1px solid var(--line); background: var(--sunk); font-size: 13px; }
.b-side span { position: relative; padding: 8px 10px; border-radius: 8px; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b-side .cur { background: var(--surface); color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--line); }
.b-side .cur::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--accent); }
.b-side .off { color: var(--faint); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.b-doc { display: grid; align-content: start; gap: 12px; padding: 20px 22px; min-width: 0; }
.b-doc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.b-doc-head b { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.b-tag { display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--mono); font-size: 11px; letter-spacing: .06em; text-transform: uppercase; }
.b-meta { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.b-meta span:last-child { color: var(--ink-2); }
.b-rows { display: grid; margin-top: 6px; font-family: var(--mono); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.b-rows div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--line); }
.b-rows div > span:first-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.b-rows .sum { border-bottom: 0; border-top: 1px solid var(--ink); margin-top: 4px; font-weight: 600; color: var(--ink); }
@media (max-width: 520px) {
  .url-p { display: none; }
  .browser-body { grid-template-columns: 112px minmax(0, 1fr); min-height: 0; }
  .b-side { font-size: 12px; padding: 10px 6px; }
  .b-side span { padding: 7px 8px; }
  .b-doc { padding: 14px; gap: 10px; }
  .b-doc-head b { font-size: 13.5px; }
  .b-meta { font-size: 12px; }
  .b-rows { font-size: 11.5px; }
}


.loaded { justify-self: start; min-height: 32px; padding: 0 14px; text-transform: none; letter-spacing: .02em; font-size: 12.5px; }

.receipt-lines .row.strong > span { font-weight: 600; color: var(--ink); }
.receipt-lines .row > :first-child { min-width: 0; overflow-wrap: anywhere; }
.receipt .seg.full button { min-height: 40px; }
.receipt-total .price-note { font-size: 13.5px; }
#total { transition: color .35s; }
#total.flash { animation: u-flash .7s var(--ease); }
@keyframes u-flash { 0% { color: var(--accent-ink); } 100% { color: var(--ink); } }

.opt .seg { flex-shrink: 1; }



.contact-lines { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; padding-top: 22px; margin-top: 4px; border-top: 1px solid var(--line); }
.contact-lines > div { display: grid; gap: 4px; min-width: 0; }
.contact-lines a { font-size: 17px; font-weight: 500; letter-spacing: -.01em; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.contact-lines a:hover { color: var(--accent-ink); }
@media (max-width: 420px) { .contact-lines { grid-template-columns: minmax(0, 1fr); } }
.summary-text { max-height: 420px; overflow: auto; }
.code-row b { overflow-wrap: anywhere; text-align: right; }
@media (max-width: 520px) { .summary { padding: 18px; } }

.opener { margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line); }
.opener > summary { list-style: none; display: inline-flex; align-items: center; gap: 10px; min-height: 52px; font-family: var(--mono); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); cursor: pointer; }
.opener > summary::-webkit-details-marker { display: none; }
.opener > summary::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.opener[open] > summary::after { transform: translateY(1px) rotate(-135deg); }
.opener > summary:hover { color: var(--ink); }
.opener-body { display: grid; gap: 12px; max-width: 600px; padding-bottom: 8px; }
.opener textarea { width: 100%; min-height: 96px; padding: 12px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); font-family: var(--mono); font-size: 14px; line-height: 1.5; resize: vertical; }
.opener textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--accent-soft); }
#modgrid .mod.is-locked { grid-column: 1 / -1; }
.mbar { display: none; }
@media (max-width: 960px) {
  .mbar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; padding: 0 20px; border-radius: 999px; background: var(--btn-bg); color: var(--btn-fg); box-shadow: 0 16px 32px -20px color-mix(in srgb, var(--ink) 60%, transparent); }
  .mbar-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14.5px; font-weight: 500; }
  .mbar-p { flex: none; font-variant-numeric: tabular-nums; }
  .mbar-p b { font-size: 19px; font-weight: 600; letter-spacing: -.02em; }
  .mbar-p small { font-size: 12.5px; opacity: .75; }
  .cfg-main { gap: 40px; }
}
@media (max-width: 640px) {
  .opt .seg { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); width: 100%; border-radius: 16px; }
  .opt .seg button { padding: 6px 4px; border-radius: 13px; line-height: 1.15; white-space: normal; }
  .opt .seg button small { display: block; margin: 2px 0 0; }
}
@media (prefers-color-scheme: dark) { .browser, .mbar { box-shadow: none; } }
@media (min-width: 961px) {
  .receipt { max-height: calc(100vh - var(--nav-h) - 40px); grid-template-rows: auto auto minmax(96px, 1fr) auto auto auto; }
  .receipt-lines { min-height: 0; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; align-content: start; }
}
