:root {
    color-scheme: light;
    --paper: #f7f9ff;
    --white: #fff;
    --ink: #100b38;
    --muted: #354156;
    --blue: #0739f5;
    --deep: #1226a4;
    --line: #d2daec;
    font-family: "Aptos", "Segoe UI", system-ui, sans-serif;
    color: var(--ink);
    background: var(--paper);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100dvh; display: flex; flex-direction: column; }
a { color: var(--blue); text-underline-offset: .24em; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .55; }
:focus-visible { outline: 3px solid #2d57ed; outline-offset: 3px; }
img { display: block; max-width: 100%; }
.wrap { width: min(1100px, calc(100% - 48px)); margin-inline: auto; }
.top { background: var(--white); border-bottom: 1px solid var(--line); }
.top-inner, .footer-inner, nav { display: flex; align-items: center; }
.top-inner { min-height: 80px; justify-content: space-between; gap: 16px; }
.brand { display: block; flex: 0 1 auto; min-width: 0; }
.brand img { width: clamp(152px, 18.6vw, 310px); height: auto; }
.account-logo { width: min(290px, 100%); height: auto; margin-bottom: 26px; }
nav { gap: 22px; font-size: .93rem; }
nav a, .link-button { font-weight: 650; }
nav a:not(.button) { text-decoration: none; }
.link-button { border: 0; background: none; padding: 0; color: var(--blue); text-decoration: underline; text-underline-offset: .24em; }
nav .link-button { text-decoration: none; }
nav a:hover, .link-button:hover { text-decoration: underline; }
.button { display: inline-flex; width: fit-content; align-items: center; justify-content: center; min-height: 46px; border: 1px solid transparent; border-radius: 9px; padding: 10px 17px; background: var(--blue); color: var(--white); text-decoration: none; font-weight: 700; }
.button:hover { background: var(--deep); color: var(--white); }
.button.small { min-height: 38px; padding: 7px 12px; }
.button.secondary { border-color: var(--line); background: var(--white); color: var(--blue); }
.button.secondary:hover { background: #edf2ff; }
.main { flex: 1; padding-block: 48px 68px; }
.front { background: #fff; }
.front .wrap { width: min(1560px, calc(100% - 7vw)); }
.front .top-inner { min-height: clamp(66px, 5.3vw, 89px); }
.front nav { gap: clamp(18px, 3.2vw, 54px); font-size: clamp(.94rem, 1.6vw, 1.65rem); }
.front nav a:not(.button) { color: var(--ink); }
.front nav .button { padding-inline: clamp(12px, 1.5vw, 26px); min-height: clamp(40px, 3.25vw, 55px); }
.main.home { padding-block: clamp(20px, 1.65vw, 30px) 56px; }
.hero { display: grid; grid-template-columns: .89fr 1.05fr; align-items: center; gap: clamp(20px, 2.5vw, 45px); padding-block: 0 22px; }
.hero-copy { min-width: 0; padding-block: 18px; }
.hero h1 { font-size: clamp(3rem, 6.55vw, 6.85rem); font-weight: 790; line-height: .99; letter-spacing: -.07em; margin: 0; overflow-wrap: normal; }
.hero h1 em { color: var(--blue); font-style: normal; }
.hero p { max-width: 41ch; font-size: clamp(1.05rem, 1.91vw, 2rem); line-height: 1.29; margin-block: clamp(20px, 2.2vw, 37px) clamp(23px, 2.8vw, 47px); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.hero .actions { gap: 14px clamp(18px, 2.45vw, 41px); }
.hero .button { font-size: clamp(1rem, 1.9vw, 1.95rem); padding: clamp(10px, 1vw, 17px) clamp(18px, 2.3vw, 39px); border-radius: 11px; }
.hero-how { font-weight: 700; font-size: clamp(.95rem, 1.65vw, 1.7rem); }
.hero-art { width: 100%; height: auto; }
.how { position: relative; padding-top: 22px; scroll-margin-top: 18px; }
.how::before { content: ''; position: absolute; top: 0; left: 50%; width: 100vw; transform: translateX(-50%); border-top: 1px solid var(--line); }
.how h2 { font-size: clamp(2.05rem, 4.1vw, 4.25rem); margin: 0 0 clamp(16px, 1.75vw, 30px); line-height: 1.03; letter-spacing: -.06em; }
.features { display: grid; grid-template-columns: 1fr 1.06fr 1fr; gap: clamp(16px, 1.85vw, 31px); }
.features article { display: flex; gap: clamp(12px, 1.65vw, 29px); align-items: flex-start; }
.features h3 { font-size: clamp(1.11rem, 1.95vw, 2rem); line-height: 1.15; letter-spacing: -.035em; margin: 0 0 6px; }
.features p { font-size: clamp(.95rem, 1.48vw, 1.55rem); line-height: 1.35; margin: 0; }
.feature-icon { flex: 0 0 auto; width: clamp(35px, 5.1vw, 84px); height: auto; }
.panel { padding: 25px; border-radius: 15px; border: 1px solid var(--line); background: var(--white); min-width: 0; }
.heading p, .listing-row p, .empty p { margin: 0; }
h1, h2 { margin: 0 0 10px; overflow-wrap: anywhere; }
h1 { font-size: clamp(2rem, 4vw, 2.85rem); letter-spacing: -.055em; line-height: 1.1; }
h2 { font-size: 1.3rem; letter-spacing: -.025em; }
p { line-height: 1.55; color: var(--muted); }
.heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 22px; }
.narrow { max-width: 460px; margin-inline: auto; }
.form-panel, .public-listing { max-width: 750px; margin-inline: auto; }
.form-panel { margin-bottom: 18px; }
.panel .stack { margin-top: 20px; }
.stack { display: grid; gap: 16px; }
.stack .button { margin-top: 2px; }
.two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
label { display: grid; gap: 7px; min-width: 0; font-size: .94rem; font-weight: 680; }
input:not([type=checkbox]), select, textarea { width: 100%; min-width: 0; min-height: 44px; border: 1px solid #aebcda; border-radius: 8px; background: #fff; color: var(--ink); padding: 10px; }
input[type=file] { font-size: .88rem; }
textarea { resize: vertical; }
small, .hint { color: var(--muted); font-size: .87rem; font-weight: 450; margin: 0; }
fieldset { min-width: 0; border: 1px solid var(--line); border-radius: 8px; }
.template { width: fit-content; text-align: left; font-size: .92rem; }
.back { display: inline-block; margin-bottom: 12px; font-size: .94rem; }
.list { display: grid; gap: 12px; }
.empty a { display: inline-block; margin-top: 12px; }
.listing-row { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.listing-row h2, .message h2 { margin: 9px 0 4px; }
.listing-row .actions { flex-shrink: 0; max-width: 55%; font-size: .89rem; }
.meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px 12px; color: var(--muted); font-size: .83rem; overflow-wrap: anywhere; }
.meta span { padding: 4px 8px; border-radius: 6px; background: #edf2ff; color: var(--deep); font-weight: 650; }
.public-listing { margin-bottom: 17px; }
.public-listing h1 { margin-block: 12px; }
.price { font-weight: 750; font-size: 1.24rem; color: var(--blue); }
.multiline { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.gallery a:only-child { grid-column: 1 / -1; }
.gallery img { width: 100%; height: clamp(130px, 26vw, 270px); object-fit: contain; background: #f0f3ee; border-radius: 8px; }
.gallery a:only-child img { height: auto; max-height: 470px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(100px,1fr)); gap: 10px; }
.thumbs img { width: 100%; height: 115px; object-fit: contain; background: #f0f3ee; }
.trap { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.alert { margin: 0 0 16px; padding: 12px 15px; border-radius: 8px; background: #e8efff; color: var(--deep); overflow-wrap: anywhere; }
.alert.error { background: #fce9e2; color: #762e1c; }
.print-controls { display: grid; gap: 13px; margin-bottom: 18px; }
#print-status:empty { display: none; }
.sheet { display: grid; grid-template-columns: repeat(2, max-content); gap: 0; max-width: 100%; overflow-x: auto; padding: 12px 0; }
.print-item { box-sizing: border-box; border: 1px solid #cad2c9; display: flex; align-items: center; justify-content: center; gap: .12in; background: #fff; color: #111; width: 2in; height: 2in; padding: .12in; flex-direction: column; break-inside: avoid; }
.print-copy { display: grid; gap: 4px; text-align: center; line-height: 1.13; }
.print-copy strong { font-size: 11pt; }
.print-copy span { font-size: 8pt; }
.print-code { display: grid; justify-items: center; flex-shrink: 0; gap: 0; }
.print-code [data-qr] { width: 1.02in; }
.print-code b { font-size: 8.5pt; }
.sheet.card .print-item { width: 3.5in; flex-direction: row; padding: .22in; gap: .24in; }
.sheet.card .print-copy strong { font-size: 16pt; }
.sheet.card .print-copy span { font-size: 10pt; }
.sheet.card .print-code [data-qr] { width: 1.16in; }
.footer { border-top: 1px solid var(--line); background: var(--white); }
.footer-inner { min-height: 60px; justify-content: space-between; gap: 12px; font-size: .8rem; color: var(--muted); }
.version { margin-left: auto; font-variant-numeric: tabular-nums; }

@media (max-width: 760px) {
    .hero { grid-template-columns: 1fr; gap: 10px; }
    .hero-copy { padding-block: 8px; }
    .hero h1 { font-size: clamp(2.75rem, 9.5vw, 4.8rem); }
    .hero-art { justify-self: center; max-width: 575px; }
    .features { grid-template-columns: 1fr; gap: 18px; }
    .main, .main.home { padding-top: 22px; }
}
@media (max-width: 540px) {
    .wrap, .front .wrap { width: calc(100% - 28px); }
    .top-inner, .front .top-inner { min-height: 62px; gap: 8px; }
    .brand img { width: clamp(120px, 39vw, 154px); }
    nav, .front nav { gap: 9px; font-size: .78rem; flex: 0 0 auto; }
    nav .button, .front nav .button { padding-inline: 8px; min-height: 36px; }
    .nav-how { display: none; }
    .panel { padding: 19px; }
    .heading, .listing-row { flex-direction: column; align-items: start; }
    .listing-row .actions { max-width: 100%; }
    .two { grid-template-columns: 1fr; gap: 12px; }
    .sheet { grid-template-columns: max-content; }
}
@page { size: letter portrait; margin: .34in; }
@media print {
    html, body { background: #fff; color: #000; min-height: 0; }
    body { display: block; }
    .top, .footer, .no-print, .alert { display: none !important; }
    .wrap, .main { width: auto; max-width: none; padding: 0; margin: 0; }
    .sheet { margin: 0 auto; padding: 0; width: max-content; max-width: none; overflow: visible; grid-template-columns: repeat(3, 2in); }
    .sheet.card { grid-template-columns: repeat(2, 3.5in); }
    .sheet.sticker .print-item:nth-child(n+10) { display: none; }
    .print-item { border: .5pt solid #aaa; }
}

