/* 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; }

/* Phone page (2026-11-13) */
.phone-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; margin-bottom: 16px; }
.phone-grid > .card { margin: 0; }
.ph-state { font-size: 1.15rem; font-weight: 700; margin: 4px 0 8px; }
.ph-state.on { color: #11743a; }
.ph-state.on::before { content: "● "; }
.ph-state.off { color: #8f0e14; }
.ph-call { border: 2px solid #11743a; }
.ph-call .ring { color: #11743a; animation: phring 1s ease-in-out infinite; }
@keyframes phring { 50% { opacity: .45; } }
.ph-who { font-size: 1.2rem; margin: 4px 0 8px; }
.ph-recent { margin: 6px 0; padding-left: 18px; }
.ph-recent li { margin: 2px 0; }
.ph-pad { display: grid; grid-template-columns: repeat(3, 56px); gap: 6px; margin: 8px 0; }
.ph-ask { margin-top: 12px; border-top: 1px solid #e5e5e5; padding-top: 10px; }
.ph-ask textarea { width: 100%; }
.ph-ask p.err { color: #8f0e14; }
fieldset.days { border: 0; padding: 0; margin: 8px 0; }
fieldset.days .inline { display: inline-flex; align-items: center; gap: 4px; margin-right: 8px; }
.ch-mobile { background: #e3ecff; color: #1d3f8f; }
/* Crank Phone window + top-bar phone status (2026-11-13) */
body.bare main { max-width: none; margin: 0; padding: 12px 16px; }
.ph-apptitle { margin: 0 0 8px; }
.ph-app { display: block; line-height: 1.6; }
.ph-app .btn { margin: 0 6px; }
.ph-install { display: block; color: var(--muted, #5b6672); }
.pill.phone-on { background: #e6f5ec; color: #11743a; }
.pill.phone-off { background: #fde8ea; color: #a3111f; text-decoration: none; font-weight: 700; }
/* Crank Phone three-column view (2026-11-13) */
.phtop { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; padding: 12px 16px; margin-bottom: 12px; }
.phtop-status { flex: 1 1 360px; min-width: 0; }
.phtop-status .ph-state { font-size: 15px; margin: 0; }
.phtop-dial { display: flex; gap: 8px; align-items: center; }
.phtop-dial input { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; width: 180px; }
.phtop-call { flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-radius: 12px; background: #e6f5ec; border: 2px solid #11743a; }
.phtop-call .ring { color: #11743a; font-weight: 700; animation: phring 1s ease-in-out infinite; }
.phtop-call .ph-pad { flex: 1 1 100%; }
.phhub .hconv { min-height: 60vh; }
.phitem .phsum { color: var(--ink2); margin-top: 4px; }
.phbrief { margin: 12px 20px 0; padding: 10px 12px; border-radius: 12px; background: #f5f3ff; border: 1px solid #e4defc; }
.phwhy { margin: 10px 20px 0; padding: 10px 12px; border-radius: 12px; background: #fff7e6; border: 1px solid #fde3b0; display: flex; flex-direction: column; gap: 4px; }
.hmsgs .bubble.otherch { opacity: .75; }
.hmsgs .bubble { padding: 8px 12px; max-width: 85%; }
.hmsgs .bubble.me { align-self: flex-end; } .hmsgs .bubble.them { align-self: flex-start; }
.phlinks { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.phlinks .btn { padding: 4px 10px; font-size: 13px; }
.phpick { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--soft); display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow-y: auto; }
.phpick input { font: inherit; padding: 6px 10px; border: 1px solid var(--line2); border-radius: 8px; }
.phpickitem { display: block; text-align: left; padding: 3px 0; }
.phreview { border-top: 1px solid var(--line); padding-top: 12px; overflow-y: auto; max-height: 40vh; }
.phreview h2 { font-size: 16px; margin: 0 0 6px; }
.phtranscript { white-space: pre-wrap; max-height: 220px; overflow-y: auto; background: var(--soft); padding: 8px; border-radius: 8px; margin-top: 6px; }
.obub.err { color: #a3111f; }

.phtop [hidden], .ph-pad[hidden], #ph-caller[hidden], #ph-pick[hidden], #ph-why[hidden], #ph-note[hidden], #ph-inbox[hidden] { display: none !important; }
.phhub .hfeed { flex: 1 1 260px; max-width: 320px; } .phhub .hops { flex: 1 1 320px; max-width: 400px; }
/* Marketing + Product Dev/Imp (2026-11-13) */
.mkp1 { background: #fde0e0; color: #8f0e14; font-weight: 700; } .mkp2 { background: #ffe9cc; color: #7a4a00; } .mkp3 { background: #e5e7eb; } .mkp4 { background: #f3f4f6; color: #6b7280; }
.mkcols { align-items: flex-start; } .mkcols > .card { flex: 1 1 380px; min-width: 0; }
.mkreport { white-space: pre-wrap; font-size: 14px; line-height: 1.55; background: var(--soft); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; max-height: 60vh; overflow-y: auto; }
.mknew summary { cursor: pointer; } .mknew form { margin-top: 10px; }
.mklaunch { display: block; text-decoration: none; color: inherit; padding: 10px 0; border-top: 1px solid var(--line); } .mklaunch:first-of-type { border-top: 0; }
.mkbar { height: 8px; border-radius: 99px; background: #e5e7eb; margin: 6px 0; overflow: hidden; } .mkbar span { display: block; height: 100%; background: #11743a; }
.mkcheck, .mktasks { list-style: none; padding: 0; margin: 0 0 10px; }
.mkcheck li, .mktasks li { display: flex; gap: 8px; align-items: baseline; padding: 5px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.mkcheck li:first-child, .mktasks li:first-child { border-top: 0; }
.mkcheck li.done > span, .mktasks li.done > span:first-of-type { color: var(--muted); text-decoration: line-through; }
.mkcheck li > span { flex: 1; } .mktasks li > span:first-of-type { flex: 1; }
.mktick { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; padding: 0 2px; color: inherit; }
.mkai { margin-top: 10px; } .stat.warn .v { color: #a3111f; }
form.inline { display: inline; }
/* corrected-address bar under a "suburb doesn't exist" booking error (2026-11-14) */
.addrfix { border: 2px solid #c8102e; }
.addrfix h2 { margin-top: 0; }
.addrfix-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 8px 0; }
.addrfix-row select { font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--line2); border-radius: 10px; min-width: 280px; }
.addrfix-street { font-weight: 600; }
.addrfix-note { background: #fef9c3; padding: 6px 8px; border-radius: 8px; margin: 8px 0 0; }

/* Marketing → Video (2026-11-15) */
.vtabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 14px; }
.vtabs a { padding: 8px 14px; border-radius: 10px 10px 0 0; text-decoration: none; color: inherit; font-weight: 600; border: 1px solid transparent; border-bottom: 0; }
.vtabs a.on { background: var(--soft); border-color: var(--line); }
.vmins { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.vmin { display: flex; flex-direction: column; min-width: 86px; padding: 8px 12px; border: 2px solid var(--line); border-radius: 12px; text-decoration: none; color: inherit; background: #fff; }
.vmin span { font-size: 12px; color: #6b7280; } .vmin.on { border-color: #1f2937; background: var(--soft); } .vmin.off { opacity: .5; } .vmin.off b { text-decoration: line-through; }
.vfrags { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; margin: 12px 0; }
.vfrag { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: inherit; font-size: 14px; background: #fff; }
.vfrag.on { border: 2px solid #1f2937; background: var(--soft); } .vfrag.off { opacity: .55; text-decoration: line-through; }
.vedit { border-top: 1px solid var(--line); padding-top: 10px; } .vedit h3 { margin: 6px 0; }
.vspoken { background: var(--soft); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; line-height: 1.7; } .vx { text-decoration: line-through; color: #a3111f; opacity: .6; }
.vconf { border-radius: 10px; padding: 8px 12px; font-size: 14px; } .vconf-high { background: #e7f6ec; } .vconf-medium { background: #fff3d6; } .vconf-low { background: #fde8ea; }
.vslot { border: 1px solid var(--line); border-left: 4px solid #f2b23a; border-radius: 12px; padding: 10px 12px; margin: 10px 0; background: #fff; } .vslot.vtalk { border-left-color: #2f7d4f; }
.vsays { font-style: italic; margin: 6px 0 8px; } .videas { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; margin: 6px 0 10px 22px; }
.videa { display: flex; gap: 8px; align-items: flex-start; border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--soft); } .videa input[type=text], .videa input:not([type]) { width: 100%; margin-top: 4px; }
.vplayer { width: 100%; max-width: 760px; max-height: 70vh; background: #000; border-radius: 12px; display: block; margin-bottom: 10px; }
.ch-bad { background: #fde8ea; color: #a3111f; }.vprev { margin: 10px 0 14px; } .vprev video { width: 100%; max-width: 560px; background: #000; border-radius: 12px; display: block; margin-bottom: 6px; } .vprevnote { margin: 10px 0; }
.vcap { margin-top: 14px; padding-top: 10px; border-top: 1px dashed var(--line); }
.vfrag[draggable] { cursor: grab; } .vfrag.vdrag { opacity: .4; } .vfrag.vover { outline: 3px dashed #1f2937; outline-offset: 2px; } .vorder { margin: 0 0 10px; }
.vmade { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin: 10px 0 14px; background: var(--soft); } .vmade video { width: 100%; max-width: 560px; background: #000; border-radius: 12px; display: block; margin: 8px 0 6px; } .vmwait { margin: 8px 0 0; }
.vpause { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 0 0 10px; } .vpause label { display: flex; gap: 8px; align-items: center; }
.vphase { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff3d6; border-radius: 10px; padding: 8px 12px; margin-bottom: 12px; }
.vguide summary { cursor: pointer; } .vguide ol { margin: 10px 0 8px 20px; padding: 0; } .vguide li { margin: 6px 0; }
details.sector { border: 1px solid var(--line); border-radius: 10px; padding: 6px 10px; margin: 6px 0; background: #fff; } details.sector > summary { cursor: pointer; display: flex; gap: 10px; align-items: center; } details.sector > .chk { margin: 6px 0 6px 26px; } .pdetails { margin-top: 6px; } .pdetails form { margin: 8px 0; }
.udrop { border: 2px dashed var(--line); border-radius: 14px; padding: 18px; text-align: center; background: var(--soft); } .udrop.over { border-color: #1f2937; background: #fff3d6; } .udrop[data-off] { opacity: .5; } .ulist { list-style: none; margin: 12px 0 0; padding: 0; text-align: left; } .ulist li { display: flex; justify-content: space-between; gap: 12px; padding: 6px 0; border-top: 1px solid var(--line); font-size: 14px; } .ulist li.ok .unote { color: #1f7a45; font-weight: 600; } .ulist li.bad .unote { color: #a3111f; font-weight: 600; } .uqr { display: block; image-rendering: pixelated; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; } .ublocked { border-left: 4px solid #a3111f; } .upermit { border-left: 4px solid #f2b23a; } .upermit .hrow { margin: 8px 0; } .uphone { max-width: 520px; margin: 20px auto; } .btn.big { font-size: 18px; padding: 14px 20px; } .ucols > .card { flex: 1 1 320px; }
.ulink { display: flex; justify-content: space-between; gap: 14px; align-items: center; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--line); } .ulinkurl { word-break: break-all; background: var(--soft); border-radius: 8px; padding: 6px 8px; margin-top: 4px; user-select: all; }

/* Dealer portal (dealers.crankmotorsport.info): its own plain frame, no staff rail */
.dp-bar { background: var(--rail); color: #fff; display: flex; align-items: center; gap: 18px; padding: 0 24px; flex-wrap: wrap; position: sticky; top: 0; z-index: 5; }
.dp-brand { font-weight: 700; letter-spacing: 1px; text-decoration: none; padding: 14px 0; }
.dp-brand span { color: #fca5a5; }
.dp-nav { display: flex; gap: 4px; }
.dp-nav a { color: #b3bdd0; text-decoration: none; padding: 14px 12px; border-bottom: 2px solid transparent; }
.dp-nav a:hover { color: #fff; }
.dp-nav a.on { color: #fff; font-weight: 600; border-bottom-color: #fca5a5; }
.dp-who { margin-left: auto; display: flex; align-items: center; gap: 14px; font-size: 14px; padding: 10px 0; }
.dp-who .linkbtn { color: #b3bdd0; }
.dp-cols { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 16px; align-items: start; }
.dp-cats { position: sticky; top: 64px; padding: 12px; }
.dp-cats h2 { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin: 4px 8px 8px; }
.dp-cats a { display: flex; justify-content: space-between; gap: 8px; padding: 7px 8px; border-radius: 8px; text-decoration: none; font-size: 14px; }
.dp-cats a:hover { background: var(--soft); }
.dp-cats a.on { background: #e3ecff; color: #1e3a8a; font-weight: 600; }
.dp-cats a span { color: var(--muted); font-weight: 400; }
.dp-prod { display: flex; gap: 16px; align-items: flex-start; }
.dp-img img, .dp-img .noimg { width: 96px; height: 96px; object-fit: contain; background: #fff; border: 1px solid var(--line); border-radius: 8px; }
.dp-body { flex: 1; min-width: 0; }
.dp-body h2 { margin: 0; font-size: 17px; }
.dp-body h2 a { text-decoration: none; }
.dp-body h2 a:hover { text-decoration: underline; }
.dp-rrp { color: var(--muted); white-space: nowrap; }
.dp-price { font-weight: 700; white-space: nowrap; }
.dp-stock { font-size: 13px; white-space: nowrap; }
.dp-stock.in { color: var(--ok); font-weight: 600; } .dp-stock.out { color: var(--err); font-weight: 600; } .dp-stock.unknown { color: var(--muted); }
.dp-search { padding: 8px 12px; font: inherit; border: 1px solid var(--line2); border-radius: 10px; width: 240px; max-width: 60vw; }
.tablewrap { overflow-x: auto; }
@media (max-width: 760px) { .dp-cols { grid-template-columns: 1fr; } .dp-cats { position: static; } .dp-prod { flex-direction: column; } }
.btn.danger { background: #fff; border-color: #f0b4b7; color: var(--err); } .btn.danger:hover { background: var(--errbg); }
.dp-prod table { table-layout: fixed; } .dp-prod th:nth-child(1) { width: 32%; } .dp-prod th:nth-child(2) { width: 22%; } .dp-prod th:nth-child(3), .dp-prod th:nth-child(4) { width: 14%; } .dp-prod td { overflow-wrap: anywhere; }
/* dealer portal language switch: one language or two side by side */
.dp-lang { display: inline-flex; border: 1px solid #3a4763; border-radius: 8px; overflow: hidden; }
.dp-lang button { background: transparent; border: 0; color: #b3bdd0; font: inherit; font-size: 13px; padding: 5px 10px; cursor: pointer; }
.dp-lang button + button { border-left: 1px solid #3a4763; }
.dp-lang button:hover { color: #fff; }
.dp-lang button.on { background: #2b3650; color: #fff; font-weight: 600; }
.kv .dp-lang { border-color: var(--line2); } .kv .dp-lang button { color: var(--ink2); } .kv .dp-lang button + button { border-left-color: var(--line2); }
.kv .dp-lang button:hover { color: var(--ink); } .kv .dp-lang button.on { background: #e3ecff; color: #1e3a8a; }
.dp-cats a span { color: inherit; font-weight: inherit; } .dp-cats a span:last-child { color: var(--muted); font-weight: 400; margin-left: auto; }
.dp-cats a { justify-content: flex-start; flex-wrap: wrap; }
.dp .zh { font-weight: inherit; }
.dp-cats a { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; }
.dp-cats a .l { color: inherit; font-weight: inherit; margin: 0; } .dp-cats a .l .zh { display: block; margin-left: 0; font-size: 13px; opacity: .8; }
.dp-stock { white-space: normal; } .dp-prod th { white-space: normal; } .dp-prod th .zh, .dp-prod td .zh { display: block; margin-left: 0; }
.dp-prod .ch .zh, .dp-body > .small .zh { display: inline; margin-left: 4px; }
/* dealer portal ordering */
.dp-n { background: var(--brand); color: #fff; border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 2px; }
.dp-add { display: flex; gap: 6px; align-items: center; } .dp-add input, .dp-qty { width: 58px; padding: 6px; font: inherit; border: 1px solid var(--line2); border-radius: 8px; }
.dp-add .btn { padding: 6px 10px; }
.dp-prod.buy th:nth-child(1) { width: 24%; } .dp-prod.buy th:nth-child(2) { width: 17%; } .dp-prod.buy th:nth-child(3), .dp-prod.buy th:nth-child(4) { width: 12%; } .dp-prod.buy th:nth-child(5) { width: 15%; }
.dp-cart td { vertical-align: top; } .dp-cart .big { font-size: 18px; }
.dp .row2 { align-items: end; }
/* suppliers */
.sp-prod > input { width: 100%; font-weight: 600; margin-bottom: 4px; } .sp-prod .bar label { display: inline-flex; gap: 4px; align-items: center; margin: 2px 0; font-size: 13px; } .sp-prod .bar input, .sp-prod .bar select { width: auto; padding: 5px 6px; margin: 0; }
.ulist li.ok { color: var(--ok); } .ulist li.bad { color: var(--err); }
.inline-form input[type=radio] { width: auto; margin: 3px 0 0; padding: 0; }
