:root {
  --teal: #0f8b8d; --teal-dark: #0b6d6f; --ink: #1d2327; --muted: #667075; --line: #dde3e6;
  --bg: #f4f6f7; --card: #fff; --ok: #1b7a43; --warn: #b4540a; --err: #b42318;
  color-scheme: light;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; }
header { display: flex; align-items: center; justify-content: space-between; padding: 12px 20px; background: #fff; border-bottom: 1px solid var(--line); }
header nav a { margin-left: 16px; color: var(--muted); text-decoration: none; }
header nav a:hover { color: var(--ink); }
.brand { font-weight: 700; font-size: 18px; color: var(--teal); }
.brand span { color: var(--ink); font-weight: 500; }
main, .done { max-width: 820px; margin: 0 auto; padding: 20px 16px 60px; }
h1 { margin: 8px 0 4px; font-size: 26px; }
h2 { margin: 0 0 14px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
h3 { margin: 18px 0 8px; font-size: 15px; }
.lead { margin: 0 0 18px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 18px; margin-bottom: 16px; }
.step { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--teal); color: #fff; font-size: 13px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px 14px; }
.field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.grid .field { margin: 0; }
.field.wide { grid-column: 1 / -1; }
.field.inline { margin-top: 10px; max-width: 260px; }
label { font-weight: 600; font-size: 13px; display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
input, select, textarea { font: inherit; padding: 8px 10px; border: 1px solid #c5cdd1; border-radius: 6px; background: #fff; color: var(--ink); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: -1px; border-color: var(--teal); }
small, .small { font-size: 12.5px; }
.muted { color: var(--muted); font-weight: 400; }
.ok { color: var(--ok); }
.warn { color: var(--warn); }
.err { color: var(--err); margin: 8px 0; }
.err:empty { display: none; }
.btn { display: inline-block; font: inherit; font-weight: 600; padding: 9px 16px; border-radius: 6px; border: 1px solid #c5cdd1; background: #fff; color: var(--ink); cursor: pointer; text-decoration: none; }
.btn:hover { border-color: var(--ink); }
.btn.primary { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.primary:hover { background: var(--teal-dark); }
.btn:disabled { opacity: .45; cursor: default; }
.btn.small { padding: 5px 10px; font-size: 13px; }
.link { background: none; border: 0; padding: 0; color: var(--teal); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; text-decoration: underline; }
.price { margin: 16px 0 4px; padding: 12px 14px; background: #f0f8f8; border-radius: 8px; }
.price .big { font-size: 22px; font-weight: 700; }
.price .big .muted { font-size: 14px; }
.filerow { border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 4px; }
.fileact { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#add { margin-top: 10px; }
#job.loading { opacity: .6; pointer-events: none; }
.item { border-bottom: 1px solid var(--line); padding: 10px 0; }
.item:last-child { border-bottom: 0; }
.item-head { display: flex; gap: 12px; align-items: baseline; }
.item-head strong { flex: 1; }
.ship { margin-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.radio { font-weight: 400; font-size: 15px; display: flex; gap: 8px; align-items: baseline; justify-content: flex-start; }
.radio input { width: auto; }
.total { font-weight: 700; margin: 12px 0; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; }
.done { margin-top: 24px; }
body.login { display: grid; place-items: center; min-height: 100vh; padding: 16px; }
body.login form { width: 100%; max-width: 340px; display: flex; flex-direction: column; gap: 10px; }
body.login .brand { margin-bottom: 8px; }
@media (max-width: 560px) { header { padding: 10px 14px; } .card { padding: 14px; } }
