/* saleroost.com/account: the seller dashboard, laid out like Clio Manage
   (design north star: mockup/). The theme is the variables below; swapping
   --bar, --rail and --tab-line gives the Clio-blue variant. */
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope-400.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope-600.ttf') format('truetype'); font-weight: 600; font-display: swap; }
@font-face { font-family: 'Manrope'; src: url('/fonts/Manrope-700.ttf') format('truetype'); font-weight: 700; font-display: swap; }

:root {
  color-scheme: light;
  --rail: #0F2B1F; --rail-text: #8FA89B;
  --bar: #024224; --bar2: #0B3A25; --bar-text: #9CBBAA;
  --gold: #FFB800; --gold-text: #3B2A00;
  --ink: #17352B; --muted: #5E6F66; --line: #D9DEE3; --canvas: #F4F6F7;
  --link: #0B6B3A; --fill: #3B8E6C; --btn: #024224; --btn-text: #fff; --tab-line: #024224;
  --bad: #B42C2C; --bad-bg: #FBEAEA; --ok-bg: #E3F1E8;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font: 400 14px/1.5 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif; color: var(--ink); background: var(--canvas); -webkit-text-size-adjust: 100%; }
a { color: var(--link); text-decoration: none; font-weight: 600; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
svg.i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.app { display: flex; min-height: 100vh; }
.rail { width: 56px; flex: none; background: var(--rail); display: flex; flex-direction: column; padding: 10px 8px; gap: 3px; transition: width .18s ease; position: sticky; top: 0; height: 100vh; overflow: hidden; z-index: 35; }
.rail.open { width: 200px; }
.rail .logo { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 6px; color: #fff; font-weight: 700; white-space: nowrap; }
.rail .logo img { width: 28px; height: 28px; border-radius: 7px; background: var(--gold); flex: none; }
.rail .lbl { opacity: 0; transition: opacity .12s; white-space: nowrap; }
.rail.open .lbl { opacity: 1; }
.ni { position: relative; display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 11px; border-radius: 7px; color: var(--rail-text); cursor: pointer; border: 0; background: none; width: 100%; text-align: left; font-weight: 600; }
.ni:hover { background: rgba(255,255,255,.08); color: #fff; }
.ni[aria-current="page"] { background: rgba(255,255,255,.14); color: #fff; }
.ni em { margin-left: auto; font-style: normal; background: var(--gold); color: var(--gold-text); border-radius: 10px; padding: 0 7px; font-size: 11px; font-weight: 700; opacity: 0; }
.rail.open .ni em { opacity: 1; }
.ni .dotb { position: absolute; right: 7px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); }
.rail.open .ni .dotb { display: none; }
.rail:not(.open) .ni:hover::after, .rail:not(.open) .ni:focus-visible::after { content: attr(data-tip); position: fixed; left: 62px; background: #0b1511; color: #fff; font-size: 12px; font-weight: 600; padding: 5px 9px; border-radius: 5px; white-space: nowrap; z-index: 50; margin-top: -4px; }
.rail .sp { flex: 1; }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 12px; background: var(--bar); padding: 10px 20px; }
.sx { position: relative; flex: 1; max-width: 560px; }
.sx input { width: 100%; background: var(--bar2); border: 0; border-radius: 4px; padding: 9px 12px 9px 34px; color: #fff; }
.sx input::placeholder { color: var(--bar-text); }
.sx svg { position: absolute; left: 10px; top: 10px; color: var(--bar-text); width: 16px; height: 16px; pointer-events: none; }
.sr { position: absolute; top: 42px; left: 0; right: 0; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.14); z-index: 30; max-height: 340px; overflow: auto; }
.sr button { display: block; width: 100%; text-align: left; padding: 9px 12px; border: 0; border-bottom: 1px solid #EEF1F3; background: none; cursor: pointer; color: var(--ink); }
.sr button:hover, .sr button:focus-visible { background: #F4F6F7; }
.sr small { color: var(--muted); margin-left: 6px; }
.sr .none { padding: 10px 12px; color: var(--muted); }
.bar .grow { flex: 1; }
.pill { display: inline-flex; align-items: center; gap: 7px; background: #fff; color: #333; border-radius: 4px; padding: 7px 11px; font-size: 13px; font-weight: 600; cursor: pointer; border: 0; white-space: nowrap; }
.cn { display: inline-flex; align-items: center; gap: 8px; background: var(--gold); color: var(--gold-text); border: 0; border-radius: 4px; padding: 8px 13px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.menu-wrap { position: relative; }
.menu { position: absolute; right: 0; top: 42px; background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(0,0,0,.14); min-width: 200px; z-index: 40; color: var(--ink); overflow: hidden; }
.menu a, .menu button { display: block; width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; color: var(--ink); cursor: pointer; font-weight: 600; }
.menu a:hover, .menu button:hover, .menu a:focus-visible, .menu button:focus-visible { background: #F4F6F7; }
.menu .who { padding: 10px 14px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.ib { color: #fff; opacity: .9; cursor: pointer; display: flex; position: relative; background: none; border: 0; padding: 4px; text-decoration: none; }
.ib .dot { position: absolute; right: 2px; top: 2px; width: 9px; height: 9px; border-radius: 50%; background: var(--gold); border: 2px solid var(--bar); }
.av { width: 30px; height: 30px; border-radius: 50%; background: #0b1511; color: #fff; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; flex: none; border: 0; cursor: pointer; }
.av.plain { background: #A8ADB1; cursor: default; }

.tabs { display: flex; gap: 22px; background: #fff; padding: 0 20px; border-bottom: 1px solid var(--line); overflow: auto; }
.tabs button { padding: 12px 0 10px; color: var(--muted); border: 0; border-bottom: 3px solid transparent; background: none; white-space: nowrap; cursor: pointer; font-weight: 600; }
.tabs button[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--tab-line); }
.page { padding: 18px 20px 80px; background: #fff; flex: 1; }
.view[hidden] { display: none; }
.ph { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.ph h1 { font-size: 22px; margin: 0; font-weight: 700; }
.ph .sub { color: var(--muted); }
.banner { margin: 0 0 14px; padding: 10px 14px; border-radius: 4px; font-weight: 600; }
.banner.ok { background: var(--ok-bg); color: #14532D; }
.banner.bad { background: var(--bad-bg); color: var(--bad); }
.hint { color: var(--muted); font-size: 12px; margin: 4px 0 0; font-weight: 400; }
.mut { color: var(--muted); } .sm { font-size: 12px; }
.empty { color: var(--muted); padding: 22px 14px; text-align: center; }

.row2 { display: grid; grid-template-columns: minmax(0,1.7fr) minmax(0,1fr); gap: 16px; }
.stack { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.pan { border: 1px solid var(--line); background: #fff; min-width: 0; }
.pan > h3 { margin: 0; padding: 12px 14px 10px; font-size: 15px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; }
.pan > h3 a { font-size: 12px; }
.cells { display: grid; grid-template-columns: repeat(3,1fr); border-top: 1px solid var(--line); }
.cell { text-align: center; padding: 16px 8px 18px; border-right: 1px solid var(--line); border-top: 3px solid transparent; margin-top: -1px; }
.cell:last-child { border-right: 0; }
.cell.a { border-top-color: #E7A33B; } .cell.b { border-top-color: #C0592B; }
.cell small { display: block; font-weight: 700; font-size: 12px; margin-bottom: 6px; }
.cell b { font-size: 24px; font-weight: 600; }
.bud { padding: 6px 14px 16px; border-top: 1px solid var(--line); }
.bud h3 { margin: 12px 0 10px; font-size: 15px; }
.track { height: 16px; border-radius: 8px; background: #E9ECEF; overflow: hidden; }
.fill { height: 100%; background: var(--fill); }
.meta { display: flex; justify-content: space-between; color: var(--muted); margin-top: 8px; font-size: 12px; gap: 8px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.li { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid #EEF1F3; align-items: center; }
.li .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.lnk { color: var(--link); font-weight: 700; cursor: pointer; background: none; border: 0; padding: 0; white-space: nowrap; }

.btn { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 4px; border: 1px solid #BFC8D0; background: #fff; color: var(--ink); font-weight: 600; cursor: pointer; text-decoration: none; }
.btn:hover { background: #F4F6F7; }
.btn.p { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }
.btn.p:hover { filter: brightness(1.12); }
.btn.sm { padding: 5px 10px; font-size: 12px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.link-button { background: none; border: 0; padding: 0; color: var(--link); font-weight: 700; cursor: pointer; }
.link-button.danger { color: var(--bad); }
.fl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.tw { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-weight: 700; color: var(--muted); padding: 10px 14px; border-bottom: 1px solid var(--line); background: #F7F9FA; font-size: 12px; white-space: nowrap; }
td { padding: 10px 14px; border-bottom: 1px solid #EEF1F3; vertical-align: middle; }
tr.click { cursor: pointer; } tr.click:hover td { background: #FAFBFC; }
.thumb { width: 40px; height: 40px; border-radius: 4px; object-fit: cover; vertical-align: middle; margin-right: 10px; background: #EEF1F3; }
.thumb.none { display: inline-flex; align-items: center; justify-content: center; font-size: 9px; color: var(--muted); }
.tag { display: inline-block; padding: 2px 8px; border-radius: 3px; font-size: 12px; font-weight: 600; background: var(--ok-bg); color: #14532D; white-space: nowrap; }
.tag.w { background: #FFF1CC; color: #6B4A00; } .tag.g { background: #ECEFF2; color: #4B5A66; } .tag.r { background: var(--bad-bg); color: #8A3414; }
.seg { display: inline-flex; border: 1px solid #BFC8D0; border-radius: 4px; overflow: hidden; }
.seg button { border: 0; background: #fff; padding: 7px 11px; cursor: pointer; font-weight: 600; color: var(--muted); display: flex; }
.seg button[aria-pressed="true"] { background: var(--btn); color: var(--btn-text); }
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px,1fr)); gap: 14px; }
.card { border: 1px solid var(--line); background: #fff; text-align: left; padding: 0; cursor: pointer; display: block; width: 100%; }
.card img, .card .nophoto { width: 100%; height: 150px; object-fit: cover; display: block; background: #EEF1F3; }
.card .nophoto { display: flex; align-items: center; justify-content: center; color: var(--muted); }
.card .d { padding: 10px 12px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 4px; }
.card b { font-weight: 600; }

.inbox { display: grid; grid-template-columns: 330px minmax(0,1fr); border: 1px solid var(--line); min-height: 480px; }
.inbox .lst { border-right: 1px solid var(--line); overflow: auto; max-height: 70vh; margin: 0; padding: 0; list-style: none; }
.inbox .lst button { display: flex; gap: 10px; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid #EEF1F3; background: none; cursor: pointer; }
.inbox .lst button[aria-current="true"] { background: #F1F6F3; }
.inbox .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--fill); margin-top: 7px; flex: none; }
.inbox .dot.read { background: transparent; }
.inbox .lst .row1 { display: flex; justify-content: space-between; gap: 8px; }
.inbox .lst b { font-weight: 600; } .inbox .lst .unread b { font-weight: 700; }
.thread { padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.thread h2 { font-size: 16px; margin: 0; }
.thread .lines { margin: 0; padding-left: 18px; }
.bubble { max-width: 80%; padding: 9px 12px; border-radius: 8px; background: #EEF1F3; margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.bubble.seller { align-self: flex-end; background: #DDEFE5; }
.bubble small { display: block; color: var(--muted); font-size: 11px; margin-top: 3px; }
.thread form { display: flex; flex-direction: column; gap: 8px; margin-top: auto; }
.pickstart { color: var(--muted); margin: auto; text-align: center; padding: 30px; }

.form { max-width: 680px; display: flex; flex-direction: column; gap: 14px; padding: 16px 18px; }
.f { display: flex; flex-direction: column; gap: 5px; font-weight: 600; font-size: 13px; }
.f input, .f select, .f textarea { border: 1px solid #BFC8D0; border-radius: 4px; padding: 9px 10px; font-weight: 400; color: var(--ink); background: #fff; width: 100%; }
.f textarea { min-height: 84px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.logo-pick { display: flex; align-items: center; gap: 14px; }
.logo-prev { width: 56px; height: 56px; border-radius: 12px; background: var(--gold); color: var(--gold-text); display: flex; align-items: center; justify-content: center; font-size: 22px; font-weight: 700; overflow: hidden; flex: none; }
.logo-prev img { width: 100%; height: 100%; object-fit: cover; }
.matches { display: flex; flex-direction: column; gap: 4px; }
.match { display: flex; flex-direction: column; text-align: left; padding: 8px 10px; border: 1px solid var(--line); background: #fff; border-radius: 4px; cursor: pointer; }
.match small { color: var(--muted); }
.public-city { color: var(--link); font-weight: 600; margin: 0; }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px,1fr)); gap: 14px; margin-bottom: 16px; }
.plan { border: 1px solid var(--line); padding: 16px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.plan.cur { border: 2px solid var(--fill); }
.plan .tag { align-self: flex-start; }
.plan h3 { margin: 0; font-size: 17px; }
.plan .price { font-size: 26px; font-weight: 700; margin: 2px 0; }
.plan .price s { font-size: 15px; color: var(--muted); font-weight: 400; }
.plan .price small { font-size: 13px; color: var(--muted); font-weight: 400; }
.plan ul { padding-left: 18px; margin: 4px 0 10px; color: var(--muted); }
.reqs { margin: 0; padding: 0 14px 4px 32px; }

.help { position: fixed; right: 18px; bottom: 16px; background: var(--link); color: #fff; border: 0; border-radius: 20px; padding: 9px 16px; display: flex; gap: 8px; align-items: center; font-weight: 700; cursor: pointer; z-index: 25; text-decoration: none; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0b1511; color: #fff; padding: 10px 16px; border-radius: 6px; z-index: 80; font-weight: 600; max-width: 90vw; }

dialog { border: 0; padding: 0; border-radius: 6px; width: min(560px, 94vw); max-height: 92vh; color: var(--ink); overflow: auto; }
dialog.wide { width: min(680px, 94vw); }
dialog::backdrop { background: rgba(15,25,20,.5); }
dialog .dh { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: #fff; z-index: 1; }
dialog .dh h2 { margin: 0; font-size: 17px; }
dialog .db { padding: 14px 18px 18px; display: flex; flex-direction: column; gap: 12px; }
.photos { display: flex; gap: 10px; flex-wrap: wrap; }
.photos figure { margin: 0; width: 104px; display: flex; flex-direction: column; gap: 4px; }
.photos img { width: 104px; height: 78px; object-fit: cover; border: 1px solid var(--line); }
.photos figcaption { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

@media (max-width: 900px) {
  .row2, .two, .inbox, .grid2 { grid-template-columns: 1fr; }
  .inbox .lst { border-right: 0; border-bottom: 1px solid var(--line); max-height: 280px; }
  .main { margin-left: 56px; }
  .rail { position: fixed; left: 0; top: 0; }
  .bar { padding: 8px 12px; gap: 8px; flex-wrap: wrap; }
  .sx { order: 5; flex: 1 1 100%; max-width: none; }
  .bar .grow { display: none; }
  .bar .pill { margin-left: auto; }
  .page { padding: 14px 12px 80px; }
  .tabs { padding: 0 12px; }
  .pill span { display: none; }
  .cells { grid-template-columns: 1fr; }
  .cell { border-right: 0; border-bottom: 1px solid var(--line); }
  .cell:last-child { border-bottom: 0; }
}

/* Add or edit a listing: details, then shipping size and weight */
.steps { margin: 0; font-weight: 700; color: var(--muted); font-size: 12px; }
.stepbox { display: flex; flex-direction: column; gap: 12px; }
.stephead { margin: 0; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid #BFC8D0; background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 600; cursor: pointer; color: var(--ink); }
.chip:hover { background: #F4F6F7; }
.chip[aria-pressed="true"] { background: var(--btn); border-color: var(--btn); color: var(--btn-text); }
.chip.skip { border-style: dashed; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid4 input:disabled { background: #F1F3F5; }
.dims { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }
@media (max-width: 900px) { .grid4 { grid-template-columns: 1fr 1fr; } }
.tcell { display: inline-block; vertical-align: middle; } .tcell b { display: block; }
.card .dims { margin-top: 2px; }
