/* Partner portal: the same look as the Amazon app, lighter header (partners see only their own things). */
body.portal .azbar { background: #fff; border-bottom: 1px solid var(--line); color: var(--ink); }
body.portal .azbar a, body.portal .azbar .me { color: var(--ink); }
body.portal .azbar nav a.on { color: var(--navy); border-bottom-color: var(--blue, #2563c9); }
body.portal .azbar .brand b { color: var(--navy); }
.pt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; font-size: 13px; }
.pt-cards > div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
@media (max-width: 800px) { .pt-cards { grid-template-columns: 1fr; } }
.qty { width: 70px; height: 34px; border: 1px solid var(--line); border-radius: 8px; padding: 0 6px; }
.cartbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 12px; margin-top: 14px; }

.cbox { padding: 14px 16px; margin-bottom: 14px; border-left: 4px solid #d97706; background: #fff4dc; } .cbox p { margin: 0 0 8px; } .cbox .acts { display: flex; gap: 8px; }
.cartbar #sum { flex: 1 1 100%; }
.cartbar #onotes { flex: 1 1 320px; height: 38px; }
.cartbar #place { margin-left: auto; }
/* phone-by-phone stock */
.line .ph h2 .muted { font-weight: 400; font-size: 14px; }
table.units td.pics, td.pics { white-space: nowrap; }
td.pics img { width: 44px; height: 44px; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); margin-right: 4px; vertical-align: middle; cursor: zoom-in; background: #f3f5fa; }
table.units tr.picked td { background: #eef6ff; }
table.units .pick { width: 18px; height: 18px; }
.pzoom { position: fixed; inset: 0; background: rgba(10, 16, 40, .85); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; z-index: 50; }
.pzoom img { max-width: 92vw; max-height: 80vh; border-radius: 10px; background: #fff; }

/* auto share menu on plain tables (Oct 18) */
.ashbar { display: flex; justify-content: flex-end; margin: 2px 0 6px; }
.ph .shm.ash { margin-left: auto; }
@media print { .shm { display: none; } }

/* signed out: sign up / log in (Oct 23) */
.pland { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); background: linear-gradient(135deg, #131a4a 0%, #1f3fa8 100%); }
.pland .hero { color: #fff; padding: 56px 48px; display: flex; flex-direction: column; justify-content: center; }
.pland .hero img { width: 170px; background: #fff; border-radius: 12px; padding: 8px 12px; margin-bottom: 26px; }
.pland .hero h1 { font-family: var(--sans, Lexend), sans-serif; font-size: 34px; line-height: 1.15; margin: 0 0 10px; }
.pland .hero .lead { font-size: 17px; opacity: .9; margin: 0 0 22px; }
.pland .hero ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 12px; font-size: 15px; }
.pland .hero li { padding-left: 30px; position: relative; opacity: .95; }
.pland .hero li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 20px; height: 20px; border-radius: 50%; background: #34d399; color: #062; font-weight: 700; font-size: 12px; display: grid; place-items: center; }
.pland .hero .help a { color: #fff; font-weight: 700; }
.pland .card { background: #fff; margin: 32px; border-radius: 16px; padding: 28px; align-self: center; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); max-width: 560px; width: calc(100% - 64px); justify-self: center; }
.pland .card h2 { font-family: var(--sans, Lexend), sans-serif; color: var(--navy); font-size: 22px; margin: 8px 0 8px; }
.ptabs { display: flex; gap: 6px; background: #eef2fa; padding: 4px; border-radius: 10px; margin-bottom: 14px; }
.ptabs a { flex: 1; text-align: center; padding: 8px; border-radius: 8px; color: var(--ink-2); font-weight: 600; }
.ptabs a.on { background: #fff; color: var(--navy); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.pform { display: grid; gap: 12px; margin-top: 8px; }
.pform.two { grid-template-columns: 1fr 1fr; }
.pform .wide { grid-column: 1 / -1; }
.pform input, .pform select { width: 100%; height: 42px; font-size: 15px; }
.pform .pw { display: flex; gap: 6px; align-items: center; } .pform .pw input { flex: 1; }
.pform .btn.big { height: 46px; font-size: 16px; justify-content: center; }
.pform .err:empty { display: none; }
.pform .hp { position: absolute; left: -5000px; width: 1px; height: 1px; overflow: hidden; }
.small { font-size: 13px; }
.okmsg { background: #e7f8ef; border: 1px solid #9fdcbc; color: #0f5132; padding: 10px 12px; border-radius: 8px; }
.pjunk { background: #fff8e6; border: 1px solid #f3d38a; border-radius: 10px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-top: 12px; text-align: left; }
.pwait { background: #fff8e6; border-bottom: 1px solid #f3d38a; padding: 10px 16px; text-align: center; font-size: 14px; }
@media (max-width: 860px) {
  .pland { grid-template-columns: 1fr; }
  .pland .hero { padding: 28px 16px 8px; } .pland .hero h1 { font-size: 26px; } .pland .hero ul { font-size: 14px; }
  .pland .card { margin: 16px; width: calc(100% - 32px); padding: 20px 16px; }
  .pform.two { grid-template-columns: 1fr; }
}
.pform input[type=password], .pform input[type=text] { border: 1px solid var(--line); border-radius: 8px; padding: 0 12px; background: #fff; font: inherit; font-size: 15px; }
.pform input[type=password]:focus, .pform input[type=text]:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.pland .hero { text-align: left; align-items: flex-start; }

/* stock list like the PhoneX guide (Oct 23 night) */
.sl { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 14px; align-items: start; }
.slf { position: sticky; top: 70px; max-height: calc(100vh - 90px); overflow: auto; }
.slf h4 { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--ink-2); }
.slf .chk { display: flex; gap: 6px; align-items: center; font-size: 13px; padding: 2px 0; }
.slf .fhd { display: flex; justify-content: space-between; align-items: center; }
.slbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.slbar .search { flex: 1 1 220px; } .slbar .sp1 { flex: 1; }
.sl-fbtn { display: none; }
.sline { margin-bottom: 10px; }
.sline .slh { display: flex; justify-content: space-between; gap: 10px; padding: 14px 16px; cursor: pointer; }
.sline .slh h2 { margin: 0 0 6px; font-size: 16px; text-transform: uppercase; letter-spacing: .02em; }
.slsum { display: flex; gap: 28px; } .slsum span { display: flex; flex-direction: column; font-weight: 600; } .slsum small { font-weight: 400; color: var(--ink-3); font-size: 12px; }
.slg { font-size: 22px; font-weight: 700; color: var(--navy); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.slg .arr { font-size: 14px; color: var(--ink-3); }
.slmore { text-align: center; padding: 6px 0 12px; color: var(--blue); font-weight: 600; font-size: 13px; cursor: pointer; text-transform: uppercase; letter-spacing: .03em; }
.slv { padding-top: 0; overflow-x: auto; }
.vact { display: flex; gap: 6px; justify-content: flex-end; align-items: center; flex-wrap: nowrap; }
.vact .vq { width: 64px; height: 32px; }
.bell.on { background: #fff4dc; }
.vth { width: 34px; height: 34px; object-fit: cover; border-radius: 6px; margin-right: 8px; vertical-align: middle; cursor: zoom-in; border: 1px solid var(--line); }
.cartn { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: #7c3aed; color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-left: 4px; }
.pmod { position: fixed; inset: 0; background: rgba(10, 16, 40, .55); display: grid; place-items: center; z-index: 60; padding: 16px; }
.pmod > .panel { width: min(560px, 100%); }
.ctot { display: grid; gap: 4px; justify-items: end; margin: 10px 0; } .ctot > div { display: flex; gap: 18px; }
.helpbody h2 { font-family: var(--sans, Lexend), sans-serif; color: var(--navy); } .helpbody h3 { margin: 18px 0 4px; } .helpbody p { line-height: 1.6; }
.plinks a { color: #fff; text-decoration: underline; }
.pwa { position: fixed; right: 18px; bottom: 18px; width: 54px; height: 54px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; font-size: 26px; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 40; text-decoration: none; }
.good { color: var(--ok); }
@media (max-width: 860px) {
  .sl { grid-template-columns: 1fr; }
  .slf { display: none; position: static; max-height: none; } .slf.show { display: block; }
  .sl-fbtn { display: inline-flex; }
  .slsum { gap: 16px; }
}
body.portal .azbar a.btn.primary { color: #fff; }
.slbarp { margin-bottom: 10px; }
.slbar .slsearch { flex: 1 1 260px; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
.slbar .slsearch .search { width: 100%; }

/* ---------- signed-out pages, Oct 24 redesign (pl2) ---------- */
.pl2 { min-height: 100vh; display: flex; flex-direction: column; overflow-x: hidden;
  background: radial-gradient(1200px 600px at 10% -10%, #2a4fd1 0%, transparent 60%), linear-gradient(160deg, #0f1640 0%, #182a7a 55%, #1d3ea6 100%); color: #fff; }
.pl-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 40px; max-width: 1240px; width: 100%; margin: 0 auto; box-sizing: border-box; }
.pl-brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.pl-brand img { width: 38px; height: 38px; background: #fff; border-radius: 10px; padding: 4px; box-sizing: border-box; }
.pl-brand b { display: block; font-family: var(--sans, Lexend), sans-serif; font-size: 17px; line-height: 1.1; }
.pl-brand small { display: block; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.pl-top nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.pl-top nav a { color: rgba(255,255,255,.82); text-decoration: none; }
.pl-top nav a:hover { color: #fff; }
.pl-call { display: inline-flex; align-items: center; gap: 6px; border: 1px solid rgba(255,255,255,.3); border-radius: 999px; padding: 7px 14px; color: #fff !important; font-weight: 600; }
.pl-call svg { width: 15px; height: 15px; }
.pl2 svg { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.pl-main { flex: 1; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 520px); gap: 56px; align-items: center; max-width: 1240px; width: 100%; margin: 0 auto; padding: 24px 40px 48px; box-sizing: border-box; }
.pl-eyebrow { display: inline-block; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9fc0ff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px; }
.pl-hero h1 { font-family: var(--sans, Lexend), sans-serif; font-size: 44px; line-height: 1.08; letter-spacing: -.02em; margin: 0 0 16px; font-weight: 700; }
.pl-lead { font-size: 17px; line-height: 1.55; color: rgba(255,255,255,.82); margin: 0 0 30px; max-width: 560px; }
.pl-feats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 26px; }
.pl-feats > div { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 14px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.pl-feats svg { width: 26px; height: 26px; color: #6ee7b7; margin-bottom: 6px; }
.pl-feats b { font-size: 15px; }
.pl-feats span { font-size: 13.5px; line-height: 1.45; color: rgba(255,255,255,.72); }
.pl-feats a, .pl-sub a { color: #fff; font-weight: 600; }
.pl-sub { font-size: 14px; color: rgba(255,255,255,.72); margin: 0; }
.pl-card { background: #fff; color: var(--ink, #1b2240); border-radius: 18px; padding: 28px 30px; box-shadow: 0 30px 70px rgba(5, 10, 40, .45); box-sizing: border-box; width: 100%; }
.pl-card h2 { font-family: var(--sans, Lexend), sans-serif; color: var(--navy, #1b2a6b); font-size: 23px; margin: 6px 0 4px; letter-spacing: -.01em; }
.pl-cardsub { color: var(--ink-2, #4b5675); font-size: 14px; margin: 0 0 6px; }
.pl-card .pform { gap: 12px 14px; }
.pl-card .field { display: grid; gap: 5px; min-width: 0; }
.pl-card .field > span:first-child { font-size: 13px; font-weight: 600; color: var(--ink-2, #4b5675); }
.pl-card .pform input:not([type=checkbox]), .pl-card .pform select { width: 100%; height: 42px; box-sizing: border-box; border: 1px solid #d5dbea; border-radius: 9px; padding: 0 12px; font: inherit; font-size: 15px; background: #fff; }
.pl-card .pform input:focus, .pl-card .pform select:focus { outline: none; border-color: #2a57d6; box-shadow: 0 0 0 3px rgba(42, 87, 214, .15); }
.pl-card .pform input::placeholder { color: #a3abc2; }
.pl-card .pw { position: relative; display: block; }
.pl-card .pw input { padding-right: 64px !important; }
.pl-card .pw [data-eye] { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); height: 30px; }
.fsec { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--navy, #1b2a6b); margin-top: 8px; padding-top: 12px; border-top: 1px solid #eef1f7; }
.fsec:first-of-type { border-top: 0; padding-top: 4px; margin-top: 4px; }
.fsec i { font-style: normal; width: 20px; height: 20px; border-radius: 50%; background: #e8eefc; color: #2a57d6; display: grid; place-items: center; font-size: 11px; letter-spacing: 0; }
.fsec em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; color: #8a93ad; }
.pconsent { display: grid; gap: 10px; background: #f6f8fc; border: 1px solid #e6eaf3; border-radius: 10px; padding: 12px 14px; margin-top: 4px; }
.pconsent .chk { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2, #4b5675); cursor: pointer; }
.pconsent input[type=checkbox] { width: 17px; height: 17px; margin: 1px 0 0; flex: none; accent-color: #2a57d6; }
.pl-card .btn.big { height: 48px; font-size: 16px; font-weight: 600; justify-content: center; border-radius: 10px; }
.pl-safe { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; color: #6b7491; margin: 0; }
.pl-safe svg { width: 16px; height: 16px; flex: none; margin-top: 1px; color: #2a8a5c; fill: none; stroke: currentColor; stroke-width: 1.8; }
.pl-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 12.5px; color: rgba(255,255,255,.6); padding: 18px 40px 24px; max-width: 1240px; width: 100%; margin: 0 auto; box-sizing: border-box; border-top: 1px solid rgba(255,255,255,.1); }
.pl-foot a { color: rgba(255,255,255,.75); margin-left: 16px; text-decoration: none; }
@media (max-width: 960px) {
  .pl-main { grid-template-columns: 1fr; gap: 28px; padding: 8px 16px 32px; }
  .pl-top { padding: 14px 16px; } .pl-top nav a:not(.pl-call) { display: none; }
  .pl-hero h1 { font-size: 32px; } .pl-lead { font-size: 15.5px; margin-bottom: 20px; }
  .pl-foot { padding: 16px; } .pl-foot a { margin: 0 14px 0 0; }
}
@media (max-width: 560px) {
  .pl-feats { grid-template-columns: 1fr; } .pl-card { padding: 22px 16px; border-radius: 14px; }
  .pl-card .pform.two { grid-template-columns: 1fr; } .pl-call { padding: 6px 10px; font-size: 13px; }
}

/* ---------- grading page ---------- */
.grd h2 { font-family: var(--sans, Lexend), sans-serif; color: var(--navy, #1b2a6b); font-size: 19px; margin: 26px 0 6px; }
.grd-intro { font-size: 15px; line-height: 1.55; background: #f3f6fd; border: 1px solid #e1e7f5; border-radius: 10px; padding: 12px 14px; margin: 0; }
.grd-t { overflow-x: auto; margin-top: 10px; }
.grd-t table td, .grd-t table th { vertical-align: top; }
.grd-t td:first-child { white-space: nowrap; }
.grd-t td small { display: block; color: #6b7491; margin-top: 3px; font-size: 12px; }
.gchip { display: inline-block; font-weight: 700; font-size: 13px; padding: 3px 10px; border-radius: 999px; background: #eef2fa; color: var(--navy, #1b2a6b); }
.gchip.r { background: #fff4e0; color: #8a4b00; }
.grd-notes { margin: 10px 0 0; padding-left: 18px; line-height: 1.6; color: var(--ink-2, #4b5675); }
.grd-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; margin-top: 10px; }
.grd-f > div { border: 1px solid #e6eaf3; border-left: 4px solid #d97706; border-radius: 8px; padding: 10px 12px; display: grid; gap: 3px; }
.grd-f > div.ok { border-left-color: #16a34a; }
.grd-f span { font-size: 13.5px; color: var(--ink-2, #4b5675); }
.grd-own { margin-top: 24px; padding-top: 14px; border-top: 1px solid #e6eaf3; }
.pconsent .chk, .pconsent .chk span { white-space: normal; min-width: 0; }
.grd-t td:last-child b { white-space: nowrap; }
.grd-t tr.sub td:first-child { padding-left: 18px; }
.grd-t .tree { color: #c3c9d9; margin-right: 6px; }
/* terms of sale */
.terms h2 { font-family: var(--sans, Lexend), sans-serif; color: var(--navy, #1b2a6b); font-size: 24px; margin: 0 0 8px; }
.terms h3 { font-family: var(--sans, Lexend), sans-serif; color: var(--navy, #1b2a6b); font-size: 16.5px; margin: 22px 0 6px; padding-top: 14px; border-top: 1px solid #eef1f7; }
.terms p { line-height: 1.6; margin: 0 0 8px; }
.terms p:nth-of-type(1) { color: #6b7491; font-size: 13.5px; }
.terms ul { margin: 0; padding-left: 20px; line-height: 1.65; color: var(--ink, #1b2240); }
.terms li { margin-bottom: 4px; }
.terms { max-width: 860px; }
