/* Vision Graphics & Printing — visionspot.com
   One stylesheet for the public pages, the client portal and the back office. */
:root {
  --ink: #2a2f2d; --soft: #5c6561; --mute: #8d9591;
  --line: #e1e6e3; --line2: #cfd8d3; --bg: #f3f5f4; --bg-pub: #f6f7f6; --card: #ffffff; --tint: #fbfcfb;
  --green: #1f9a7e; --green-d: #13624f; --green-bg: #e3f3ee; --green-tint: #f1f8f5; --link: #167a63;
  --amber: #d9a441; --warn: #7a4f00; --warn-bg: #fdf1d6; --warn-line: #d9bd8a; --warn-tint: #fdf7ea;
  --late: #8c2f27; --late-bg: #fdeae8; --info: #1f4f8a; --info-bg: #e4eefb; --gray-bg: #eef1ef; --gray: #3c4441;
  --dark: #1c2320; --dark-soft: #9aa6a0; --dark-ink: #cfd8d3;
  --danger: #a4423a;
  --r: 14px; --r-lg: 18px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font-family: 'Outfit', 'Helvetica Neue', Arial, sans-serif; color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.45; -webkit-font-smoothing: antialiased; }
body.pub { background: var(--bg-pub); }
a { color: var(--link); text-decoration: none; }
a:hover { color: #0f5a49; text-decoration: underline; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: 26px; font-weight: 600; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 18px; font-weight: 600; margin: 0; }
h3 { font-size: 13px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); margin: 0; }
p { margin: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
.num, td.num, .tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- headers ---------- */
.hdr { background: var(--card); border-bottom: 1px solid var(--line); }
.hdr.dark { background: var(--dark); border-bottom: 0; }
.hdr-in { max-width: 1320px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; }
.badge-admin { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: #0e1512; background: var(--amber); border-radius: 6px; padding: 4px 8px; }
.badge-co { font-size: 12.5px; font-weight: 600; color: var(--green-d); background: var(--green-bg); border-radius: 999px; padding: 5px 11px; }
.nav { display: flex; gap: 2px; flex-wrap: wrap; flex-grow: 1; }
.nav a { padding: 9px 13px; border-radius: 9px; color: var(--gray); font-size: 14.5px; text-decoration: none; }
.nav a:hover { background: var(--gray-bg); }
.nav a.on { background: var(--green-bg); color: var(--green-d); font-weight: 600; }
.hdr.dark .nav a { color: var(--dark-ink); font-size: 14px; }
.hdr.dark .nav a:hover { background: #2a332f; }
.hdr.dark .nav a.on { background: var(--green); color: #fff; }
.who { display: flex; align-items: center; gap: 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--green-bg); color: var(--green-d); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; flex: none; }
.hdr.dark .avatar { background: var(--amber); color: var(--dark); }
.who-t { font-size: 13px; line-height: 1.25; }
.who-t span { color: var(--soft); }
.hdr.dark .who-t { color: #fff; }
.hdr.dark .who-t span { color: var(--dark-soft); }
.who form { margin: 0; }
.linkbtn { font: inherit; font-size: 13px; background: none; border: 0; color: var(--link); cursor: pointer; padding: 4px 2px; }
.hdr.dark .linkbtn { color: var(--dark-soft); }

/* ---------- page ---------- */
.main { max-width: 1320px; margin: 0 auto; padding: 26px 24px 64px; display: flex; flex-direction: column; gap: 18px; }
.main.narrow { max-width: 920px; }
.main.mid { max-width: 1120px; }
.phead { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.phead p { margin-top: 4px; color: var(--soft); font-size: 14.5px; max-width: 70ch; }
.crumb { font-size: 13.5px; color: var(--soft); }
.crumb b { color: var(--ink); font-weight: 600; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.cols { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.cols > * { flex: 1 1 380px; min-width: 0; }
.cols > .wide { flex: 2 1 560px; }
.soft { color: var(--soft); }
.small { font-size: 13.5px; }
.tiny { font-size: 12.5px; }
.mt0 { margin-top: 0; }

/* ---------- cards ---------- */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px 22px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.card.tight { padding: 16px 18px; gap: 8px; }
.card.flat { background: var(--tint); }
.card.dash { border: 1.5px dashed var(--warn-line); background: var(--warn-tint); }
.card.dash h2 { color: var(--warn); }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; padding: 7px 0; border-bottom: 1px solid #eef1ef; }
.kv:last-child { border-bottom: 0; }
.kv > span:first-child { color: var(--soft); flex: none; }
.kv > :last-child { text-align: right; min-width: 0; overflow-wrap: anywhere; }
.kv.grow > span:first-child { flex: 1 1 auto; min-width: 0; }
.kv.grow > :last-child { flex: none; }
.pre { white-space: pre-line; }

/* ---------- chips ---------- */
.chip { display: inline-block; font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; background: var(--gray-bg); color: var(--gray); }
.chip.ok { background: var(--green-bg); color: var(--green-d); }
.chip.warn { background: var(--warn-bg); color: var(--warn); }
.chip.late { background: var(--late-bg); color: var(--late); }
.chip.info { background: var(--info-bg); color: var(--info); }
.chip.src { background: #f1f3f2; color: var(--soft); font-weight: 500; }
.chip.vendor { background: #f4eee3; color: #6b4e1a; font-weight: 500; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-size: 14px; font-weight: 600; padding: 10px 16px; border-radius: 10px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; background: #f7f9f8; color: var(--ink); }
.btn.primary { background: var(--green); border-color: var(--green); color: #fff; }
.btn.primary:hover { background: #1a8a70; color: #fff; }
.btn.dark { background: var(--dark); border-color: var(--dark); color: #fff; }
.btn.bill { background: var(--warn); border-color: var(--warn); color: #fff; }
.btn.danger { color: var(--danger); }
.btn.sm { font-size: 13px; padding: 7px 12px; border-radius: 9px; }
.btn.pill { border-radius: 999px; }
.btn[disabled], .btn.off { opacity: .45; cursor: not-allowed; }
form.inline { display: inline; margin: 0; }

/* ---------- forms ---------- */
.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .lbl { font-size: 13.5px; font-weight: 600; color: var(--gray); }
.field .opt { font-weight: 400; color: var(--mute); }
.field .req { color: var(--danger); }
.field-note { font-size: 12.5px; color: var(--soft); }
input[type=text], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=search], select, textarea {
  font: inherit; font-size: 15px; padding: 10px 12px; border: 1.5px solid var(--line2); border-radius: 10px; background: var(--tint); color: var(--ink); width: 100%; min-width: 0;
}
input:focus, select:focus, textarea:focus { outline: 2px solid var(--green); outline-offset: 0; border-color: var(--green); background: #fff; }
textarea { resize: vertical; }
.fgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.fgrid.c2 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.fg-title { font-size: 12.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--soft); margin: 6px 0 2px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; cursor: pointer; }
.check input { margin-top: 3px; width: 17px; height: 17px; accent-color: var(--green); flex: none; }
.field.invalid input { border-color: var(--danger); }
.field-err { display: none; font-size: 12.5px; color: var(--danger); }
.field.invalid .field-err { display: block; }

/* ---------- flash ---------- */
.flash { border-radius: 12px; padding: 12px 16px; font-size: 14.5px; background: var(--green-bg); color: var(--green-d); border: 1px solid #c3e5da; }
.flash.err { background: var(--late-bg); color: var(--late); border-color: #f1c8c3; }
.flash.warn { background: var(--warn-bg); color: var(--warn); border-color: var(--warn-line); }
.note { background: #f1f6f3; border-radius: 11px; padding: 11px 14px; font-size: 13.5px; color: var(--gray); line-height: 1.5; }

/* ---------- tables ---------- */
.tblwrap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; color: var(--soft); font-size: 12px; letter-spacing: .05em; text-transform: uppercase; font-weight: 600; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 11px 10px; border-bottom: 1px solid #eef1ef; vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th:first-child, .tbl td:first-child { padding-left: 0; }
.tbl th:last-child, .tbl td:last-child { padding-right: 0; }
.tbl .r { text-align: right; }
.tbl tr.click { cursor: pointer; }
.tbl tr.click:hover td { background: var(--green-tint); }
.tbl tr.total td { border-top: 2px solid var(--dark); font-weight: 700; }
.tbl input, .tbl select { padding: 7px 9px; font-size: 14px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.tabs a { font-size: 14px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--card); color: var(--ink); text-decoration: none; }
.tabs a.on { border-color: var(--dark); background: var(--dark); color: #fff; font-weight: 600; }
.tabs a .n { opacity: .65; margin-left: 4px; }

/* ---------- stats & lanes ---------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: var(--ink); text-decoration: none; }
.stat:hover { text-decoration: none; border-color: var(--line2); }
.stat b { font-size: 28px; font-weight: 600; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13.5px; color: var(--soft); }
.stat.alert b { color: var(--late); }
.lanes { display: grid; grid-template-columns: repeat(5, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 4px; }
.lane { background: #e9eeeb; border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 9px; min-width: 0; }
.lane-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--gray); padding: 2px 2px 4px; }
.jc { background: var(--card); border-radius: 11px; padding: 11px 12px; display: flex; flex-direction: column; gap: 5px; color: var(--ink); text-decoration: none; border: 1px solid transparent; }
.jc:hover { text-decoration: none; border-color: var(--line2); color: var(--ink); }
.jc .t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.jc .m { font-size: 12.5px; color: var(--soft); display: flex; justify-content: space-between; gap: 6px; flex-wrap: wrap; }
.lane .empty { font-size: 13px; color: var(--mute); padding: 6px 2px; }

/* ---------- lifecycle ---------- */
.life { display: flex; align-items: center; flex-wrap: wrap; row-gap: 10px; }
.life .st { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--mute); }
.life .st .d { width: 15px; height: 15px; border-radius: 50%; border: 2px solid var(--line2); background: #fff; flex: none; }
.life .st.done { color: var(--ink); font-weight: 600; }
.life .st.done .d { background: var(--green); border-color: var(--green); }
.life .st.now { color: var(--warn); font-weight: 700; }
.life .st.now .d { border: 3px solid var(--amber); }
.life .st em { font-style: normal; font-weight: 400; color: var(--mute); }
.life .bar { flex: 1 1 18px; min-width: 14px; height: 2px; background: var(--line); margin: 0 8px; }
.life .bar.done { background: var(--green); }

/* ---------- timeline ---------- */
.tl { display: flex; flex-direction: column; }
.tl .ev { display: flex; gap: 12px; font-size: 14px; padding: 8px 0; border-bottom: 1px solid #eef1ef; }
.tl .ev:last-child { border-bottom: 0; }
.tl .ev .w { color: var(--soft); font-size: 12.5px; flex: none; width: 118px; }
.tl .ev .i { color: var(--warn); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }

/* ---------- catalog tiles (portal) ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; display: flex; flex-direction: column; color: var(--ink); text-decoration: none; }
.tile:hover { text-decoration: none; border-color: var(--green); color: var(--ink); }
.tile-art { background: #eef2f0; padding: 22px; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; max-width: 100%; }
.tile-art svg { width: 100%; height: auto; box-shadow: 0 10px 22px -12px rgba(20,40,32,.55); background: #fff; }
.tile-art .ph { font-size: 40px; color: var(--mute); }
.tile-b { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.tile-b b { font-size: 16px; font-weight: 600; }
.tile-b span { font-size: 13.5px; color: var(--soft); }
.tile-b .cta { color: var(--link); font-weight: 600; margin-top: 4px; font-size: 14px; }

/* ---------- card order ---------- */
.order-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 20px; align-items: start; }
.preview { position: sticky; top: 16px; display: flex; flex-direction: column; gap: 10px; }
.mock { background: #e9eeeb; border-radius: var(--r-lg); padding: 26px; }
.mock svg { display: block; width: 100%; height: auto; background: #fff; box-shadow: 0 14px 28px -14px rgba(20,40,32,.55); }
.mock.loading svg { opacity: .55; transition: opacity .15s; }
.plabel { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--soft); }
.fitlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.fitlist li { font-size: 13.5px; padding: 8px 12px; border-radius: 9px; background: var(--warn-bg); color: var(--warn); }
.fitlist li.info { background: var(--info-bg); color: var(--info); }
.steps { display: flex; gap: 8px; align-items: center; font-size: 13.5px; color: var(--soft); }
.steps .s { display: flex; align-items: center; gap: 6px; }
.steps .s .n { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; }
.steps .s.on { color: var(--ink); font-weight: 600; }
.steps .s.on .n { background: var(--green); border-color: var(--green); color: #fff; }
.steps .s.done .n { background: var(--green-bg); border-color: var(--green-bg); color: var(--green-d); }
.steps .sep { width: 22px; height: 1.5px; background: var(--line2); }

/* ---------- public ---------- */
.pub-hdr { width: 100%; max-width: 1180px; margin: 0 auto; padding: 18px 20px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.pub-main { width: 100%; max-width: 720px; margin: 0 auto; padding: 9vh 20px 64px; display: flex; flex-direction: column; align-items: center; gap: 22px; text-align: center; flex-grow: 1; }
.pub-main.results { padding-top: 28px; text-align: left; align-items: stretch; }
.eyebrow { font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--green-d); }
.hero { margin: 0; font-size: clamp(34px, 6vw, 56px); font-weight: 600; line-height: 1.06; letter-spacing: -0.02em; }
.lede { font-size: 17px; line-height: 1.55; color: #4d5653; max-width: 520px; }
.askbox { width: 100%; background: #fff; border: 1.5px solid var(--line2); border-radius: 24px; padding: 14px; display: flex; flex-direction: column; gap: 10px; text-align: left; box-shadow: 0 18px 40px -26px rgba(20,40,32,.45); }
.askbox textarea { font-size: 17px; line-height: 1.5; padding: 8px 10px; border: 0; background: transparent; resize: none; }
.askbox textarea:focus { outline: none; background: transparent; }
.askbox:focus-within { border-color: var(--green); }
.chips { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.chips button { font: inherit; font-size: 14px; padding: 9px 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--gray); cursor: pointer; }
.chips button:hover { border-color: var(--green); }
.bubble { align-self: flex-end; max-width: 86%; background: var(--ink); color: #fff; border-radius: 20px 20px 6px 20px; padding: 14px 18px; font-size: 16px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.matches { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.match { font: inherit; padding: 0; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; background: #fff; color: var(--ink); border-radius: 16px; border: 1px solid var(--line); text-align: left; }
.match[aria-pressed=true] { border: 2px solid var(--green); box-shadow: 0 0 0 3px var(--green-bg); }
.match .th { height: 96px; display: flex; align-items: center; justify-content: center; }
.match .bd { padding: 12px 14px 14px; display: flex; flex-direction: column; gap: 3px; }
.match .bd b { font-size: 16px; font-weight: 600; }
.match .bd span { font-size: 13px; color: var(--soft); line-height: 1.4; }
.pub-ftr { max-width: 1180px; width: 100%; margin: 0 auto; padding: 20px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13.5px; color: var(--soft); border-top: 1px solid var(--line); }
.pub-wrap { min-height: 100vh; display: flex; flex-direction: column; }
.login-card { width: 100%; max-width: 440px; margin: 8vh auto 0; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 30px; display: flex; flex-direction: column; gap: 16px; }

@media (max-width: 860px) {
  .order-grid { grid-template-columns: 1fr; }
  .preview { position: static; }
  .hdr-in, .main { padding-left: 16px; padding-right: 16px; }
  .lanes { grid-template-columns: repeat(5, minmax(230px, 82vw)); }
  .tl .ev { flex-direction: column; gap: 2px; }
  .tl .ev .w { width: auto; }
}
@media (max-width: 520px) {
  .mock { padding: 14px; }
  .card { padding: 16px; }
  .who-t { display: none; }
}
.tbl td a b, .tbl td > b { white-space: nowrap; }
