/* Crank Operations look (owner chose design "E", 2026-11-12): Inter, slate text on white, cool greys,
   icon rail for sections on the left, the section's pages as tabs on top. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/static/inter.woff2') format('woff2'); }
:root {
  --bg: #eef1f5; --card: #fff; --ink: #172033; --ink2: #3c4a63; --muted: #5d6b82; --line: #e1e6ee; --line2: #d8dee8; --soft: #f7f9fc;
  --brand: #d4141c; --blue: #1d4ed8; --accent: #172033; --rail: #172033; --ok: #047857; --okbg: #d1fae5; --err: #b91c1c; --errbg: #fee2e2;
  --warnbg: #fef3c7; --warn: #92400e;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; }
a { color: inherit; }
main { width: 100%; max-width: 1400px; margin: 0 auto; padding: 18px 24px; }

/* frame: rail + top tabs */
.shell { display: flex; min-height: 100vh; }
.rail { flex: 0 0 76px; background: var(--rail); display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 14px 0; position: sticky; top: 0; height: 100vh; }
.rail .logo { width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 17px; text-decoration: none; margin-bottom: 10px; }
.rail a.sec { width: 62px; min-height: 58px; border-radius: 12px; color: #b3bdd0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-decoration: none; font-size: 11px; text-align: center; line-height: 1.15; padding: 6px 2px; }
.rail a.sec:hover { background: #222d44; color: #fff; }
.rail a.sec.on { background: #2b3650; color: #fff; }
.rail .me { margin-top: auto; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rail .me a { width: 38px; height: 38px; border-radius: 99px; background: #2b3650; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; text-decoration: none; }
.rail .me .linkbtn { color: #b3bdd0; font-size: 11px; text-decoration: none; }
.frame { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 0 24px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.toptabs { display: flex; gap: 2px; flex-wrap: wrap; }
.toptabs a { padding: 15px 12px 13px; color: var(--ink2); text-decoration: none; font-size: 14px; border-bottom: 2px solid transparent; }
.toptabs a:hover { color: var(--ink); }
.toptabs a.on { color: var(--blue); font-weight: 600; border-bottom-color: var(--blue); }
.topright { margin-left: auto; display: flex; align-items: center; gap: 10px; padding: 8px 0; }
.gsearch { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line2); border-radius: 10px; padding: 7px 12px; background: var(--soft); width: 240px; max-width: 60vw; color: var(--muted); }
.gsearch input { border: 0; background: transparent; font: inherit; font-size: 14px; outline: none; flex: 1; min-width: 0; color: var(--ink); }
.brandbar { background: var(--rail); color: #fff; padding: 12px 18px; font-weight: 700; letter-spacing: 1px; }
.brandbar span { color: #fca5a5; }
@media (max-width: 760px) {
  .shell { flex-direction: column; }
  .rail { position: static; height: auto; flex: none; flex-direction: row; padding: 6px 10px; overflow-x: auto; }
  .rail .logo { margin: 0 6px 0 0; width: 36px; height: 36px; }
  .rail a.sec { min-height: 44px; width: auto; padding: 4px 10px; flex-direction: row; }
  .rail .me { margin: 0 0 0 auto; flex-direction: row; }
  .topbar { padding: 0 12px; position: static; }
  .toptabs { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  .toptabs a { white-space: nowrap; padding: 12px 10px 10px; }
  .gsearch { width: 100%; max-width: none; }
  .topright { width: 100%; margin: 0; }
  main { padding: 14px 12px; }
}
h1 { font-size: 26px; margin: 4px 0 12px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
h2 { font-size: 18px; margin: 0 0 12px; }
h3 { font-size: 15px; margin: 16px 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono, code { font-family: ui-monospace, Consolas, monospace; }
.errtext { color: var(--err); }

.opsgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.opsgrid .card { margin: 0; text-decoration: none; color: inherit; display: block; }
.opsgrid .card:hover { border-color: #dc2626; }
.opsgrid .num { font-size: 26px; font-weight: 800; }
.opssec { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #6b7280; }
.pill { font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 99px; letter-spacing: .5px; }
.pill.demo { background: #fde68a; color: #78350f; }
.pill.test { background: #fca5a5; color: #7f1d1d; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 16px; margin-bottom: 16px; }
/* status cards at the top of a page (each page shows only its own work) */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-bottom: 16px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 2px; min-height: 44px; }
.stat .k { font-size: 13px; color: var(--muted); }
.stat .v { font-size: 26px; font-weight: 600; color: var(--ink); }
.stat .s { font-size: 12px; color: var(--muted); }
a.stat:hover { border-color: var(--line2); box-shadow: 0 2px 8px rgba(23,32,51,.06); }
.stat.on { border: 2px solid var(--blue); box-shadow: 0 2px 8px rgba(23,32,51,.08); }
.stat.needs { border-color: #f3c0c3; background: #fffafa; }
.stat.needs .k, .stat.needs .v { color: #a8101a; }
.stat.needs.on { border: 2px solid var(--brand); background: #fff7f7; }
@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .stat { padding: 10px 12px; } .stat .v { font-size: 22px; }
}
.grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
@media (max-width: 900px) { .grid { grid-template-columns: 1fr; } }

.btn { display: inline-block; border: 1px solid var(--line2); background: #fff; color: var(--ink); border-radius: 10px; padding: 8px 14px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: var(--soft); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: #b91118; }
.btn.go { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.big { padding: 14px 20px; font-size: 18px; }
.btn.sq { width: 40px; height: 40px; padding: 0; font-size: 20px; }
.btn.all { height: 40px; padding: 0 10px; margin-left: 6px; }
.btns { display: flex; gap: 10px; flex-wrap: wrap; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: #2563eb; cursor: pointer; text-decoration: underline; }
.linkbtn.danger { color: var(--err); }
form { margin: 0; }

.flash { padding: 10px 14px; border-radius: 8px; margin-bottom: 12px; }
.flash.ok { background: var(--okbg); color: var(--ok); }
.flash.err { background: var(--errbg); color: var(--err); font-weight: 600; }
.flash.warn { background: var(--warnbg); color: var(--warn); }
.flash.note { background: var(--warnbg); color: var(--warn); font-size: 18px; }
.secret { display: block; margin-top: 6px; padding: 8px; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 6px; user-select: all; word-break: break-all; }

.badge { font-size: 13px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: #e5e7eb; white-space: nowrap; }
.s-new { background: #dbeafe; color: #1e40af; }
.s-picking { background: #fef3c7; color: #92400e; }
.s-booked { background: #ede9fe; color: #5b21b6; }
.s-done { background: var(--okbg); color: var(--ok); }
.s-hold { background: var(--errbg); color: var(--err); }
.s-closed { background: #e5e7eb; color: #374151; }

.bar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.scan { flex: 1; min-width: 260px; font-size: 20px; padding: 12px 14px; border: 2px solid #94a3b8; border-radius: 10px; width: 100%; margin-bottom: 10px; }
.scan:focus { outline: none; border-color: var(--brand); }
.scan.bad { border-color: var(--err); background: var(--errbg); }
.scan.good { border-color: var(--ok); background: var(--okbg); }

.tabs { display: flex; gap: 4px; border-bottom: 2px solid var(--line); margin: 8px 0 0; flex-wrap: wrap; }
.tab { padding: 10px 14px; text-decoration: none; font-weight: 600; font-size: 1.1em; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; }
.tab-far { margin-left: auto; }
.zh { font-weight: 600; opacity: 0.85; margin-left: 4px; white-space: nowrap; }
.tab.on { color: var(--ink); border-color: var(--brand); }
.tab b { background: #e5e7eb; border-radius: 99px; padding: 0 8px; font-size: 13px; margin-left: 4px; }
.olist { background: var(--card); border: 1px solid var(--line); border-top: 0; border-radius: 0 0 10px 10px; }
.orow { display: grid; grid-template-columns: 110px 1.4fr 200px 1fr 1fr 70px 150px; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); text-decoration: none; }
/* products */
.prow { grid-template-columns: 80px 2fr 120px 140px 220px; }
.pm-photos { display: flex; flex-wrap: wrap; gap: 12px; }
.pm-photos figure { margin: 0; width: 160px; }
.pm-photos img { width: 160px; height: 160px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.pm-photos figcaption { font-size: 12px; word-break: break-all; }
ul.gate { list-style: none; padding: 0; }
ul.gate li { padding: 8px 0; border-top: 1px solid var(--line); }
.gate-ok { color: #15803d; font-weight: 900; } .gate-todo { color: var(--muted); font-weight: 900; } .gate-bad { color: #b91c1c; font-weight: 900; }
form.inline { display: inline-flex; gap: 6px; align-items: center; }
.decide form { display: flex; gap: 8px; align-items: center; margin: 8px 0; flex-wrap: wrap; }
.decide input { flex: 1; min-width: 180px; }
label.upload { display: inline-block; padding: 8px 12px; border: 1px dashed var(--line); border-radius: 8px; cursor: pointer; }
label.upload input { display: block; margin-top: 4px; }
.badge.pst-approved_listing, .badge.pst-live { background: #dcfce7; color: #166534; }
.badge.pst-submitted { background: #fef9c3; color: #854d0e; }
.badge.pst-needs_info, .badge.pst-rejected { background: #fee2e2; color: #991b1b; }
.ophotos { display: flex; gap: 6px; align-items: center; }
.ophotos img { width: 60px; height: 60px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 6px; }
.ophotos .nophoto { width: 60px; height: 60px; display: grid; place-items: center; font-size: 11px; color: var(--muted); background: #f3f4f6; border-radius: 6px; text-align: center; overflow: hidden; }
.ophotos .more { font-weight: 700; color: var(--muted); }
.orow:first-child { border-top: 0; }
.orow:hover { background: #f9fafb; }
.orow small { display: block; color: var(--muted); font-size: 13px; }
.oname { font-weight: 900; font-size: 20px; }
.kbconf { color: #047857; }
.kbflow summary { cursor: pointer; } .kbflow ol { margin: 10px 0 0; }
.kbtext { max-width: 900px; } .kbline { margin: 0 0 8px; line-height: 1.6; } .kbline:target { background: #fff7d6; }
.kbtime { display: inline-block; min-width: 46px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.kbhits { list-style: none; padding: 0; margin: 0; } .kbhits li { padding: 10px 0; border-top: 1px solid var(--line); }
.combo-tag { display: inline-block; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: #e3ecff; color: #1e3a8a; vertical-align: middle; }
.combo-tag.ask { background: #fff0c8; color: #6b4a00; }
.combo-from { display: inline-block; margin-top: 4px; font-size: 12px; font-weight: 600; padding: 1px 8px; border-radius: 99px; background: #e3ecff; color: #1e3a8a; }
.combo-bar { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.card.combo { border: 2px solid #f5d27a; background: #fffcf2; }
.card.combo .chk { display: flex; gap: 8px; align-items: flex-start; margin: 8px 0; }
.oage { color: var(--muted); font-size: 14px; }
.note-flag { color: var(--warn) !important; font-weight: 700; }
@media (max-width: 800px) { .orow { grid-template-columns: 1fr 1fr; } }
.card.manifest { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin: 12px 0; background: #ede9fe; border-color: #c4b5fd; }
.card.manifest .btn { margin-left: auto; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--accent); color: #fff; padding: 12px 20px; border-radius: 10px; font-weight: 600; z-index: 10; box-shadow: 0 6px 20px rgba(0,0,0,.25); }
.toast.err { background: var(--err); }
.station-bar { background: #1e3a8a; color: #fff; text-align: center; padding: 8px; font-weight: 600; }
.station-bar button { margin-left: 12px; }
fieldset.areas { border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin: 10px 0; }
form.areas .chk, fieldset.areas .chk { margin: 6px 0; }
.tbl details summary { cursor: pointer; color: #2563eb; }
details.pin input { width: 110px; padding: 6px; font: inherit; border: 1px solid #cbd5e1; border-radius: 6px; }
details.pin form { display: block; margin: 6px 0; }
/* inventory */
.chips { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 10px; }
.chip { padding: 5px 12px; border: 1px solid #cbd5e1; border-radius: 99px; text-decoration: none; font-size: 14px; background: #fff; }
.chip.on { background: var(--accent); color: #fff; border-color: var(--accent); }
.inv-filter .scan { margin-bottom: 0; }
.tbl.inv td { vertical-align: top; }
a.pick, b.pick { font-family: ui-monospace, Consolas, monospace; font-weight: 900; font-size: 17px; text-decoration: none; }
.big { font-size: 20px; font-weight: 900; }
tr.limit { background: var(--errbg); }
.tbl.count input { width: 90px; padding: 8px; font: inherit; border: 1px solid #cbd5e1; border-radius: 6px; }
.tbl.count tr.hit { outline: 3px solid var(--ok); }
/* pick code on the warehouse pick list */
.pickcode { font-family: ui-monospace, Consolas, monospace; font-weight: 900; font-size: 28px; line-height: 1.1; }
.pickvar { font-weight: 700; font-size: 15px; margin-bottom: 4px; }
.small-sku { font-size: 13px !important; color: var(--muted); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.chk.live { background: var(--warnbg); padding: 10px; border-radius: 8px; }
.empty { padding: 24px; color: var(--muted); text-align: center; }

.ohead { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.ohead h1 { margin: 0; }
.ohead form { margin-left: auto; }

table { border-collapse: collapse; width: 100%; }
th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 6px 8px; border-bottom: 1px solid var(--line); }
td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lines .img { width: 84px; }
.lines img, .noimg { width: 72px; height: 72px; object-fit: contain; border-radius: 6px; background: #f3f4f6; display: flex; align-items: center; justify-content: center; font-size: 11px; color: var(--muted); }
.lines .sku { font-family: ui-monospace, Consolas, monospace; font-weight: 800; font-size: 18px; }
.lines .bin { font-weight: 900; font-size: 22px; white-space: nowrap; }
.lines .qty { font-weight: 900; font-size: 24px; text-align: center; }
.lines .pick { white-space: nowrap; }
.pq { display: inline-block; min-width: 40px; text-align: center; font-size: 22px; font-weight: 800; }
tr.line.done { background: #ecfdf5; }
tr.line.done .pq { color: var(--ok); }
tr.line.flashrow { outline: 3px solid var(--ok); }

.pk { table-layout: fixed; }
.pk th { font-size: 11px; padding: 4px; vertical-align: bottom; }
.pk th:first-child { width: 24%; }
.pk th:last-child { width: 24px; }
.pk input, .pk select { width: 100%; min-width: 0; padding: 8px 4px; font: inherit; border: 1px solid #cbd5e1; border-radius: 6px; }
.pk td { padding: 3px; border: 0; }
.chk { display: flex; gap: 8px; align-items: flex-start; margin: 10px 0; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; margin: 0 0 12px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; font-weight: 600; }
address { font-style: normal; font-size: 18px; line-height: 1.5; }
.hist { list-style: none; padding: 0; margin: 0; font-size: 14px; }
.hist li { padding: 4px 0; border-bottom: 1px dashed var(--line); }
.tbl td { font-size: 14px; }
tr.off { opacity: .5; }
.tbl form { display: inline; margin-right: 10px; }
.inline-form label { display: block; margin: 8px 0; }
.inline-form input:not([type=checkbox]), .inline-form select, textarea, .login input { width: 100%; padding: 10px; font: inherit; border: 1px solid #cbd5e1; border-radius: 8px; margin-top: 4px; }
textarea { font-family: ui-monospace, Consolas, monospace; margin-bottom: 10px; }
.login { max-width: 380px; margin: 60px auto; }
.login label { display: block; margin-bottom: 14px; }
/* card forms (products, add order): label above a full-width field */
form.card label:not(.chk):not(.upload) { display: block; margin: 8px 0; font-weight: 600; }
form.card label:not(.chk):not(.upload) > input:not([type=checkbox]), form.card label > select, form.card label > textarea { display: block; width: 100%; padding: 9px; font: inherit; font-weight: 400; border: 1px solid #cbd5e1; border-radius: 8px; margin-top: 4px; box-sizing: border-box; }
form.card table.pk { width: 100%; table-layout: fixed; }
form.card table.pk input { width: 100%; padding: 6px; font: inherit; border: 1px solid #cbd5e1; border-radius: 6px; box-sizing: border-box; }
.login .btn { width: 100%; }
.warntext { color: #92400e; }
input::placeholder, textarea::placeholder { color: #b6bcc6; font-style: italic; opacity: 1; }
.rrow { grid-template-columns: 260px 2fr 1.4fr 130px; }
img.vthumb { width: 60px; height: 60px; object-fit: contain; vertical-align: middle; border: 1px solid var(--line); border-radius: 4px; }
.sortgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.sortcard { margin: 0; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: #fff; }
.sortcard.conflict { border-color: #b91c1c; box-shadow: 0 0 0 2px #fecaca; }
.sortcard.done { border-color: #86efac; }
.sortcard img { width: 100%; height: 180px; object-fit: contain; background: #f8fafc; border-radius: 6px; }
.sortcard .vid { display: grid; place-items: center; height: 180px; background: #0f172a; color: #fff; border-radius: 6px; text-decoration: none; font-size: 13px; padding: 8px; text-align: center; }
.sortsel { display: grid; gap: 4px; margin-top: 6px; }
.sortsel label { display: flex; justify-content: space-between; gap: 6px; align-items: center; }
.sortsel select { max-width: 60%; }
.conf-high { color: #15803d; font-weight: 700; } .conf-medium { color: #92400e; font-weight: 700; } .conf-low { color: #b91c1c; font-weight: 700; }
table.import td { vertical-align: top; padding: 8px; border-top: 1px solid var(--line); }
.pk.pmv th:last-child { width: auto; }
.pk.pmv th:first-child { width: auto; }

/* Stock input (phone entries checked on the PC) */
.stockin .sphoto { max-width: 220px; max-height: 220px; border-radius: 8px; float: right; margin: 0 0 8px 12px; border: 1px solid var(--line); }
.stockin .big-code { font-size: 1.3em; }
.stockin .btns { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 10px; }
.stockin form.rej input { padding: 8px; border: 1px solid #cbd5e1; border-radius: 8px; }

/* Login on a PC with a fixed sign-in name */
.login .fixed-user { font-size: 1.6em; font-weight: 800; margin: 4px 0 8px; text-transform: capitalize; }

/* eBay: big price changes held for review */
tr.bigchg td { background: #fff4e5; }


/* Two-step sign-in */
.qr { width: 220px; max-width: 70vw; background: #fff; padding: 6px; margin: 8px 0; border: 1px solid var(--line); border-radius: 8px; }
.qr svg { width: 100%; height: auto; display: block; }
input.otp { font-size: 1.6em; letter-spacing: 0.2em; width: 9em; text-align: center; font-family: ui-monospace, monospace; }
ol.rcodes { columns: 2; font-size: 1.15em; }

/* eBay messages */
details.conv { border-top: 1px solid var(--line); padding: 8px 0; }
details.conv summary { cursor: pointer; }
.chat { display: flex; flex-direction: column; gap: 8px; padding: 10px 0 4px; }
.bubble { max-width: 75%; padding: 8px 12px; border-radius: 12px; line-height: 1.4; white-space: normal; overflow-wrap: anywhere; }
.bubble.them { background: #f1f5f9; align-self: flex-start; }
.bubble.me { background: #dcfce7; align-self: flex-end; }

/* Inbox, design E (owner 2026-11-12): list | conversation → AI suggestions → reply, read top to bottom */
.hub { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.hfeed { flex: 1 1 300px; max-width: 380px; background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; position: sticky; top: 70px; max-height: calc(100vh - 90px); display: flex; flex-direction: column; }
.htabs { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px; border-bottom: 1px solid var(--line); }
.htab { text-decoration: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line2); background: #fff; font-size: 13px; color: var(--ink); }
.htab.on { background: var(--blue); border-color: var(--blue); color: #fff; font-weight: 600; }
.hsearch { padding: 10px 12px 0; } .hsearch input { width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--line2); border-radius: 10px; padding: 8px 12px; background: var(--soft); }
.hview { padding: 8px 14px; } .hview a { text-decoration: none; color: var(--muted); } .hview a.on { color: var(--ink); font-weight: 700; }
.hlist { overflow-y: auto; flex: 1; }
.hitem { display: block; padding: 12px 14px; border-top: 1px solid var(--line); text-decoration: none; color: inherit; font-size: 14px; }
.hitem:hover { background: var(--soft); } .hitem.on { background: #eef3ff; box-shadow: inset 3px 0 0 var(--blue); }
.hitem .ellip { color: var(--ink2); margin-top: 2px; }
.hchips { display: flex; gap: 6px; align-items: center; margin-top: 6px; min-width: 0; flex-wrap: wrap; }
.hrow { display: flex; gap: 8px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.hrow h2 { margin: 0; font-size: 18px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pad { padding: 14px; }
.ch { font-size: 12px; font-weight: 500; padding: 1px 9px; border-radius: 99px; background: #e5e7eb; white-space: nowrap; }
.ch-ebay { background: #fff0c8; color: #6b4a00; } .ch-email, .ch-gmail { background: #e3ecff; color: #1e3a8a; } .ch-facebook { background: #ebe8ff; color: #3b2fa0; } .ch-instagram { background: #fce7f3; color: #831843; }
.ch-needs { background: #fde0e0; color: #8f0e14; }
.hconv { flex: 999 1 520px; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: 16px; display: flex; flex-direction: column; }
.hprof { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.hprof details { margin-top: 8px; }
.hnote { background: #fef9c3; padding: 6px 8px; border-radius: 8px; margin-top: 8px; }
.hmsgs { padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; max-height: 52vh; overflow-y: auto; }
.hmsgs .bubble { font-size: 14px; line-height: 1.5; border-radius: 14px; }
.hmsgs .bubble.them { background: #f1f4f9; }
.hmsgs .bubble.me { background: #e7f0ff; }
.hmsgs .bubble.other { opacity: .6; }
.hpics { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 6px; }
.hpics img { width: 120px; height: 120px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: #fff; }
.hsep { align-self: center; font-size: 12px; color: var(--muted); margin-top: 8px; }
.hempty { margin: 60px auto; }
.hai { margin: 0 20px 14px; border-radius: 14px; background: var(--soft); border: 1px solid var(--line); padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.hai h2 { font-size: 15px; margin: 0; }
.needsflag { font-size: 13px; font-weight: 600; color: #8f0e14; }
.hsugs { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 10px; }
.hsug { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.hsugtext { font-size: 14px; line-height: 1.5; }
.hsug .btns { margin-top: auto; }
.btn.dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn.dark:hover { background: #2b3650; }
.hcomp { padding: 14px 20px 18px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.hcomp textarea { width: 100%; font: inherit; font-size: 14px; line-height: 1.5; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; resize: vertical; }
.hcomp .hdone { margin-left: auto; color: var(--muted); }
.hcomp.drop { outline: 3px dashed var(--blue); }
.hcheck { background: #ecfdf5; border-radius: 10px; padding: 10px; } .hcheck-text { white-space: pre-wrap; margin: 4px 0; }
.fchip { display: inline-block; background: var(--soft); border: 1px solid var(--line); border-radius: 99px; padding: 2px 8px; margin: 4px 4px 0 0; font-size: 13px; }
.hback { display: none; padding: 10px 20px 0; }
/* Order check: third column beside the conversation (wraps below it on narrower screens) */
.hops { flex: 1 1 340px; max-width: 440px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: hidden; }
.hops h2 { font-size: 16px; margin: 0; }
.hops-orders { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; max-height: 38vh; flex-shrink: 0; }
.hops-card { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; color: var(--ink); }
.hops-card ul { margin: 6px 0; padding-left: 18px; }
.hops-card .track { margin-top: 2px; color: #1e3a8a; } .hops-card .track.ok { color: #0f6b3a; }
.hops-card .strike { text-decoration: line-through; }
.ostat { font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 99px; background: #e3ecff; color: #1e3a8a; }
.ostat.ok { background: #dcfce7; color: #0f6b3a; } .ostat.bad { background: #fde0e0; color: #8f0e14; }
.hops-chat { display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; min-height: 0; flex: 1; }
.hops-log { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 60px; flex: 1; }
.obub { font-size: 14px; line-height: 1.5; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; max-width: 92%; }
.obub.me { background: #e7f0ff; align-self: flex-end; } .obub.them { background: var(--soft); align-self: flex-start; }
.obub .small { margin-top: 4px; white-space: normal; }
.hops-quick { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.hops-ask textarea { width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--line2); border-radius: 12px; padding: 8px 12px; resize: vertical; }
.hops-ask .btns { align-items: center; margin-top: 6px; }
@media (max-width: 1400px) { .hops { max-width: none; position: static; max-height: none; } .hops-orders { max-height: none; } .hops-log { max-height: 50vh; } }
@media (max-width: 900px) {
  .hfeed { max-width: none; position: static; max-height: none; }
  .hub.has-t .hfeed { display: none; } .hub:not(.has-t) .hconv { display: none; }
  .hback { display: block; } .hmsgs { max-height: none; }
}

/* eBay: AI website suggestions */
td.aisug { min-width: 280px; }
form.sug { border-top: 1px dashed var(--line); padding: 4px 0; }
form.sug:first-child { border-top: 0; }
form.sug .btn { padding: 2px 10px; margin-left: 4px; }

/* Booked Freight: Print and fulfilled */
.orow-pf { display: flex; align-items: stretch; gap: 10px; }
.orow-pf > .orow { flex: 1; min-width: 0; }
.orow-pf > .pf { flex: none; min-width: 170px; font-size: 1.05em; padding: 0 18px; }
small.intl { display: inline-block; background: #fde68a; color: #7c2d12; border-radius: 6px; padding: 1px 6px; font-size: 11px; font-weight: 800; margin-left: 4px; }
@media (max-width: 700px) { .orow-pf { flex-direction: column; } .orow-pf > .pf { min-height: 52px; } }

/* eBay duplicates review */
.dupgrp h3 { margin: 0 0 6px; font-size: 1em; }
.dupgrp.decided { opacity: .8; }
tr.tokeep td { background: #ecfdf5; }
tr.tobeend td { background: #fef2f2; text-decoration: line-through; text-decoration-color: #fca5a5; }

/* eBay builder */
.descprev { max-height: 260px; overflow: auto; border: 1px solid var(--line); padding: 8px; border-radius: 6px; font-size: .9em; background: #fff; }


/* Change shipping speed under Book freight (owner 2026-11-12) */
.shipchg { border: 1px dashed var(--line2); border-radius: 12px; padding: 10px 12px; margin: 4px 0 10px; display: flex; flex-direction: column; gap: 8px; }
.shipchg label { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-weight: 500; }
.shipchg-opts { display: flex; flex-direction: column; gap: 6px; padding-left: 26px; }
.shipchg-opts[hidden] { display: none; }
.ship-changed { font-size: 11px; font-weight: 700; color: #8f0e14; background: #fde0e0; border-radius: 99px; padding: 1px 7px; margin-left: 4px; }

/* High confidence list (owner 2026-11-12) */
.stat.sure .v { color: #0f6b3a; } .stat.sure.on { background: #f0fdf4; border-color: #86efac; }
.ch-sure { background: #dcfce7; color: #0f6b3a; }
.hitem.hsure { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; }
.hsure-main { flex: 1; min-width: 0; text-decoration: none; color: inherit; }
.hsure-reply { margin-top: 8px; padding: 8px 10px; background: #f0fdf4; border-left: 3px solid #22c55e; border-radius: 8px; font-size: 13px; line-height: 1.45; color: var(--ink); max-height: 9em; overflow: hidden; }
.hsure-act { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 4px; max-width: 120px; text-align: right; }
.hitem.hsure.sent { opacity: .55; }

/* After-message action bar (owner 2026-11-12) */
.hafter { margin: 0 20px 18px; border: 1px dashed var(--line2); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; opacity: .6; transition: opacity .2s; }
.hafter h2 { font-size: 15px; margin: 0; }
.hafter:hover, .hafter.ready, .hafter.verified { opacity: 1; }
.hafter.ready.verified { border: 2px solid #22c55e; background: #f7fef9; }
.hafter .btn.act.suggested { border-color: #22c55e; box-shadow: 0 0 0 2px #bbf7d0; font-weight: 600; }
.hafter .btn.act.done { background: #dcfce7; }
.sugtag { font-size: 11px; color: #0f6b3a; background: #dcfce7; border-radius: 99px; padding: 0 6px; margin-left: 4px; }
.hact-panel { display: flex; flex-direction: column; gap: 8px; }
.hact-panel[hidden] { display: none; }
.hact-panel textarea { width: 100%; font: inherit; font-size: 14px; line-height: 1.5; border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; }

/* Return freight panel */
.hret fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.hret .row2 { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; }
.hret .row2 label { display: flex; flex-direction: column; font-size: 13px; gap: 2px; }
.hret .row2 input, .hret .row2 select { font: inherit; padding: 6px 8px; border: 1px solid var(--line2); border-radius: 8px; }
.hret-box input { width: 80px; }
.hret-tick { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 14px; }
.hret-state { font-weight: 600; }
.hret.locked { outline: 2px solid #22c55e; border-radius: 12px; padding: 8px; }
.hret-booked { background: #f0fdf4; border-radius: 10px; padding: 10px; display: flex; flex-direction: column; gap: 8px; }
.hret-booked textarea { width: 100%; font: inherit; font-size: 14px; border: 1px solid var(--line2); border-radius: 10px; padding: 8px; }

.hkandu { background: #eef3ff; border-radius: 10px; padding: 6px 10px; } .hkandu summary { cursor: pointer; } .hkandu .hsugtext { margin-top: 6px; }
.hact-panel .hcheck-text { white-space: pre-wrap; }
