:root { --brand: #b4532a; --brand-dark: #7c2d12; --ink: #1f2428; --muted: #6b7280; --bg: #f6f2ec; --line: #e5ded3; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; background: var(--bg); color: var(--ink); -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
.bar { position: sticky; top: 0; z-index: 5; background: var(--brand-dark); color: #fff; padding: 14px 16px; }
.brand { max-width: 720px; margin: 0 auto; display: flex; align-items: center; gap: 10px; font-size: 19px; font-weight: 700; }
.brand b { font-weight: 400; opacity: .85; }
.mark { width: 28px; height: 28px; border-radius: 7px; background: conic-gradient(#fff 0 25%, #f1c9b4 0 50%, #fff 0 75%, #f1c9b4 0) ; box-shadow: inset 0 0 0 2px rgba(255,255,255,.5); }
main { max-width: 720px; margin: 0 auto; padding: 16px 16px 40px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 22px 18px; margin-bottom: 16px; }
h1 { font-size: 27px; line-height: 1.15; margin: 0 0 8px; letter-spacing: -.5px; }
h2 { font-size: 21px; margin: 0 0 6px; }
.lead { margin: 0 0 20px; color: var(--muted); }
.hint { margin: 0 0 12px; color: var(--muted); font-size: 14px; }
.center { text-align: center; margin-top: 12px; }
.cam { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 190px; border-radius: 22px; background: linear-gradient(160deg, var(--brand), var(--brand-dark)); color: #fff; font-size: 21px; font-weight: 700; cursor: pointer; box-shadow: 0 14px 30px rgba(124,45,18,.3); }
.cam:active { transform: scale(.98); }
.cam svg { width: 68px; height: 68px; fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 12px; }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 50px; padding: 12px 16px; border: 0; border-radius: 14px; background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-align: center; cursor: pointer; text-decoration: none; }
.btn:active { transform: scale(.98); }
.btn.ghost { background: #fff; color: var(--brand-dark); box-shadow: inset 0 0 0 2px var(--line); }
.btn.big { width: 100%; min-height: 60px; font-size: 19px; margin-top: 16px; }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 14px; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.how { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.how li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: #374151; }
.how b { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fbe9df; color: var(--brand-dark); }
.cropwrap { border-radius: 14px; overflow: hidden; background: #111; touch-action: none; }
#cropcv { display: block; width: 100%; height: auto; }
.field { display: block; margin-top: 16px; font-size: 14px; font-weight: 700; }
.field input[type=range] { display: block; width: 100%; margin-top: 8px; accent-color: var(--brand); height: 32px; }
.seg { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; margin-top: 8px; }
.seg button { min-height: 46px; border: 0; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 2px var(--line); font: inherit; font-size: 14px; font-weight: 700; color: var(--ink); cursor: pointer; }
.seg button.on { background: var(--brand-dark); color: #fff; box-shadow: none; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 12px; }
.tile { position: relative; aspect-ratio: 1; border-radius: 14px; overflow: hidden; background: #f3f4f6 center/contain no-repeat; box-shadow: inset 0 0 0 2px var(--line); }
.tile span { position: absolute; left: 6px; bottom: 6px; background: rgba(0,0,0,.65); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 99px; }
.tile button { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border: 0; border-radius: 50%; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
.tile.add { display: grid; place-items: center; text-align: center; color: var(--brand-dark); font-weight: 700; font-size: 14px; cursor: pointer; background: #fff; box-shadow: inset 0 0 0 2px var(--brand); border-style: dashed; }
.tile.add b { display: block; font-size: 30px; line-height: 1; }
.reshead { display: flex; align-items: center; justify-content: space-between; margin: 4px 2px 8px; }
.gallery { display: grid; gap: 16px; }
@media (min-width: 640px) { .gallery { grid-template-columns: 1fr 1fr; } }
.view { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.view img { display: block; width: 100%; height: auto; background: #e5e7eb; aspect-ratio: 4 / 3; }
.view .meta { padding: 12px 14px 14px; }
.view h3 { margin: 0; font-size: 16px; }
.view p { margin: 2px 0 10px; font-size: 13px; color: var(--muted); }
.view .acts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.note { margin: 18px 2px 0; font-size: 13px; color: var(--muted); }
footer { text-align: center; font-size: 12px; color: var(--muted); padding: 0 16px 28px; }
