:root {
  --ink: #16181d; --muted: #6b7280; --line: #e5e7eb; --bg: #fafaf9; --card: #fff;
  --accent: #ea580c; --accent-ink: #fff; --ok: #15803d; --bad: #b91c1c; --radius: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 28px; border-bottom: 1px solid var(--line); background: #fff; }
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -.01em; }
.mark { color: var(--accent); }
.top nav a { margin-left: 20px; color: var(--ink); text-decoration: none; font-size: 15px; }
.top nav a:hover { color: var(--accent); }
main { max-width: 1120px; margin: 0 auto; padding: 0 24px 40px; }
.hero { padding: 44px 0 20px; }
.hero h1 { font-size: clamp(30px, 4.5vw, 46px); line-height: 1.1; margin: 0 0 12px; letter-spacing: -.02em; }
.lead { font-size: 18px; color: #374151; max-width: 720px; margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.fine { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

.tool { display: grid; grid-template-columns: 1.25fr 1fr; gap: 22px; margin: 18px 0 40px; }
@media (max-width: 860px) { .tool { grid-template-columns: 1fr; } .top nav a { margin-left: 12px; } .drop { position: relative; top: 0; height: 360px; } }
.drop { position: sticky; top: 16px; align-self: start; height: 520px; border: 2px dashed #d1d5db; border-radius: var(--radius); background: #fff;
  display: flex; align-items: center; justify-content: center; cursor: pointer; overflow: hidden; outline: none; }
.drop:focus-visible, .drop.over { border-color: var(--accent); background: #fff7ed; }
.drop.has { border-style: solid; border-color: var(--line); cursor: grab; }
.drop-inner { text-align: center; padding: 24px; display: flex; flex-direction: column; gap: 6px; }
.drop-inner strong { font-size: 20px; }
.drop-inner span { color: var(--muted); font-size: 14px; }
#view { position: absolute; inset: 0; width: 100%; height: 100%; }
.panel { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.status { font-weight: 600; margin-bottom: 10px; }
.status.err { color: var(--bad); }
.status.busy::after { content: ""; display: inline-block; width: 12px; height: 12px; margin-left: 8px; border: 2px solid var(--accent);
  border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -1px; }
@keyframes spin { to { transform: rotate(360deg); } }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 16px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.price { font-weight: 800; font-size: 20px; }

form label { display: block; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
form input, form select, form textarea { display: block; width: 100%; margin-top: 4px; padding: 10px 12px; font: inherit; font-weight: 400;
  border: 1px solid #d1d5db; border-radius: 10px; background: #fff; }
form input:focus, form select:focus, form textarea:focus { outline: 2px solid #fdba74; border-color: var(--accent); }
form label.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
form label.check input { width: auto; margin-top: 4px; }
button { font: inherit; font-weight: 700; border: 0; border-radius: 10px; padding: 12px 18px; background: var(--accent); color: var(--accent-ink); cursor: pointer; }
button:hover { filter: brightness(.95); }
button:disabled { opacity: .5; cursor: wait; }
button.secondary { background: #f3f4f6; color: var(--ink); }
button.danger { background: var(--bad); }
button.small { padding: 7px 12px; font-size: 14px; }
#orderBtn { width: 100%; font-size: 17px; }
.total { font-size: 18px; font-weight: 700; margin: 4px 0 12px; }

.how h2 { font-size: 26px; margin: 10px 0 10px; }
.how ol { padding-left: 22px; max-width: 760px; }
.how li { margin-bottom: 8px; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; margin: 20px 0; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.card h3 { margin: 0 0 6px; font-size: 16px; }
.card p { margin: 0; color: #374151; font-size: 15px; }

.narrow { max-width: 720px; margin: 36px auto; }
.wide { margin: 28px 0; }
.prose h2 { font-size: 20px; margin-top: 28px; }
.prose li { margin-bottom: 6px; }
.state { font-size: 20px; font-weight: 700; }
.state-ready { color: var(--ok); }
.state-rejected, .state-cancelled { color: var(--bad); }
.err { color: var(--bad); font-weight: 600; }
.stack { display: block; max-width: 420px; }
.inline { display: inline-block; margin: 0 8px 8px 0; }
.row { display: flex; gap: 10px; flex-wrap: wrap; }
.row-between { display: flex; justify-content: space-between; align-items: center; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.list { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.list th, .list td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.list th { color: var(--muted); font-weight: 600; }
.pill { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: #f3f4f6; color: var(--ink); }
.pill-review { background: #fef3c7; } .pill-approved { background: #e0f2fe; } .pill-printing { background: #ffedd5; }
.pill-ready { background: #dcfce7; color: var(--ok); } .pill-picked_up { background: #f3f4f6; color: var(--muted); }
.pill-rejected, .pill-cancelled { background: #fee2e2; color: var(--bad); }
a.on { font-weight: 700; color: var(--ink); text-decoration: none; }
.pre { white-space: pre-wrap; }
.hist { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; font-size: 13px; white-space: pre-wrap; }
code { font-size: 13px; word-break: break-all; }
.foot { border-top: 1px solid var(--line); padding: 20px 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 14px; background: #fff; }
