:root {
  /* PrintMyOrder brand tokens (see the brand kit) */
  --ink: #0E1B2C; --tile: #1B2D45; --teal: #13A39A; --teal-dk: #0B7A73; --grey: #3F4D5E; --muted: #5A6878;
  --line: #E1E5EA; --field: #C9CFD6; --bg: #F4F6F8; --card: #FFFFFF; --mint: #E7F6F4; --amber: #FFF4E5; --amber-dk: #8A5300;
  --rose: #FDECEC; --rose-dk: #A12A2A; --on-navy-muted: #9AA7B6;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 "Inter", -apple-system, "Segoe UI", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.wrap { max-width: 960px; margin: 0 auto; padding: 24px 20px 48px; display: flex; flex-direction: column; gap: 16px; }
.top { display: flex; gap: 14px; align-items: center; }
h1 { margin: 0; font-size: 24px; letter-spacing: -0.01em; }
h2 { margin: 0 0 12px; font-size: 17px; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.card { background: var(--card); border-radius: 12px; padding: 22px; box-shadow: 0 1px 2px rgba(14,27,44,.06), 0 0 0 1px var(--line); }
.brandbar { background: var(--ink); color: #fff; border-radius: 12px; padding: 18px 22px; }
.brandbar p { color: var(--on-navy-muted); font-size: 14px; }
.wordmark { font-size: 26px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.wordmark span { color: var(--teal); }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.status { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.status.ok { background: var(--mint); }
.status.warn { background: var(--amber); }
.status.bad { background: var(--rose); }
.status h2 { margin: 0 0 2px; font-size: 18px; }
.grow { flex: 1 1 260px; min-width: 0; }
.dot { width: 14px; height: 14px; border-radius: 50%; background: var(--muted); flex: 0 0 14px; }
.ok .dot { background: var(--teal); } .warn .dot { background: var(--amber-dk); } .bad .dot { background: var(--rose-dk); }
.btn { font: inherit; font-weight: 700; padding: 10px 18px; border-radius: 6px; border: 1.5px solid var(--ink); background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; display: inline-block; min-height: 44px; }
.btn.primary { background: var(--teal); border-color: var(--teal); color: var(--ink); }
.btn.primary:hover:not(:disabled) { background: #18B5AB; border-color: #18B5AB; }
.btn:hover:not(:disabled):not(.primary) { background: var(--bg); }
.btn:disabled { opacity: .45; cursor: default; }
.btn:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.steps { margin: 0 0 16px; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.code { font: 700 26px/1 ui-monospace, Consolas, monospace; letter-spacing: .18em; color: var(--teal-dk); }
.switch-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 0; cursor: pointer; }
.switch-row input { appearance: none; width: 48px; height: 28px; border-radius: 14px; background: var(--field); position: relative; cursor: pointer; flex: 0 0 48px; margin: 0; transition: background .15s; }
.switch-row input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; transition: left .15s; }
.switch-row input:checked { background: var(--teal); }
.switch-row input:checked::after { left: 23px; }
.designs { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: 10px; margin-bottom: 10px; }
.design { display: flex; flex-direction: column; gap: 6px; font-weight: 500; font-size: 14px; cursor: pointer; padding: 8px; border-radius: 10px; border: 2px solid transparent; background: var(--bg); }
.design input { position: absolute; opacity: 0; }
.design:has(input:checked) { border-color: var(--teal); }
.design:has(input:focus-visible) { outline: 3px solid var(--teal); }
.thumb { height: 64px; border-radius: 6px; background: #fff; border: 1px solid #E1E5EA; position: relative; }
.thumb::before { content: ""; position: absolute; left: 8px; top: 8px; width: 45%; height: 8px; border-radius: 3px; }
.thumb::after { content: ""; position: absolute; left: 8px; right: 16px; top: 24px; height: 26px; background: repeating-linear-gradient(#C9CFD6 0 4px, transparent 4px 10px); }
.thumb.custom::before { background: linear-gradient(90deg, var(--ink) 40%, var(--teal) 40%); }
.thumb.clean::before { background: var(--teal); } .thumb.classic::before { background: var(--ink); } .thumb.minimal::before { background: #9AA3AC; }
.radio { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.radio input { width: 18px; height: 18px; accent-color: var(--teal); }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--grey); margin-top: 10px; }
input[type=text], select { font: inherit; color: var(--ink); padding: 10px 12px; border: 1px solid var(--field); border-radius: 6px; background: #fff; min-height: 44px; }
#orderName { flex: 1 1 160px; }
.save-row { display: flex; gap: 14px; align-items: center; }
.jobs, .devices { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
.jobs li, .devices li { display: flex; justify-content: space-between; gap: 10px; border-bottom: 1px solid var(--line); padding-bottom: 8px; }
.tag { font-size: 12px; font-weight: 600; padding: 2px 8px; border-radius: 10px; background: var(--bg); color: var(--grey); white-space: nowrap; }
.tag.done { background: var(--mint); color: var(--teal-dk); } .tag.failed { background: var(--rose); color: var(--rose-dk); }
.linkbtn { background: none; border: 0; color: var(--rose-dk); font: inherit; cursor: pointer; text-decoration: underline; padding: 0; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
footer { text-align: center; }
footer a { color: var(--teal-dk); }
.design[hidden] { display: none; }
