/* Countryside Cannabis Co. Creative System
 *
 * IMPORTANT: no brand colour is hard-coded in this file. The five --brand-*
 * custom properties are written at runtime by app.js from the APPROVED_CURRENT
 * rows in brand_colours. The fallbacks below are deliberately neutral greys so
 * that a missing database value looks obviously unstyled rather than silently
 * substituting an invented brand colour.
 */

:root {
  --brand-primary:    #2b2b2e;  /* fallback: neutral, NOT a brand value */
  --brand-secondary:  #45484f;
  --brand-neutral:    #a8a8a8;
  --brand-background: #f5f5f7;
  --brand-accent:     #8d8d8d;

  --ink:        var(--brand-primary);
  --paper:      #ffffff;
  --canvas:     var(--brand-background);
  --line:       #dedee4;
  --line-soft:  #ebebf0;
  --muted:      #63636d;
  --muted-soft: #8a8a95;

  --font-head: "Tenor Sans", Georgia, serif;
  --font-body: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;

  --r: 4px;
  --shadow: 0 1px 2px rgba(20,20,25,.05), 0 8px 24px rgba(20,20,25,.06);
  --wrap: 1220px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--canvas);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 32px; }

.boot {
  padding: 25vh 0; text-align: center; color: var(--muted);
  font-size: 14px; letter-spacing: .04em; text-transform: uppercase;
}

h1, h2, h3, h4 { font-family: var(--font-head); font-weight: 400; margin: 0; letter-spacing: .005em; }

a { color: var(--ink); }

/* ------------------------------- masthead ------------------------------- */

.masthead { background: var(--brand-primary); color: #fff; }

.masthead-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 32px; padding-top: 26px; padding-bottom: 26px; flex-wrap: wrap;
}

.masthead-id { display: flex; align-items: center; gap: 22px; }

.masthead h1 { font-size: 25px; color: #fff; line-height: 1.15; }

.masthead .sub {
  margin: 5px 0 0; font-size: 13.5px; color: rgba(255,255,255,.66);
  font-weight: 300; letter-spacing: .012em;
}

/* The logo slot. Never a stand-in mark - an explicit pending block. */
.mark-slot { flex: 0 0 auto; }

.logo-pending {
  display: flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed rgba(255,255,255,.42);
  color: rgba(255,255,255,.72);
  font-family: var(--font-body); font-weight: 500;
  font-size: 8.5px; letter-spacing: .1em; line-height: 1.45;
  padding: 8px 10px; width: 106px; min-height: 54px;
  text-transform: uppercase;
}

/* on light surfaces (templates, previews) */
.logo-pending.on-light {
  border-color: var(--brand-neutral);
  color: var(--muted);
}

.masthead-mode { text-align: right; }

.role-switch {
  display: inline-flex; border: 1px solid rgba(255,255,255,.26); border-radius: var(--r);
  overflow: hidden;
}

.role-btn {
  appearance: none; border: 0; cursor: pointer; background: transparent;
  color: rgba(255,255,255,.78); font-family: var(--font-body);
  font-size: 12.5px; font-weight: 500; letter-spacing: .03em;
  padding: 9px 16px; transition: background .15s, color .15s;
}

.role-btn + .role-btn { border-left: 1px solid rgba(255,255,255,.26); }
.role-btn:hover { background: rgba(255,255,255,.09); color: #fff; }
.role-btn.is-on { background: var(--brand-accent); color: var(--brand-primary); font-weight: 600; }

.role-note {
  margin: 9px 0 0; font-size: 11.5px; color: rgba(255,255,255,.5);
  letter-spacing: .03em;
}

/* ---------------------------- pending banner ---------------------------- */

.banner {
  background: var(--brand-accent);
  color: var(--brand-primary);
  border-bottom: 1px solid rgba(0,0,0,.12);
}

.banner-inner {
  max-width: var(--wrap); margin: 0 auto; padding: 13px 32px;
  display: flex; gap: 14px; align-items: baseline; flex-wrap: wrap;
}

.banner strong {
  font-size: 11.5px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase;
  white-space: nowrap;
}

.banner span { font-size: 13px; font-weight: 500; }

/* -------------------------------- navbar -------------------------------- */

.navbar { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 40; }

.navbar-inner { display: flex; gap: 4px; overflow-x: auto; }

.nav-btn {
  appearance: none; background: none; border: 0; cursor: pointer;
  font-family: var(--font-body); font-size: 13.5px; font-weight: 500;
  color: var(--muted); padding: 15px 15px 13px; white-space: nowrap;
  border-bottom: 2px solid transparent; letter-spacing: .012em;
}

.nav-btn:hover { color: var(--ink); }
.nav-btn.is-on { color: var(--ink); border-bottom-color: var(--brand-accent); font-weight: 600; }

main { padding: 38px 32px 70px; min-height: 55vh; }

.view { animation: fade .18s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(3px); } to { opacity: 1; transform: none; } }

.section-h { font-size: 21px; margin: 0 0 6px; }
.lede { margin: 0 0 22px; color: var(--muted); max-width: 74ch; font-size: 14px; }

/* ----------------------------- dash strip ------------------------------- */

.dash-strip {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin-bottom: 40px;
}

.tile { background: var(--paper); padding: 17px 18px 16px; min-height: 108px; display: flex; flex-direction: column; }

.tile-k {
  font-size: 10.5px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted-soft); margin-bottom: 9px;
}

.tile-v { font-family: var(--font-head); font-size: 27px; line-height: 1.05; margin-bottom: 4px; }
.tile-v.is-text { font-size: 15px; font-weight: 500; font-family: var(--font-body); line-height: 1.3; padding-top: 3px; }
.tile-n { font-size: 11.5px; color: var(--muted); margin-top: auto; line-height: 1.45; }

/* --------------------------- status badges ------------------------------ */
/* Text labels only - no icons, no colour-only signalling. */

.badge {
  display: inline-block; font-size: 10px; font-weight: 700; letter-spacing: .085em;
  text-transform: uppercase; padding: 3px 7px; border: 1px solid; border-radius: 2px;
  white-space: nowrap; font-family: var(--font-body); line-height: 1.5;
}

.badge-approved   { color: #1d5b34; border-color: #a9cfb8; background: #f0f8f3; }
.badge-limited    { color: #6b4d12; border-color: #dcc48a; background: #fdf8ec; }
.badge-review     { color: #7a4a10; border-color: #e0bd8c; background: #fdf6ec; }
.badge-pending    { color: #5a5a66; border-color: var(--line); background: #f6f6f9; }
.badge-archived   { color: #8a2222; border-color: #e0aeae; background: #fdf1f1; }

/* ---------------------------- quick actions ----------------------------- */

.quick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(214px, 1fr)); gap: 12px; margin-bottom: 42px; }

.quick-btn {
  appearance: none; text-align: left; cursor: pointer;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 18px; font-family: var(--font-body); transition: border-color .15s, box-shadow .15s, transform .15s;
}

.quick-btn:hover { border-color: var(--brand-accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.quick-btn strong { display: block; font-size: 14.5px; font-weight: 600; margin-bottom: 3px; }
.quick-btn span { font-size: 12.5px; color: var(--muted); line-height: 1.45; }

/* ------------------------------- panels --------------------------------- */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }

.panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 24px; }
.panel-h { font-size: 15.5px; margin: 0 0 15px; }

.rowlist { display: flex; flex-direction: column; }

.rowitem {
  display: flex; gap: 14px; align-items: baseline; justify-content: space-between;
  padding: 10px 0; border-top: 1px solid var(--line-soft);
}
.rowitem:first-child { border-top: 0; }
.rowitem-main { min-width: 0; }
.rowitem-name { font-size: 13.5px; font-weight: 500; }
.rowitem-sub { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.45; }

.empty { color: var(--muted); font-size: 13px; padding: 14px 0; font-style: normal; }

/* ------------------------------- create --------------------------------- */

.create-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(272px, 1fr)); gap: 14px; }

.tpl-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 21px 19px; text-align: left; cursor: pointer; font-family: var(--font-body);
  display: flex; flex-direction: column; gap: 9px; transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tpl-card:hover:not(:disabled) { border-color: var(--brand-accent); box-shadow: var(--shadow); transform: translateY(-1px); }
.tpl-card:disabled { cursor: not-allowed; opacity: .72; background: #fbfbfd; }
.tpl-card h4 { font-size: 16px; }
.tpl-card p { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
.tpl-card .tpl-foot { display: flex; gap: 8px; align-items: center; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.tpl-fmt { font-size: 11px; color: var(--muted-soft); letter-spacing: .05em; text-transform: uppercase; font-weight: 600; }

/* ------------------------------- builder -------------------------------- */

.builder-head { display: flex; gap: 20px; align-items: flex-start; margin-bottom: 24px; }
.builder-head h3 { font-size: 20px; }
.builder-sub { margin: 4px 0 0; font-size: 13px; color: var(--muted); }

.btn-back {
  appearance: none; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  cursor: pointer; font-family: var(--font-body); font-size: 12.5px; font-weight: 500;
  padding: 8px 13px; white-space: nowrap; color: var(--muted);
}
.btn-back:hover { border-color: var(--brand-accent); color: var(--ink); }

.builder-body { display: grid; grid-template-columns: 400px 1fr; gap: 26px; align-items: start; }

.builder-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px 24px; }

.fields-h {
  font-size: 13px; font-family: var(--font-body); font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--muted); margin: 0 0 13px;
  display: flex; align-items: center; gap: 9px;
}
.fields-h:not(:first-child) { margin-top: 30px; }

.fields-tag {
  font-size: 9.5px; font-weight: 700; letter-spacing: .1em; padding: 2px 6px;
  border: 1px solid; border-radius: 2px;
}
.tag-editable { color: #1d5b34; border-color: #a9cfb8; background: #f0f8f3; }
.tag-locked   { color: #5a5a66; border-color: var(--line); background: #f0f0f4; }

.locked-note { font-size: 12px; color: var(--muted); margin: -6px 0 13px; }

.field { margin-bottom: 14px; }
.field label { display: block; font-size: 12px; font-weight: 600; color: var(--muted); margin-bottom: 5px; letter-spacing: .015em; }
.field input, .field textarea, .field select {
  width: 100%; font-family: var(--font-body); font-size: 14px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 9px 11px;
}
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand-secondary); box-shadow: 0 0 0 3px rgba(0,0,0,.045);
}
.field textarea { resize: vertical; min-height: 78px; line-height: 1.55; }
.field-hint { font-size: 11.5px; color: var(--muted-soft); margin-top: 4px; }

/* locked field rendering: greyed and labelled */
.lockrow {
  display: flex; justify-content: space-between; gap: 12px; align-items: baseline;
  padding: 10px 12px; background: #f4f4f7; border: 1px solid var(--line-soft);
  border-radius: var(--r); margin-bottom: 7px; color: var(--muted);
}
.lockrow-k { font-size: 12px; font-weight: 600; letter-spacing: .015em; }
.lockrow-v { font-size: 12px; text-align: right; color: var(--muted-soft); min-width: 0; }
.lock-tag {
  font-size: 9px; font-weight: 700; letter-spacing: .1em; color: var(--muted-soft);
  border: 1px solid var(--line); border-radius: 2px; padding: 1px 5px; background: var(--paper);
  white-space: nowrap;
}

.builder-actions { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; gap: 9px; flex-wrap: wrap; }

.btn-primary, .btn-ghost {
  appearance: none; cursor: pointer; font-family: var(--font-body); font-size: 13.5px;
  font-weight: 600; padding: 10px 18px; border-radius: var(--r); border: 1px solid transparent;
  letter-spacing: .015em;
}
.btn-primary { background: var(--brand-primary); color: #fff; }
.btn-primary:hover { background: var(--brand-secondary); }
.btn-ghost { background: var(--paper); border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: var(--brand-accent); }
.btn-primary:disabled, .btn-ghost:disabled { opacity: .5; cursor: not-allowed; }

/* preview */
.builder-preview { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.preview-bar {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  padding: 12px 18px; border-bottom: 1px solid var(--line); background: #fafafc;
}
.preview-label { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted-soft); }
.preview-stage { padding: 34px; display: flex; justify-content: center; background: #f0f0f4; overflow-x: auto; }
.preview-foot { padding: 14px 18px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: #fafafc; }

/* -------------------------------- find ---------------------------------- */

.search-form { display: flex; gap: 9px; margin-bottom: 14px; max-width: 660px; }
.search-form input {
  flex: 1; font-family: var(--font-body); font-size: 15px; padding: 11px 14px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); color: var(--ink);
}
.search-form input:focus { outline: none; border-color: var(--brand-secondary); box-shadow: 0 0 0 3px rgba(0,0,0,.045); }

.find-chips { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 20px; }
.chip {
  appearance: none; cursor: pointer; background: var(--paper); border: 1px solid var(--line);
  border-radius: 100px; padding: 6px 13px; font-family: var(--font-body); font-size: 12.5px; color: var(--muted);
}
.chip:hover { border-color: var(--brand-accent); color: var(--ink); }
.chip.is-on { background: var(--brand-primary); border-color: var(--brand-primary); color: #fff; font-weight: 500; }

.search-meta { font-size: 12.5px; color: var(--muted); margin-bottom: 16px; }

.result {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; margin-bottom: 11px;
}
.result.is-best { border-color: var(--brand-secondary); border-left: 3px solid var(--brand-accent); }
.result.is-archived { background: #fbfbfd; }
.result-top { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; flex-wrap: wrap; margin-bottom: 7px; }
.result-name { font-family: var(--font-head); font-size: 16.5px; }
.result-kind { font-size: 10.5px; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-soft); }
.result-desc { font-size: 13px; color: var(--muted); margin: 0 0 9px; line-height: 1.55; }
.result-meta { display: flex; gap: 16px; flex-wrap: wrap; font-size: 11.5px; color: var(--muted-soft); }
.result-meta b { font-weight: 600; color: var(--muted); }

.notice {
  margin-top: 11px; padding: 11px 13px; border-radius: var(--r); font-size: 12.5px; line-height: 1.55;
  border: 1px solid;
}
.notice-warn { background: #fdf6ec; border-color: #e6cfa6; color: #6b4a10; }
.notice-stop { background: #fdf1f1; border-color: #e6bcbc; color: #7d2020; }
.notice strong { font-weight: 700; }

.supersede {
  margin-top: 10px; padding: 12px 14px; background: #f0f8f3; border: 1px solid #b6d8c4;
  border-radius: var(--r); font-size: 12.5px; color: #1d5b34; line-height: 1.55;
}

/* ----------------------------- guidelines ------------------------------- */

.tabs { display: flex; gap: 3px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; }
.tab {
  appearance: none; background: none; border: 0; cursor: pointer; font-family: var(--font-body);
  font-size: 13.5px; font-weight: 500; color: var(--muted); padding: 11px 15px;
  border-bottom: 2px solid transparent; white-space: nowrap;
}
.tab:hover { color: var(--ink); }
.tab.is-on { color: var(--ink); font-weight: 600; border-bottom-color: var(--brand-accent); }

.card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 24px 26px; margin-bottom: 18px; }
.card > h3 { font-size: 17px; margin-bottom: 5px; }
.card-note { font-size: 12.5px; color: var(--muted); margin: 0 0 18px; }

/* swatches - filled from the DB hex, with the hex printed as text */
.swatch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(184px, 1fr)); gap: 14px; }
.swatch { border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.swatch-chip { height: 88px; border-bottom: 1px solid var(--line); }
.swatch-body { padding: 12px 14px 14px; }
.swatch-role { font-size: 10.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted-soft); }
.swatch-name { font-family: var(--font-head); font-size: 15.5px; margin: 3px 0 7px; }
.swatch-val { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.7; }
.swatch-val span { display: block; }

.spec-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.spec-table th {
  text-align: left; font-family: var(--font-body); font-size: 10.5px; font-weight: 700;
  letter-spacing: .09em; text-transform: uppercase; color: var(--muted-soft);
  padding: 0 14px 9px 0; border-bottom: 1px solid var(--line);
}
.spec-table td { padding: 12px 14px 12px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.55; }
.spec-table td:last-child, .spec-table th:last-child { padding-right: 0; }
.spec-table .k { font-weight: 600; white-space: nowrap; }
.spec-key { font-weight: 600; }
.spec-src { font-size: 11px; color: var(--muted-soft); margin-top: 5px; line-height: 1.5; }
.spec-pending { color: var(--muted-soft); }

.typespec { padding: 16px 0 4px; border-bottom: 1px solid var(--line-soft); }
.typespec:last-child { border-bottom: 0; }
.typespec-name { font-size: 22px; margin-bottom: 4px; }
.typespec-name.is-head { font-family: var(--font-head); }
.typespec-name.is-body { font-family: var(--font-body); font-weight: 500; }
.typespec-meta { font-size: 12px; color: var(--muted); }

/* -------------------------------- forms --------------------------------- */

.req-form { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 26px 28px 28px; max-width: 900px; }
.req-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.req-full { grid-column: 1 / -1; }
.req-actions { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-soft); display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.req-req { color: #8a2222; font-weight: 700; }

.result-ok {
  background: #f0f8f3; border: 1px solid #b6d8c4; color: #1d5b34;
  border-radius: var(--r); padding: 16px 18px; margin-top: 16px; font-size: 13.5px; line-height: 1.6; max-width: 900px;
}
.result-bad {
  background: #fdf1f1; border: 1px solid #e6bcbc; color: #7d2020;
  border-radius: var(--r); padding: 16px 18px; margin-top: 16px; font-size: 13.5px; line-height: 1.6; max-width: 900px;
}
.result-ok code, .result-bad code, .codeline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px;
  background: rgba(0,0,0,.05); padding: 2px 5px; border-radius: 2px;
}
.codeblock {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px;
  background: var(--brand-primary); color: #eaeaf0; padding: 14px 16px; border-radius: var(--r);
  overflow-x: auto; line-height: 1.65; margin: 12px 0 0; white-space: pre-wrap; word-break: break-word;
}

/* -------------------------------- admin --------------------------------- */

.admin-banner {
  background: var(--brand-secondary); color: #fff; border-radius: var(--r);
  padding: 14px 18px; margin-bottom: 28px; font-size: 13px; display: flex; gap: 10px; flex-wrap: wrap;
}
.admin-banner strong { letter-spacing: .02em; }
.admin-banner span { color: rgba(255,255,255,.78); }

.admin-tools { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; margin-bottom: 8px; }

.tool {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 17px 18px; text-align: left; font-family: var(--font-body); cursor: pointer;
}
.tool:hover:not(:disabled) { border-color: var(--brand-accent); box-shadow: var(--shadow); }
.tool:disabled { opacity: .6; cursor: not-allowed; background: #fbfbfd; }
.tool strong { display: block; font-size: 14px; font-weight: 600; margin-bottom: 3px; }
.tool span { font-size: 12px; color: var(--muted); line-height: 1.45; }

.audit-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.audit-table th {
  text-align: left; font-size: 10px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase;
  color: var(--muted-soft); padding: 0 12px 9px 0; border-bottom: 1px solid var(--line); white-space: nowrap;
}
.audit-table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; line-height: 1.5; }
.audit-table tbody tr:hover { background: #fafafc; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 11.5px; }

/* -------------------------------- footer -------------------------------- */

.foot { border-top: 1px solid var(--line); background: var(--paper); padding: 26px 0 34px; }
.foot-inner { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; font-size: 12px; color: var(--muted); }
.foot strong { color: var(--ink); font-weight: 600; }
.foot-inner span { display: block; margin-top: 4px; }
.foot-right { text-align: right; line-height: 1.7; }

/* -------------------------------- toast --------------------------------- */

.toast {
  position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%);
  background: var(--brand-primary); color: #fff; padding: 13px 22px; border-radius: var(--r);
  font-size: 13.5px; z-index: 200; box-shadow: 0 8px 30px rgba(0,0,0,.22); max-width: 90vw;
}

/* ============================ TEMPLATE ARTWORK ==========================
 * Shared rendering for the on-screen previews. Print geometry lives in the
 * template files themselves; this is the preview surface only.
 */

.art { background: #fff; box-shadow: 0 2px 14px rgba(20,20,25,.14); position: relative; flex: 0 0 auto; }
.art * { box-sizing: border-box; }

.art-pending {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  border: 1px dashed var(--brand-neutral); color: var(--muted);
  font-family: var(--font-body); font-weight: 600; letter-spacing: .09em; text-transform: uppercase;
  line-height: 1.4;
}

.ph {
  color: var(--muted-soft); font-weight: 600; letter-spacing: .05em; text-transform: uppercase;
  border-bottom: 1px dotted var(--brand-neutral);
}

@media print {
  .masthead, .navbar, .foot, .builder-form, .preview-bar, .preview-foot, #pendingBanner, .banner { display: none !important; }
  .preview-stage { padding: 0; background: #fff; }
  .art { box-shadow: none; }
  body { background: #fff; }
}

/* ------------------------------ responsive ------------------------------ */

@media (max-width: 1120px) {
  .dash-strip { grid-template-columns: repeat(3, 1fr); }
  .builder-body { grid-template-columns: 1fr; }
}

@media (max-width: 780px) {
  .wrap { padding: 0 18px; }
  main { padding: 26px 18px 54px; }
  .dash-strip { grid-template-columns: repeat(2, 1fr); }
  .split, .req-grid { grid-template-columns: 1fr; }
  .masthead-inner { flex-direction: column; align-items: flex-start; }
  .masthead-mode { text-align: left; }
  .masthead h1 { font-size: 21px; }
}
