/* SortLive app styles — also linked by the print documents
   (pack slips / bin labels open in a print window that loads this
   stylesheet), so the wn-* print classes live here too. */
:root {
  --ink: #14201a; --ink-soft: #5b6d64; --paper: #f4f6f4; --card: #fff;
  --brand: #065f46; --brand-2: #047857; --line: #dde5e1;
  --red: #b91c1c; --amber: #b45309;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; background: var(--paper); color: var(--ink); }
.boot { padding: 60px 20px; text-align: center; color: var(--ink-soft); font-size: 18px; }
#app { max-width: 1180px; margin: 0 auto; padding: 0 14px 60px; }

/* header */
.sl-header { display: flex; align-items: center; gap: 14px; padding: 14px 2px; flex-wrap: wrap; }
.sl-logo { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 20px; }
.sl-logo svg { display: block; }
.sl-logo .lv { color: var(--brand); }
.sl-header .spacer { margin-left: auto; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.sl-email { color: var(--ink-soft); font-size: 14px; }
.health { font-size: 13px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.health.ok { background: #dcfce7; color: #166534; }
.health.bad { background: #fee2e2; color: #991b1b; }
.health.none { background: #fef3c7; color: #92400e; }

/* generic */
.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; box-shadow: 0 1px 4px rgba(6,60,44,.05); }
button { font-family: inherit; cursor: pointer; }
.btn-primary { background: var(--brand); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-size: 15px; font-weight: 700; }
.btn-primary:hover { background: var(--brand-2); }
.btn-ghost { background: #fff; color: var(--brand); border: 1.5px solid var(--brand); border-radius: 10px; padding: 9px 15px; font-size: 14.5px; font-weight: 700; }
.btn-danger { background: var(--red); color: #fff; border: 0; border-radius: 10px; padding: 10px 18px; font-size: 15px; font-weight: 700; }
.btn-small { padding: 6px 11px; font-size: 13.5px; }
input[type=text], input[type=email], input[type=password], textarea {
  border: 1.5px solid #cbd5d1; border-radius: 10px; padding: 10px 12px; font-size: 15.5px; font-family: inherit; background: #fff; color: var(--ink);
}
input:focus, textarea:focus { outline: 2px solid var(--brand-2); border-color: var(--brand-2); }
.badge { background: var(--brand-soft, #e3f2ec); color: var(--brand); font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
#toast { position: fixed; left: 50%; bottom: 26px; transform: translateX(-50%); z-index: 99; display: none; background: #14201a; color: #fff; padding: 12px 20px; border-radius: 12px; font-size: 15.5px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); max-width: 92vw; text-align: center; }
#toast.error { background: var(--red); }

/* auth */
.auth-wrap { max-width: 430px; margin: 7vh auto 0; }
.auth-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 30px 30px 24px; box-shadow: 0 12px 32px rgba(6,60,44,.10); }
.auth-card h1 { font-size: 24px; margin: 0 0 6px; }
.auth-card .sub { color: var(--ink-soft); font-size: 15px; margin-bottom: 18px; }
.auth-card label { display: block; font-size: 13.5px; font-weight: 700; margin: 13px 0 5px; }
.auth-card input { width: 100%; }
.auth-card .btn-primary { width: 100%; margin-top: 20px; padding: 13px; font-size: 16.5px; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 14.5px; color: var(--ink-soft); }
.auth-err { display: none; background: #fee2e2; color: #991b1b; border-radius: 10px; padding: 10px 13px; font-size: 14.5px; font-weight: 600; margin-top: 14px; }

/* live board (ported from the NOUS wnsort board) */
.wn-banner { background: var(--brand); color: #fff; border-radius: 16px; padding: 20px 22px; margin-bottom: 14px; }
.wn-banner-idle { background: #44514b; }
.wn-banner-main { font-size: clamp(26px, 4.5vw, 42px); font-weight: 800; line-height: 1.15; word-break: break-word; }
.wn-banner-slot { background: #fff; color: var(--brand); border-radius: 10px; padding: 0 12px; white-space: nowrap; }
.wn-banner-sub { font-size: 17px; opacity: .9; margin-top: 4px; }
.wn-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.wn-slot { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 13px 15px; }
.wn-slot-head { display: flex; align-items: baseline; gap: 9px; margin-bottom: 7px; flex-wrap: wrap; }
.wn-slot-letter { font-size: 30px; font-weight: 800; color: var(--brand); }
.wn-slot-buyer { font-weight: 700; word-break: break-all; }
.wn-slot-count { color: var(--ink-soft); font-size: 13.5px; margin-left: auto; }
.wn-slot-item { font-size: 15.5px; padding: 4px 0; border-bottom: 1px dashed #e7edea; }
.wn-slot-item:last-of-type { border-bottom: 0; }
.wn-slot-remove { color: var(--red); }
.wn-badge-unpaid, .wn-badge-cancelled { font-size: 11.5px; font-weight: 800; padding: 2px 7px; border-radius: 6px; color: #fff; }
.wn-badge-unpaid { background: var(--red); }
.wn-badge-cancelled { background: #6b7280; }
.wn-slot-subs { margin-top: 8px; display: flex; gap: 6px; flex-wrap: wrap; }
.wn-sub-chip { background: #e3f2ec; color: var(--brand); font-size: 12.5px; font-weight: 700; border-radius: 7px; padding: 3px 8px; }
.wn-remove-row { padding: 5px 0; border-bottom: 1px dashed #eec9c9; font-size: 15.5px; }
.wn-remove-row:last-child { border-bottom: 0; }
.wn-cancelled-row { padding: 4px 0; font-size: 15px; }
.wn-find-result { text-align: center; padding: 14px 0 4px; }
.wn-find-bin { font-size: 110px; font-weight: 800; color: var(--brand); line-height: 1; }
.wn-find-title { font-size: 24px; font-weight: 700; margin-top: 6px; }
.wn-find-buyer { font-size: 17px; color: var(--ink-soft); }
.wn-find-warn { background: #fef3c7; border: 2px solid var(--amber); color: #92400e; font-weight: 700; border-radius: 12px; padding: 10px 14px; margin-top: 12px; font-size: 16.5px; }
.wn-find-notsold { text-align: center; font-size: 24px; font-weight: 800; color: var(--red); padding: 16px 0 4px; }
.wn-find-row { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 17px; }
.wn-find-row-bin { font-size: 26px; font-weight: 800; color: var(--brand); margin-right: 8px; }

/* ---------- print documents (pack slips + bin labels) ---------- */
.wn-pack { page-break-inside: avoid; border: 2px solid #14201a; border-radius: 12px; padding: 18px 20px; margin: 0 0 18px; max-width: 640px; background: #fff; }
.wn-pack-slot { font-size: 64px; font-weight: 800; line-height: 1; color: var(--brand); }
.wn-pack-buyer { font-size: 21px; font-weight: 700; margin: 4px 0 10px; word-break: break-all; }
.wn-pack-item { display: flex; justify-content: space-between; gap: 14px; font-size: 17.5px; padding: 6px 0; border-bottom: 1px dashed #dde5e1; }
.wn-pack-money { font-weight: 700; white-space: nowrap; }
.wn-pack-foot { font-size: 16.5px; font-weight: 800; margin-top: 10px; }
.wn-pack-remove { border: 3.5px solid #14201a; border-radius: 10px; padding: 12px 15px; margin-top: 14px; }
.wn-pack-remove-head { font-size: 19px; font-weight: 800; margin-bottom: 6px; }
.wn-pack-remove-item { font-size: 17px; font-weight: 700; padding: 3px 0; }
.wn-pack-nopack { font-size: 34px; font-weight: 800; border: 4px solid #14201a; border-radius: 10px; text-align: center; padding: 14px; margin-top: 8px; }
.wn-pack-recon { background: #14201a; color: #fff; font-size: 17px; font-weight: 800; border-radius: 8px; padding: 9px 13px; margin-bottom: 10px; }
.wn-binlabels { display: flex; flex-wrap: wrap; gap: 0; }
.wn-binlabel { width: 4in; height: 6in; page-break-after: always; padding: 0.22in; display: flex; flex-direction: column; align-items: center; text-align: center; background: #fff; color: #14201a; overflow: hidden; }
.wn-binlabel-show { font-size: 11px; color: #667; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wn-binlabel-slot { font-size: 84px; font-weight: 800; line-height: 1.05; color: var(--brand); }
.wn-binlabel.has-remove .wn-binlabel-slot { font-size: 62px; }
.wn-binlabel-buyer { font-size: 19px; font-weight: 700; word-break: break-all; }
.wn-binlabel-count { font-size: 14.5px; color: #44514b; font-weight: 700; margin-top: 3px; }
.wn-binlabel-numbers { font-size: 14px; font-weight: 800; margin-top: 7px; line-height: 1.45; word-break: break-word; }
.wn-binlabel-numbers-more { font-size: 12.5px; }
.wn-binlabel-nopack { font-size: 27px; font-weight: 800; border: 3.5px solid #14201a; border-radius: 10px; padding: 8px 14px; margin-top: 10px; }
.wn-binlabel-removebox { border: 3px solid #14201a; border-radius: 10px; padding: 8px 12px; margin-top: 10px; width: 100%; }
.wn-binlabel-remove-head { font-size: 15.5px; font-weight: 800; }
.wn-binlabel-remove-item { font-size: 14.5px; font-weight: 700; padding: 2px 0; }
.wn-binlabel-noship { font-size: 20px; font-weight: 800; border: 3px solid #14201a; border-radius: 10px; padding: 14px; margin-top: 16px; }
.wn-binlabel-qr { margin-top: 12px; }
.wn-binlabel-qr svg { width: 1.9in; height: 1.9in; }
.wn-binlabel.has-remove .wn-binlabel-qr svg { width: 1.45in; height: 1.45in; }
.wn-binlabel-hint { font-size: 12.5px; font-weight: 700; margin-top: 6px; }
@media print {
  .no-print { display: none !important; }
  body { background: #fff; }
}
