/* Vapaware website review.  Quiet chrome so the builds carry the colour.  No inline styles. */
:root {
  --paper: #f4f5f2;
  --card: #ffffff;
  --ink: #18201e;
  --muted: #59625e;
  --line: #d8dcd6;
  --petrol: #17332e;
  --petrol-2: #24504a;
  --brass: #b9802f;
  --brass-soft: #f3e6cf;
  --ok: #2f6f4f;
  --ok-soft: #e1efe6;
  --no: #8a3b22;
  --no-soft: #f4e2dc;
  --focus: #b9802f;
  --radius: 10px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.55 var(--sans); color: var(--ink); background: var(--paper); }
a { color: var(--petrol-2); }
a:hover { color: var(--petrol); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
h1, h2 { line-height: 1.2; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.7rem, 1.2rem + 2vw, 2.6rem); margin: 0 0 .5rem; }
h2 { font-size: 1.15rem; margin: 0 0 .75rem; }
.inline { display: inline; margin: 0; }
button.link { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.small { font-size: .85rem; }
.opt { color: var(--muted); font-weight: 400; }
.empty { color: var(--muted); }

/* Top bar */
.top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
  padding: .7rem clamp(1rem, 3vw, 2rem); background: var(--petrol); color: #fff; }
.brand { color: #fff; text-decoration: none; font-weight: 700; display: inline-flex; align-items: center; gap: .55rem; }
.brand:hover { color: #fff; }
.brand-mark { width: 18px; height: 18px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 18%, #c9d3cf 30%, #6f817b 70%); }
.brand-sub { font-weight: 400; opacity: .8; }
.top-nav { display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap; }
.top-nav a, .top-nav button { color: #e8efec; text-decoration: none; }
.top-nav a[aria-current] { color: #fff; box-shadow: inset 0 -2px 0 var(--brass); }
.top-nav button:hover, .top-nav a:hover { color: #fff; text-decoration: underline; }
.who { opacity: .75; }

.flash { background: var(--brass-soft); border-bottom: 1px solid #e3cfa9; padding: .6rem clamp(1rem, 3vw, 2rem); }
.flash p { margin: 0; }

/* Forms */
.stack { display: grid; gap: .35rem; }
.stack label { font-weight: 600; font-size: .92rem; margin-top: .4rem; }
input, textarea { font: inherit; color: inherit; width: 100%; padding: .6rem .7rem; border: 1px solid #b9c0bb;
  border-radius: 8px; background: #fff; }
textarea { resize: vertical; min-height: 6rem; }
.button { margin-top: .6rem; justify-self: start; font: inherit; font-weight: 600; color: #fff; background: var(--petrol);
  border: 0; border-radius: 8px; padding: .65rem 1.2rem; cursor: pointer; }
.button:hover { background: var(--petrol-2); }

/* Sign-in */
.signin { min-height: calc(100vh - 56px); display: grid; place-items: center; padding: 2rem 1rem; }
.signin-card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 2rem; box-shadow: 0 10px 30px rgba(23, 51, 46, .08); }
.signin-card h1 { font-size: 1.6rem; }
.signin-card .button { width: 100%; justify-self: stretch; }

/* Gallery */
.wrap { max-width: 1200px; margin: 0 auto; padding: clamp(1.5rem, 4vw, 3rem) clamp(1rem, 3vw, 2rem) 4rem; }
.intro { max-width: 760px; margin-bottom: 2.5rem; }
.lede { font-size: 1.1rem; color: var(--muted); margin: 0 0 1.2rem; }
.how { margin: 0 0 1rem; padding-left: 1.3rem; display: grid; gap: .35rem; }
.progress { font-size: .95rem; color: var(--muted); border-left: 3px solid var(--brass); padding-left: .8rem; }
.group { margin-top: 2.5rem; }
.group h2 { font-size: 1.35rem; }
.group-note { color: var(--muted); margin: -.4rem 0 1rem; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; gap: 1.2rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); }
.card-link { display: flex; flex-direction: column; height: 100%; color: inherit; text-decoration: none; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .15s, border-color .15s; }
.card-link:hover { color: inherit; border-color: #b7bfba; box-shadow: 0 10px 28px rgba(23, 51, 46, .12); }
.group-recommended .card-link { border-top: 4px solid var(--brass); }
.group-recommended .cards { grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); }
.thumb { display: block; aspect-ratio: 16 / 10; background: #e4e7e2; border-bottom: 1px solid var(--line); overflow: hidden; }
.thumb img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.card-body { display: grid; gap: .3rem; padding: 1rem 1.1rem 1.1rem; flex: 1; align-content: start; }
.card-num { font-size: .8rem; font-weight: 700; letter-spacing: .08em; color: var(--brass); }
.card-name { font-size: 1.2rem; font-weight: 700; }
.card-idea { color: var(--muted); font-size: .95rem; }
.card-meta { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; font-size: .85rem; }
.chip { display: inline-block; padding: .15rem .55rem; border-radius: 99px; background: #eceee9; color: var(--muted); font-size: .8rem; }
.chip-on { background: var(--ok-soft); color: var(--ok); }
.count { color: var(--muted); }

/* One build */
.page-build { height: 100vh; display: flex; flex-direction: column; overflow: hidden; }
.bar { display: flex; align-items: center; gap: .6rem 1.2rem; flex-wrap: wrap; padding: .55rem clamp(1rem, 2vw, 1.5rem);
  background: #fff; border-bottom: 1px solid var(--line); font-size: .92rem; }
.bar-back { font-weight: 600; }
.bar-title { margin: 0; flex: 1; min-width: 12rem; }
.bar-num { color: var(--muted); margin-right: .3rem; }
.bar-group { color: var(--brass); font-size: .8rem; margin-left: .4rem; }
.bar-tools { display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.seg a { padding: .3rem .75rem; text-decoration: none; color: var(--ink); }
.seg a[aria-current] { background: var(--petrol); color: #fff; }
.bar-step { display: inline-flex; gap: .8rem; }
.off { color: #a9b0ac; }
.review { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.stage { min-height: 0; background: #dfe3de; display: flex; justify-content: center; overflow: auto; }
.stage iframe { display: block; border: 0; background: #fff; width: 100%; height: 100%; }
.stage-phone { padding: 1.2rem 0; }
.stage-phone iframe { width: 390px; max-width: 100%; height: 100%; border-radius: 22px; box-shadow: 0 0 0 10px #1b1f1e, 0 18px 40px rgba(0, 0, 0, .25); }
.panel { min-height: 0; overflow: auto; background: #fff; border-left: 1px solid var(--line); padding: 1.1rem 1.2rem 2rem; }
.panel-idea { color: var(--muted); margin: 0 0 1rem; font-size: .95rem; }
.panel-block { padding-top: 1rem; border-top: 1px solid var(--line); margin-top: 1rem; }
.verdicts { display: grid; gap: .45rem; }
.verdict { font: inherit; text-align: left; padding: .55rem .8rem; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; color: var(--ink); }
.verdict:hover { border-color: #9fa9a4; }
.verdict-like[aria-pressed="true"] { background: var(--ok-soft); border-color: var(--ok); color: var(--ok); font-weight: 600; }
.verdict-parts[aria-pressed="true"] { background: var(--brass-soft); border-color: var(--brass); color: #7a521b; font-weight: 600; }
.verdict-no[aria-pressed="true"] { background: var(--no-soft); border-color: var(--no); color: var(--no); font-weight: 600; }
.verdicts .link { justify-self: start; color: var(--muted); }
.others { font-size: .88rem; color: var(--muted); margin: .6rem 0 0; }

/* Comments */
.comments { list-style: none; margin: 1.2rem 0 0; padding: 0; display: grid; gap: .8rem; }
.comment { border: 1px solid var(--line); border-radius: 8px; padding: .7rem .85rem; background: #fff; }
.comment.is-done { opacity: .65; }
.comment-head { margin: 0 0 .3rem; font-size: .85rem; color: var(--muted); display: flex; gap: .5rem; flex-wrap: wrap; align-items: baseline; }
.comment-head strong { color: var(--ink); }
.place { background: #eef1ed; padding: 0 .4rem; border-radius: 4px; }
.comment-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.comment-tools { display: flex; gap: 1rem; margin-top: .4rem; color: var(--muted); }
.filters { display: flex; gap: .6rem 1.2rem; flex-wrap: wrap; margin: 0 0 1.5rem; }
.filters a[aria-current] { font-weight: 700; color: var(--ink); text-decoration: none; }
.csv { margin-left: auto; }
.build-comments { margin-top: 2rem; max-width: 760px; }
.views { margin-bottom: 2rem; }
.table-scroll { overflow-x: auto; }
table.data { border-collapse: collapse; background: #fff; min-width: 100%; font-size: .92rem; }
table.data th, table.data td { text-align: left; padding: .5rem .8rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.v-like { color: var(--ok); font-weight: 600; }
.v-parts { color: #7a521b; }
.v-no { color: var(--no); }

@media (max-width: 900px) {
  .page-build { height: auto; overflow: visible; }
  .review { grid-template-columns: 1fr; }
  .stage { height: 78vh; }
  .panel { border-left: 0; border-top: 1px solid var(--line); }
  .bar-title { flex-basis: 100%; order: -1; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
