/* Vantage Digital · graphite & brass. Mobile-first; content column max 560px. */
:root {
  --bg: #F4F4F2; --paper: #FFFFFF; --ink: #17181A; --muted: #4C4D52; --faint: #8B8C90;
  --line: #E3E2DE; --field: #D8D7D2; --dash: #9A9993;
  --brass: #7A5B1C; --brass-dark: #5C4414; --brass-soft: #F1E8D3; --gold: #D9BC7A; --mark: #E8C77A;
  --green: #2E7A4E; --green-dark: #23603D; --green-soft: #E2F1E8;
  --red: #B33C0B; --blue-soft: #E7EAF6; --blue-dark: #2C3F80;
  --radius: 12px;
  --body: "Outfit", "Segoe UI", system-ui, sans-serif;
  --mark-font: "Jost", "Century Gothic", sans-serif;
  --shadow: 0 1px 2px rgba(23,24,26,.06), 0 4px 16px rgba(23,24,26,.05);
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--body); font-size: 16px; line-height: 1.45; }
a { color: var(--brass); }
a:hover { color: var(--brass-dark); }
img { max-width: 100%; display: block; }
h1 { margin: 0; font-size: 28px; line-height: 1.1; font-weight: 700; }
h2 { margin: 0; font-size: 18px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.tiny { font-size: 13px; }
.center { text-align: center; }

/* Header */
.top { background: var(--paper); border-bottom: 1px solid var(--line); }
.top .inner { max-width: 560px; margin: 0 auto; padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; }
.wordmark { display: flex; flex-direction: column; gap: 2px; font-family: var(--mark-font); line-height: 1; color: var(--ink); text-decoration: none; }
.wordmark b { font-size: 20px; font-weight: 500; letter-spacing: .32em; }
.wordmark span { font-size: 10px; font-weight: 500; letter-spacing: .5em; color: var(--brass); }
.steps { max-width: 560px; margin: 0 auto; padding: 0 20px 12px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.steps div { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--muted); }
.steps div::before { content: ""; height: 4px; border-radius: 2px; background: var(--line); }
.steps .on { color: var(--ink); }
.steps .done::before, .steps .on::before { background: var(--brass); }
.steps .on { font-weight: 600; }

/* Layout */
.page { max-width: 560px; margin: 0 auto; padding: 24px 20px 32px; display: flex; flex-direction: column; gap: 20px; }
.stack { display: flex; flex-direction: column; gap: 8px; }
.stack-lg { display: flex; flex-direction: column; gap: 14px; }
.row { display: flex; gap: 12px; align-items: center; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.card { background: var(--paper); border-radius: 16px; padding: 18px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; }
.card.dark { background: var(--ink); color: #fff; }
.card.soft { background: var(--brass-soft); box-shadow: none; }
.eyebrow { font-size: 13px; font-weight: 700; letter-spacing: .1em; color: var(--brass); text-transform: uppercase; }

/* Forms */
label, .label { font-size: 14px; font-weight: 600; }
.opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=number], textarea, select {
  width: 100%; min-width: 0; border: 1px solid var(--field); border-radius: var(--radius); padding: 12px 14px;
  font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
}
input:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, select:focus-visible { outline: 2px solid var(--brass); outline-offset: 2px; }
textarea { resize: vertical; line-height: 1.45; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; color: var(--muted); }
.check input { width: 22px; height: 22px; margin: 1px 0 0; accent-color: var(--ink); flex-shrink: 0; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: var(--radius); border: 0; font: inherit; font-size: 16px; font-weight: 600; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #2C2D31; color: #fff; }
.btn-outline { background: transparent; color: var(--ink); border: 1.5px solid var(--ink); }
.btn-outline:hover { color: var(--ink); background: #fff; }
.btn-soft { background: var(--brass-soft); color: var(--brass-dark); }
.btn-soft:hover { color: var(--brass-dark); background: #EADDBF; }
.btn-ghost { background: transparent; color: var(--ink); font-weight: 500; padding: 0 12px; }
.btn-block { width: 100%; }
.btn[disabled] { background: var(--dash); cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 40px; padding: 0 14px; border: 1px solid var(--field); border-radius: 20px; background: #fff; font-size: 14px; cursor: pointer; }
.chip input:checked + span { background: var(--ink); color: #fff; border-color: var(--ink); font-weight: 600; }
.chip input:focus-visible + span { outline: 2px solid var(--brass); outline-offset: 2px; }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--field); border-radius: var(--radius); overflow: hidden; background: #fff; }
.seg button { min-height: 46px; border: 0; background: #fff; font: inherit; font-size: 16px; cursor: pointer; color: var(--ink); }
.seg button.on { background: var(--ink); color: #fff; font-weight: 600; }
.seg button[disabled] { color: var(--dash); cursor: not-allowed; }

/* Upload tiles */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tile { display: flex; flex-direction: column; gap: 6px; position: relative; min-width: 0; }
.thumb { aspect-ratio: 1; border-radius: var(--radius); background: repeating-linear-gradient(135deg, #DEDDD8 0 8px, #E9E8E4 8px 16px); overflow: hidden; display: flex; align-items: flex-end; }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb .name { font-size: 11px; background: #fff; margin: 6px; padding: 2px 6px; border-radius: 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 12px); }
.bar { height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--brass); width: 0; transition: width .2s; }
.bar.ok i { background: var(--green); width: 100%; }
.tile .x { position: absolute; top: 4px; right: 4px; width: 28px; height: 28px; border-radius: 14px; border: 0; background: rgba(23,24,26,.75); color: #fff; font-size: 16px; line-height: 1; cursor: pointer; }
.add { aspect-ratio: 1; border: 1.5px dashed var(--dash); border-radius: var(--radius); background: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; font: inherit; font-size: 13px; font-weight: 600; color: var(--ink); cursor: pointer; }
.add-wide { min-height: 64px; border: 1.5px dashed var(--dash); border-radius: var(--radius); background: #fff; font: inherit; font-size: 15px; font-weight: 600; color: var(--ink); cursor: pointer; width: 100%; }
.tag { align-self: flex-start; border: 0; font: inherit; font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 10px; cursor: pointer; }
.tag.product { background: var(--ink); color: #fff; }
.tag.inspiration { background: var(--brass-soft); color: var(--brass-dark); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 12px; white-space: nowrap; }
.pill.new { background: #ECECEA; color: var(--ink); }
.pill.in_progress { background: var(--brass-soft); color: var(--brass-dark); }
.pill.awaiting_qa { background: var(--blue-soft); color: var(--blue-dark); }
.pill.revision { background: var(--brass); color: #fff; }
.pill.delivered { background: var(--green-soft); color: var(--green-dark); }
.pill.awaiting_payment, .pill.cancelled { background: #F6E3DA; color: #8C2F08; }

/* Bottom bar */
.bottom { position: sticky; bottom: 0; background: #fff; border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom, 0px); }
.bottom .inner { max-width: 560px; margin: 0 auto; padding: 14px 20px 18px; display: flex; gap: 12px; align-items: center; }
.bottom .grow { flex-grow: 1; }

.flash { background: #F6E3DA; color: #6B2406; border-radius: var(--radius); padding: 12px 14px; font-size: 15px; }
.flash.ok { background: var(--green-soft); color: var(--green-dark); }
.price-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.price-cards div { background: #fff; border-radius: var(--radius); padding: 12px; display: flex; flex-direction: column; gap: 2px; text-align: center; }
.price-cards b { font-size: 20px; color: var(--brass); }
.price-cards span { font-size: 12px; color: var(--muted); }
.sum { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.sum.total { font-weight: 700; font-size: 18px; }
.hr { height: 1px; background: var(--line); }
.gallery { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.gallery figure { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.gallery .ph { aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: #DEDDD8; }
.gallery .ph img { width: 100%; height: 100%; object-fit: cover; }
.gallery figcaption { font-size: 13px; font-weight: 500; }
.timeline { display: flex; flex-direction: column; padding-left: 4px; }
.timeline div { display: flex; gap: 14px; align-items: flex-start; font-size: 15px; min-height: 44px; }
.timeline i { width: 14px; height: 14px; border-radius: 7px; border: 2px solid var(--dash); flex-shrink: 0; margin-top: 3px; }
.timeline .ok i { background: var(--green); border-color: var(--green); }
.timeline .ok { font-weight: 600; }

/* Admin (desktop) */
.admin { display: flex; min-height: 100vh; }
.admin nav { width: 220px; flex-shrink: 0; background: var(--ink); color: #fff; padding: 24px 18px; display: flex; flex-direction: column; gap: 6px; }
.admin nav .wordmark { color: #fff; padding: 0 8px 24px; }
.admin nav .wordmark span { color: var(--gold); }
.admin nav a { padding: 10px 12px; border-radius: 8px; color: #C8C8C4; text-decoration: none; font-size: 15px; }
.admin nav a.on { background: #2C2D31; color: #fff; font-weight: 600; }
.admin main { flex-grow: 1; padding: 28px 40px; display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.stats div { background: #fff; border-radius: 14px; padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; }
.stats b { font-size: 30px; }
.stats .warn { border: 1.5px solid var(--red); }
.stats .warn b { color: var(--red); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; }
.filters a { height: 36px; padding: 0 14px; border: 1px solid var(--field); border-radius: 18px; background: #fff; color: var(--ink); font-size: 14px; display: inline-flex; align-items: center; text-decoration: none; }
.filters a.on { background: var(--ink); border-color: var(--ink); color: #fff; font-weight: 600; }
.table { background: #fff; border-radius: 14px; overflow-x: auto; }
.table table { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 760px; }
.table th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .06em; color: var(--muted); padding: 12px 16px; border-bottom: 1px solid var(--line); text-transform: uppercase; }
.table td { padding: 14px 16px; border-bottom: 1px solid #EEEDEA; font-variant-numeric: tabular-nums; }
.table tr:last-child td { border-bottom: 0; }
.table a { color: var(--ink); font-weight: 600; }
.late { color: var(--red); font-weight: 600; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: #fff; border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.slot { display: flex; flex-direction: column; gap: 6px; }
.slot .ph { aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #EEEDEA; }
.slot .ph img { width: 100%; height: 100%; object-fit: cover; }
.slot form { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.slot .drop { aspect-ratio: 4 / 3; border-radius: 8px; border: 1.5px dashed var(--dash); display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--muted); text-align: center; padding: 8px; cursor: pointer; }
.look-box { border: 1px solid var(--line); border-radius: 10px; padding: 12px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
@media (max-width: 900px) { .admin { flex-direction: column; } .admin nav { width: auto; flex-direction: row; flex-wrap: wrap; } .two, .stats { grid-template-columns: minmax(0, 1fr); } .admin main { padding: 20px 16px; } }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.check span { font-weight: 400; }
label.check { font-weight: 400; }
.grid2 > .btn { padding: 0 12px; font-size: 15px; }

/* two buttons side by side on a phone: keep labels on one line */
.grid2 > .btn { white-space: nowrap; padding-left: 8px; padding-right: 8px; font-size: 15px; }
