:root {
    --bg: #F8F3EB;
    --card: #FFFCF7;
    --ink: #1C1814;
    --muted: #6F655B;
    --line: rgba(70, 52, 31, 0.12);
    --gold: #C59A25;
    --gold-dark: #9D7618;
}
* { box-sizing: border-box; }
html, body { margin: 0; overflow-x: hidden; }
body {
    font-family: Inter, system-ui, sans-serif;
    background: var(--bg);
    color: var(--ink);
    line-height: 1.5;
}
a { color: inherit; }
button, input { font: inherit; }
.top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 0.9rem 1rem;
    background: rgba(248, 243, 235, 0.92);
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 5;
}
.brand { font-weight: 800; text-decoration: none; letter-spacing: -0.03em; }
.brand span { color: var(--gold-dark); }
.help { color: var(--muted); font-size: 0.82rem; font-weight: 700; text-decoration: none; }
.shell { width: min(1120px, calc(100% - 1.5rem)); margin: 0 auto; padding: 1.4rem 0 6rem; }
.eyebrow { margin: 0; color: var(--gold-dark); font-size: 0.72rem; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase; }
h1 { margin: 0.35rem 0 1rem; font-size: clamp(1.7rem, 4vw, 2.4rem); letter-spacing: -0.04em; line-height: 1.15; }
h2 { margin: 0.3rem 0 0.45rem; font-size: 1.45rem; letter-spacing: -0.03em; }
.lead, .count { color: var(--muted); }
.steps { display: flex; gap: 0.45rem; overflow-x: auto; list-style: none; padding: 0; margin: 0 0 0.7rem; }
.steps li { flex: 0 0 auto; color: var(--muted); font-size: 0.78rem; font-weight: 700; }
.steps li.is-on { color: var(--ink); }
.progress { height: 4px; border-radius: 999px; background: rgba(70, 52, 31, 0.08); overflow: hidden; margin-bottom: 1.3rem; }
.progress span { display: block; height: 100%; width: 25%; background: linear-gradient(90deg, #9D7618, #DAB84B); transition: width .35s ease; }
.panel, .summary, .tips, .style-item, .overlay-card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: 22px;
}
.panel { padding: 1.1rem; }
.drop {
    margin-top: 1rem;
    min-height: 180px;
    border: 1.5px dashed rgba(157, 118, 24, 0.45);
    border-radius: 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    text-align: center;
    padding: 1.2rem;
    background: #FBF7F1;
}
.drop.is-over { background: rgba(197, 154, 37, 0.12); }
.file-btn, .next, .ghost {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 1rem;
    border-radius: 14px;
    border: 0;
    cursor: pointer;
    text-decoration: none;
    font-weight: 800;
}
.file-btn, .next { background: linear-gradient(135deg, #C59A25, #DAB84B); color: #1C1814; }
.next { width: 100%; margin-top: 1rem; }
.ghost { background: transparent; border: 1px solid var(--line); color: var(--ink); }
.previews, .thumbs, .style-list { display: grid; gap: 0.7rem; margin-top: 0.8rem; }
.previews, .thumbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.shot, .thumb {
    position: relative;
    aspect-ratio: 1;
    border-radius: 16px;
    overflow: hidden;
    background: #EADCC6;
}
.shot img, .thumb img, .style-item img { width: 100%; height: 100%; object-fit: cover; }
.shot button, .mini {
    border: 0;
    background: #1C1814;
    color: #FFF9F0;
    border-radius: 999px;
    min-height: 32px;
    padding: 0 0.7rem;
    cursor: pointer;
}
.shot button { position: absolute; right: 0.4rem; bottom: 0.4rem; }
.tips { margin-top: 1rem; padding: 0.9rem 1rem; }
.tips h3 { margin: 0 0 0.4rem; font-size: 0.95rem; }
.tips ul, .style-item ul { margin: 0; padding: 0; list-style: none; color: var(--muted); font-size: 0.9rem; }
.style-item { display: grid; grid-template-columns: 72px 1fr; gap: 0.75rem; padding: 0.7rem; }
.style-item img { width: 72px; height: 96px; border-radius: 12px; }
.style-item h3 { margin: 0.15rem 0; font-size: 1rem; }
.badge { display: inline-flex; padding: 0.15rem 0.45rem; border-radius: 999px; background: rgba(197, 154, 37, 0.14); color: var(--gold-dark); font-size: 0.65rem; font-weight: 800; letter-spacing: 0.06em; }
.item-actions { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.45rem; }
.mini { background: transparent; color: var(--ink); border: 1px solid var(--line); text-decoration: none; }
.row-actions { display: grid; gap: 0.6rem; margin-top: 1rem; }
form { display: grid; gap: 0.75rem; margin-top: 1rem; }
label { display: grid; gap: 0.35rem; font-size: 0.86rem; font-weight: 700; }
input[type="text"], input[type="email"], input:not([type]), input[type="tel"] {
    min-height: 48px;
    border-radius: 12px;
    border: 1px solid var(--line);
    background: #fff;
    padding: 0 0.8rem;
}
.check { grid-template-columns: auto 1fr; align-items: start; font-weight: 500; color: var(--muted); }
.form-error { color: #8A3B2C; font-size: 0.88rem; }
.review { display: grid; gap: 0.25rem; color: var(--muted); }
.review strong { color: var(--ink); }
.summary { display: none; }
.overlay {
    position: fixed;
    inset: 0;
    z-index: 30;
    background: rgba(28, 24, 20, 0.46);
    display: flex;
    align-items: flex-end;
    padding: 1rem;
}
.overlay[hidden] { display: none; }
.overlay-card { width: min(440px, 100%); margin: 0 auto 8vh; padding: 1.3rem; text-align: center; }
.spinner {
    width: 36px;
    height: 36px;
    margin: 0 auto 0.8rem;
    border-radius: 50%;
    border: 3px solid rgba(197, 154, 37, 0.25);
    border-top-color: var(--gold);
    animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.leaving { animation: fade-out .2s ease forwards; }
.timeline { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: 0.55rem; }
.timeline li { position: relative; padding-left: 1.4rem; color: var(--muted); }
.timeline li::before { content: "○"; position: absolute; left: 0; color: var(--gold-dark); }
.timeline li.done { color: var(--ink); }
.timeline li.done::before { content: "✓"; }
.timeline li.wait { color: var(--ink); font-weight: 700; }
@keyframes fade-out { to { opacity: 0; transform: translateY(6px); } }
@media (min-width: 900px) {
    .shell { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.2rem; align-items: start; padding-top: 2rem; }
    .summary { display: block; position: sticky; top: 92px; padding: 1rem; }
    .summary h2 { font-size: 1.05rem; }
    .summary a, .summary button { width: 100%; }
    .previews, .thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .overlay { align-items: center; }
    .row-actions { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 899px) {
    .next, .file-btn, .ghost { width: 100%; }
}
