/* Firmly Files — the pieces Firmly Sign RE's app.css doesn't already have. Same colours, font, buttons, chips,
   banners, menus (.cmenu / .cmenu-pop) and page buttons (.pager) as the rest of Firmly; icons are Firmly's own (ic()). */
@media (max-width: 640px) { .hide-sm { display: none !important; } }
.danger-text { color: var(--bad); }
.linkbtn.danger-text { color: var(--bad); }
.mini.del:hover:not(:disabled) { border-color: var(--bad); color: var(--bad); }
.mini .ico { width: 18px; height: 18px; vertical-align: 0; }
.modal.mid { max-width: 620px; }

.code { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 700; letter-spacing: .08em; background: #efebe3; color: var(--brand); padding: 2px 8px; border-radius: 6px; font-size: 14px; white-space: nowrap; }

/* ---------- Buyer property page ---------- */
.prop-head { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; margin-bottom: 18px; }
.prop-head .pin { width: 52px; height: 52px; border-radius: 14px; background: var(--brand); color: var(--accent); display: grid; place-items: center; flex: none; }
.prop-head h1 { margin-bottom: 6px; }
.two { display: grid; grid-template-columns: 1fr 360px; gap: 18px; align-items: start; }
@media (max-width: 900px) { .two { grid-template-columns: 1fr; } .two .side { position: static; order: -1; } }
.files { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.file { display: flex; align-items: center; gap: 12px; padding: 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.file .fi { width: 42px; height: 42px; border-radius: 10px; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.file.locked .fi { background: #efebe3; color: var(--muted); }
.file .grow { min-width: 0; }
.file .nm { font-weight: 700; color: var(--brand); overflow-wrap: anywhere; line-height: 1.25; }
.file .sub { color: var(--muted); font-size: 13.5px; }
.file .acts { display: flex; gap: 8px; flex: none; }
.file .seen { color: var(--ok); font-weight: 700; }
@media (max-width: 520px) { .file { flex-wrap: wrap; } .file .acts { width: 100%; } .file .acts .btn { flex: 1; } }
.agent-card { display: flex; gap: 14px; align-items: center; }
.avatar { width: 52px; height: 52px; border-radius: 50%; background: var(--brand); color: var(--accent); display: grid; place-items: center; font-weight: 800; font-size: 18px; flex: none; }
.agent-card .nm { font-weight: 800; color: var(--brand); font-size: 18px; line-height: 1.2; }
.contact { display: grid; gap: 8px; margin-top: 14px; }
.contact a { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 600; color: var(--brand); overflow-wrap: anywhere; }
.pnote { background: #f8f6f1; border-left: 4px solid var(--accent); padding: 12px 14px; border-radius: 6px; margin: 0 0 18px; white-space: pre-wrap; }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.tick { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; margin: 0 0 14px; }
.tick input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--brand); flex: none; }

/* ---------- File viewer ---------- */
body.viewer-open { overflow: hidden; }
.viewer { position: fixed; inset: 0; z-index: 150; background: #2b332f; display: flex; flex-direction: column; }
.viewer-bar { background: var(--brand); color: #fff; display: flex; align-items: center; gap: 12px; padding: 10px 14px; padding-top: calc(10px + env(safe-area-inset-top)); }
.viewer-bar .vt { flex: 1; min-width: 0; }
.viewer-bar .nm { font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.viewer-bar .sub { font-size: 13px; color: #b9d6c8; }
.vbtn { width: 42px; height: 42px; border-radius: 10px; border: 0; background: rgba(255, 255, 255, .12); color: #fff; cursor: pointer; display: grid; place-items: center; flex: none; }
.vbtn:hover { background: rgba(255, 255, 255, .22); }
.viewer-body { flex: 1; overflow: auto; -webkit-overflow-scrolling: touch; outline: none; }
.viewer-pages { max-width: 940px; margin: 0 auto; padding: 16px 10px 60px; display: grid; gap: 14px; }
.vpage { position: relative; background: #fff; border-radius: 3px; box-shadow: 0 2px 12px rgba(0, 0, 0, .35); width: 100%; }
.vpage canvas { display: block; width: 100%; height: 100%; border-radius: 3px; }
.viewer-img { display: block; max-width: 100%; margin: 0 auto; border-radius: 3px; box-shadow: 0 2px 12px rgba(0, 0, 0, .35); }
.viewer-load { color: #dfe9e4; text-align: center; padding: 70px 20px; max-width: 460px; margin: 0 auto; }
.viewer-load .spinner { margin: 0 auto 14px; }

/* ---------- Agent area ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
@media (max-width: 700px) { .stats { grid-template-columns: repeat(2, 1fr); } }
.stat { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px 18px; }
.stat .v { font-size: 30px; font-weight: 800; color: var(--brand); line-height: 1.1; letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 14px; font-weight: 600; }
.citem .nums { display: flex; gap: 18px; text-align: center; flex: none; }
.citem .nums b { display: block; font-size: 20px; color: var(--brand); line-height: 1.1; }
.citem .nums span { font-size: 12.5px; color: var(--muted); font-weight: 600; }
@media (max-width: 640px) { .citem { flex-wrap: wrap; } .citem .nums { width: 100%; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 10px; } }
.share { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
@media (max-width: 640px) { .share { grid-template-columns: 1fr; } .share .qr { justify-self: start; } }
.linkbox { display: flex; align-items: center; gap: 10px; background: #f8f6f1; border: 1.5px solid var(--line); border-radius: 10px; padding: 8px 8px 8px 14px; margin: 10px 0 12px; }
.linkbox .url { flex: 1; min-width: 0; font-weight: 700; color: var(--brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qr { width: 132px; height: 132px; padding: 8px; background: #fff; border: 1.5px solid var(--line); border-radius: 12px; }
.qr svg { display: block; width: 100%; height: 100%; }
.card-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.card-head h2 { margin: 0; flex: 1; }
.mini { width: 36px; height: 36px; border-radius: 9px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; color: var(--muted); display: grid; place-items: center; flex: none; padding: 0; }
.mini:hover:not(:disabled) { border-color: var(--accent); color: var(--brand); }
.mini:disabled { opacity: .35; cursor: default; }
.mini svg { width: 18px; height: 18px; }
.file .num { width: 26px; height: 26px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 700; flex: none; }
.chip.hot { background: #ffe9e0; color: #b3401a; }
.chip.warm { background: var(--warn-soft); color: var(--warn); }
.buyer { border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.buyer > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: center; }
.buyer > summary::-webkit-details-marker { display: none; }
.buyer[open] { border-color: var(--accent); }
.buyer .who { font-weight: 700; color: var(--brand); font-size: 17px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.buyer .meta { grid-column: 1 / -1; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.buyer .more { padding: 0 16px 16px; border-top: 1px solid var(--line); }
.buyer .more h3 { margin: 16px 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.opened { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 15px; }
.opened li { display: flex; gap: 8px; align-items: baseline; }
.opened .no { color: #b3ab9d; }
.upline { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1.5px dashed #c4bcae; border-radius: 10px; background: #fcfbf8; font-size: 15px; }
.upline .grow { min-width: 0; }
.upline .nm { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Printed sign for open homes ---------- */
.print-sign { display: none; }
@media print {
  @page { size: A4; margin: 14mm; }
  body > *:not(.print-sign) { display: none !important; }
  body { background: #fff; }
  .print-sign { display: block; text-align: center; font-family: "Plus Jakarta Sans", Arial, sans-serif; color: #16211c; }
  .print-sign .bar { background: #1f4d3a; color: #fff; border-radius: 14px; padding: 16mm 10mm; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-sign .bar h1 { color: #fff; font-size: 40pt; margin: 0 0 4mm; }
  .print-sign .bar p { font-size: 17pt; margin: 0; color: #cfe5da; }
  .print-sign .q { width: 95mm; height: 95mm; margin: 14mm auto 8mm; }
  .print-sign .q svg { width: 100%; height: 100%; }
  .print-sign .ad { font-size: 24pt; font-weight: 800; color: #1f4d3a; margin: 0 0 6mm; }
  .print-sign .or { font-size: 14pt; color: #5c6862; margin: 0 0 2mm; }
  .print-sign .lk { font-size: 20pt; font-weight: 700; margin: 0 0 12mm; }
  .print-sign .ag { font-size: 13pt; color: #5c6862; border-top: 1px solid #e3ded4; padding-top: 6mm; }
}

/* ---------- Change the link ---------- */
.slugbox { display: flex; align-items: center; border: 1.5px solid var(--line); border-radius: 10px; background: #f8f6f1; overflow: hidden; }
.slugbox:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); }
.slugbox .pre { padding: 0 2px 0 14px; color: var(--muted); font-weight: 600; white-space: nowrap; flex: none; }
@media (max-width: 480px) { .slugbox { flex-direction: column; align-items: stretch; } .slugbox .pre { padding: 8px 14px 4px; } }
.slugbox input { border: 0; border-radius: 0; background: #fff; font-weight: 700; color: var(--brand); padding-left: 8px; min-width: 0; }
.slugbox input:focus { box-shadow: none; }

/* ---------- Cover picture ---------- */
.coverpick { border: 2.5px dashed #c4bcae; border-radius: var(--radius); background: #fcfbf8; cursor: pointer; aspect-ratio: 16 / 9; display: grid; place-items: center; overflow: hidden; transition: .15s; }
.coverpick:hover, .coverpick.drag { border-color: var(--accent); background: var(--accent-soft); }
.coverpick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.coverpick .ph { display: grid; gap: 2px; text-align: center; color: var(--brand); }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; max-height: 420px; object-fit: cover; border-radius: var(--radius); box-shadow: var(--shadow); margin-bottom: 18px; background: #e9e4da; }
.thumb { width: 96px; height: 72px; border-radius: 10px; object-fit: cover; flex: none; background: #efebe3; display: grid; place-items: center; color: #b3ab9d; }
.thumb.big { width: 132px; height: 99px; border-radius: 12px; box-shadow: var(--shadow); }
@media (max-width: 640px) { .thumb { width: 72px; height: 54px; } .thumb.big { width: 96px; height: 72px; } }

/* ---------- Uploading files ---------- */
#uploads { gap: 8px; }
#uploads:empty { display: none !important; }
#uphead { background: var(--accent-soft); border-radius: 12px; padding: 14px 16px; color: var(--brand); }
#uphead .t { font-size: 17px; }
.upbar.big { height: 12px; margin-top: 10px; background: #fff; }
.upbar i { transition: width .35s ease-out; border-radius: 99px; }
.uprow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 12px; background: #fff; }
.uprow .fi { width: 38px; height: 38px; border-radius: 10px; background: var(--accent-soft); color: var(--brand); display: grid; place-items: center; flex: none; }
.uprow .grow { min-width: 0; }
.uprow .nm { font-weight: 700; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.uprow .upbar { height: 8px; }
.uprow .st { flex: none; width: 168px; text-align: right; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.uprow[data-state=waiting] .fi { background: #efebe3; color: var(--muted); }
.uprow[data-state=waiting] .nm { color: var(--muted); }
.uprow[data-state=checking] .upbar i { animation: upglow 1s ease-in-out infinite alternate; }
.uprow[data-state=done] { border-color: var(--accent); background: #f6fdf9; }
.uprow[data-state=done] .st { color: var(--ok); }
.uprow[data-state=done] .upbar { display: none; }
.uprow[data-state=failed] { border-color: #f0b9b9; background: var(--bad-soft); }
.uprow[data-state=failed] .upbar { display: none; }
.uprow[data-state=failed] .st { color: #8e1c1c; width: auto; max-width: 60%; white-space: normal; text-align: right; }
@keyframes upglow { from { opacity: 1; } to { opacity: .45; } }
@media (max-width: 560px) { .uprow { flex-wrap: wrap; } .uprow .st { width: 100%; text-align: left; padding-left: 50px; } .uprow[data-state=failed] .st { max-width: none; } }

#human { margin: 0 0 14px; min-height: 65px; }
#human:empty { background: #f8f6f1; border-radius: 8px; }

/* ---------- Agent property page: header ---------- */
.photo { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; flex: none; background: #efebe3; box-shadow: 0 0 0 3px #fff, var(--shadow); display: grid; place-items: center; color: #b3ab9d; }
.photo.ph svg { width: 30px; height: 30px; }
@media (max-width: 640px) { .photo { width: 64px; height: 64px; } }
.agline { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 4px; font-size: 15px; color: var(--muted); }
.agline b { color: var(--brand); }
.agline svg { flex: none; }
.btn.status { color: #fff; gap: 8px; padding-left: 12px; }
.btn.status .sdot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.btn.status.live { background: #0f8a4d; }
.btn.status.live:hover { background: #0c7541; }
.btn.status.paused { background: var(--bad); }
.btn.status.paused:hover { background: #a82020; }
.adbox { border-top: 1px solid var(--line); margin-top: 18px; padding-top: 16px; }
.adbox label { display: block; margin-bottom: 6px; color: var(--brand); }
.adbox textarea { min-height: 0; font-size: 15px; resize: vertical; }

/* ---------- Sections and often used files ---------- */
#files { display: grid; gap: 10px; margin-bottom: 10px; }
.sec { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 0 2px 2px; border-bottom: 2px solid var(--accent); }
.sec h3 { margin: 0; font-size: 17px; }
.sec .mini { width: 30px; height: 30px; border: 0; background: transparent; }
.secempty { margin: 0; padding: 4px 2px 6px; }
.addto { display: flex; align-items: center; gap: 10px; margin: 0 0 8px; font-weight: 700; font-size: 14px; color: var(--brand); }
.addto select { width: auto; min-height: 40px; padding: 6px 12px; font-size: 15px; }
.often { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.oftenlist { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); }
.oitem { display: flex; align-items: center; gap: 6px; padding: 8px 8px 8px 12px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; }
.oitem.on { border-color: var(--accent); background: #f6fdf9; }
.oitem label { flex: 1; min-width: 0; display: grid; grid-template-columns: auto 1fr; column-gap: 10px; align-items: center; cursor: pointer; }
.oitem input { width: 20px; height: 20px; accent-color: var(--brand); grid-row: span 2; margin: 0; }
.oitem .nm { font-weight: 700; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Downloads per file ---------- */
.dl { display: grid; gap: 2px; }
.dlrow { display: grid; grid-template-columns: minmax(140px, 1.1fr) 2fr 92px 62px 70px; gap: 12px; align-items: center; padding: 7px 8px; border-radius: 8px; font-size: 15px; }
.dlrow:not(.head):hover { background: #f8f6f1; }
.dlrow.head { font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-bottom: 2px; }
.dlrow .nm { font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dlrow .num { text-align: right; font-variant-numeric: tabular-nums; }
.dlrow .track { height: 12px; border-left: 1px solid #cfc8bb; }
.dlrow .track i { display: block; height: 100%; min-width: 0; background: var(--brand); border-radius: 0 4px 4px 0; transition: width .3s; }
@media (max-width: 640px) { .dlrow { grid-template-columns: 1fr 70px 50px; } .dlrow .track, .dlrow > :last-child { display: none; } .dlrow.head > :nth-child(2) { display: none; } }

/* ---------- Buyers table ---------- */
.card-head h2 { white-space: nowrap; }
.bsearch { display: flex; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 10px; padding: 0 12px; background: #fff; color: var(--muted); min-width: 200px; flex: 1; max-width: 300px; }
.bsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(61, 220, 151, .2); }
.bsearch input { border: 0; min-height: 36px; padding: 0; font-size: 15px; }
.bsearch input:focus { box-shadow: none; }
#btable { --cols: minmax(190px, 1.5fr) minmax(170px, 1.5fr) 118px 164px 118px 74px; }
.bhead, .brow { display: grid; grid-template-columns: var(--cols); gap: 12px; align-items: center; }
.bhead { padding: 8px 14px; background: #f8f6f1; border-radius: 10px; }
.bhead button { border: 0; background: none; padding: 2px 0; cursor: pointer; text-align: left; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; display: flex; gap: 5px; align-items: center; white-space: nowrap; }
.bhead button:last-child { justify-content: flex-end; }
.bhead button.on { color: var(--brand); }
.bhead .ar { font-size: 10px; opacity: .55; }
.bhead button.on .ar { opacity: 1; }
#btable .buyer { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; }
#btable .buyer.open { background: #fbfaf7; border-radius: 10px; border-bottom-color: transparent; box-shadow: inset 0 0 0 1.5px var(--accent); }
.brow { width: 100%; border: 0; background: none; padding: 12px 14px; cursor: pointer; text-align: left; font-size: 14.5px; color: var(--ink); border-radius: 10px; }
.brow:hover { background: #f8f6f1; }
.brow .who { font-size: 15.5px; flex-wrap: wrap; row-gap: 4px; min-width: 0; }
.brow .who .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: calc(100% - 44px); }
.brow .av { width: 34px; height: 34px; border-radius: 50%; background: #efebe3; color: var(--brand); display: grid; place-items: center; font-size: 12.5px; font-weight: 800; flex: none; }
.brow .c { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.brow .act { text-align: right; font-weight: 800; color: var(--brand); font-size: 16px; font-variant-numeric: tabular-nums; }
#btable .more { border-top: 1px solid var(--line); margin: 0 14px; padding: 0 0 16px; }
@media (max-width: 900px) {
  .bhead { display: flex; flex-wrap: wrap; gap: 4px 14px; }
  .brow { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .brow .who { grid-column: 1 / -1; }
  .brow .c { grid-column: 1 / -1; white-space: normal; }
  .brow .c::before { content: attr(data-l) ": "; font-weight: 600; }
  .brow .em::before { content: ""; }
  .brow .act { text-align: left; font-size: 14.5px; font-weight: 600; color: var(--muted); }
}

/* ---------- Buyer page: section headings ---------- */
.fsec { font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 18px 0 8px; }
.fsec:first-child { margin-top: 0; }

/* ---------- The menu on each buyer ---------- */
#btable { --cols: minmax(190px, 1.5fr) minmax(170px, 1.5fr) 118px 164px 118px 74px 30px; }
#btable .buyer { position: relative; }
#btable .buyer.hid .brow { opacity: .6; }
.showhid { display: flex; align-items: center; gap: 7px; font-size: 14px; font-weight: 600; color: var(--muted); cursor: pointer; white-space: nowrap; }
.showhid input { width: 18px; height: 18px; accent-color: var(--brand); margin: 0; }
.notetxt { background: #fff8e1; border-radius: 6px; padding: 2px 8px; white-space: pre-wrap; }
@media (max-width: 900px) { .brow { padding-right: 52px; } .bhead > span { display: none; } }

/* ---------- Firmly icons in place of pictures ---------- */
.dropzone .big .ico { width: 40px; height: 40px; color: var(--brand); }
.dropzone.compact .big .ico { width: 28px; height: 28px; }
.coverpick .ph-ic .ico { width: 32px; height: 32px; }
.chip .ico { width: 14px; height: 14px; vertical-align: 0; }
.opened .ico { width: 17px; height: 17px; vertical-align: -3px; color: var(--ok); }
.opened .no .ico { color: #b3ab9d; }
.uprow .st .ico { width: 15px; height: 15px; vertical-align: -2px; }
.notetxt .ico { width: 15px; height: 15px; vertical-align: -2px; color: #8a5300; }
.agline .ico { width: 18px; height: 18px; }
.bhead .ar .ico { width: 12px; height: 12px; vertical-align: -1px; }
.prop-head .pin .ico { width: 26px; height: 26px; }
.photo.ph .ico { width: 30px; height: 30px; }
.thumb .ico { width: 24px; height: 24px; }
.contact .ico { width: 20px; height: 20px; flex: none; }
.file .fi .ico { width: 22px; height: 22px; }
.uprow .fi .ico { width: 20px; height: 20px; }
.viewer .vbtn .ico { width: 22px; height: 22px; }
.sec .mini { display: inline-grid; place-items: center; }

/* ---------- Properties list (Firmly Files home) ---------- */
.citem .thumb { margin: -2px 0; position: relative; }
#list .citem .nums { position: relative; }
#list .citem .chips { position: relative; }
.invite { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.invite .grow { min-width: 220px; }

/* ---------- The menu on each buyer (uses Firmly's .cmenu / .cmenu-pop) ---------- */
#btable .buyer > .cmenu { position: absolute; right: 8px; top: 10px; }
#btable .buyer > .cmenu-pop { top: 48px; }
/* On a computer the menu button sits in the middle of the row, however tall the row is (phones keep it beside the name) */
@media (min-width: 901px) {
  #btable .buyer > .cmenu { top: calc(var(--rowh, 56px) / 2 - 18px); }
  #btable .buyer > .cmenu-pop { top: calc(var(--rowh, 56px) / 2 + 20px); }
}

/* ---------- Second agent ---------- */
.pick-list { display: grid; gap: 8px; margin: 0 0 14px; }
.pick-list label { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; }
.pick-list label:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); }
.pick-list input { width: 20px; height: 20px; accent-color: var(--brand); flex: none; margin: 0; }
.pick-list .sub { display: block; color: var(--muted); font-size: 13.5px; }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; margin: 4px 0 12px; }
.or-line::before, .or-line::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.avatar img, img.avatar { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; display: block; }

/* Properties list: Live and Paused take the same room, and each number has its own fixed column, so every row lines up */
#list .citem .chip.st { min-width: 66px; justify-content: center; }
#list .citem .nums > div { min-width: 74px; text-align: center; }
#list .citem .copy { flex: none; }
@media (max-width: 640px) { #list .citem .copy { margin-left: auto; } }
#list .citem .copy { position: relative; z-index: 1; } /* sits above the whole-row link, so pressing it copies and does not open the property */
/* Stats bar: the small "last 7 days" / "all time" beside each label */
.stat .l .per { font-weight: 500; opacity: .8; white-space: nowrap; }
.stat .l .per::before { content: "· "; }
/* File downloads: opened and downloaded are one count, so one less column */
.dl.one .dlrow { grid-template-columns: minmax(140px, 1.1fr) 2fr 92px 62px; }
@media (max-width: 640px) { .dl.one .dlrow { grid-template-columns: 1fr 70px; } .dl.one .dlrow > :last-child { display: none; } }

/* ---------- Files manager: smaller rows, and drag to reorder ---------- */
#files .files { gap: 6px; }
#files .file { padding: 7px 10px; gap: 10px; border-width: 1px; border-radius: 10px; cursor: grab; }
#files .file .nm { font-size: 15px; }
#files .file .sub { font-size: 12.5px; }
#files .file .num { width: 22px; height: 22px; font-size: 12px; }
#files .file .acts { gap: 4px; }
#files .file .mini { width: 30px; height: 30px; border: 0; background: transparent; }
#files .file .mini:hover:not(:disabled) { background: #f3efe7; }
#files .file .mini .ico, #files .file .mini svg { width: 16px; height: 16px; }
#files .sec { margin-top: 8px; cursor: grab; }
#files .sec h3 { font-size: 15.5px; }
.grip { color: #b9b2a5; display: inline-grid; place-items: center; flex: none; width: 14px; }
.grip .ico { width: 16px; height: 16px; stroke-width: 2.6; }
.file:hover .grip, .sec:hover .grip { color: var(--brand); }
.touch-only { display: none !important; }
@media (hover: none) { .touch-only { display: inline-grid !important; } .grip { display: none; } #files .file, #files .sec { cursor: default; } }
#files .dragging { opacity: .35; }
#files .file.drop-before { box-shadow: 0 -3px 0 0 var(--accent); }
#files .file.drop-after { box-shadow: 0 3px 0 0 var(--accent); }
#files .sec.drop-before { box-shadow: 0 -4px 0 0 var(--brand); }
#files .sec.drop-after { box-shadow: 0 4px 0 0 var(--brand); }
#files .sec.drop-into, #files .secempty.drop-into, #files .loosedrop.drop-into, #files ul.files.drop-into { background: var(--accent-soft); border-radius: 8px; outline: 2px dashed var(--accent); outline-offset: 2px; }
#files .secempty { padding: 8px 10px; }
.loosedrop { display: none; padding: 10px; border: 2px dashed #c4bcae; border-radius: 10px; color: var(--muted); font-size: 13.5px; text-align: center; }
#files.drag-file .loosedrop { display: block; }
/* The add-files box and often used files, a bit smaller too */
#drop.dropzone.compact { padding: 12px 14px; margin-top: 10px; }
#drop.dropzone.compact .big { display: none; }
.often { margin-top: 16px; padding-top: 14px; }
.oftenlist { gap: 6px; }
#files .file .grow { display: flex; align-items: baseline; gap: 4px 10px; flex-wrap: wrap; }
#files .file { padding: 5px 10px; }

/* ---------- Buyers (everyone, across properties) ---------- */
button.citem.person { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.citem.person .cmain { display: block; min-width: 0; }
.citem.person .top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.citem.person .s { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.citem.person .nums > span { display: block; min-width: 74px; text-align: center; }
.citem.person .nums > span > span { display: block; }
.citem.person .last { flex: none; min-width: 96px; text-align: right; font-size: 14px; color: var(--ink); }
.av { width: 38px; height: 38px; border-radius: 50%; background: #efebe3; color: var(--brand); display: grid; place-items: center; font-size: 13px; font-weight: 800; flex: none; }
.av.big { width: 52px; height: 52px; font-size: 17px; }
@media (max-width: 640px) { .citem.person .last { display: none; } }
h3.ph { margin: 0 0 8px; font-size: 16px; }
.pnote2 { display: flex; gap: 10px; align-items: center; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; margin-bottom: 6px; }
.pnote2 .txt { white-space: pre-wrap; overflow-wrap: anywhere; }
.pnote2.auto { background: var(--accent-soft); border-color: transparent; color: #14573c; font-weight: 600; }
.pnote2 .tag { flex: none; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; opacity: .75; }
.pnote2 .mini { width: 30px; height: 30px; border: 0; background: transparent; }
.pprop { padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 8px; background: #fff; }
.pprop a.t { font-weight: 700; color: var(--brand); }
.pfiles { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 2px; }
.pfiles li { display: flex; gap: 10px; align-items: baseline; justify-content: space-between; flex-wrap: wrap; font-size: 14.5px; }
.pfiles .ico { width: 15px; height: 15px; vertical-align: -2px; color: var(--muted); }

/* ---------- Property page: "Share with buyers" and "File downloads" side by side ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: stretch; margin-bottom: 18px; }
.duo.one { grid-template-columns: minmax(0, 1fr); }
.duo > .card { margin: 0; padding: 16px 18px; }
.duo h2 { font-size: 18px; margin: 0 0 4px; }
.duo .card-head { margin-bottom: 8px; }
.duo .share { gap: 14px; align-items: start; }
.duo .qr { width: 92px; height: 92px; padding: 5px; border-radius: 10px; }
.duo .linkbox { margin: 8px 0; padding: 5px 5px 5px 12px; }
.duo .share .row { gap: 6px; }
.duo .adbox { margin-top: 10px; padding-top: 10px; }
.duo .adbox textarea { font-size: 13.5px; min-height: 0; }
.duo .dl.one .dlrow { grid-template-columns: minmax(90px, 1.3fr) minmax(40px, 1fr) 74px 44px; gap: 8px; padding: 4px 6px; font-size: 14px; }
.duo .dlrow.head { font-size: 11.5px; }
.duo .dlrow .track { height: 10px; }
.duo #dlcard .dl { max-height: 230px; overflow-y: auto; }
@media (max-width: 900px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Files card: the list on the left; adding files and often used files on the right ---------- */
.fm { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 18px; align-items: start; }
.fm-side { border-left: 1px solid var(--line); padding-left: 18px; }
.fm-side .addto { margin: 0 0 8px; }
.fm-side #drop.dropzone, .fm-side #drop.dropzone.compact { margin-top: 0; padding: 18px 12px; }
.fm-side #drop.dropzone.compact .big { display: block; }
.fm-side .often { margin-top: 14px; padding-top: 12px; }
.fm-side .oftenlist { grid-template-columns: minmax(0, 1fr); }
.fm-side .oitem { padding: 5px 6px 5px 10px; }
.fm-side .oitem .mini { width: 28px; height: 28px; border: 0; background: transparent; }
.fm-side .oitem .nm { font-size: 14.5px; }
@media (max-width: 900px) { .fm { grid-template-columns: minmax(0, 1fr); } .fm-side { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); padding-top: 14px; } }
.duo .dl.one .dlrow { grid-template-columns: minmax(90px, 1.3fr) minmax(30px, 1fr) 100px 50px; }

/* ---------- Files card, round 3: heading over the list; often used files are tick boxes only ---------- */
.fm { grid-template-columns: minmax(0, 1fr) 350px; }
.fm-head { margin-bottom: 10px; }
.fm-side .often { margin-top: 12px; }
.fm-side .oftenlist { gap: 4px; }
.fm-side label.oitem { display: flex; align-items: center; gap: 9px; padding: 6px 10px; border-width: 1px; cursor: pointer; }
.fm-side label.oitem input { width: 18px; height: 18px; flex: none; margin: 0; accent-color: var(--brand); }
.fm-side label.oitem .nm { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#files .file, #files .sec { user-select: none; -webkit-user-select: none; }
#files.drag-file .file *, #files.drag-sec .sec *, #files.drag-file .sec *, #files.drag-sec .file * { pointer-events: none; } /* children can't steal the drag */
#files ul.files { padding: 3px 0; }

/* Share with buyers: no QR code here (it's on the printed sign), the link runs the full width, buttons on one line */
.duo .share { display: block; }
.duo .sharebtns { flex-wrap: nowrap; gap: 6px; }
.duo .sharebtns .btn { flex: 1 1 auto; justify-content: center; white-space: nowrap; padding-left: 8px; padding-right: 8px; min-width: 0; }
@media (max-width: 420px) { .duo .sharebtns { flex-wrap: wrap; } }
.fm-head h2 { flex: none; } /* the count sits right beside the word "Files"; Add a section stays at the right */

/* ---------- Often used files, round 4: "Add" buttons, five at a time ---------- */
.fm-side .oftenlist .oitem { display: flex; align-items: center; gap: 8px; padding: 4px 4px 4px 10px; border-width: 1px; }
.fm-side .oftenlist .oitem .nm { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 600; color: var(--brand); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fm-side .oftenlist .oitem .add { flex: none; padding: 4px 10px; min-height: 0; }
.fm-side .oftenlist .oitem .add .ico { width: 14px; height: 14px; }
.oftenpager { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 8px; }
.oftenpager .mini { width: 30px; height: 30px; font-size: 18px; line-height: 1; }
#files .file .ofu { font-size: 11.5px; padding: 1px 7px; font-weight: 700; }
#lib .file { cursor: grab; user-select: none; -webkit-user-select: none; }
#lib .dragging { opacity: .35; }
#lib .file.drop-before { box-shadow: 0 -3px 0 0 var(--accent); }
#lib .file.drop-after { box-shadow: 0 3px 0 0 var(--accent); }
@media (hover: none) { #lib .file { cursor: default; } }

/* ---------- Second agent: type a name, matching agents show underneath, "Add new agent" is always the last choice ---------- */
.agres { display: grid; gap: 6px; margin: 0 0 14px; }
.agres:empty { margin: 0 0 6px; }
.aghit { appearance: none; font: inherit; text-align: left; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; width: 100%; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 10px; background: #fff; color: var(--brand); cursor: pointer; }
.aghit:hover, .aghit:focus-visible { border-color: var(--accent); background: var(--accent-soft); }
.aghit.on { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.aghit .sub { color: var(--muted); font-size: 13.5px; }
.aghit.new { align-items: center; gap: 8px; border-style: dashed; }
.aghit.new .ico { width: 16px; height: 16px; }

/* ---------- Files card: "Add new files to" sits level with the "Files" heading row, so the two boxes below start level ---------- */
.fm-head, .fm-side .addto { min-height: 40px; margin: 0 0 10px; }
.fm-side .addto select { min-height: 36px; padding-top: 4px; padding-bottom: 4px; }
.fm-side .addto { margin-bottom: 13px; } /* the box below starts level with the top edge of the first file row */


/* ---------- Property page: jump buttons, on phones only (a computer shows it all at once) ---------- */
.jump { display: none; }
@media (max-width: 640px) {
  .jump { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 0 0 14px; position: sticky; top: 0; z-index: 20; background: var(--bg); padding: 8px 0; }
  .jump button { display: flex; align-items: center; justify-content: center; gap: 6px; border: 1.5px solid var(--line); background: #fff; border-radius: 10px; padding: 9px 6px; font: inherit; font-weight: 700; font-size: 14.5px; color: var(--brand); cursor: pointer; }
  .jump button .ico { width: 16px; height: 16px; flex: none; }
  .jump button .n { font-size: 12px; font-weight: 700; background: var(--accent-soft); color: #167a52; border-radius: 99px; padding: 0 7px; }
  #filescard, #buyerscard, #sharecard { scroll-margin-top: 64px; }
}

/* ---------- Renew sits above Copy link; removed properties; the "expires" line ---------- */
#list .citem .rowbtns { display: flex; flex-direction: column; gap: 6px; flex: none; position: relative; z-index: 1; }
#list .citem .rowbtns .btn { justify-content: center; }
#list .citem .expnote { flex: 1 1 100%; order: 9; font-size: 13px; font-weight: 700; color: #9a5b00; margin-top: -2px; position: relative; }
#list .citem .expnote .ico { width: 14px; height: 14px; vertical-align: -2px; }
#list .citem { flex-wrap: wrap; }
#list .citem.gone { background: #fbfaf7; box-shadow: none; border: 1.5px dashed var(--line); }
#list .citem.gone .thumb { opacity: .55; }
#list .citem.gone .back { flex: none; position: relative; z-index: 1; }
#list .citem.gone .cmain::after { display: none; } /* a removed row isn't a link to anywhere */

/* ---------- Buyers page pop-up: each property is one line until it's pressed ---------- */
details.pprop { padding: 0; }
.pnote2 .meta { display: block; margin-top: 2px; }
details.pprop > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 9px 34px 9px 12px; position: relative; border-radius: 10px; }
details.pprop > summary::-webkit-details-marker { display: none; }
details.pprop > summary::after { content: ""; position: absolute; right: 14px; top: 16px; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; }
details.pprop[open] > summary::after { transform: rotate(-135deg); top: 19px; }
details.pprop > summary:hover { background: #f8f6f1; }
details.pprop > summary .t { font-weight: 700; color: var(--brand); }
details.pprop > summary .sub { flex: 1 1 100%; }
details.pprop > :not(summary) { margin-left: 12px; margin-right: 12px; }
details.pprop[open] { padding-bottom: 10px; }
details.pprop .pfiles { margin-top: 2px; border-top: 1px solid var(--line); padding-top: 6px; gap: 0; }
details.pprop .pfiles li { flex-wrap: nowrap; padding: 3px 0; font-size: 14px; }
details.pprop .pfiles .nm { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
details.pprop .pfiles .n { flex: none; white-space: nowrap; font-variant-numeric: tabular-nums; }

/* ---------- Notes to everyone, the "new files" email line, sharing ---------- */
.pnote { overflow-wrap: anywhere; }
.pn-from { font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 4px; white-space: normal; }
.pn-from .ico { width: 15px; height: 15px; vertical-align: -2px; }
.pn-from .muted { font-weight: 500; }
.pnote.anote { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 10px; }
.pnote.anote + :not(.anote) { margin-top: 18px; }
.pnote.anote .mini { width: 32px; height: 32px; border: 0; background: transparent; }
.updnote { display: flex; gap: 8px; align-items: flex-start; margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--accent-soft); color: #14573c; font-size: 13.5px; font-weight: 600; }
.updnote.done { background: #f8f6f1; color: var(--muted); font-weight: 500; }
.updnote .ico { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.sharedline { margin: -4px 0 12px; }
.sharedline .ico { width: 14px; height: 14px; vertical-align: -2px; }
.tick span { line-height: 1.35; }

/* ---------- File viewer: zoom buttons and "Page 3 of 40", floating at the bottom ---------- */
.viewer-body { touch-action: pan-x pan-y; } /* two fingers zoom the document itself, not the whole screen */
.vpage canvas { position: absolute; inset: 0; }
.viewer-tools { position: absolute; left: 50%; bottom: calc(16px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: 4px; padding: 5px; border-radius: 14px; background: rgba(31, 77, 58, .94); color: #fff; box-shadow: 0 6px 22px rgba(0, 0, 0, .4); white-space: nowrap; }
.viewer-tools .vbtn { width: 40px; height: 40px; }
.viewer-tools .vbtn:disabled { opacity: .35; cursor: default; }
.viewer-tools .vbtn .ico { width: 21px; height: 21px; }
.viewer-tools .vzoom { border: 0; background: none; color: #fff; font: inherit; font-weight: 700; font-size: 14.5px; min-width: 54px; height: 40px; border-radius: 10px; cursor: pointer; font-variant-numeric: tabular-nums; }
.viewer-tools .vzoom:hover { background: rgba(255, 255, 255, .14); }
.viewer-tools .vpg { border-left: 1px solid rgba(255, 255, 255, .25); padding: 0 12px 0 14px; margin-left: 4px; font-size: 14.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.viewer-pages { box-sizing: border-box; padding-bottom: 96px; } /* the last page can scroll clear of the buttons */

/* ================= Phones (30 Nov 2026): Firmly Files tidied up for small screens ================= */
@media (max-width: 900px) {
  /* Files card: one column. Order: heading, where new files go, the add box, uploads in progress, the files, often used files. */
  .fm { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
  .fm-list, .fm-side { display: contents; }
  .fm-head { order: 1; }
  .fm-list > p { order: 1; }
  .fm-side .addto { order: 2; margin: 0 0 8px; min-height: 0; }
  .fm-side .addto select { flex: 1; min-width: 0; width: auto; }
  .fm-side #drop.dropzone, .fm-side #drop.dropzone.compact { order: 3; margin: 0 0 12px; padding: 14px 12px; }
  .fm-side #drop.dropzone.compact .big { display: none; }
  #upslot { order: 4; }
  #files { order: 5; }
  .fm-side .often { order: 6; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
}
@media (max-width: 640px) {
  /* Files heading: "Files" and Add a section on one line, the count underneath */
  .fm-head { min-height: 0; gap: 4px 10px; }
  .fm-head h2 { flex: 1; }
  .fm-head .grow { order: 3; flex: 1 1 100%; }
  /* File rows: name on top, its buttons underneath lined up with the name */
  #files .file { padding: 8px 10px 4px; row-gap: 0; align-items: flex-start; }
  #files .file .grow { flex: 1 1 0; }
  #files .file .acts { width: 100%; padding-left: 28px; gap: 2px; }
  #files .file .mini { width: 36px; height: 34px; }
  /* Section headings never break their count onto two lines */
  #files .sec { gap: 4px; }
  #files .sec h3 { min-width: 0; overflow-wrap: anywhere; }
  #files .sec .muted { white-space: nowrap; margin-left: 4px; }
  #files .sec .mini { width: 34px; height: 34px; }
  /* Stats: the small "last 7 days" / "all time" always sits under the label */
  .stat { padding: 12px 14px; }
  .stat .l .per { display: block; }
  .stat .l .per::before { content: ""; }
  /* Share with buyers: two buttons side by side, Print a sign underneath; ad wording full width with its button below */
  .duo .sharebtns { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .duo .sharebtns .btn { white-space: normal; text-align: center; }
  .duo .sharebtns .btn:last-child { grid-column: 1 / -1; }
  .duo .adbox label .muted { display: block; }
  .duo .adbox .row { flex-direction: column; gap: 8px; }
  .duo .adbox textarea { min-height: 86px; width: 100%; }
  .duo .adbox .btn { width: 100%; justify-content: center; }
  /* File downloads: the name gets the room, the count sits at the right */
  .duo .dl.one .dlrow { grid-template-columns: minmax(0, 1fr) 96px; }
  .duo .dl.one .dlrow > :last-child { display: none; }
  /* Buyer page: Share and Download all sit side by side under the Files heading */
  .card-head:has(#share) h2 { flex: 1; }
  .card-head:has(#share)::after { content: ""; flex-basis: 100%; order: 2; margin-top: -6px; }
  .card-head:has(#share) #share, .card-head:has(#share) #dlall { order: 3; flex: 1 1 0; justify-content: center; white-space: nowrap; }
  /* Buyers heading: Refresh beside the title, then search, then the buttons */
  .bhd h2 { flex: 1; }
  .bhd .bsearch { order: 2; flex: 1 1 100%; max-width: none; }
  .bhd .bsearch input { min-height: 42px; }
  .bhd #bhid { order: 3; flex: 1 1 100%; }
  .bhd #bhid:empty { display: none; }
  .bhd #export { order: 4; }
  .bhd #send { order: 5; flex: 1 1 auto; justify-content: center; }
  /* Sorting buyers: a "Sort by" row of buttons in place of column headings */
  .bhead { background: none; padding: 0 0 6px; gap: 6px; align-items: center; }
  .bhead::before { content: "Sort by"; font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 2px; }
  .bhead button { border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; background: #fff; text-transform: none; letter-spacing: 0; font-size: 13.5px; }
  .bhead button.on { border-color: var(--accent); background: var(--accent-soft); }
  .bhead button[data-sort=email], .bhead button[data-sort=phone] { display: none; }
  .brow { padding-left: 4px; }
  #btable .more { margin: 0 4px; }
  /* Properties list: photo and address on top; Live, the two counts and Copy link in one row underneath */
  #list .citem .when { white-space: normal; }
  #list .citem .s { overflow-wrap: anywhere; }
  #list .citem .chips:has(.st) { order: 2; flex: none; flex-basis: auto; align-self: center; }
  #list .citem .nums { order: 3; width: auto; flex: 1 1 auto; border-top: 0; padding-top: 0; justify-content: flex-start; gap: 12px; align-self: center; }
  #list .citem .nums > div { min-width: 0; display: flex; align-items: baseline; gap: 4px; }
  #list .citem .nums b { font-size: 15px; display: inline; }
  #list .citem .copy { order: 4; }
  #list .citem .rowbtns { order: 4; flex-direction: row; margin-left: auto; }
  #list .citem.gone .cmain { min-width: calc(100% - 96px); }
  #list .citem.gone .back { margin-left: auto; }
  #list .citem:has(.copy) .cmain { min-width: calc(100% - 96px); }
  /* Buyers page: name and email on top, the counts in one row underneath */
  #list .citem.person { align-items: flex-start; row-gap: 8px; }
  #list .citem.person .cmain { flex: 1 1 0; min-width: calc(100% - 60px); }
  #list .citem.person .nums { order: 3; flex: 1 1 100%; width: 100%; border-top: 1px solid var(--line); padding-top: 8px; justify-content: flex-start; gap: 16px; }
  #list .citem.person .nums > span { min-width: 0; display: flex; align-items: baseline; gap: 5px; }
  #list .citem.person .nums > span > span { display: inline; }
  #list .citem.person .nums b { font-size: 15px; display: inline; }
}
