:root {
  --onbrass: #17110A;
  --ground: #0E1113; --deep: #0B0E10; --surface: #14191C; --raised: #1B2225; --line: #2A3236; --line2: #3A4449;
  --text: #F2F0EA; --muted: #A9B0B3; --soft: #C9CFD2;
  --brass: #D8B26A; --brass2: #E8C98A; --green: #2ECC71; --green2: #7BE3A6; --greenbg: #103822;
  --orange: #FF8A3D; --orange2: #FFB27A; --live: #B3261E; --vip: #FFD15C;
  --font: 'IBM Plex Sans Arabic', Tahoma, system-ui, sans-serif; --kufi: 'Reem Kufi', 'IBM Plex Sans Arabic', Tahoma, sans-serif;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--ground); color: var(--text); font-family: var(--font); max-width: 100%; overflow-x: clip; touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; }
html, body { overscroll-behavior: none; }
button, input, select, textarea { font-family: inherit; font-size: 16px; }
button { cursor: pointer; touch-action: manipulation; }
button:disabled { cursor: default; }
a { color: var(--brass2); }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--brass2); outline-offset: 2px; }

/* ---------- shared ---------- */
.screen { min-height: 100dvh; }
.wrap { max-width: 560px; margin: 0 auto; padding: 16px 16px 96px; display: flex; flex-direction: column; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; }
.title { margin: 0; font-family: var(--kufi); font-size: 24px; font-weight: 700; line-height: 1.3; }
h2 { margin: 0; font-size: 18px; font-weight: 700; }
.muted { color: var(--muted); font-size: 14px; line-height: 1.7; }
.small { font-size: 13px; }
.row { display: flex; align-items: center; gap: 10px; }
.between { justify-content: space-between; }
.wrapf { flex-wrap: wrap; }
.grow { flex: 1 1 0; min-width: 0; }
label.field { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; }
input.in, select.in, textarea.in { height: 50px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--deep); color: var(--text); width: 100%; }
textarea.in { height: 80px; padding: 10px 14px; resize: none; }
.btn { height: 52px; padding: 0 18px; border-radius: 14px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-weight: 700; font-size: 16px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn.gold { background: var(--brass); border-color: var(--brass); color: var(--onbrass); }
.btn.green { background: var(--green); border-color: var(--green); color: #06140C; }
.btn.orange { background: var(--orange); border-color: var(--orange); color: #17110A; }
.btn.red { background: var(--live); border-color: var(--live); color: #fff; }
.btn.ghost { background: transparent; }
.btn.sm { height: 44px; font-size: 14px; padding: 0 12px; border-radius: 10px; }
.btn.icon { width: 48px; height: 48px; padding: 0; border-radius: 10px; }
.btn:disabled { opacity: .45; }
.btn.big, .bigbtn { height: 62px; font-size: 22px; font-family: var(--kufi); }
.full { width: 100%; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; max-width: 100%; padding: 2px 10px; line-height: 1.4; border-radius: 8px; background: var(--raised); font-size: 13px; }
.chip.live { background: var(--live); color: #fff; font-weight: 700; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: pulse 1.2s ease-in-out infinite; }
.err { color: var(--orange2); font-size: 14px; font-weight: 600; min-height: 1em; }
.okmsg { color: var(--green2); font-size: 14px; font-weight: 600; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes glow { 0% { box-shadow: 0 0 0 0 rgba(255,209,92,.65); } 100% { box-shadow: 0 0 0 7px rgba(255,209,92,0); } }
@keyframes rise { from { transform: translateY(16px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-6px); } 40% { transform: translateX(6px); } 60% { transform: translateX(-4px); } 80% { transform: translateX(4px); } }
@keyframes beat { 0% { transform: scale(1.35); opacity: .2; } 30% { transform: scale(1); opacity: 1; } 100% { transform: scale(.92); opacity: .9; } }
@keyframes flash { 0% { color: #fff; transform: scale(1.12); } 100% { color: var(--brass2); transform: none; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* names by level */

/* ---------- login ---------- */
.brand { font-family: var(--kufi); font-size: 40px; color: var(--brass2); text-align: center; margin: 40px 0 0; }
.tag { text-align: center; color: var(--soft); margin: 0 0 12px; }

/* ---------- bidder live ---------- */
.fullscreen { position: relative; height: 100dvh; overflow: hidden; background: #000; display: flex; flex-direction: column; }
.fullscreen .stage { position: relative; flex: 1 1 auto; min-height: 0; overflow: hidden; background: radial-gradient(circle at 50% 40%, #232A2F 0%, #0B0E10 75%); }
.fullscreen .stage > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage .novideo { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: var(--soft); text-align: center; padding: 24px; font-size: 15px; line-height: 1.7; }
.overlay-top { position: absolute; top: 0; left: 0; right: 0; padding: max(10px, env(safe-area-inset-top)) 12px 0; display: flex; flex-direction: column; gap: 8px; z-index: 3; }
.pricebar { display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 12px; border-radius: 14px; background: rgba(14,17,19,.86); border: 1px solid var(--line); }
.pricebar .price { font-size: 30px; font-weight: 700; color: var(--brass2); line-height: 1.1; }
.pricebar .price.flash { animation: flash .55s ease-out; }
.leader { height: 30px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; font-size: 13px; font-weight: 700; background: var(--raised); max-width: 46%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader.mine { background: var(--greenbg); color: var(--green2); }
.details { padding: 12px 14px; border-radius: 14px; background: rgba(14,17,19,.92); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; animation: rise .25s ease-out; }
.timer { display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 12px; border-radius: 12px; background: rgba(14,17,19,.9); border: 1px solid var(--brass2); }
.timer .bar { flex: 1; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.timer .bar i { display: block; height: 6px; background: var(--brass2); border-radius: 3px; transition: width .2s linear; }
.timer.urgent { border-color: var(--orange); }
.timer.urgent .bar i { background: var(--orange); }
.waiting { height: 38px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: rgba(14,17,19,.82); border: 1px dashed var(--line2); font-size: 13px; color: var(--soft); }
.panel { flex-shrink: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 10px 12px max(12px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 8px; z-index: 4; }
.bidbtn { flex: 1; height: 54px; border: 0; border-radius: 14px; background: var(--green); color: #06140C; font-family: var(--kufi); display: flex; align-items: center; justify-content: center; gap: 10px; }
.bidbtn b { font-size: 21px; }
.bidbtn span { font-family: var(--font); font-size: 16px; font-weight: 700; }
.bidbtn:disabled { background: #24342B; color: #9DB3A6; }
.hint { align-self: flex-start; padding: 4px 10px; border-radius: 10px; background: var(--deep); font-size: 12px; font-weight: 600; color: var(--orange2); }
.bigcount { position: absolute; top: 30%; left: 0; right: 0; text-align: center; font-size: 170px; font-weight: 700; color: var(--orange); text-shadow: 0 6px 30px rgba(0,0,0,.75); pointer-events: none; z-index: 5; line-height: 1; direction: ltr; }
.bigcount.beat { animation: beat .9s ease-out; }
.banner { position: absolute; left: 12px; right: 12px; z-index: 6; padding: 12px 14px; border-radius: 14px; font-size: 15px; font-weight: 700; text-align: center; box-shadow: 0 8px 24px rgba(0,0,0,.55); }
.banner.outbid { background: var(--orange); color: #17110A; animation: shake .5s ease-in-out; }
.banner.pending { background: #2A1B10; border: 1px solid var(--orange); color: var(--orange2); display: flex; align-items: center; gap: 10px; text-align: start; }
.spinner { width: 18px; height: 18px; flex-shrink: 0; border-radius: 50%; border: 3px solid var(--orange2); border-top-color: transparent; animation: spin .9s linear infinite; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 8; background: var(--surface); border-top: 2px solid var(--brass2); padding: 18px 16px max(18px, env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 10px; animation: rise .2s ease-out; }
.sheet.warn { border-top-color: var(--orange); }
.scrim { position: absolute; inset: 0; z-index: 7; background: rgba(0,0,0,.45); }
.choice { height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); text-align: start; font-weight: 600; }
.choice.on { border-color: var(--orange); background: #3A2414; color: var(--orange2); }

/* win overlay */
.win { position: absolute; inset: 0; z-index: 9; background: rgba(8,10,11,.97); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 32px; text-align: center; overflow: hidden; }
.win.shake { animation: shake .7s ease-in-out; }
.win .who { font-family: var(--kufi); font-size: 34px; font-weight: 700; color: var(--brass2); }
.win .amt { font-size: 22px; font-weight: 700; }
.confetti { position: absolute; top: -20px; width: 8px; height: 14px; border-radius: 2px; animation: fall linear infinite; }
@keyframes fall { from { transform: translateY(-20px) rotate(0); } to { transform: translateY(110vh) rotate(540deg); } }
.burst { position: absolute; width: 0; height: 0; }
.burst i { position: absolute; left: 0; top: 0; width: 4px; height: 26px; margin-left: -2px; border-radius: 2px; transform-origin: 50% 0; animation: ray 1.4s ease-out infinite; }
@keyframes ray { 0% { transform: rotate(var(--d)) translateY(0) scaleY(.2); opacity: 1; } 70% { opacity: 1; } 100% { transform: rotate(var(--d)) translateY(70px) scaleY(1); opacity: 0; } }

/* tabs */
.tabs { position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; display: flex; background: var(--deep); border-top: 1px solid var(--line); padding-bottom: env(safe-area-inset-bottom); }
.tabs button { flex: 1; height: 60px; border: 0; background: transparent; color: var(--muted); font-size: 13px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; }
.tabs button.on { color: var(--brass2); }
/* the auction owner's way back to his own auction (20 Nov): red, apart from «المزادات» */
.tabs button.mine, .tabs button.mine.on { color: #FF6B6B; }

/* owner */
.lotrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 10px 12px; border-radius: 12px; background: var(--deep); border: 1px solid var(--line); }
.lotrow.cur { border-color: var(--brass); background: var(--raised); }
.lotrow.back { border-color: var(--brass); }
.lotrow .no { width: 24px; font-weight: 700; }
.lotrow .nm { flex: 1 1 160px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.lotrow .st { font-size: 13px; font-weight: 600; }
.lotrow .acts { display: flex; gap: 8px; margin-inline-start: auto; }
.req { border: 1px solid var(--orange); background: #2A1B10; }

.feed { display: flex; flex-direction: column; gap: 6px; max-height: 340px; overflow: auto; }
.feed .msg { animation: none; }
.pw { font-size: 22px; font-weight: 700; letter-spacing: 1px; direction: ltr; color: var(--brass2); }
.durs { display: flex; gap: 8px; }
.durs button { flex: 1; height: 44px; border-radius: 10px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-weight: 600; }
.durs button.on { background: var(--brass); color: var(--onbrass); border-color: var(--brass); }
.result { padding: 14px; border-radius: 12px; background: var(--deep); border: 1px solid var(--green2); color: var(--green2); font-size: 16px; font-weight: 600; line-height: 1.7; }
.toast { position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 84px; max-width: 520px; margin: 0 auto; padding: 12px 14px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line2); font-size: 14px; font-weight: 600; text-align: center; animation: rise .2s ease-out; }
.conn { position: fixed; z-index: 60; top: 0; left: 0; right: 0; padding: 6px; text-align: center; background: var(--orange); color: #17110A; font-size: 13px; font-weight: 700; }

/* ================= v2: trial feedback ================= */
.list { display: flex; flex-direction: column; gap: 8px; }
.center { align-items: center; text-align: center; }
.btn.dark { background: rgba(14,17,19,.82); border-color: var(--line2); height: 34px; }
.btn.det { background: var(--vip); border-color: var(--vip); color: #17110A; height: 38px; font-size: 14px; font-weight: 700; flex-shrink: 0; }
.lotname { font-size: 14px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

details > summary { list-style: none; cursor: pointer; } details > summary::-webkit-details-marker { display: none; }

/* comment stream: scrollable history, lighter and half transparent */
.stream { position: absolute; left: 8px; right: 8px; bottom: 6px; max-height: 42%; display: flex; flex-direction: column; gap: 5px; z-index: 2;
  overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; touch-action: pan-y; scrollbar-width: none; padding-top: 26px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 30px); mask-image: linear-gradient(to bottom, transparent 0, #000 30px); }
.stream::-webkit-scrollbar { display: none; }
.msg { align-self: flex-start; max-width: 92%; flex-shrink: 0; display: flex; align-items: center; gap: 6px; padding: 3px 9px 3px 5px; border-radius: 12px;
  background: rgba(14,17,19,.5); border: 1px solid transparent; font-size: 13px; line-height: 1.45; text-shadow: 0 1px 2px rgba(0,0,0,.7); }
.msg.bid { background: rgba(60,48,22,.55); border-color: rgba(216,178,106,.55); }
.msg.bid.hot { border-color: var(--vip); }
.msg.minebid { background: rgba(16,56,34,.6); border-color: rgba(46,204,113,.8); }
.msg.sys { background: rgba(66,34,12,.55); border-color: rgba(255,138,61,.6); }
.msg.cut .t { text-decoration: line-through; opacity: .6; }
.msg .t { min-width: 0; overflow-wrap: anywhere; }
.av { width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 11px; font-weight: 700; text-shadow: none; }
.stream.cast { max-height: 46%; }
.stream.cast .msg { font-size: 15px; padding: 4px 10px 4px 6px; }
.stream.cast .nick { font-size: 14px; }
.feed { display: flex; flex-direction: column; gap: 6px; max-height: 320px; overflow: auto; }
.feed .msg { max-width: 100%; background: var(--deep); text-shadow: none; font-size: 14px; }
.feed .msg.bid { background: #2A2214; } .feed .msg.sys { background: #2A1B10; }

/* names by level */
.nick { display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; font-weight: 700; border-radius: 999px; white-space: nowrap; text-shadow: none; }
.nick.adm { --adm-d: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -2px 3px rgba(0,0,0,.9), 0 1px 0 #1287C4, 0 2px 0 #0B5F8C, 0 3px 0 #073F5E, 0 4px 0 #04283C, 0 7px 10px rgba(0,0,0,.8); position: relative; color: #fff; font-size: 13.5px; font-weight: 800; padding: 3px 12px; text-shadow: 0 1px 0 #00121C, 0 0 6px #19B8FF, 0 0 12px #19B8FF; border: 2px solid transparent; background: linear-gradient(180deg, #103A52 0%, #011019 46%, #000 54%, #082131 100%) padding-box, conic-gradient(from var(--adm-a), #9FE4FF 0 58%, #FFFFFF 74%, #FFFFFF 82%, #9FE4FF 100%) border-box; animation: admspin 2.4s linear infinite, admtilt 2.4s ease-in-out infinite alternate, admneon 2.4s linear infinite; }
.nick.own, .nick.ctl { position: relative; color: #fff; font-weight: 800; padding: 2px 10px; text-shadow: 0 1px 0 rgba(0,0,0,.5); border: 1.5px solid transparent; animation: stafftilt 3.2s ease-in-out infinite alternate; }
.nick.own { background: linear-gradient(180deg, #FF8286 0%, #E5484D 46%, #C5343A 54%, #DB4147 100%) padding-box, linear-gradient(180deg, #FFC9CB, #F0767A) border-box; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 3px rgba(0,0,0,.28), 0 1px 0 #A82A2F, 0 2px 0 #7F1D22, 0 3px 0 #561216, 0 5px 7px rgba(0,0,0,.7), 0 0 7px rgba(229,72,77,.5); }
.nick.ctl { background: linear-gradient(180deg, #74B0FF 0%, #2F80ED 46%, #1F66C9 54%, #2A76DE 100%) padding-box, linear-gradient(180deg, #CFE3FF, #6FA8F5) border-box; box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 3px rgba(0,0,0,.28), 0 1px 0 #1E5AB0, 0 2px 0 #15417F, 0 3px 0 #0D2A54, 0 5px 7px rgba(0,0,0,.7), 0 0 7px rgba(47,128,237,.5); }
.nick.svip { color: #0B1020; padding: 1px 9px; background: linear-gradient(110deg, #7DE3FF 0%, #B9A7FF 35%, #FFB8F0 60%, #7DE3FF 100%); background-size: 220% 100%; box-shadow: 0 0 10px rgba(170,190,255,.7); animation: shimmer 3.2s linear infinite; }
.nick.vip { background: var(--vip); color: #17110A; padding: 1px 9px; }
.nick.plat { color: #E6EDF2; background: #0B0E10; border: 1.5px solid #C9D3DA; padding: 0 9px; }
.nick.gold { color: #FFD15C; border: 1px solid #C9A94A; padding: 0 8px; }
.nick.silv { color: #C9D1D6; border: 1px solid #8E9AA1; padding: 0 8px; }
.nick.ver { color: var(--text); }
.nick.ver::before { content: '✓'; color: var(--green2); }
.nick.unv { color: #9AA3A8; }
.nick.me { color: var(--green2); }
.nick.sys { color: var(--orange2); }

/* quick bids + cancel box */
.quick { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(0, .9fr); gap: 6px; }
.quick button { height: 48px; border-radius: 12px; border: 1px solid var(--green); background: var(--greenbg); color: var(--green2); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 0; }
.quick button:disabled { border-color: var(--line); background: var(--raised); color: #8A9499; opacity: 1; }
.quick b { font-size: 17px; line-height: 1.2; direction: ltr; }
.quick span { font-size: 11px; line-height: 1.2; }
.quick button.qcancel { border-color: var(--orange); background: #2A1B10; color: var(--orange2); }
.quick button.qcancel b { font-size: 13px; direction: rtl; }
.quick button.qcancel:disabled { border-color: var(--line); background: var(--raised); color: #6F787D; }

/* broadcaster */
#oCast .stage { touch-action: none; }
.tools { position: absolute; left: 10px; top: 150px; z-index: 3; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.tools button { width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--line2); background: rgba(14,17,19,.78); color: var(--text); font-size: 11px; font-weight: 700; padding: 0; }
.tools button.on { background: var(--brass); color: var(--onbrass); border-color: var(--brass); }
/* the camera turn button: a camera with two arrows (23 Nov, Mohammed's pick), which turns over when the camera switches */
.tools .flipic { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .45s ease; }
#tFlip { display: inline-grid; place-items: center; }
#tFlip.hidden { display: none; }
#tFlip.spin .flipic { transform: rotate(180deg); }
.zoomval { min-width: 46px; text-align: center; font-size: 13px; font-weight: 700; padding: 2px 0; border-radius: 8px; background: rgba(14,17,19,.78); direction: ltr; }
#oCast .stream { left: 64px; }

/* control */
.ctl { max-width: 1440px; margin: 0 auto; padding: 16px 16px 96px; display: flex; flex-direction: column; gap: 14px; }
/* Phone: one long page. The desk's wrappers vanish (display: contents) and `order` puts the boxes in the order the phone
   always had: dallal request, late payments, figures, broadcast, cancel request, the watch on air, its commands, bids,
   comments, queue, sold, withdrawn. The desk-only pieces (state path, tabs, next strip, ready messages) stay off. */
.ctlgrid { display: flex; flex-direction: column; gap: 14px; }
.cside, .cvid, .cinfo, .cpanel, .cpane { display: contents; }
.ctlstat, .ctlalert, .ctlnext, .ctlquick, .ctlcmd .wdname, .cchatbar, #ctlChatForm .cclose { display: none; }
#ctlCast { order: 1; } #ctlDue { order: 2; } #ctlKpis { order: 3; } #ctlMon { order: 4; } #ctlFxRow { order: 5; } #ctlReq { order: 6; }
#ctlNow { order: 7; } #ctlCmd { order: 8; } #ctlBidsCard { order: 9; } #ctlChatCard { order: 10; } #ctlQueueCard { order: 11; } #ctlSoldCard { order: 12; } #ctlWdCard { order: 13; }
#ctlNow:empty, #ctlCmd:empty { display: none; }
/* the phone (23 Nov, Mohammed picked «تبويبات مثل اللابتوب»): the broadcast, the watch on air and the commands on top, then
   the desk's tabs; one tab shows at a time, and the comments are a tab of their own */
@media not all and (min-width: 760px) and (min-height: 520px) {
  #ctlMon { order: 1; } #ctlFxRow { order: 2; } #ctlNow { order: 3; } #ctlCmd { order: 4; }
  .ctltabs { order: 5; display: flex; gap: 3px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); position: sticky; top: env(safe-area-inset-top, 0px); z-index: 4; }
  .ctltabs button { flex: 1 1 0; min-width: 0; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 12.5px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; padding: 0 2px; white-space: nowrap; overflow: hidden; }
  .ctltabs button.on { background: var(--raised); color: var(--text); }
  .ctltabs button i { font-style: normal; font-size: 11px; min-width: 18px; padding: 0 5px; border-radius: 999px; background: var(--line); }
  .ctltabs button.hot i { background: var(--orange); color: #17110A; }
  .cpane { display: none; }
  .cpane.on { display: flex; flex-direction: column; gap: 14px; order: 6; }
  #ctlChatCard { order: 6; display: none; }
  #ctlChatCard.on { display: flex; }
  #ctlPend:not(.hidden) { display: flex; }
}
.cprice { font-size: 36px; font-weight: 700; color: var(--brass2); }
.cname { font-family: var(--kufi); font-size: 20px; line-height: 1.4; }
.clead { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 12px; }
.ctimer { height: 54px; } .ctimer .num { font-size: 26px; direction: ltr; }
/* 22 Nov (Mohammed): the broadcast can be looked at closely. A press on the picture (or «تكبير») opens it over the whole
   screen, with the way back and the price on top; on a computer «نافذة خارجية» puts it in a window of its own. */
#ctlMon.canbig { cursor: zoom-in; }
#ctlMon.big { position: fixed; inset: 0; z-index: 60; width: 100%; height: 100dvh; max-height: none; aspect-ratio: auto; border: 0; border-radius: 0; background: #000; cursor: zoom-out; }
.montop { position: absolute; top: 0; left: 0; right: 0; z-index: 3; display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top)) 12px 26px; background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,0)); color: #fff; font-size: 14px; font-weight: 600; text-shadow: 0 1px 3px #000; pointer-events: none; }
.montop > * { pointer-events: auto; }
.montop .t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#ctlFxRow { gap: 8px; flex-wrap: wrap; }
.ctlcmd .cmdrow { display: flex; gap: 10px; align-items: stretch; }
.ctlcmd .mainb { flex: 1 1 auto; min-width: 0; }
.ctlcmd .mname { font-family: var(--font); font-size: .68em; font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-inline-start: 6px; unicode-bidi: plaintext; }
.ctlcmd .wd { height: 62px; flex-shrink: 0; }
@media (min-width: 1100px) { .feed { max-height: 380px; } }

/* The control desk, option 2 «المنصّة» (21 Nov, picked from the trial page): from 760px wide the control is one fixed
   screen that never scrolls as a whole. 22 Nov (Mohammed, after trying it on his laptop and iPad): the broadcast sits in
   the middle and the watch on air took its old place above the comments, every block is smaller, and the comment box and
   the ready messages open from two small squares under the comments. Three shapes: laptop (1180px and wider), iPad on its
   side (1024px and wider), and upright (an iPad standing, or any window narrower than 1024px). */
@media (min-width: 760px) and (min-height: 520px) {
  #oCtl { height: 100dvh; min-height: 0; overflow: hidden; }
  #oCtl .ctl { height: 100%; max-width: none; padding: 10px 14px calc(70px + env(safe-area-inset-bottom)); gap: 10px; }
  /* a box that scrolls inside the desk gets a thin dark bar, not the wide grey one Windows draws */
  #oCtl * { scrollbar-width: thin; scrollbar-color: var(--line2) transparent; }
  .ctlbar { flex: 0 0 auto; flex-wrap: nowrap; gap: 10px; min-width: 0; }
  #ctlHead { flex-wrap: nowrap; }
  #ctlTitle { font-size: 17px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex: 0 1 auto; min-width: 60px; }
  #ctlHead { flex: 0 0 auto; }
  .ctlstat { display: flex; flex: 1 1 auto; min-width: 0; gap: 6px; flex-wrap: wrap; max-height: 30px; overflow: hidden; }
  .ctlstat .ckeys { display: none; }
  .ctlstat .chip { white-space: nowrap; flex-shrink: 0; }
  .ctlstat .dotk { width: 8px; height: 8px; border-radius: 50%; background: var(--green); flex-shrink: 0; }
  .ctlstat .dotk.bad { background: var(--orange); }
  .ctlstat .ctog { border: 1px solid var(--line2); background: transparent; color: var(--muted); border-radius: 8px; min-height: 30px; padding: 2px 10px; font-size: 13px; white-space: nowrap; flex-shrink: 0; }
  .ctlstat .ctog.on { border-color: var(--brass); color: var(--brass2); }
  .ctlgrid { flex: 1 1 auto; min-height: 0; display: grid; gap: 10px; align-items: stretch; }
  #oCtl .ctlgrid > *, #oCtl .cside > *, #oCtl .cpanel > *, #oCtl .cpane > *, #oCtl .cvid > *, #oCtl .cinfo > * { order: 0; min-width: 0; }
  .cside { grid-area: side; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
  /* the broadcast fills its place; the picture keeps its own shape inside it */
  .cvid { grid-area: vid; display: flex; flex-direction: column; gap: 6px; min-height: 0; }
  #oCtl .monitor:not(.big) { flex: 1 1 0; min-height: 0; max-height: none; aspect-ratio: auto; height: auto; }
  #ctlFxRow { flex: 0 0 auto; gap: 6px; }
  #ctlFxRow .btn { height: 34px; padding: 0 9px; font-size: 12.5px; }
  /* the watch on air: a small block at the head of the side column */
  .cinfo { display: flex; flex-direction: column; gap: 8px; flex: 0 0 auto; min-height: 0; max-height: 62%; overflow: auto; }
  .cinfo #ctlNow { gap: 4px; padding: 10px 12px; flex: 0 0 auto; }
  .cinfo #ctlNow > * { max-width: 100%; }
  .cinfo #ctlNow .cname { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.35; overflow-wrap: anywhere; }
  .cinfo #ctlNow .cprice { font-size: clamp(24px, 2.4vw, 34px); line-height: 1.1; }
  .cinfo #ctlNow .cnext, .cinfo #ctlNow .clead { font-size: 13.5px; }
  .cinfo #ctlNow .cnext { color: var(--soft); }
  .cinfo #ctlNow .chint { display: none; }
  .cinfo #ctlNow .ctimer { height: 42px; }
  .cinfo #ctlNow .ctimer .num { font-size: 21px; }
  .cinfo #ctlNow .result { padding: 8px 10px; font-size: 14px; line-height: 1.6; }
  .ctlalert { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 40px; padding: 4px 12px; border-radius: 12px; border: 1px solid var(--orange); background: #2A1B10; color: var(--orange2); font-weight: 700; font-size: 14px; flex: 0 0 auto; animation: rise .25s ease-out; }
  .ctlalert b { background: var(--orange); color: #17110A; border-radius: 8px; padding: 3px 12px; }
  /* the comments: a small heading, the pinned line, the comments themselves, and two squares at the bottom. «اكتب»
     opens the comment box in the squares' place; «الجاهزة» opens the ready messages above them */
  #ctlChatCard { flex: 1 1 0; min-height: 0; overflow: hidden; gap: 6px; padding: 10px; }
  #ctlChatCard h2 { font-size: 13px; color: var(--muted); font-weight: 600; }
  #ctlChatCard .feed { flex: 1 1 0; min-height: 0; max-height: none; gap: 4px; }
  #ctlChatCard .feed .msg { font-size: 13px; }
  #ctlChatCard .msgrow .acts .btn { height: 28px; padding: 0 8px; font-size: 12px; }
  #ctlChatCard .pinbar { flex: 0 0 auto; padding: 3px 8px; gap: 6px; font-size: 12.5px; }
  #ctlChatCard .pinbar .t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  #ctlChatCard .pinbar .btn { height: 26px; padding: 0 8px; font-size: 11.5px; }
  #ctlChatForm { display: none; order: 5; flex-wrap: nowrap; gap: 6px; flex: 0 0 auto; }
  #ctlChatCard.w #ctlChatForm, #ctlChatCard.qe #ctlChatForm { display: flex; }
  #ctlChatForm .in { height: 40px; min-height: 0; min-width: 0; padding: 0 10px; font-size: 14px; }
  #ctlChatForm .btn { height: 40px; padding: 0 10px; font-size: 13px; flex-shrink: 0; }
  #ctlChatForm .cclose { display: inline-flex; padding: 0 12px; }
  .ctlquick { order: 4; flex-wrap: wrap; gap: 6px; flex: 0 0 auto; max-height: 46%; overflow-y: auto; padding: 8px; border-radius: 12px; border: 1px solid var(--line2); background: var(--deep); }
  #ctlChatCard.q .ctlquick { display: flex; }
  .ctlquick .qt { flex: 1 1 100%; font-size: 11.5px; color: var(--muted); }
  .ctlquick button { flex: 0 1 auto; min-height: 32px; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line2); background: var(--raised); color: var(--soft); font-size: 12.5px; }
  .ctlquick button.ed { border-style: dashed; color: var(--muted); }
  .cchatbar { order: 6; display: flex; gap: 6px; flex: 0 0 auto; }
  #ctlChatCard.w .cchatbar { display: none; }
  .cchatbar button { width: 50px; height: 44px; padding: 0; border-radius: 10px; border: 1px solid var(--line2); background: var(--raised); color: var(--soft); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; font-size: 10.5px; font-weight: 600; }
  .cchatbar button svg { width: 17px; height: 17px; fill: currentColor; }
  .cchatbar button.on { border-color: var(--brass); color: var(--brass2); }
  /* what comes next: three small cards, one line for the name */
  .ctlnext { grid-area: nx; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .ctlnext:empty { display: none; }
  .ctlnext .nxc { display: flex; flex-direction: column; min-width: 0; padding: 4px 10px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
  .ctlnext .nxc:first-child { border-color: var(--brass); }
  .ctlnext .nxc span, .ctlnext .nxc b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ctlnext .nxc span { font-size: 11px; color: var(--muted); }
  .ctlnext .nxc b { font-size: 12.5px; line-height: 1.5; unicode-bidi: plaintext; }
  .cpanel { grid-area: panel; display: flex; flex-direction: column; gap: 8px; min-height: 0; }
  .ctltabs { grid-area: tabs; display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); flex: 0 0 auto; }
  .ctltabs button { flex: 1 1 0; min-width: 0; min-height: 40px; border: 0; border-radius: 9px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13.5px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
  .ctltabs button.on { background: var(--raised); color: var(--text); }
  .ctltabs button i { font-style: normal; font-size: 12px; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--line); }
  .ctltabs button.hot i { background: var(--orange); color: #17110A; animation: tpulse 1.4s ease-in-out infinite; }
  .ctltabs .tchat { display: none; }
  .cpane { grid-area: panel; display: none; flex-direction: column; gap: 10px; flex: 1 1 0; min-height: 0; overflow: auto; overscroll-behavior: contain; }
  .cpane.on { display: flex; }
  .cpane .feed { max-height: none; }
  .cpane > .card { flex-shrink: 0; padding: 12px; }
  #ctlPend:not(.hidden) { display: flex; }
  .ctlnone:not(.hidden) { display: block; margin: 0; padding: 12px; }
  /* the commands: one low row */
  #ctlCmd { grid-area: cmd; padding: 8px; gap: 6px; }
  .ctlcmd .cmdrow { gap: 6px; }
  .ctlcmd .mainb { height: 52px; font-size: 19px; }
  .ctlcmd .durs { flex: 0 0 auto; gap: 6px; }
  .ctlcmd .durs button { flex: 0 0 auto; min-width: 52px; height: 52px; font-size: 14px; }
  .ctlcmd .wd { height: 52px; min-width: 84px; max-width: 150px; padding: 0 10px; font-size: 14px; line-height: 1.25; flex-direction: column; gap: 0; }
  .ctlcmd .wdname { display: block; max-width: 100%; font-size: 10.5px; font-weight: 400; opacity: .8; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ctlcmd .stopsell { height: 52px; }
}
@keyframes tpulse { 50% { opacity: .55; } }
/* laptop: the watch on air and the comments | the broadcast, the commands, what comes next | the tabbed panel */
@media (min-width: 1180px) and (min-height: 520px) {
  .ctlgrid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "side vid panel" "side cmd panel" "side nx panel"; }
  .ctlstat .ckeys { display: inline-block; }
}
/* iPad: the commands lie across the bottom, the main one at the right edge and «سحب» at the left, under the thumbs */
@media (min-width: 760px) and (max-width: 1179.98px) and (min-height: 520px) {
  .ctlcmd .cmdrow { justify-content: space-between; }
  .ctlcmd .mainb { flex: 0 1 46%; height: 58px; }
  .ctlcmd .durs button { height: 58px; min-width: 58px; }
  .ctlcmd .wd { height: 58px; min-width: 130px; }
  .ctlcmd .stopsell { height: 58px; }
}
/* iPad on its side: the same three columns, the broadcast narrow in the middle (the picture is upright) */
@media (min-width: 1024px) and (max-width: 1179.98px) and (min-height: 520px) and (orientation: landscape) {
  .ctlgrid { grid-template-columns: minmax(0, 1fr) minmax(0, .78fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto; grid-template-areas: "side vid panel" "nx nx nx" "cmd cmd cmd"; }
}
/* upright: the watch on air beside the broadcast, then the tabs (the comments are one of them) and the commands */
@media (min-width: 760px) and (max-width: 1179.98px) and (min-height: 520px) and (orientation: portrait), (min-width: 760px) and (max-width: 1023.98px) and (min-height: 520px) {
  .ctlgrid { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto auto minmax(0, 1.55fr) auto; grid-template-areas: "stage vid" "nx vid" "tabs tabs" "panel panel" "cmd cmd"; }
  .cside, .cpanel { display: contents; }
  .cinfo { grid-area: stage; max-height: none; overflow: auto; }
  .cinfo #ctlNow { flex: 1 0 auto; justify-content: center; }
  .cinfo #ctlNow .cname { font-size: 19px; }
  .cinfo #ctlNow .cprice { font-size: 30px; }
  #ctlChatCard { grid-area: panel; display: none; }
  #ctlChatCard.on { display: flex; }
  .ctltabs .tchat { display: inline-flex; }
}
.monitor { position: relative; aspect-ratio: 3 / 4; max-height: 56dvh; width: 100%; border-radius: 16px; overflow: hidden; background: radial-gradient(circle at 50% 40%, #232A2F 0%, #0B0E10 75%); border: 1px solid var(--line); }
.monitor video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.monitor .novideo { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--soft); text-align: center; padding: 20px; font-size: 14px; line-height: 1.7; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.kpi span { font-size: 13px; color: var(--muted); } .kpi b { font-size: 24px; font-variant-numeric: tabular-nums; }
.kpi.gold b { color: var(--brass2); } .kpi.green b { color: var(--green2); }
.rtable { width: 100%; border-collapse: collapse; font-size: 14px; }
.rtable th { text-align: start; font-weight: 600; color: var(--muted); font-size: 13px; padding: 8px 6px; border-bottom: 1px solid var(--line2); }
.rtable td { padding: 9px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.scrollx { overflow-x: auto; }

/* in-page confirmation (native dialogs freeze the camera on phones) */
.modal { position: fixed; inset: 0; z-index: 80; background: rgba(0,0,0,.62); display: flex; align-items: center; justify-content: center; padding: 20px; }
.modalbox { width: 100%; max-width: 380px; background: var(--surface); border: 1px solid var(--line2); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; gap: 14px; animation: rise .18s ease-out; }
/* every pop-up stays inside the screen and scrolls inside itself when it is taller than the window */
.modalbox { max-height: calc(100dvh - 40px); overflow-y: auto; overscroll-behavior: contain; }
.modalbox > * { flex-shrink: 0; }
.modalbox p { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.8; white-space: pre-line; }
.ctl > *, .wrap > * { min-width: 0; }
.monitor.empty { aspect-ratio: auto; height: 96px; }

.ti { width: 13px; height: 13px; fill: currentColor; flex-shrink: 0; }
.nick.svip .ti { width: 15px; height: 15px; }
@keyframes shimmer { from { background-position: 0% 0; } to { background-position: 220% 0; } }
/* nothing may be wider than the phone, in any browser */
html, body { overflow-x: hidden; width: 100%; position: relative; }
.screen, .fullscreen, .wrap, .ctl { max-width: 100vw; overflow-x: hidden; }
.ctl { max-width: min(1440px, 100vw); }
.lotrow, .card, .kpi { min-width: 0; max-width: 100%; }
.lotrow .nm b, .card h2, .result { overflow-wrap: anywhere; }

/* ================= many auctions ================= */
.house { width: 100%; text-align: start; display: flex; flex-direction: column; gap: 8px; align-items: stretch; padding: 16px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); color: var(--text); min-width: 0; }
.house.on { border-color: var(--live); box-shadow: 0 0 0 1px var(--live) inset; }
.house .chip { align-self: flex-start; }
.hname { font-family: var(--kufi); font-size: 20px; line-height: 1.4; overflow-wrap: anywhere; min-width: 0; }
.chip.ok { background: var(--greenbg); color: var(--green2); font-weight: 700; }
.chip.wait { background: #2A1B10; color: var(--orange2); font-weight: 700; }
.card.off { opacity: .7; border-style: dashed; }
.btn.xs { height: 34px; font-size: 12.5px; padding: 0 10px; border-radius: 9px; flex-shrink: 0; }
.badge { display: inline-flex; align-items: center; justify-content: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--orange); color: #17110A; font-size: 12px; font-weight: 700; margin-inline-start: 4px; }
.tabs button > span { display: inline-flex; align-items: center; }
[data-who] { cursor: pointer; }

/* pinned comment */
.pinbar { display: flex; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: rgba(28,22,10,.9); border: 1px solid var(--brass); font-size: 14px; font-weight: 600; line-height: 1.5; min-width: 0; }
.pinbar .t { min-width: 0; overflow-wrap: anywhere; }
.pinbar .pinic { color: var(--brass2); display: inline-flex; flex-shrink: 0; }
.pinbar .pinic .ti { width: 16px; height: 16px; }
.card .pinbar { background: #1C160A; }
.msgrow { display: flex; align-items: center; gap: 6px; min-width: 0; }
.msgrow .msg { flex: 1 1 auto; min-width: 0; align-self: auto; }
.msgrow .acts { display: flex; gap: 4px; flex-shrink: 0; }
#who .modalbox { max-height: 88dvh; overflow-y: auto; gap: 10px; }

/* ================= photos, logos, interest, rules ================= */
img.av { object-fit: cover; background: var(--raised); }
.av.lg { width: 72px; height: 72px; font-size: 30px; }
.av.md { width: 44px; height: 44px; font-size: 18px; }
.logo { width: 52px; height: 52px; flex-shrink: 0; border-radius: 14px; object-fit: cover; background: #fff; border: 1px solid var(--line2); display: inline-flex; align-items: center; justify-content: center; }
span.logo { background: var(--raised); color: var(--brass2); font-family: var(--kufi); font-size: 24px; font-weight: 700; }
.logo.sm { width: 22px; height: 22px; border-radius: 6px; font-size: 12px; border: 0; }
.logo.big { width: 72px; height: 72px; border-radius: 18px; font-size: 32px; }
.chip.dark { background: rgba(14,17,19,.82); border: 1px solid var(--line2); }

.nick .tiertag { font-size: 10px; line-height: 1.5; letter-spacing: .6px; padding: 0 5px; border-radius: 5px; background: #0B1020; color: #fff; direction: ltr; }
.intbtn { height: 38px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--raised); color: var(--soft); font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; }
.intbtn.on { border-color: var(--brass); background: #2A2214; color: var(--brass2); }
.intbtn .ti { width: 15px; height: 15px; }

.check { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; font-weight: 600; line-height: 1.7; }
.check input { width: 22px; height: 22px; flex-shrink: 0; margin-top: 2px; accent-color: var(--brass); }
#modal { z-index: 90; }

/* ================= settings, cropping, viewers, reports ================= */
.chipbtn { border: 0; color: inherit; font-family: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.kpibtn { text-align: start; color: inherit; font: inherit; cursor: pointer; }
.kpibtn span { text-decoration: underline; text-underline-offset: 3px; }
#chatToggle.off { opacity: .45; }
.ruleslist { margin: 0; padding-inline-start: 22px; display: flex; flex-direction: column; gap: 8px; font-size: 15px; line-height: 1.8; }
.reportlist { max-height: 300px; overflow-y: auto; }
.viewerlist { max-height: 52dvh; overflow-y: auto; gap: 10px; }
#viewers .modalbox { max-height: 88dvh; gap: 10px; }
.tier { display: flex; gap: 8px; align-items: flex-end; }
.tier label { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; }
.tier .btn.icon { flex-shrink: 0; }

/* picture framing */
.cropbox { position: relative; width: 100%; max-width: 300px; aspect-ratio: 1; margin: 0 auto; overflow: hidden; border-radius: 16px; background: #fff; border: 2px solid var(--brass); touch-action: none; cursor: grab; }
.cropbox img { position: absolute; max-width: none; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; }
.cropbox.round::after { content: ''; position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0,0,0,.5); pointer-events: none; }
#cropZoom { accent-color: var(--brass); height: 32px; }

/* bar charts: one measure per chart, thin bars from one baseline */
.chart { --bar: #B38B3B; --bar-on: #D8B26A; display: flex; flex-direction: column; gap: 6px; max-width: 720px; }
.chartplot { position: relative; height: 150px; margin-inline-start: 46px; margin-top: 18px; }
.chartplot .grid { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.chartplot .grid i { position: absolute; inset-inline-start: -46px; top: -8px; width: 40px; text-align: end; font-style: normal; font-size: 11px; color: var(--muted); }
.chartplot .cols { position: absolute; inset: 0; display: flex; align-items: stretch; gap: 2px; padding: 0 4px; }
.chartplot .col { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; background: none; border: 0; padding: 0; }
.chartplot .col i { display: block; width: 100%; max-width: 24px; border-radius: 4px 4px 0 0; background: var(--bar); }
.chartplot .col:hover i, .chartplot .col:focus-visible i, .chartplot .col.on i { background: var(--bar-on); }
.chartplot .col .val { font-size: 11px; font-weight: 700; color: var(--text); margin-bottom: 3px; white-space: nowrap; }
.colnames { display: flex; gap: 2px; padding: 0 4px; margin-inline-start: 46px; }
.colnames span { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; font-size: 11px; color: var(--muted); line-height: 1.4; }
.colnames b { color: var(--soft); }
.colnames small { font-size: 10px; white-space: nowrap; }
.chartread { margin: 0; min-height: 1.7em; }

/* ================= accounts, watch cards, page colours ================= */
#crop { z-index: 95; }
/* each look sets the accent and the surfaces behind it */

.screen[data-theme], .card[data-theme], .house[data-theme] { background-color: var(--surface); }
.screen[data-theme] { background-color: var(--ground); }
#live[data-theme] .panel { background: var(--surface); }
.house[data-theme], .card[data-theme] { border-inline-start: 4px solid var(--brass); }
.card[data-theme] .hname, .house[data-theme] .hname { color: var(--brass2); }
#bWait .title { color: var(--brass2); }

.metype { border-color: var(--brass); gap: 8px; }
.metitle { font-family: var(--kufi); font-size: 26px; line-height: 1.3; color: var(--brass2); }
.metype .nick { font-size: 14px; padding: 2px 12px; }
.thumb { width: 56px; height: 56px; flex-shrink: 0; border-radius: 10px; object-fit: cover; background: var(--raised); border: 1px solid var(--line2); display: block; }
.lotopen { flex: 1 1 200px; min-width: 0; display: flex; align-items: center; gap: 10px; text-align: start; background: none; border: 0; padding: 0; color: inherit; font: inherit; }
.lotopen .nm { flex: 1 1 0; }
.gallery { display: flex; gap: 8px; overflow-x: auto; scroll-snap-type: x mandatory; border-radius: 14px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.gallery::-webkit-scrollbar { display: none; }
.gallery img { flex: 0 0 100%; width: 100%; aspect-ratio: 1; object-fit: cover; scroll-snap-align: center; border-radius: 14px; background: var(--deep); }
.gallery.empty { height: 120px; align-items: center; justify-content: center; background: var(--deep); border: 1px dashed var(--line2); }
#lotSheet .modalbox, #lotPhotos .modalbox, #acct .modalbox { max-height: 90dvh; overflow-y: auto; gap: 10px; max-width: 420px; }
.photogrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.pcell { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--deep); border: 1px solid var(--line2); display: block; }
.pcell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcell .btn { position: absolute; top: 6px; inset-inline-end: 6px; background: rgba(14,17,19,.85); }
button.pcell.add { border-style: dashed; color: var(--brass2); font-weight: 700; font-size: 16px; }
.acctrow { width: 100%; text-align: start; color: inherit; font: inherit; flex-wrap: nowrap; }
.acctrow .nm { flex: 1 1 0; }
.pillbtn { background: none; border: 0; padding: 0; }
details.card > summary { list-style: none; }

/* the viewer's own name keeps its level colours; this small mark says it is him */
.youtag { font-size: 11px; font-weight: 700; color: var(--green2); background: var(--greenbg); border-radius: 999px; padding: 0 7px; line-height: 1.6; white-space: nowrap; flex-shrink: 0; text-shadow: none; }

/* ================= premium themes: shine, motion, sound ================= */

@keyframes sheen { from { background-position: 250% 0; } to { background-position: 0 0; } }
@keyframes sweep { 0% { left: -60%; } 60%, 100% { left: 130%; } }

@keyframes twinkle { 0%, 100% { opacity: 0; transform: scale(.3) rotate(0); } 30%, 65% { opacity: 1; transform: scale(1) rotate(45deg); } }
@keyframes dust { from { transform: translateY(-6vh); opacity: 0; } 12% { opacity: .9; } to { transform: translateY(108vh) translateX(18px); opacity: 0; } }

/* gliding light across titles and the price */

/* a sweep of light over the main buttons */

/* cards framed by a slowly moving band of the theme colour */

/* moving backdrop behind the auction page */
.fx { display: none; position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }

/* a soft light from the top of the page in the theme's colour */

#bWait > .wrap { position: relative; z-index: 1; }
.fx i { position: absolute; display: block; }

#themePrevBox { position: relative; overflow: hidden; background: var(--ground); max-width: 420px; max-height: 92dvh; overflow-y: auto; }
#themePrevBox > .fx { position: absolute; }

#premSheet .modalbox { gap: 10px; max-width: 420px; }

.fx i:nth-child(1) { left: 6%; animation-delay: -0.67s; }

.fx i:nth-child(2) { left: 88%; animation-delay: -1.34s; }

.fx i:nth-child(3) { left: 22%; animation-delay: -2.01s; }

.fx i:nth-child(4) { left: 70%; animation-delay: -2.68s; }

.fx i:nth-child(5) { left: 45%; animation-delay: -3.35s; }

.fx i:nth-child(6) { left: 94%; animation-delay: -4.02s; }

.fx i:nth-child(7) { left: 10%; animation-delay: -4.69s; }

.fx i:nth-child(8) { left: 60%; animation-delay: -5.36s; }

.fx i:nth-child(9) { left: 33%; animation-delay: -6.03s; }

.fx i:nth-child(10) { left: 82%; animation-delay: -6.70s; }

.fx i:nth-child(11) { left: 52%; animation-delay: -0.37s; }

.fx i:nth-child(12) { left: 16%; animation-delay: -1.04s; }

.fx i:nth-child(13) { left: 74%; animation-delay: -1.71s; }

.fx i:nth-child(14) { left: 38%; animation-delay: -2.38s; }

/* ================= photo viewer ================= */
.gimg { flex: 0 0 100%; position: relative; padding: 0; border: 0; background: none; scroll-snap-align: center; cursor: zoom-in; border-radius: 14px; overflow: hidden; }
.gimg img { display: block; width: 100%; }
.zoomhint { position: absolute; bottom: 8px; inset-inline-start: 8px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: rgba(14,17,19,.78); color: #fff; }
.viewer { position: fixed; inset: 0; z-index: 97; background: #000; }
.viewstage { position: absolute; inset: 0; overflow: hidden; touch-action: none; display: flex; align-items: center; justify-content: center; cursor: grab; }
.viewstage img { max-width: 100%; max-height: 100%; object-fit: contain; user-select: none; -webkit-user-select: none; -webkit-user-drag: none; pointer-events: none; transition: transform .08s linear; }
.viewx { position: absolute; top: max(14px, env(safe-area-inset-top)); right: 14px; width: 52px; height: 52px; border-radius: 50%; border: 2px solid #fff; background: rgba(0,0,0,.72); color: #fff; font-size: 24px; font-weight: 700; z-index: 2; }
.viewcount { position: absolute; top: max(26px, calc(env(safe-area-inset-top) + 12px)); left: 16px; color: #fff; font-weight: 700; font-size: 15px; z-index: 2; direction: ltr; pointer-events: none; background: rgba(0,0,0,.55); padding: 2px 10px; border-radius: 999px; }
.viewcount:empty { display: none; }
.viewnav { position: absolute; top: 50%; width: 46px; height: 62px; margin-top: -31px; border: 0; border-radius: 12px; background: rgba(0,0,0,.55); color: #fff; font-size: 30px; z-index: 2; }
.viewnav.prev { right: 8px; } .viewnav.next { left: 8px; }
.viewtools { position: absolute; left: 0; right: 0; bottom: max(16px, env(safe-area-inset-bottom)); display: flex; align-items: center; justify-content: center; gap: 12px; z-index: 2; }
.viewtools button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid #fff; background: rgba(0,0,0,.72); color: #fff; font-size: 26px; font-weight: 700; }
.viewtools span { color: #fff; background: rgba(0,0,0,.55); padding: 4px 10px; border-radius: 999px; }

/* ================= win celebration by level ================= */
.win > .who, .win > .amt, .win > .muted, .win > .okmsg, .win > .wlabel, .win > .wicon { position: relative; z-index: 2; }
.win .confetti, .win .burst, .win .wstar { z-index: 1; }
.wglow, .wrays, .wrings, .wflash { position: absolute !important; pointer-events: none; z-index: 0 !important; }
.wglow { left: 50%; top: 44%; width: 150vmin; height: 150vmin; margin: -75vmin 0 0 -75vmin; border-radius: 50%; background: radial-gradient(closest-side, var(--wc, rgba(255,209,92,.34)), transparent); animation: wpulse 1.8s ease-in-out infinite; }
.wrays { left: 50%; top: 44%; width: 220vmax; height: 220vmax; margin: -110vmax 0 0 -110vmax; background: repeating-conic-gradient(from 0deg, var(--wr, rgba(255,255,255,.10)) 0 9deg, transparent 9deg 22deg); animation: wspin 16s linear infinite; }
.wrings i { position: absolute; left: 50%; top: 44%; width: 40vmin; height: 40vmin; margin: -20vmin 0 0 -20vmin; border-radius: 50%; border: 3px solid var(--wk, #FFD15C); opacity: 0; animation: wring 2.4s ease-out infinite; }
.wrings { inset: 0; } .wrings i:nth-child(2) { animation-delay: .8s; } .wrings i:nth-child(3) { animation-delay: 1.6s; }
.wflash { inset: 0; background: #fff; animation: wflash .7s ease-out forwards; }
.wstar { position: absolute; width: 16px; height: 16px; clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%); animation: twinkle 1.8s ease-in-out infinite; }
.wicon { display: inline-flex; animation: wdrop .9s cubic-bezier(.2,1.5,.4,1) both; filter: drop-shadow(0 0 14px var(--wk, #FFD15C)); color: var(--wk, #FFD15C); }
.wicon .ti { width: 64px; height: 64px; }
.wlabel { font-weight: 700; font-size: 14px; letter-spacing: 1px; padding: 2px 16px; border-radius: 999px; background: var(--wk, #FFD15C); color: #0B0E10; direction: ltr; }
@keyframes wpulse { 0%, 100% { transform: scale(.85); opacity: .7; } 50% { transform: scale(1.08); opacity: 1; } }
@keyframes wspin { to { transform: rotate(360deg); } }
@keyframes wring { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(4.2); opacity: 0; } }
@keyframes wflash { 0% { opacity: .9; } 100% { opacity: 0; } }
@keyframes wdrop { 0% { transform: translateY(-120px) scale(.4); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes wpop { 0% { transform: scale(.3); opacity: 0; } 60% { transform: scale(1.18); opacity: 1; } 100% { transform: scale(1); } }
.win.tier-silv { --wk: #E3E8EC; } .win.tier-silv .who { color: #E3E8EC; }
.win.tier-gold { --wk: #FFD15C; --wc: rgba(255,209,92,.32); }
.win.tier-plat { --wk: #DDF3FF; --wc: rgba(160,220,255,.30); --wr: rgba(200,235,255,.10); }
.win.tier-vip { --wk: #FFD15C; --wc: rgba(255,190,60,.42); --wr: rgba(255,214,110,.16); background: radial-gradient(circle at 50% 44%, #2A1E05 0%, #080A0B 70%); }
.win.tier-svip { --wk: #FFFFFF; --wc: rgba(185,167,255,.50); --wr: rgba(255,255,255,.16); background: linear-gradient(130deg, #0A1030, #2A1247 35%, #40143F 60%, #0A2A45); background-size: 300% 300%; animation: wbg 6s ease-in-out infinite; }
.win.tier-svip.shake { animation: shake .7s ease-in-out, wbg 6s ease-in-out infinite; }
@keyframes wbg { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.win.tier-gold .who, .win.tier-plat .who, .win.tier-vip .who, .win.tier-svip .who { background-size: 250% 100%; -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; animation: wpop .7s ease-out both, sheen 2.6s linear infinite; }
.win.tier-gold .who { font-size: 38px; background-image: linear-gradient(100deg, #C9A94A, #FFF3C4 50%, #FFD15C 60%, #C9A94A); }
.win.tier-plat .who { font-size: 40px; background-image: linear-gradient(100deg, #9FD8FF, #FFFFFF 50%, #C9D3DA 60%, #9FD8FF); }
.win.tier-vip .who { font-size: 44px; background-image: linear-gradient(100deg, #FFB300, #FFFFFF 48%, #FFD15C 58%, #FFB300); }
.win.tier-svip .who { font-size: 50px; background-image: linear-gradient(100deg, #7DE3FF, #FFFFFF 30%, #B9A7FF 50%, #FFB8F0 70%, #7DE3FF); }
.win.tier-svip .wlabel { background: linear-gradient(110deg, #7DE3FF, #B9A7FF 50%, #FFB8F0); font-size: 18px; padding: 3px 22px; box-shadow: 0 0 22px rgba(185,167,255,.9); }
.win.tier-vip .amt, .win.tier-svip .amt { font-size: 28px; color: #fff; }
.win.tier-svip .wicon .ti { width: 84px; height: 84px; }
.win.tier-vip .burst i, .win.tier-svip .burst i { height: 38px; width: 5px; }
.win.tier-vip > .muted, .win.tier-svip > .muted, .win.tier-plat > .muted { color: #fff; text-shadow: 0 1px 6px rgba(0,0,0,.7); }

/* the platform owner's name: a raised black plate inside an electric-blue neon tube. The tube flickers like a
   live current, a light runs round the frame, a sheen crosses the face and the plate rocks slightly in depth. */
@property --adm-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.nick.adm .ti { width: 14px; height: 14px; filter: drop-shadow(0 0 4px #19B8FF); }
.nick.adm::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(112deg, transparent 42%, rgba(190,235,255,.38) 50%, transparent 58%) 0 0 / 260% 100%; animation: admsheen 2.4s linear infinite; }
@keyframes admspin { to { --adm-a: 360deg; } }
@keyframes admtilt { from { transform: perspective(260px) rotateY(-8deg) rotateX(5deg); } to { transform: perspective(260px) rotateY(8deg) rotateX(-3deg); } }
@keyframes admneon {
  0%, 100% { box-shadow: var(--adm-d), 0 0 5px 0 #19B8FF, 0 0 13px 0 #19B8FF, inset 0 0 7px 0 rgba(25,184,255,.6); }
  6% { box-shadow: var(--adm-d), 0 0 10px 2px #FFFFFF, 0 0 28px 6px #19B8FF, inset 0 0 11px 0 #19B8FF; }
  10% { box-shadow: var(--adm-d), 0 0 3px 0 #19B8FF, 0 0 6px 0 #19B8FF, inset 0 0 4px 0 rgba(25,184,255,.4); }
  14% { box-shadow: var(--adm-d), 0 0 10px 2px #FFFFFF, 0 0 26px 5px #19B8FF, inset 0 0 11px 0 #19B8FF; }
  22% { box-shadow: var(--adm-d), 0 0 6px 0 #19B8FF, 0 0 15px 0 #19B8FF, inset 0 0 7px 0 rgba(25,184,255,.6); }
  50% { box-shadow: var(--adm-d), 0 0 7px 0 #19B8FF, 0 0 17px 1px #19B8FF, inset 0 0 7px 0 rgba(25,184,255,.6); }
  54% { box-shadow: var(--adm-d), 0 0 10px 2px #FFFFFF, 0 0 28px 6px #19B8FF, inset 0 0 11px 0 #19B8FF; }
  60% { box-shadow: var(--adm-d), 0 0 5px 0 #19B8FF, 0 0 13px 0 #19B8FF, inset 0 0 7px 0 rgba(25,184,255,.6); }
}
/* the auction's own team: the same raised plate in their own colours, with a steady soft glow and a smaller tilt,
   and without the flicker and the running light, which stay the platform owner's alone */
.nick.own::before, .nick.ctl::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; background: linear-gradient(112deg, transparent 43%, rgba(255,255,255,.26) 50%, transparent 57%) 0 0 / 260% 100%; animation: admsheen 3.2s linear infinite; }
@keyframes stafftilt { from { transform: perspective(260px) rotateY(-4deg) rotateX(2.5deg); } to { transform: perspective(260px) rotateY(4deg) rotateX(-1.5deg); } }
@keyframes admsheen { to { background-position: -260% 0; } }
.msg.admmsg { background: rgba(0,10,20,.86); border-color: #19B8FF; box-shadow: 0 0 12px -3px #19B8FF; padding-top: 6px; padding-bottom: 9px; font-weight: 600; }
@media (prefers-reduced-motion: reduce) { .nick.adm, .nick.adm::before, .nick.own, .nick.ctl, .nick.own::before, .nick.ctl::before { animation: none; } .nick.adm { box-shadow: var(--adm-d), 0 0 6px #19B8FF, 0 0 14px #19B8FF; } }

/* ---------- bidder live screen: the broadcast fills the whole screen, everything else floats on it ---------- */
#live .stage { position: absolute; inset: 0; }
#live .stage::before, #live .stage::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
#live .stage::before { top: 0; height: 250px; background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.42) 60%, transparent); }
#live .stage::after { bottom: 0; height: 54%; background: linear-gradient(0deg, rgba(0,0,0,.9) 0%, rgba(0,0,0,.6) 38%, rgba(0,0,0,.22) 72%, transparent); }
#live .panel, #live[data-theme] .panel { position: absolute; left: 0; right: 0; bottom: 0; background: transparent; border-top: 0; box-shadow: none; padding: 8px 10px max(12px, env(safe-area-inset-bottom)); }
.lvhead { gap: 7px; }
.lvhouse { flex: 1; min-width: 0; padding: 0; border: 0; background: none; color: #fff; text-align: start; }
.lvhouse > span { display: flex; align-items: center; gap: 7px; min-width: 0; font-size: 15px; text-shadow: 0 1px 3px #000; }
.lvhouse b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lvview { background: rgba(10,12,14,.5); border: 1px solid rgba(255,255,255,.18); border-radius: 999px; color: #fff; flex-shrink: 0; }
.lvx { width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; background: rgba(10,12,14,.5); border: 1px solid rgba(255,255,255,.2); color: #fff; font-size: 16px; line-height: 1; padding: 0; }
/* 21 Nov (Mohammed): the price box and the details under it are 90% see-through, with no blur, so the watch on camera shows
   through them; the writing keeps a dark edge so it reads over any picture */
#live .pricebar { background: rgba(10,12,14,.1); border-color: rgba(255,255,255,.16); -webkit-backdrop-filter: none; backdrop-filter: none; border-radius: 16px; padding: 6px 12px; }
#live .pricebar .price { text-shadow: 0 1px 4px #000, 0 0 2px #000; }
#live .pricebar span, #live .details { text-shadow: 0 1px 3px #000, 0 0 2px #000; }
#live .details .muted { color: #E6EDF2; }
#live .leader { height: auto; min-height: 28px; padding: 0; gap: 6px; background: none; max-width: 56%; overflow: visible; }
#live .leader i { font-style: normal; font-size: 11.5px; font-weight: 600; color: #D5DBDF; }
#live .leader .nick { font-size: 12px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
#live .leader .nick .tiertag { font-size: 9px; padding: 0 4px; }
#live .leader .nick .ti { width: 12px; height: 12px; }
#live .leader.mine { padding: 0 11px; background: rgba(16,56,34,.85); }
#live .leader.plain { font-size: 12px; color: #D5DBDF; }
#live .btn.det { height: 30px; padding: 0 10px; border-radius: 10px; background: rgba(10,12,14,.5); border-color: rgba(255,255,255,.22); color: #fff; font-size: 12.5px; }

#live .waiting { align-self: flex-start; height: 28px; padding: 0 10px; background: rgba(10,12,14,.48); border: 1px solid rgba(255,255,255,.16); font-size: 12px; color: #E6EDF2; }
#live .pinbar { align-self: flex-start; max-width: 100%; padding: 5px 10px; font-size: 13px; background: rgba(28,22,10,.62); }
#live .details { background: rgba(10,12,14,.1); border-color: rgba(255,255,255,.16); }
/* comments: the right half, Instagram style, the rest by scrolling. 20 Nov (Mohammed): a little smaller so the watch on
   camera shows, and a small arrow over them that leaves the last two only (the phone remembers the choice) */
#live .cmbox { position: absolute; right: 12px; width: calc(50% - 16px); bottom: calc(var(--dock, 150px) + 2px); z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
#live .stream { position: static; width: 100%; max-height: 176px; gap: 6px; padding-top: 12px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 14px); mask-image: linear-gradient(to bottom, transparent 0, #000 14px); }
#live .cm { gap: 6px; }
#live .cm .av { width: 22px; height: 22px; font-size: 10px; margin-top: 1px; }
#live .cm .n { min-height: 15px; }
#live .cm .t { font-size: 11.5px; }
#live .cm .nick { font-size: 10.5px; }
.cmfold { position: relative; width: 26px; height: 26px; flex-shrink: 0; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); background: rgba(10,12,14,.6); color: #fff; }
.cmfold::before { content: ''; position: absolute; inset: -9px; }
.cmfold svg { width: 14px; height: 14px; }
.cmbox.min .cmfold svg { transform: rotate(180deg); }
#live .cmbox.min .stream { max-height: none; overflow: hidden; padding-top: 2px; -webkit-mask-image: none; mask-image: none; }
#live .cmbox.min .cm .t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; }
.cm { display: flex; align-items: flex-start; gap: 8px; flex-shrink: 0; }
.cm .av { width: 28px; height: 28px; font-size: 12px; margin-top: 2px; }
.cm .b { display: flex; flex-direction: column; gap: 1px; align-items: flex-start; min-width: 0; }
.cm .n { display: flex; align-items: center; gap: 5px; min-height: 17px; max-width: 100%; }
.cm .t { color: #fff; font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; text-shadow: 0 1px 2px rgba(0,0,0,.9), 0 0 2px rgba(0,0,0,.7); }
.cm .nick { font-size: 11.5px; }
.cm .nick.ver, .cm .nick.unv, .cm .nick.me { color: #fff; font-weight: 700; text-shadow: 0 1px 2px rgba(0,0,0,.9); }
.cm .nick.adm { font-size: 11.5px; padding: 1px 8px; border-width: 1.5px; }
.cm .nick.own, .cm .nick.ctl { padding: 0 8px; }
.cm .nick.svip, .cm .nick.vip { padding: 0 7px; }
.cm .nick .ti { width: 11px; height: 11px; }
.cm .nick .tiertag { font-size: 8.5px; padding: 0 4px; }
.cm .youtag { font-size: 10px; }
.cm.sys .t { color: var(--orange2); font-weight: 600; }
.newmsgs { position: absolute; right: 12px; bottom: calc(var(--dock, 150px) + 6px); z-index: 3; height: 28px; padding: 0 12px; border-radius: 999px; border: 0; background: var(--brass2); color: var(--onbrass); font-size: 12px; font-weight: 700; box-shadow: 0 4px 12px rgba(0,0,0,.5); }
/* bid notice: the left half, three seconds */
.bidtoast { position: absolute; left: 12px; bottom: calc(var(--dock, 150px) + 2px); width: calc(50% - 16px); z-index: 2; padding: 8px 10px 11px; border-radius: 16px; display: flex; flex-direction: column; gap: 5px; align-items: flex-start; overflow: hidden;
  background: rgba(46,36,14,.88); border: 1.5px solid #E2B95A; box-shadow: 0 0 18px rgba(255,200,90,.55), 0 6px 14px rgba(0,0,0,.5); animation: btin .22s ease-out; }
.bidtoast .r1, .bidtoast .r2 { display: flex; align-items: center; gap: 6px; max-width: 100%; }
.bidtoast .av { width: 24px; height: 24px; font-size: 11px; }
.bidtoast .nick { font-size: 11.5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.bidtoast .nick .tiertag { font-size: 8.5px; padding: 0 4px; }
.bidtoast .nick .ti { width: 11px; height: 11px; }
.bidtoast .tt { color: #FFE08A; font-weight: 800; font-size: 15px; }
.bidtoast .dl { font-size: 11px; font-weight: 700; color: #06140C; background: #57E39B; border-radius: 999px; padding: 0 6px; direction: ltr; }
.bidtoast .tl { position: absolute; right: 0; bottom: 0; height: 3px; width: 100%; background: #FFD98A; animation: btline 3s linear forwards; }
.bidtoast.mine { background: rgba(12,44,27,.9); border-color: #2ECC71; box-shadow: 0 0 18px rgba(46,204,113,.5), 0 6px 14px rgba(0,0,0,.5); }
.bidtoast.mine .tt { color: #7CF0B0; } .bidtoast.mine .tl { background: #57E39B; }
@keyframes btin { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes btline { to { width: 0; } }
/* the bid buttons float on the broadcast */
#live .quick button { height: 44px; border-radius: 13px; background: rgba(10,40,24,.55); border-color: rgba(46,204,113,.75); color: #7CF0B0; }
#live .quick button:disabled { background: rgba(10,12,14,.5); border-color: rgba(255,255,255,.2); color: #C3CBD0; }
#live .quick button.qcancel { background: rgba(48,26,10,.6); border-color: rgba(255,138,61,.8); color: var(--orange2); }
#live .quick button.qcancel:disabled { background: rgba(10,12,14,.5); border-color: rgba(255,255,255,.2); color: #A9B2B7; }
#live .hint { background: rgba(10,12,14,.66); }
.actrow { gap: 7px; }
.chatpill { flex: 1; min-width: 0; height: 50px; display: flex; align-items: center; gap: 4px; padding: 0 6px 0 14px; border-radius: 999px; background: rgba(10,12,14,.5); border: 1px solid rgba(255,255,255,.55); }
.chatpill input { flex: 1; min-width: 0; width: 100%; height: 100%; border: 0; outline: 0; background: none; color: #fff; font: inherit; font-size: 16px; }
.chatpill input::placeholder { color: #D5DBDF; opacity: 1; font-size: 14px; }
.chatpill input:disabled { opacity: .6; }
.chatpill .send { display: none; width: 38px; height: 38px; flex-shrink: 0; border: 0; border-radius: 50%; background: var(--brass2); color: var(--onbrass); place-items: center; padding: 0; transform: scaleX(-1); }
/* 20 Nov: the word and the amount never break in the middle. When a phone's bigger text or a long price leaves no room
   for both on one line, the amount goes under the word, whole (it used to fall apart into four pieces) */
.actrow .bidbtn { flex: 0 0 46%; height: auto; min-height: 50px; border-radius: 999px; box-shadow: 0 4px 16px rgba(46,204,113,.4); flex-wrap: wrap; align-content: center; gap: 0 10px; }
.actrow .bidbtn b { font-size: 19px; } .actrow .bidbtn span { font-size: 15px; }
.actrow .bidbtn b, .actrow .bidbtn span { white-space: nowrap; line-height: 1.15; }
.actrow .bidbtn:disabled { box-shadow: none; }
.othbtn { width: 50px; height: 50px; flex-shrink: 0; padding: 0; border-radius: 50%; background: rgba(10,12,14,.5); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: 10.5px; font-weight: 700; line-height: 1.2; }
.actrow.typing .bidbtn, .actrow.typing .othbtn { display: none; }
.actrow.typing .chatpill .send { display: grid; }
/* control desk: every bid on the watch on air */
.bidrow { display: grid; grid-template-columns: 22px 26px minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 7px 10px; border-radius: 12px; background: var(--raised); border: 1px solid var(--line); flex-shrink: 0; }
.bidrow .no { font-size: 12px; color: var(--muted); text-align: center; }
.bidrow .av { width: 26px; height: 26px; font-size: 12px; }
.bidrow .who { display: flex; flex-direction: column; gap: 2px; min-width: 0; align-items: flex-start; }
.bidrow .tm { font-size: 11px; color: var(--muted); direction: ltr; }
.bidrow .am { display: flex; flex-direction: column; align-items: flex-end; gap: 1px; }
.bidrow .am b { font-size: 16px; color: var(--brass2); }
.bidrow .am i { font-style: normal; font-size: 11px; color: var(--green2); direction: ltr; }
.bidrow .am i.x { color: var(--orange2); direction: rtl; }
.bidrow.top { border-color: #E2B95A; background: rgba(60,48,22,.55); }
.bidrow.cut { opacity: .62; } .bidrow.cut .am b { text-decoration: line-through; color: var(--muted); }
.toptag { font-size: 10.5px; font-weight: 700; padding: 0 6px; border-radius: 6px; background: #E2B95A; color: #1A1000; }
.chatpill input:disabled { pointer-events: none; }

/* ---------- the auction's own page: who they are, where to find them, what is coming, what happened last time ---------- */
.pagehead .about { margin: 0; font-size: 15px; line-height: 1.8; color: var(--text); white-space: pre-line; overflow-wrap: anywhere; }
.socials { display: flex; flex-wrap: wrap; gap: 8px; }
.btn.soc { display: inline-flex; align-items: center; gap: 7px; text-decoration: none; flex: 1 1 0; justify-content: center; min-width: 96px; white-space: nowrap; }
.btn.soc.wa { border-color: var(--green); color: var(--green2); }
.addr { display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.7; }
.addr svg { flex-shrink: 0; margin-top: 4px; color: var(--brass2); }
.addr .btn.soc { flex: 0 0 auto; align-self: flex-start; }
.addr .btn.soc svg { margin: 0; color: inherit; }
button.card.reportbox { width: 100%; font: inherit; color: inherit; text-align: start; align-items: flex-start; cursor: pointer; border-color: var(--brass); }
.kpis.k3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kpis.k3 .kpi { padding: 9px 10px; } .kpis.k3 .kpi span { font-size: 11.5px; } .kpis.k3 .kpi b { font-size: 20px; }
#reportBox { max-height: 88dvh; overflow-y: auto; }

/* ---------- 3D looks: raised slabs with real depth over a material backdrop ---------- */

/* ---------- the auctioneer's broadcast screen: the same floating layout as the bidder's ---------- */
#oCast .stage { position: absolute; inset: 0; }
#oCast .stage::before, #oCast .stage::after { content: ''; position: absolute; left: 0; right: 0; pointer-events: none; z-index: 1; }
#oCast .stage::before { top: 0; height: 230px; background: linear-gradient(180deg, rgba(0,0,0,.78), rgba(0,0,0,.42) 60%, transparent); }
#oCast .stage::after { bottom: 0; height: 60%; background: linear-gradient(0deg, rgba(0,0,0,.92) 0%, rgba(0,0,0,.66) 40%, rgba(0,0,0,.25) 74%, transparent); }
#oCast .panel { position: absolute; left: 0; right: 0; bottom: 0; background: transparent; border-top: 0; box-shadow: none; padding: 8px 10px max(12px, env(safe-area-inset-bottom)); }
#oCast .pricebar { background: rgba(10,12,14,.45); border-color: rgba(255,255,255,.16); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border-radius: 16px; padding: 6px 12px; }
#oCast .pinbar { align-self: flex-start; max-width: 100%; padding: 5px 10px; font-size: 13px; background: rgba(28,22,10,.62); }
#oCast .stream { left: auto; right: 12px; width: calc(50% - 16px); bottom: calc(var(--dock, 200px) + 2px); max-height: 250px; gap: 9px; padding-top: 16px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 18px); mask-image: linear-gradient(to bottom, transparent 0, #000 18px); }
/* he reads it from a stand at arm's length, so the words are a step bigger than on the bidder's phone */
#oCast .cm .t { font-size: 14px; } #oCast .cm .nick { font-size: 12.5px; }

.castctl { display: flex; flex-direction: column; gap: 8px; }
.castctl:empty { display: none; }
#oCast .castctl .muted { color: #E6EDF2; text-shadow: 0 1px 2px #000; }
#oCast .durs button { background: rgba(10,12,14,.55); border-color: rgba(255,255,255,.25); color: #fff; }
#oCast .durs button.on { background: var(--brass); color: var(--onbrass); border-color: var(--brass); }
#castChat .chatpill { height: 44px; padding: 0 14px; }
.castbtn { height: 44px; flex-shrink: 0; border-radius: 999px; padding: 0 14px; }
#oCast .tools { top: 190px; }
#oCast .stage .novideo { justify-content: flex-start; padding-top: 230px; }
/* what the broadcast is really sending, for the auctioneer */
.camq { display: flex; flex-direction: column; gap: 2px; align-self: flex-start; padding: 5px 10px; border-radius: 10px; background: rgba(10,40,24,.6); border: 1px solid rgba(46,204,113,.7); color: #7CF0B0; font-size: 12px; }
.camq.weak { background: rgba(48,26,10,.7); border-color: var(--orange); color: var(--orange2); }
.camq span { font-weight: 600; line-height: 1.5; }

/* broadcast screen, lighter: a smaller see-through info box on top, and small see-through controls at the bottom */
#oCast .pricebar { padding: 4px 10px; border-radius: 14px; background: rgba(10,12,14,.15); border-color: rgba(255,255,255,.14); -webkit-backdrop-filter: none; backdrop-filter: none; }
#oCast .pricebar .lotname { font-size: 12.5px; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
#oCast .pricebar .price { font-size: 24px; text-shadow: 0 1px 4px #000, 0 0 2px #000; }
#oCast .pricebar .muted { color: #E6EDF2; text-shadow: 0 1px 3px #000; }
#oCast .pricebar span { text-shadow: 0 1px 3px #000; }
.sellrow { gap: 7px; }
.durbtn { width: 62px; height: 46px; flex-shrink: 0; padding: 0; border-radius: 12px; border: 1px solid rgba(255,255,255,.3); background: rgba(10,12,14,.6); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; }
.durbtn b { font-size: 17px; } .durbtn span { font-size: 10px; font-weight: 600; }
#oCast .sellbtn { height: 46px; font-family: var(--kufi); font-size: 18px; background: rgba(216,178,106,.6); border-color: rgba(216,178,106,.85); color: #17110A; }
#oCast .wdbtn { height: 46px; padding: 0 14px; background: rgba(10,12,14,.6); border-color: rgba(255,255,255,.3); color: #fff; }
#oCast .durs.durpop button { height: 40px; background: rgba(10,12,14,.6); }
#oCast .durs.durpop button.on { background: rgba(216,178,106,.85); color: #17110A; border-color: var(--brass); }
#oCast .castbtn { height: 42px; background: rgba(10,12,14,.6); border-color: rgba(255,255,255,.3); color: #fff; }
#oCast .castbtn.gold { background: rgba(216,178,106,.6); border-color: rgba(216,178,106,.85); color: #17110A; }
#castChat .chatpill { height: 42px; background: rgba(10,12,14,.6); }
#oCast .tools { gap: 6px; } #oCast .tools button { width: 42px; height: 42px; }

/* broadcast screen: the sell order stays bright, everything around it is 80% see-through */
#oCast .sellbtn { background: var(--brass); border-color: var(--brass); color: var(--onbrass); }
#oCast .durbtn, #oCast .wdbtn, #oCast .castbtn, #oCast .castbtn.gold, #castChat .chatpill, #oCast .durs.durpop button { background: rgba(10,12,14,.2); text-shadow: 0 1px 3px #000; }
#oCast .castbtn.gold { border-color: rgba(216,178,106,.9); color: var(--brass2); }
#oCast .durs.durpop button.on { background: rgba(216,178,106,.9); text-shadow: none; }
.camq.weak.bad { background: rgba(60,12,10,.78); border-color: #FF5A4F; color: #FF9A92; }
.stopsell { width: 100%; height: 46px; border-color: var(--orange); color: var(--orange2); background: rgba(48,26,10,.78); }
/* the auction team taps a comment, then picks the pin */
.cmt { background: none; border: 0; padding: 0; font: inherit; text-align: start; cursor: pointer; }
.cm.sel { padding: 5px 7px; border-radius: 12px; background: rgba(10,12,14,.66); border: 1px solid rgba(216,178,106,.7); }
.cmacts { display: flex; gap: 6px; margin-top: 5px; }
.cmacts .btn.xs { display: inline-flex; align-items: center; gap: 4px; }
.cmacts .ti { width: 12px; height: 12px; }
/* reports */
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-weight: 700; color: var(--text); text-align: start; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; overflow-wrap: anywhere; }
button.lotrow.repday { width: 100%; font: inherit; color: inherit; text-align: start; cursor: pointer; }
.repday .am { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex-shrink: 0; }
#repBidsBox, #repEditForm { max-height: 88dvh; overflow-y: auto; }
/* control desk: hide a queued watch, and the hidden ones kept apart */
.hidemenu { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding-top: 4px; }
.hidemenu .muted { flex-basis: 100%; }
.hidbox { display: flex; flex-direction: column; gap: 8px; margin-top: 6px; padding-top: 10px; border-top: 1px dashed var(--line2); }
.lotrow.off { opacity: .8; border-style: dashed; }
#lotEditForm { max-height: 88dvh; overflow-y: auto; }
/* live screen for a bidder who is not approved yet: the request, then the auction's WhatsApp, instead of the bid buttons */
.actrow.nomem .bidbtn, .actrow.nomem .othbtn { display: none; }
#live #joinBtn { height: 50px; border-radius: 999px; }
#liveWa { height: 50px; border-radius: 999px; gap: 8px; text-decoration: none; background: rgba(10,40,24,.78); border-color: var(--green); color: var(--green2); }

/* ---------- the report on paper: nothing of the screen prints, only the report, black on white ---------- */
#printArea { display: none; }
#repPrintForm { max-height: 88dvh; overflow-y: auto; }
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html, body { background: #fff !important; color: #000 !important; height: auto !important; overflow: visible !important; }
  body > *:not(#printArea) { display: none !important; }
  #printArea { display: block !important; direction: rtl; font-family: var(--font), sans-serif; font-size: 11pt; line-height: 1.6; color: #000; }
  #printArea .phead { display: flex; align-items: center; gap: 14px; padding-bottom: 10px; margin-bottom: 12px; border-bottom: 2px solid #000; }
  #printArea .phead img { width: 64px; height: 64px; border-radius: 10px; object-fit: cover; }
  /* 20 Nov: the loading mark of a photo on its way (img.pl) faded the logo to a shadow when the print window opened
     before the logo had told the page it loaded. A printed logo never wears it */
  #printArea img { -webkit-mask: none !important; mask: none !important; opacity: 1 !important; background: none !important; object-position: 50% 50% !important; }
  #printArea h1 { margin: 0; font-size: 20pt; font-family: var(--kufi), var(--font), sans-serif; }
  #printArea h2 { margin: 0 0 2px; font-size: 14pt; }
  #printArea h3 { margin: 16px 0 6px; font-size: 12pt; }
  #printArea p { margin: 2px 0; }
  #printArea .pcontact { font-size: 10pt; }
  #printArea .pmeta { font-size: 9.5pt; color: #444; margin-bottom: 6px; }
  /* the frame is drawn on the table itself and kept a hair inside the page, so the edge on the right never gets cut */
  #printArea { padding: 0 1.5mm; box-sizing: border-box; }
  #printArea table { width: 100%; border-collapse: collapse; font-size: 10pt; border: 1.6px solid #000; box-sizing: border-box; }
  #printArea th, #printArea td { border: 1px solid #222; padding: 4px 6px; text-align: right; vertical-align: top; }
  #printArea th { background: #e2e2e2 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; font-weight: 700; border-bottom: 1.6px solid #000; }
  /* coloured report: the auction's accent on its own dark band */
  #printArea.color .phead { background: var(--pd) !important; color: #fff; border-bottom: 5px solid var(--pc); padding: 12px 14px; border-radius: 8px; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printArea.color .phead h1 { color: var(--pc); }
  /* 20 Nov: a dark logo vanished into the dark band; it sits on a white plate edged with the accent */
  #printArea.color .phead img { background: #fff !important; padding: 4px; border-radius: 12px; box-shadow: 0 0 0 2px var(--pc); -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printArea.color .phead p { color: #fff; }
  #printArea.color h2 { color: var(--pd); }
  #printArea.color h3 { padding-inline-start: 8px; border-inline-start: 5px solid var(--pc); }
  #printArea.color table { border-color: var(--pd); }
  #printArea.color th { background: var(--pc) !important; color: #111; border-color: var(--pd); border-bottom-color: var(--pd); }
  #printArea.color td { border-color: #555; }
  #printArea.color tbody tr:nth-child(even) td { background: color-mix(in srgb, var(--pc) 16%, #fff) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #printArea tr { break-inside: avoid; }
  #printArea thead { display: table-header-group; }
}

/* ---------- under construction, platform settings, credit ---------- */
.maint { gap: 14px; padding: 28px 18px; border-color: var(--brass); }
.maintlogo { width: 96px; height: 96px; border-radius: 22px; box-shadow: 0 10px 30px rgba(0,0,0,.5); }
.mainttitle { font-family: var(--kufi); font-size: 24px; line-height: 1.5; color: var(--brass2); }
.maintnote { font-size: 17px; line-height: 1.8; overflow-wrap: anywhere; }
.maintdoor { align-self: center; margin-top: 26px; opacity: .75; }
.setrow { gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line, rgba(255,255,255,.08)); }
.setrow:last-child { border-bottom: 0; }
.setrow .grow { min-width: 0; line-height: 1.7; }
.setrow > .btn { flex-shrink: 0; }
.result.warn { border-color: var(--orange); color: var(--orange2); }
.chip.low { background: #2A1B10; color: var(--orange2); }
.chip.low.bad { background: #3A1212; color: #FF8A80; }
.durs.picks { flex-wrap: wrap; }
.durs.picks button { flex: 1 1 30%; }
.stepper { gap: 10px; align-items: center; }
.pricebox { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px; border-radius: 12px; background: var(--deep); border: 1px solid var(--brass); }
.pricebox b { font-size: 34px; color: var(--brass2); line-height: 1.3; }
.pricebox b small { font-size: 15px; }
/* the broadcast balance, «مختصر» (23 Nov) */
#creditBox { gap: 9px; }
.crhd { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.crhd > b:first-child { font-family: var(--kufi); font-size: 17px; }
.crbal { font-size: 18px; }
.crsub { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.6; }
p.crsub { margin-top: -4px; }
.crpicks { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.crpicks button { height: 34px; border-radius: 9px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-size: 13px; font-weight: 700; padding: 0 2px; white-space: nowrap; }
.crpicks button.on { background: var(--brass); border-color: var(--brass); color: var(--onbrass); }
.crrow { display: flex; align-items: center; gap: 8px; }
#creditBox .stepper { gap: 4px; flex: none; flex-wrap: nowrap; }
#creditBox .stepper .btn.icon { width: 34px; height: 34px; }
#creditBox .stepper b { min-width: 92px; text-align: center; font-size: 14px; }
#creditBox .pricebox { flex: 1 1 auto; min-width: 0; align-items: flex-end; text-align: end; padding: 0; border: 0; background: none; gap: 0; }
#creditBox .pricebox b { font-size: 21px; line-height: 1.25; }
#creditBox .pricebox .small { font-size: 11.5px; }
#creditBox [data-crbuy] { height: 44px; }
#creditBox > .btn.ghost { height: 38px; }
details.crlog { border: 1px solid var(--line); border-radius: 12px; background: var(--deep); }
details.crlog > summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 10px; min-height: 40px; font-size: 13.5px; font-weight: 700; }
details.crlog .foldarrow { flex: none; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 11px; transition: transform .2s ease; }
details.crlog[open] .foldarrow { transform: rotate(180deg); }
details.crlog > .list { gap: 5px; padding: 0 10px 10px; max-height: 240px; overflow: auto; }
#asArchive .card { gap: 10px; }
#waitState { display: flex; flex-wrap: wrap; gap: 6px; }
/* a new release is up: refresh bar */
.updbar { position: fixed; z-index: 60; top: max(8px, env(safe-area-inset-top)); left: 10px; right: 10px; margin: 0 auto; width: fit-content; display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 14px; border-radius: 999px; background: #1B2225; border: 1px solid var(--brass); box-shadow: 0 8px 24px rgba(0,0,0,.55); font-size: 14px; font-weight: 700; }
.updbar span { overflow-wrap: anywhere; line-height: 1.5; }
.updbar .btn { flex-shrink: 0; }
/* broadcast credit running low: shows once, leaves by itself */
.cralert { position: fixed; z-index: 58; left: 12px; right: 12px; margin: 0 auto; width: fit-content; max-width: 420px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; pointer-events: none; animation: rise .25s ease-out; }
.cralert.light { top: max(64px, calc(env(safe-area-inset-top) + 56px)); padding: 7px 16px; border-radius: 999px; background: rgba(42,27,16,.92); border: 1px solid var(--orange); color: var(--orange2); font-size: 14px; }
.cralert.strong { top: 30%; padding: 16px 22px; border-radius: 18px; background: rgba(58,18,18,.95); border: 2px solid #FF6B5E; color: #FFD9D4; box-shadow: 0 14px 40px rgba(0,0,0,.6); }
.cralert.strong b { font-size: 20px; line-height: 1.6; color: #fff; }
.cralert.strong span { font-size: 14px; }
/* cancelled accounts, paid marks, sections of the accounts page */
.gonetag { display: inline-block; margin-inline-start: 6px; padding: 1px 7px; border-radius: 999px; background: #2A1B10; color: var(--orange2); font-size: 11px; font-weight: 700; white-space: nowrap; vertical-align: middle; }
.btn.paidon { border-color: var(--green); background: var(--greenbg); color: var(--green2); }
.btn.paidoff { border-color: var(--orange); color: var(--orange2); background: transparent; }
/* the four sections of the accounts in one small row (23 Nov) */
.durs.uview { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; }
.durs.uview button { height: 38px; font-size: 13px; padding: 0 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#aFilter button { height: 36px; font-size: 13.5px; }
/* the accounts as squares side by side: 4, 5 or 6 in a row on a computer, 3 on an iPad, 2 on a phone */
.utools { gap: 8px; align-items: center; }
.utools .usort { width: auto; flex: 0 1 auto; min-width: 0; height: 40px; padding: 0 10px; font-size: 14px; }
.ucolsw { gap: 6px; align-items: center; }
.useg { display: inline-flex; gap: 3px; padding: 3px; border-radius: 10px; background: var(--deep); border: 1px solid var(--line); }
.useg button { height: 30px; min-width: 34px; padding: 0 10px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; }
.useg button.on { background: var(--raised); color: var(--text); box-shadow: inset 0 0 0 1px var(--line2); }
.ugrid { display: grid; grid-template-columns: repeat(var(--ucols, 5), minmax(0, 1fr)); gap: 10px; }
.ugrid > p { grid-column: 1 / -1; }
@media (max-width: 899.98px) { .ugrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .ucolsw { display: none; } }
@media (max-width: 559.98px) { .ugrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.acard { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 0; overflow: hidden; border-radius: 14px; background: var(--deep); border: 1px solid var(--line); min-width: 0; transition: border-color .15s ease, transform .15s ease; }
.acard:hover { border-color: var(--line2); transform: translateY(-1px); }
.acard .atop { height: 4px; background: var(--lc); }
.acard .abody { display: flex; align-items: center; gap: 8px; padding: 10px 10px 4px; min-width: 0; }
.acard .abody .av { width: 38px; height: 38px; font-size: 15px; }
.acard .atx { display: flex; flex-direction: column; align-items: flex-start; gap: 2px; min-width: 0; }
.acard .atx .nick { max-width: 100%; overflow: hidden; direction: ltr; flex-wrap: nowrap; }
.acard .atx .muted { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acard .afoot { display: flex; justify-content: space-between; gap: 6px; padding: 4px 10px 10px; font-size: 11.5px; color: var(--muted); min-width: 0; }
.acard .afoot span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.acard .afoot .alv { color: var(--lc); font-weight: 700; flex: none; }
#acDebts { gap: 6px; padding: 10px 12px; border-radius: 12px; background: var(--deep); border: 1px solid var(--orange); }

/* sales waiting days for their payment mark; the record of who pressed it; an auction owner's name is tappable */
.card.due { border-color: var(--orange); }
.duerow { padding: 8px 0; border-top: 1px solid var(--line); }
.paynote { margin-top: 4px; white-space: nowrap; }
.nick[data-house] { cursor: pointer; }
#houseSheet { z-index: 85; }
/* the platform owner's account report opens over the account editor */
#acctRep { z-index: 86; }
/* the bidder card's tabs (23 Nov) */
.wtabs { display: flex; gap: 3px; padding: 3px; border-radius: 11px; background: var(--deep); border: 1px solid var(--line); }
.wtabs button { flex: 1 1 0; min-width: 0; height: 36px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); font-weight: 700; font-size: 13px; white-space: nowrap; }
.wtabs button.on { background: var(--raised); color: var(--text); }
.wpane { display: none; flex-direction: column; gap: 10px; min-width: 0; }
.wpane.on { display: flex; }
.wtiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.wtiles .kpi { padding: 7px 10px; } .wtiles .kpi span { font-size: 11.5px; } .wtiles .kpi b { font-size: 17px; }
/* the account editor: the buttons as icons in one row, the fields folded (23 Nov) */
.acicons { display: grid; grid-template-columns: repeat(auto-fit, minmax(0, 1fr)); gap: 6px; }
.acicons:empty { display: none; }
.acicons button { min-height: 54px; border-radius: 12px; border: 1px solid var(--line2); background: var(--raised); color: var(--text); font-size: 11.5px; font-weight: 700; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; padding: 4px 2px; }
.acicons button svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.acicons button.danger { color: var(--orange2); border-color: color-mix(in srgb, var(--orange) 45%, var(--line2)); }
details.acfold { border: 1px solid var(--line); border-radius: 14px; padding: 4px 12px; background: var(--deep); }
details.acfold[open] { padding-bottom: 12px; }
/* the platform owner's auctions as squares (23 Nov): 2 in a row on a phone, 4 on a computer */
.hsq { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
@media (min-width: 760px) { .hsq { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.hsqb { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-align: start; min-width: 0; font: inherit; }
.hsqb.on { border-color: var(--brass); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brass) 25%, transparent); }
.hsqb.off { opacity: .75; }
.hsqb .hname { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.mgrid { --ucols: 4; }
/* the statistics (23 Nov) */
.wrap.dash { max-width: 1200px; }
.dh { margin: 6px 0 0; font-size: 18px; }
.dgrid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.dgrid .kpi { padding: 9px 12px; }
.dgrid .kpi b { font-size: 20px; }
.dch { font-style: normal; font-size: 11.5px; color: var(--muted); }
.dch.up { color: var(--green2); } .dch.down { color: var(--orange2); }
.dcharts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.dsplit { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); gap: 10px; }
.dchart { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.dchart h3 { margin: 0; font-size: 14px; }
.dchart .chart { max-width: none; }
.dchart .chartplot { height: 110px; }
.dchart .colnames small { font-size: 9.5px; }
.dtodo { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--orange); background: #2A1B10; color: var(--orange2); font: inherit; text-align: start; }
.dtodo span:not(.muted) { flex: 1; min-width: 0; font-size: 13.5px; }
.dtablebox { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.dtable { font-size: 13px; }
.dtable th, .dtable td { white-space: nowrap; padding: 8px 10px; vertical-align: top; }
.dtable .dsub { display: block; font-size: 11.5px; color: var(--muted); font-weight: 400; }
.dtable .dopen { border: 0; background: none; color: var(--brass2); font: inherit; font-weight: 700; padding: 0; text-align: start; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.dtable th:first-child, .dtable td:first-child { position: sticky; inset-inline-start: 0; background: var(--surface); z-index: 1; }
.tierbars { display: flex; flex-direction: column; gap: 6px; }
.tierbars .tb { display: grid; grid-template-columns: 74px minmax(0, 1fr) 40px; gap: 8px; align-items: center; font-size: 13px; }
.tierbars .tbar { height: 10px; border-radius: 6px; background: var(--deep); overflow: hidden; }
.tierbars .tbar i { display: block; height: 100%; border-radius: 6px; background: var(--brass); }
.tierbars b { text-align: end; }
/* 24 Nov (Mohammed: «كلها» on the statistics trial): the auction team's statistics, and the platform owner's platform and
   auction pages. One period bar, a big figure with its line behind it, then cards of figures, each with ▲ ▼ against the
   period before */
.sbar { display: flex; flex-direction: column; gap: 8px; }
.schips { display: flex; flex-wrap: wrap; gap: 5px; }
.schips button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: var(--surface); color: var(--text); font: inherit; font-size: 14px; cursor: pointer; }
.schips button.on { background: var(--brass); border-color: var(--brass); color: var(--onbrass); font-weight: 700; }
.srange { display: flex; flex-wrap: wrap; gap: 8px 14px; font-size: 14px; color: var(--soft); }
.srange label { display: flex; align-items: center; gap: 8px; }
.srange input { width: auto; min-height: 38px; color-scheme: dark; }
.shero { position: relative; overflow: hidden; border-radius: 18px; padding: 15px 15px 16px; border: 1px solid rgba(216,178,106,.35);
  background: radial-gradient(120% 140% at 100% 0%, rgba(216,178,106,.18), transparent 60%), linear-gradient(160deg, var(--raised), var(--ground)); display: flex; flex-direction: column; gap: 4px; }
.shero > *:not(.sspark) { position: relative; }
.sspark { position: absolute; left: 0; right: 0; top: 30px; width: 100%; height: 86px; opacity: .4; pointer-events: none; }
.shl { font-size: 14px; color: var(--soft); }
.shv { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; }
.sbig { font-family: var(--kufi); font-size: 36px; line-height: 1.2; color: var(--brass2); font-weight: 700; }
.sbig small { font-size: .45em; color: var(--brass); }
.ssub { margin: 0; font-size: 14px; color: var(--soft); }
.shrow { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 8px; margin-top: 10px; }
.shrow div { display: flex; flex-direction: column; gap: 1px; padding: 8px 10px; border-radius: 12px; background: rgba(14,17,19,.62); min-width: 0; }
.shrow span { font-size: 12.5px; color: var(--muted); }
.shrow b { font-size: 17px; }
.shrow small, .kpi b small { font-size: .62em; font-weight: 500; color: var(--muted); }
.scard { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.scard .kpi { background: var(--raised); border-color: transparent; }
.sh { margin: 0; font-size: 17px; display: flex; align-items: center; gap: 10px; }
.sico { flex: none; width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(216,178,106,.12); color: var(--brass2); }
.sico svg { width: 18px; height: 18px; }
.kpi b.stxt { font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.kpi .snote { font-style: normal; font-size: 12px; color: var(--muted); }
.spill { align-self: flex-start; margin-top: 3px; font-style: normal; font-size: 12px; line-height: 1.6; padding: 0 8px; border-radius: 999px; background: rgba(255,255,255,.06); color: var(--muted); white-space: nowrap; }
.spill.up { background: rgba(46,204,113,.14); color: var(--green2); }
.spill.down { background: rgba(255,138,61,.15); color: var(--orange2); }
.shv .spill { margin-top: 0; font-size: 13px; }
.ssplit { display: grid; grid-template-columns: minmax(0, 250px) 1fr; gap: 14px; align-items: center; }
.sdonut { display: flex; align-items: center; gap: 14px; }
.sdonut svg { width: 120px; height: 120px; flex: none; direction: ltr; }
.slegend { display: flex; flex-direction: column; gap: 7px; font-size: 13.5px; color: var(--muted); }
.slegend.row { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }
.slegend b { color: var(--text); }
.slegend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-inline-end: 6px; vertical-align: middle; }
.sline { display: block; height: 10px; background: var(--deep); border-radius: 6px; overflow: hidden; }
.sline i { display: block; height: 100%; border-radius: 6px; background: linear-gradient(to left, var(--brass), #9C7B3F); }
.scredit { display: flex; flex-direction: column; gap: 7px; background: var(--raised); border-radius: 14px; padding: 12px; }
.scredit .row b { font-size: 19px; }
.scredit .sline i { background: var(--green); }
.scredit .sline i.low { background: var(--orange); }
.smeter { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; font-size: 14px; color: var(--soft); background: var(--raised); border-radius: 12px; padding: 10px 12px; }
.spattern { margin: 0; font-size: 14px; color: var(--soft); background: var(--raised); border-radius: 12px; padding: 9px 12px; }
.spattern b { color: var(--brass2); font-weight: 600; }
.scal { display: grid; grid-template-columns: 44px repeat(8, minmax(0, 1fr)); gap: 4px; align-items: center; font-size: 11.5px; color: var(--muted); max-width: 520px; }
.scal .wk { text-align: center; font-size: 10px; white-space: nowrap; overflow: hidden; }
.scal .cd { width: 100%; max-width: 30px; height: 22px; justify-self: center; border-radius: 5px; background: var(--raised); }
.scal .cd.on { background: rgba(216,178,106,var(--a)); box-shadow: inset 0 0 0 1px rgba(232,201,138,.55); }
.scal .cd.now { background: var(--live); }
.scal .cd.fut { background: transparent; border: 1px dashed var(--line); }
.stop { display: flex; flex-direction: column; gap: 6px; }
.stop > div { display: grid; grid-template-columns: 26px 1fr auto; gap: 8px; align-items: center; font-size: 14px; background: var(--raised); border-radius: 11px; padding: 8px 11px; }
.stop > div > b { color: var(--brass2); }
.chip.snew { background: rgba(216,178,106,.16); color: var(--brass2); font-weight: 700; min-height: 0; padding: 0 8px; font-size: 12px; }
.salerts { display: flex; flex-direction: column; gap: 8px; }
.salert { display: flex; gap: 10px; align-items: flex-start; background: var(--raised); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.salert .sev { flex: none; margin-top: 2px; font-size: 12px; padding: 1px 9px; border-radius: 999px; font-weight: 700; }
.sev.hi { background: rgba(224,69,59,.2); color: #FF8F87; }
.sev.mid { background: rgba(255,138,61,.16); color: var(--orange2); }
.sev.lo { background: rgba(123,227,166,.14); color: var(--green2); }
.sglance td:first-child { color: var(--soft); }
.sdevs { display: flex; height: 26px; border-radius: 8px; overflow: hidden; }
.sdevs span { display: grid; place-items: center; font-size: 12.5px; color: var(--onbrass); font-weight: 700; min-width: 0; overflow: hidden; }
.sheat { display: grid; gap: 3px; font-size: 11.5px; }
.sheat > span { text-align: center; color: var(--muted); padding: 2px 0; }
.sheat .cell { height: 24px; border-radius: 5px; background: var(--raised); display: grid; place-items: center; }
.sheat .cell.on { background: rgba(216,178,106,var(--a)); color: var(--onbrass); font-weight: 700; font-size: 11px; }
.sfunnel { display: flex; flex-direction: column; gap: 7px; }
.sfunnel .fstep { display: grid; grid-template-columns: 104px 1fr 90px; gap: 8px; align-items: center; font-size: 14px; }
.sfunnel .sline { height: 20px; }
.sfunnel small { color: var(--muted); font-size: 12px; }
.sacards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 10px; }
.sacard { text-align: start; background: var(--raised); border: 1px solid transparent; border-radius: 16px; padding: 13px; display: flex; flex-direction: column; gap: 9px; color: inherit; font: inherit; cursor: pointer; }
.sacard:hover, .sacard:focus-visible { border-color: var(--line2); }
.sacard .hd { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.sacard .nm { font-family: var(--kufi); font-size: 17px; overflow-wrap: anywhere; }
.smini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.smini > span { display: flex; flex-direction: column; font-size: 12px; color: var(--muted); }
.smini b { font-size: 16px; color: var(--text); }
.smini .spill { font-size: 11px; margin-top: 2px; }
.sacard .foot { display: flex; justify-content: space-between; align-items: end; gap: 8px; font-size: 12.5px; color: var(--muted); }
.sacard svg { width: 100px; height: 28px; flex: none; }
.sdhead { display: flex; flex-direction: column; gap: 4px; }
@media (max-width: 560px) {
  .ssplit { grid-template-columns: 1fr; }
  .sbig { font-size: 31px; }
}
@media (max-width: 420px) {
  .shrow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .schips button { height: 33px; padding: 0 10px; }
  .scal { grid-template-columns: 38px repeat(8, minmax(0, 1fr)); gap: 3px; }
  .scal .wk { font-size: 9px; }
  .sfunnel .fstep { grid-template-columns: 88px 1fr 80px; font-size: 13px; }
}
.dtop { gap: 10px; }
.dtop .nm { flex-direction: row; align-items: center; gap: 8px; flex-wrap: wrap; }
.modalbox.wide { max-width: 560px; }
#acctRepBox .lotrow { padding: 8px 10px; }
#acctRepBox .kpis.k3 .kpi b { font-size: 18px; }
#acctRepBox details > .list { max-height: 260px; overflow: auto; }

/* dallal: his card on the auction page, the team's request line, his row in the settings */
.card.castcard { border-color: var(--brass); }
.card.castask { border-color: var(--green); gap: 10px; }
.castrow .setrow { padding: 8px 0; }
.castchip { align-self: flex-start; }

/* ---- broadcast effects ---- */
/* drawn over the video and its top bar, and under the bidding buttons: an effect never hides the bid button */
.tools button.fxbtn { border-color: var(--brass); color: var(--brass2); font-size: 10px; }
/* the picker: no dark sheet over the picture. A small panel under the button, nine tenths see-through */
.fxpop { position: fixed; inset: 0; z-index: 80; }
.fxpanel { position: absolute; direction: rtl; width: min(236px, 66vw); background: rgba(14,17,19,.1); border: 1px solid rgba(240,208,140,.5); border-radius: 14px; padding: 7px; display: flex; flex-direction: column; gap: 6px; color: #fff; text-shadow: 0 1px 3px #000, 0 0 2px #000; }
.fxpanel b { font-size: 12.5px; }
.fxwait { font-size: 11.5px; font-weight: 700; color: #FFD98A; }
.fxx { width: 26px; height: 26px; border-radius: 50%; border: 1px solid rgba(255,255,255,.4); background: rgba(14,17,19,.1); color: #fff; font-size: 12px; padding: 0; text-shadow: inherit; }
.fxgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; }
.fxgrid button { height: 32px; border-radius: 9px; border: 1px solid rgba(255,255,255,.38); background: rgba(14,17,19,.3); color: #fff; font-family: inherit; font-size: 11.5px; font-weight: 700; padding: 0 2px; text-shadow: inherit; white-space: nowrap; }
.fxgrid button:active { background: rgba(216,178,106,.45); }
.fxgrid button:disabled { opacity: .45; }

.fxcanvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 3; pointer-events: none; }
.fxov { position: absolute; inset: 0; z-index: 3; pointer-events: none; display: grid; place-items: center; overflow: hidden; }
.fxov > * { grid-area: 1 / 1; }
.fx-shake { animation: fxshake .7s cubic-bezier(.36,.07,.19,.97) both; }
.fx-bump { animation: fxshake .35s cubic-bezier(.36,.07,.19,.97) both; }
@keyframes fxshake { 0%, 100% { transform: none; } 10% { transform: translate(-7px, 3px) rotate(-1deg); } 22% { transform: translate(8px, -4px) rotate(1.2deg); } 34% { transform: translate(-9px, 2px) rotate(-1.2deg); } 46% { transform: translate(8px, 4px) rotate(1deg); } 58% { transform: translate(-6px, -3px) rotate(-.8deg); } 70% { transform: translate(5px, 2px) rotate(.6deg); } 84% { transform: translate(-3px, -1px); } }
/* engraved gold. Sizes are in em: the layer's own font size follows the width of the picture it sits on */
.fxov { perspective: 700px; }
.fxov .num { direction: ltr; unicode-bidi: isolate; }
.fxa-g { background: linear-gradient(100deg, #8E6A2A 0%, #F6E7B8 28%, #D9B56B 50%, #FFF6D8 68%, #A67C32 100%); background-size: 220% 100%; -webkit-background-clip: text; background-clip: text; color: transparent; animation: fxgsh 2.6s linear infinite; }
@keyframes fxgsh { from { background-position: 180% 0; } to { background-position: -40% 0; } }
@keyframes fxfade { 0% { opacity: 0; } 12%, 86% { opacity: 1; } 100% { opacity: 0; } }

.fxa-ring { width: 30%; aspect-ratio: 1; border-radius: 50%; border: 2px solid #F6E7B8; box-shadow: 0 0 22px rgba(246,231,184,.7), inset 0 0 22px rgba(246,231,184,.5); animation: fxaring .9s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fxaring { 0% { transform: scale(.2); opacity: 1; } 100% { transform: scale(5); opacity: 0; } }
.fxa-med { width: 62%; max-width: 15em; aspect-ratio: 1; position: relative; transform-style: preserve-3d; animation: fxamed 3.6s cubic-bezier(.2,.9,.25,1) both; filter: drop-shadow(0 18px 26px rgba(0,0,0,.6)); }
.fxa-med svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.fxa-med .ct { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.fxa-med .ct b { font-family: var(--kufi); font-size: 2.3em; font-weight: 700; line-height: 1.2; }
.fxa-med .ct i { font-family: 'Cormorant Garamond', Georgia, serif; font-style: normal; font-weight: 700; font-size: 1.1em; color: #E9D7A6; }
.fxa-med::after { content: ''; position: absolute; inset: 0; border-radius: 50%; background: linear-gradient(115deg, transparent 38%, rgba(255,255,255,.55) 50%, transparent 62%); background-size: 260% 100%; mix-blend-mode: screen; animation: fxasw 1.1s ease-out .95s both; opacity: 0; }
@keyframes fxamed { 0% { transform: rotateY(-200deg) scale(.2); opacity: 0; } 26% { transform: rotateY(12deg) scale(1.08); opacity: 1; } 34% { transform: rotateY(0) scale(1); } 86% { transform: rotateY(0) scale(1); opacity: 1; } 100% { transform: rotateY(0) scale(1.06); opacity: 0; } }
@keyframes fxasw { 0% { background-position: 130% 0; opacity: 1; } 100% { background-position: -40% 0; opacity: 1; } }
.fxa-halo { width: 62%; max-width: 15em; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(246,231,184,.9); animation: fxahalo 1.1s cubic-bezier(.2,.7,.2,1) .9s both; opacity: 0; }
@keyframes fxahalo { 0% { transform: scale(.9); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.fxa-cd { width: 58%; max-width: 14em; aspect-ratio: 1; position: relative; animation: fxfade 3.3s ease both; filter: drop-shadow(0 10px 22px rgba(0,0,0,.6)); }
.fxa-cd svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* the hand turns by its own SVG animation about the dial's centre (see app.js) */
.fxa-cd b { position: absolute; inset: 0; display: grid; place-items: center; font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 700; font-size: 6em; line-height: 1; padding-bottom: 6%; }
.fxa-cd b span { grid-area: 1 / 1; opacity: 0; color: #F6E7B8; text-shadow: 0 0 14px rgba(217,181,107,.65), 0 2px 0 #8E6A2A; animation: fxacn 1s cubic-bezier(.2,.8,.2,1) both; }
.fxa-cd b span:nth-child(2) { animation-delay: 1s; } .fxa-cd b span:nth-child(3) { animation-delay: 2s; }
@keyframes fxacn { 0% { opacity: 0; transform: scale(1.5); filter: blur(8px); } 18% { opacity: 1; transform: scale(1); filter: none; } 82% { opacity: 1; } 100% { opacity: 0; transform: scale(.86); } }
.fxa-last { align-self: stretch; justify-self: stretch; position: relative; display: grid; place-items: center; animation: fxfade 3.4s ease both; }
.fxa-last::before { content: ''; position: absolute; inset: 0; background: radial-gradient(70% 45% at 50% 50%, rgba(0,0,0,0) 0%, rgba(0,0,0,.62) 100%); }
.fxa-last .ln { position: absolute; left: 12%; right: 12%; height: 1px; background: linear-gradient(90deg, transparent, #F6E7B8, transparent); transform: scaleX(0); animation: fxaln 3.4s cubic-bezier(.2,.8,.2,1) both; }
.fxa-last .ln.t { top: calc(50% - 2.1em); } .fxa-last .ln.b { top: calc(50% + 2.1em); }
.fxa-last b, .fxa-word { position: relative; font-family: var(--kufi); font-size: 2.5em; font-weight: 700; text-align: center; line-height: 1.3; animation: fxalt 3.4s cubic-bezier(.2,.8,.2,1) both, fxgsh 2.6s linear infinite; }
.fxa-word.hot { animation-duration: 2.9s, 2.6s; filter: drop-shadow(0 0 14px rgba(255,138,61,.75)); align-self: center; }
@keyframes fxaln { 0% { transform: scaleX(0); } 22%, 82% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fxalt { 0% { opacity: 0; transform: translateY(10px) scale(.96); filter: blur(6px); } 22%, 82% { opacity: 1; transform: none; filter: none; } 100% { opacity: 0; transform: translateY(-6px); filter: blur(4px); } }

.fxa-heat { align-self: stretch; justify-self: stretch; background: radial-gradient(120% 55% at 50% 108%, rgba(255,120,30,.6) 0%, rgba(255,150,60,.22) 45%, rgba(255,150,60,0) 72%); animation: fxfade 2.9s ease both; mix-blend-mode: screen; }

/* ================= the look of the whole platform (chosen in the platform owner's settings) ================= */
#skinBg { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
#skinBg svg { position: absolute; overflow: visible; }

.skrow { padding: 10px 0; }

html[data-skin]:not([data-skin="base"]) body { background: transparent; }
html.lowfx #skinBg *, html.lowfx .house, html.lowfx .house::after { animation: none !important; }

/* ---- الأتيليه: brushed steel plates in a gold frame, raised off the page ---- */
html[data-skin^="atelier"] { --ground: #0A0B0D; --deep: #0D0F11; --surface: #1A1D21; --raised: #24282D; --line: #33383E; --line2: #4A4F55; --brass: #D9B56B; --brass2: #F6E7B8;
  background: radial-gradient(120% 70% at 50% 0%, #23272C 0%, #0A0B0D 62%) fixed #0A0B0D; }
/* 20 Nov: tapisserie in place of the turning rosette (Mohammed picked «٣ التابيسري» from the second trial page). Two copies of
   the same small raised squares: one dim, and one that shows only where a band of light crosses it and comes back. With the
   motion off (a weak phone) the band rests in the middle. */
html[data-skin^="atelier"] #skinBg .sk-tap { position: absolute; inset: -4%; opacity: .26; --s: 16px; --t1: color-mix(in srgb, var(--brass) 34%, transparent); --t2: color-mix(in srgb, var(--brass) 16%, transparent);
  background: linear-gradient(var(--t1) 1px, transparent 1px) 0 0 / var(--s) var(--s), linear-gradient(90deg, var(--t1) 1px, transparent 1px) 0 0 / var(--s) var(--s),
    linear-gradient(var(--t2) 1px, transparent 1px) 4px 4px / var(--s) var(--s), linear-gradient(90deg, var(--t2) 1px, transparent 1px) 4px 4px / var(--s) var(--s),
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--brass) 20%, transparent) 0 22%, transparent 60%) 0 0 / var(--s) var(--s); }
/* 23 Nov (Mohammed picked «الضوء بطبقة منفصلة»): the band of light is a layer of its own that slides across, and the copy
   inside it slides back the same way, so the squares stay in place and nothing is redrawn as it moves. At rest it stands
   in the middle. */
html[data-skin^="atelier"] #skinBg .atband { position: absolute; top: -4%; height: 108%; left: 0; width: 240vw; transform: translateX(-70vw); will-change: transform;
  -webkit-mask-image: linear-gradient(112deg, transparent 30%, #000 50%, transparent 70%); mask-image: linear-gradient(112deg, transparent 30%, #000 50%, transparent 70%); animation: skBand 11s ease-in-out infinite alternate; }
html[data-skin^="atelier"] #skinBg .atband .sk-tap { inset: 0 auto 0 -4vw; width: 108vw; opacity: 1; transform: translateX(70vw); will-change: transform; animation: skBandIn 11s ease-in-out infinite alternate; }
@keyframes skBand { from { transform: translateX(-190vw); } to { transform: translateX(50vw); } }
@keyframes skBandIn { from { transform: translateX(190vw); } to { transform: translateX(-50vw); } }
html[data-skin^="atelier"] .card, html[data-skin^="atelier"] .house, html[data-skin^="atelier"] .kpi {
  border: 1.5px solid transparent;
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.028) 0 1px, transparent 1px 3px) padding-box, linear-gradient(160deg, #2B3036 0%, #16191C 46%, #23272C 100%) padding-box, conic-gradient(from 210deg, #6D5A2C, #F6E7B8, #8A7238, #2C2F34, #C9CED3, #4A4F55, #6D5A2C) border-box;
  box-shadow: 0 1px 0 #7A6532, 0 2px 0 #5F4F27, 0 3px 0 #453A1D, 0 16px 24px -12px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.12); }
html[data-skin^="atelier"] .card.off { border-style: solid; }
html[data-skin^="atelier"] #houseList { perspective: 900px; }
html[data-skin^="atelier"] .house { position: relative; overflow: hidden; transform: rotateX(var(--tx, 4deg)) rotateY(var(--ty, 0deg)); animation: skTilt 9s ease-in-out infinite alternate; transition: transform .25s ease-out; }
html[data-skin^="atelier"].tiltlive .house { animation: none; }
html[data-skin^="atelier"] .house::after { content: ''; position: absolute; inset: 0 auto 0 0; width: 300%; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.14) 50%, transparent 60%); transform: translateX(-100%); will-change: transform; animation: skGlare 6s ease-in-out infinite; pointer-events: none; }
@keyframes skTilt { from { transform: rotateX(5deg) rotateY(5deg); } to { transform: rotateX(3deg) rotateY(-5deg); } }
@keyframes skGlare { 0%, 55% { transform: translateX(-100%); } 100% { transform: translateX(40%); } }
html[data-skin^="atelier"] .btn.gold { background: linear-gradient(180deg, color-mix(in srgb, var(--brass2) 80%, #fff), var(--brass) 48%, color-mix(in srgb, var(--brass) 68%, #000)); border-color: color-mix(in srgb, var(--brass) 70%, #000); box-shadow: inset 0 1px 0 rgba(255,255,255,.65), 0 6px 12px -6px rgba(0,0,0,.8); }
html[data-skin^="atelier"] .tabs { background: linear-gradient(#22262B, #111315); border-top: 1px solid #4A4F55; box-shadow: inset 0 1px 0 rgba(255,255,255,.1); }
html[data-skin^="atelier"] .tabs button.on { position: relative; }
html[data-skin^="atelier"] .tabs button.on::before { content: ''; position: absolute; top: -1px; left: 50%; width: 30px; height: 3px; margin-left: -15px; background: linear-gradient(90deg, #8A7238, #FFF6D8, #8A7238); border-radius: 0 0 3px 3px; }
html[data-skin^="atelier"] .pricebar .price, html[data-skin^="atelier"] .kpi.gold b { font-family: 'Cormorant Garamond', var(--font); background: linear-gradient(100deg, #D9B56B, #FFF6D8 40%, #E8C77E 70%, #C39A4A); -webkit-background-clip: text; background-clip: text; color: transparent; }
html[data-skin^="atelier"] .pricebar .price { font-size: 34px; }
html[data-skin^="atelier"] .pricebar { border: 1.5px solid transparent; background: linear-gradient(160deg, rgba(43,48,54,.92), rgba(18,20,22,.92)) padding-box, conic-gradient(from 210deg, #6D5A2C, #F6E7B8, #8A7238, #2C2F34, #C9CED3, #4A4F55, #6D5A2C) border-box; }
html[data-skin^="atelier"] .modalbox { border: 1.5px solid transparent; background: linear-gradient(160deg, #2B3036, #16191C 46%, #23272C) padding-box, conic-gradient(from 210deg, #6D5A2C, #F6E7B8, #8A7238, #2C2F34, #C9CED3, #4A4F55, #6D5A2C) border-box; }

/* a card that opens on a tap: the owner's colour pickers stay folded until he wants them */
details.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold .foldh { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
details.fold .foldh > b { font-family: var(--kufi); font-size: 19px; }
details.fold .foldnow { gap: 8px; align-items: center; }
details.fold .foldarrow { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; transition: transform .2s ease; }
details.fold[open] .foldarrow { transform: rotate(180deg); }
details.fold:not([open]) { gap: 0; }
/* 19 Nov: the team's settings pages (Mohammed picked «ب. مجموعات»): «حسابي» and «واجهة البرنامج» on top under «حسابك»,
   the auction's settings in five folded groups, each group's sections divided by a line; the levels box and signing out last */
.acctslot, .acct { display: flex; flex-direction: column; gap: 14px; }
.grp { margin: 6px 2px -4px; font-size: 14px; font-weight: 700; color: var(--muted); }
details.fold .fsub { display: flex; flex-direction: column; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); min-width: 0; }
details.fold > summary + .fsub { padding-top: 0; border-top: 0; }
details.fold .fsub > h3 { margin: 0; font-size: 16px; color: var(--brass2); }
details.fold .fsub > .foldnow { margin-top: -4px; }
/* the account box: its parts are sections of one card, not cards inside a card */
.sect { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; border-top: 1px solid var(--line); min-width: 0; }
.sect.metype { gap: 8px; }
.sect > h2 { margin: 0; }
.buyrow { gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); align-items: center; }
.buysum { padding-top: 4px; }
#meNow { align-items: center; }

.livecount { font-size: 14px; gap: 4px 10px; padding: 8px 10px; border-radius: 10px; background: var(--deep); border: 1px solid var(--line); }
.livecount b { color: var(--brass2); font-size: 17px; }

/* ---- passed by another bidder ---- */
#live .leader.out { padding: 0 9px; border-radius: 999px; background: rgba(90,24,18,.88); animation: shake .32s cubic-bezier(.25, 1, .5, 1); }
#live .leader.out i { color: #FFB4AC; font-weight: 700; }
.bidbtn.again { animation: bidAgain .55s cubic-bezier(.22, 1, .36, 1) 2; }
@keyframes bidAgain { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--brass2) 80%, transparent); } to { box-shadow: 0 0 0 16px transparent; } }
/* ---- the last ten seconds: a seconds hand that jumps ---- */
.tdial { flex: none; width: 34px; height: 34px; }
.tdial svg { display: block; width: 100%; height: 100%; }
.tdial .rim, .tdial .hand line { stroke: var(--brass2); } .tdial .mk { stroke: var(--muted); } .tdial .hub { fill: var(--brass2); }
.tdial .hand { transform-box: view-box; transform-origin: 50% 50%; transform: rotate(calc(var(--t, 0) * 36deg)); transition: transform 170ms cubic-bezier(.3, 1.9, .5, 1); }
.tdial.hot .rim, .tdial.hot .hand line { stroke: var(--live); } .tdial.hot .hub { fill: var(--live); }
/* ---- the watch that just went on air ---- */
.story { position: absolute; left: 10px; right: 10px; bottom: 10px; width: calc(100% - 20px); z-index: 4; display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--brass); background: var(--surface); color: var(--text); font: inherit; text-align: start; box-shadow: 0 12px 26px rgba(0,0,0,.6); animation: storyIn .3s cubic-bezier(.25, 1, .5, 1); }
@keyframes storyIn { from { transform: translateY(18px); opacity: 0; } }
.story b { font-size: 16px; line-height: 1.4; } .story .stx { color: var(--soft); line-height: 1.6; }
.story .life { display: block; height: 3px; border-radius: 2px; background: var(--brass); transform-origin: right center; animation: storyLife 6s linear both; }
@keyframes storyLife { to { transform: scaleX(0); } }
/* ---- the countdown to a live ---- */
.clock { direction: ltr; unicode-bidi: isolate; font-variant-numeric: tabular-nums; }
.clock:empty { display: none; }
.clock.big { font-size: 26px; color: var(--brass2); line-height: 1.2; }
/* ---- the loyalty club ---- */
.clubtag { margin-inline-start: 4px; color: var(--cc); font-size: .8em; text-shadow: 0 0 6px color-mix(in srgb, var(--cc) 60%, transparent); }
.clubtier { display: inline-flex; align-items: center; height: 30px; padding: 0 12px; border-radius: 999px; background: var(--cc); color: #15110A; font-weight: 700; font-size: 14px; }
.clubbar { display: block; height: 8px; border-radius: 4px; background: var(--raised); overflow: hidden; }
.clubbar i { display: block; height: 100%; background: var(--brass2); transform-origin: right center; transition: transform .42s cubic-bezier(.22, 1, .36, 1); }
.clubsteps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.clubsteps > span { display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 6px 2px; border-radius: 10px; background: var(--deep); color: var(--muted); font-size: 11.5px; text-align: center; min-width: 0; }
.clubsteps > span.on { background: var(--raised); color: var(--text); }
.clubsteps small { font-size: 10px; line-height: 1.3; color: var(--brass2); overflow-wrap: anywhere; }
.clubrow { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--line); } .clubrow:last-child { border-bottom: 0; }
/* ---- the draw ---- */
.fxdraw { width: 100%; margin-top: 6px; height: 34px; border-radius: 9px; border: 1px solid var(--brass2); background: rgba(216,178,106,.3); color: #fff; font-family: inherit; font-size: 12.5px; font-weight: 700; text-shadow: inherit; }
.fxdraw:disabled { opacity: .45; }
.drawov { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; pointer-events: none; background: rgba(5,7,9,.55); }
.drawbox { width: min(340px, 100%); display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; color: #fff; }
.drawbox .hd { font-family: var(--kufi); font-size: 22px; color: var(--brass2); text-shadow: 0 2px 8px #000; }
.drawslot { width: 100%; min-height: 66px; padding: 8px 12px; border-radius: 16px; border: 1.5px solid var(--brass2); background: #0B0F12; display: grid; place-items: center; font-size: 23px; font-weight: 700; overflow: hidden; overflow-wrap: anywhere; }
.drawslot span.tk { display: block; animation: drawTk 90ms linear; }
@keyframes drawTk { from { transform: translateY(-60%); opacity: .2; } }
.drawslot.won { background: linear-gradient(180deg, #3A2F17, #17130A); animation: drawWon .6s cubic-bezier(.22, 1, .36, 1); }
@keyframes drawWon { from { transform: scale(.94); box-shadow: 0 0 0 0 rgba(240,208,140,.9); } to { box-shadow: 0 0 0 26px rgba(240,208,140,0); } }
.drawbox .nt { font-size: 14.5px; text-shadow: 0 2px 6px #000; }
/* ---- the watches most bid on, in the team's report ---- */
.topbids { display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.topbids .tr { display: block; height: 8px; margin-top: 4px; border-radius: 4px; background: var(--deep); overflow: hidden; }
.topbids .tr i { display: block; height: 100%; border-radius: 4px; background: var(--brass); transform-origin: right center; }
html.lowfx .story, html.lowfx #live .leader.out, html.lowfx .bidbtn.again, html.lowfx .drawslot span.tk, html.lowfx .drawslot.won { animation: none; }
html.lowfx .tdial .hand { transition: none; }

/* ---- الأتيليه: over the live picture the price is one solid colour. Painted with a gradient it went dark on the iPhone ---- */
html[data-skin^="atelier"] #live .pricebar .price, html[data-skin^="atelier"] #oCast .pricebar .price { background: none; -webkit-background-clip: border-box; background-clip: border-box; color: #F6E7B8; -webkit-text-fill-color: #F6E7B8; text-shadow: 0 1px 4px #000; }
/* ---- the live just started, on the auction's page ---- */
.livenote { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 8px 14px; border-radius: 14px; background: var(--live); color: #fff; font-weight: 700; font-size: 17px; animation: liveNote .5s cubic-bezier(.22, 1, .36, 1) 3; }
.livenote .dot { width: 9px; height: 9px; border-radius: 50%; background: #fff; }
@keyframes liveNote { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 80%, transparent); } to { box-shadow: 0 0 0 16px transparent; } }
html.lowfx .livenote { animation: none; }
/* ---- the two switches in the details panel sit side by side and stay small ---- */
.detsw { display: flex; gap: 6px; }
.detsw:not(:has(.btn:not(.hidden))) { display: none; }
.detsw .btn.xs { flex: 1 1 0; min-width: 0; height: 28px; padding: 0 6px; font-size: 11.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* ---- the effects picker on the control desk is a solid card ---- */
.fxpanel.solid { background: var(--surface); border-color: var(--line2); box-shadow: 0 14px 30px rgba(0,0,0,.6); text-shadow: none; color: var(--text); }
.fxpanel.solid .fxgrid button, .fxpanel.solid .fxdraw { background: var(--raised); border-color: var(--line2); color: var(--text); }

/* ---- the bell beside the auction's name ---- */
.bell { flex: none; align-self: flex-start; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--raised); color: var(--muted); display: grid; place-items: center; transition: transform .12s cubic-bezier(.25, .46, .45, .94), background-color .2s ease, color .2s ease, border-color .2s ease; }
.bell:active { transform: scale(.94); }
.bell.on { background: var(--greenbg); border-color: var(--green2); color: var(--green2); }
.bell.on svg path:first-child { fill: currentColor; }
/* ---- the team's sold table: a button never breaks into lines inside its cell ---- */
.rtable .btn { white-space: nowrap; }
.rtable td, .rtable th { white-space: nowrap; }
.rtable td:first-child { white-space: normal; min-width: 150px; }
/* ---- the bidders' report: as many figures in a row as fit ---- */
.kpis.kfit { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 8px; }
.kpis.kfit .kpi { padding: 9px 10px; } .kpis.kfit .kpi span { font-size: 11.5px; } .kpis.kfit .kpi b { font-size: 20px; }
/* ---- what the bidders' report shows ---- */
.repkeys { display: flex; flex-wrap: wrap; gap: 8px; }
.repkeys button { min-height: 44px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line2); background: var(--raised); color: var(--muted); font: inherit; font-size: 14px; font-weight: 600; }
.repkeys button.on { background: var(--greenbg); border-color: var(--green2); color: var(--green2); }

/* ---- date and time fields on the iPhone: Safari gives them a width of their own that pushed the box out of its card ---- */
input.in[type="datetime-local"], input.in[type="date"], input.in[type="time"] { -webkit-appearance: none; appearance: none; display: block; box-sizing: border-box; width: 100%; min-width: 0; max-width: 100%; line-height: 48px; text-align: start; }
input.in[type="datetime-local"]::-webkit-date-and-time-value { text-align: start; min-height: 1.2em; }
.field { min-width: 0; max-width: 100%; }
/* ---- the viewer's top row: «مباشر» and the viewer count are small, as on the broadcaster's screen ---- */
#live .lvhead .chip { min-height: 26px; padding: 1px 9px; font-size: 12.5px; border-radius: 8px; flex-shrink: 0; }
#live .lvhead .chip.lvview { background: rgba(14,17,19,.82); border: 1px solid var(--line2); color: #fff; }
/* HD: dim while the viewer is on the normal picture, in the auction's colour while HD is on */
#live .lvhead .chip.lvhd { font-family: inherit; font-weight: 800; letter-spacing: .5px; cursor: pointer; opacity: .75; }
#live .lvhead .chip.lvhd[aria-pressed="true"] { opacity: 1; background: var(--brass); border-color: var(--brass); color: #111; }

.lvnext { gap: 8px; padding: 8px 10px; border-radius: 12px; background: var(--raised); }

/* ================= name looks picked 18 Nov =================
   motion sits on the plate, its border or its icon, never on painted text (that broke on the iPhone before) */
/* platinum: the gem flashes now and then */
.nick.plat .ti { animation: gemSpark 3s ease-in-out infinite; }
@keyframes gemSpark { 0%, 70%, 100% { transform: scale(1); filter: none; } 80% { transform: scale(1.35) rotate(12deg); filter: drop-shadow(0 0 4px #fff); } 90% { transform: scale(1); } }
/* VIP: a light passes across the gold plate */
.nick.vip { position: relative; overflow: hidden; isolation: isolate; }
.nick.vip::after { content: ''; position: absolute; inset: -2px; pointer-events: none; background: linear-gradient(110deg, transparent 40%, rgba(255,255,255,.6) 50%, transparent 60%) 0 0 / 260% 100% no-repeat; animation: vipPass 3.6s ease-in-out infinite; }
@keyframes vipPass { 0%, 55% { background-position: 160% 0; } 100% { background-position: -100% 0; } }
/* auction owner: a white light runs round the red plate, no lean */
@property --ring-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
.nick.own { border: 2px solid transparent; background: linear-gradient(180deg, #FF8286 0%, #E5484D 46%, #C5343A 54%, #DB4147 100%) padding-box, conic-gradient(from var(--ring-a), #FFC9CB 0 55%, #FFFFFF 72%, #FFFFFF 80%, #FFC9CB 100%) border-box;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.45), inset 0 -2px 3px rgba(0,0,0,.28), 0 1px 0 #A82A2F, 0 2px 0 #7F1D22, 0 0 8px rgba(229,72,77,.6); animation: ringSpin 4s linear infinite; }
@keyframes ringSpin { to { --ring-a: 360deg; } }
/* the platform owner's deputy: violet neon, the same build as the owner's plate without the flicker */
.nick.dep { position: relative; color: #fff; font-weight: 800; padding: 2px 10px; border: 2px solid transparent; text-shadow: 0 0 6px #A66BFF;
  background: linear-gradient(180deg, #3A1F66 0%, #170A2E 50%, #2A1450 100%) padding-box, conic-gradient(from var(--ring-a), #D7BCFF 0 58%, #FFFFFF 74%, #FFFFFF 82%, #D7BCFF 100%) border-box;
  box-shadow: 0 0 8px #A66BFF, 0 0 16px rgba(166,107,255,.5); animation: ringSpin 3.6s linear infinite; }
.nick.dep .ti { filter: drop-shadow(0 0 3px #A66BFF); }
/* developers: cyan to violet */
.codeic { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: .85em; font-weight: 800; direction: ltr; }
.nick.dev { color: #fff; font-weight: 800; padding: 1px 9px; border-radius: 8px; background: linear-gradient(110deg, #13B5D8, #7B5CFF); gap: 5px; }
/* the dallal inside his auction: emerald, with a microphone */
.nick.dl { color: #fff; font-weight: 800; padding: 1px 9px; background: linear-gradient(180deg, #29C98A, #0E7E55); box-shadow: 0 0 8px rgba(41,201,138,.45); }
/* in comments the team's plates are smaller and flatter: no lean, a softer glow, so the line under them stays clear */
.cm .nick.adm, .cm .nick.own, .cm .nick.ctl, .cm .nick.dep { font-size: 11px; padding: 0 7px; border-width: 1px; transform: none; }
#oCast .cm .nick.adm, #oCast .cm .nick.own, #oCast .cm .nick.ctl, #oCast .cm .nick.dep { font-size: 12px; }
.cm .nick.adm { animation: admspin 2.4s linear infinite; box-shadow: 0 1px 0 #0B5F8C, 0 0 6px rgba(25,184,255,.75); text-shadow: 0 0 5px #19B8FF; }
.cm .nick.own { animation: ringSpin 4s linear infinite; box-shadow: 0 1px 0 #7F1D22, 0 0 5px rgba(229,72,77,.6); }
.cm .nick.ctl { animation: none; box-shadow: 0 1px 0 #15417F, 0 0 5px rgba(47,128,237,.6); }
.cm .nick.dep { box-shadow: 0 0 5px rgba(166,107,255,.7); }
.cm .nick.adm::before, .cm .nick.own::before, .cm .nick.ctl::before { animation-duration: 4s; }
/* the deputy's pages: what would change something is not shown */
.vo { display: none !important; }
@media (prefers-reduced-motion: reduce) { .nick.plat .ti, .nick.vip::after, .nick.own, .nick.dep, .cm .nick.adm, .cm .nick.own { animation: none; } }
html.lowfx .nick.plat .ti, html.lowfx .nick.vip::after, html.lowfx .nick.own, html.lowfx .nick.dep { animation: none; }
/* a name never touches its frame: room above and below the letters in every framed name, and a hair smaller in comments */
.nick { line-height: 1.65; }
.nick:is(.adm, .own, .ctl, .dep, .dev, .dl, .svip, .vip, .plat, .gold, .silv) { padding-top: 1px; padding-bottom: 2px; }
.nick:is(.gold, .silv) { padding-top: 1px; padding-bottom: 3px; }
.cm .nick:is(.adm, .own, .ctl, .dep, .dev, .dl, .svip, .vip, .plat) { font-size: 10.5px; padding-top: 1px; padding-bottom: 2px; }
.cm .nick:is(.gold, .silv) { font-size: 10.5px; padding-top: 1px; padding-bottom: 3px; }
#oCast .cm .nick:is(.adm, .own, .ctl, .dep, .dev, .dl, .svip, .vip, .plat, .gold, .silv) { font-size: 11.5px; }

/* ---- the loading watch (index.html #boot): the skeleton, in the colours of the user's look ---- */
#boot { position: fixed; inset: 0; z-index: 1000; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; pointer-events: none;
  --la: var(--brass); --lb: var(--brass2); --ll: var(--line2); --ls: var(--raised); --ld: var(--surface); --lg: var(--deep);
  transition: opacity .22s ease-out; animation: bootGiveUp 0s linear 15s forwards; }
#boot.gone { opacity: 0; }
@keyframes bootGiveUp { to { visibility: hidden; } }
#boot svg { width: min(64vw, 250px); height: auto; overflow: visible; filter: drop-shadow(0 14px 24px rgba(0,0,0,.55)); }
#boot b { font-family: var(--kufi); font-size: 22px; font-weight: 700; color: var(--brass2); }
#boot .c1, #boot .c2, #boot .c3, #boot .c4 { fill: none; }
#boot .c1 { stroke: var(--la); } #boot .c2 { stroke: var(--lb); } #boot .c3 { stroke: var(--ll); } #boot .c4 { stroke: color-mix(in srgb, var(--la) 42%, var(--ld)); }
#boot :is(.f1, .fj) { fill: var(--la); } #boot .f2 { fill: var(--lb); } #boot .fs { fill: var(--ls); } #boot .fd { fill: var(--ld); }
#boot .hs { stroke: var(--ld); stroke-width: 1; }
/* the look's moving backdrop waits behind the watch, then comes up as the watch fades */
#skinBg { transition: opacity .4s ease-out; }
html.booting #skinBg { opacity: 0; }

/* ================= looks added 19 Nov =================
   Each look comes in two: blue and gold. The picker shows the look's name with a blue
   square and a gold square beside it. Keys: atelier (gold, as before) + atelierb (blue); «لوم» (lume, lumeg) was removed on 20 Nov 2026 (Mohammed);
   skel (gold, the colours of the atelier) + skelb (blue). */

/* ---- الأتيليه الأزرق: the same polished metal in navy, framed in rose gold ----
   20 Nov 2026 (Mohammed): the sky-blue (mint) accent went; the blue of both «الأتيليه» and «سكيليتون» is now the blue of the
   calendar looks (cald, calr): the same navy ground and the same rose gold. */
html[data-skin="atelierb"] { --ground: #050917; --deep: #060B1C; --surface: #0D1730; --raised: #152445; --line: #22335A; --line2: #33487A; --text: #F4EEDF; --muted: #9AA5BE; --soft: #C9D0E0; --brass: #E0AE84; --brass2: #F3D2B3; --onbrass: #1B120A;
  background: radial-gradient(120% 70% at 50% 0%, #0F1E45 0%, #050917 62%) fixed #050917; }
html[data-skin="atelierb"] .card, html[data-skin="atelierb"] .house, html[data-skin="atelierb"] .kpi {
  background: repeating-linear-gradient(90deg, rgba(255,255,255,.03) 0 1px, transparent 1px 3px) padding-box, linear-gradient(160deg, #182A52 0%, #0A1330 46%, #142248 100%) padding-box, conic-gradient(from 210deg, #7A5638, #F3D2B3, #A87A54, #152445, #A9BDE8, #33487A, #7A5638) border-box;
  box-shadow: 0 1px 0 #7A5638, 0 2px 0 #5E422B, 0 3px 0 #432F1F, 0 16px 24px -12px rgba(0,0,0,.85), inset 0 1px 0 rgba(255,255,255,.12); }
html[data-skin="atelierb"] .tabs { background: linear-gradient(#142248, #070D20); border-top-color: #33487A; }
html[data-skin="atelierb"] .tabs button.on::before { background: linear-gradient(90deg, #A87A54, #FFF0E0, #A87A54); }
html[data-skin="atelierb"] .pricebar .price, html[data-skin="atelierb"] .kpi.gold b { background: linear-gradient(100deg, #E0AE84, #FFF0E0 40%, #EBC29E 70%, #C08A5E); -webkit-background-clip: text; background-clip: text; }
html[data-skin="atelierb"] .pricebar { background: linear-gradient(160deg, rgba(24,42,82,.92), rgba(7,13,32,.92)) padding-box, conic-gradient(from 210deg, #7A5638, #F3D2B3, #A87A54, #152445, #A9BDE8, #33487A, #7A5638) border-box; }
html[data-skin="atelierb"] .modalbox { background: linear-gradient(160deg, #182A52, #0A1330 46%, #142248) padding-box, conic-gradient(from 210deg, #7A5638, #F3D2B3, #A87A54, #152445, #A9BDE8, #33487A, #7A5638) border-box; }
html[data-skin="atelierb"] #live .pricebar .price, html[data-skin="atelierb"] #oCast .pricebar .price { color: #F3D2B3; -webkit-text-fill-color: #F3D2B3; }

/* ---- سكيليتون: the movement laid open behind the pages; plates held by small screws, like a watch's bridges ---- */
html[data-skin^="skel"] { --ground: #0A0B0D; --deep: #0D0F11; --surface: #1A1D21; --raised: #24282D; --line: #33383E; --line2: #4A4F55; --brass: #D9B56B; --brass2: #F6E7B8;
  background: radial-gradient(120% 80% at 50% 10%, #1C2024 0%, #0A0B0D 66%) fixed #0A0B0D; }
html[data-skin="skelb"] { --ground: #050917; --deep: #060B1C; --surface: #0D1730; --raised: #152445; --line: #22335A; --line2: #33487A; --text: #F4EEDF; --muted: #9AA5BE; --soft: #C9D0E0; --brass: #E0AE84; --brass2: #F3D2B3; --onbrass: #1B120A;
  background: radial-gradient(120% 80% at 50% 10%, #0F1E45 0%, #050917 64%) fixed #050917; }
/* the drawing behind the pages (movArt in app.js): the works in fine line, and the oscillating weight swinging over them */
html[data-skin^="skel"] #skinBg .sk-mov { --w: min(100vw, 520px); --d: calc(var(--w) * 1.56); left: 50%; top: calc(var(--w) * -.1); width: var(--d); height: var(--d); margin-left: calc(var(--d) / -2); opacity: .66; }
#skinBg .sk-mov text { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif; fill: var(--brass2); text-anchor: middle; dominant-baseline: central; }
#skinBg .sk-mov .m1 { fill: none; stroke: color-mix(in srgb, var(--brass) 62%, transparent); stroke-width: .34; stroke-linejoin: round; }
#skinBg .sk-mov .m2 { fill: none; stroke: color-mix(in srgb, var(--brass) 30%, transparent); stroke-width: .26; }
#skinBg .sk-mov .m3 { fill: none; stroke: color-mix(in srgb, var(--brass) 14%, transparent); stroke-width: .22; }
#skinBg .sk-mov .mb { fill: none; stroke: var(--brass2); stroke-width: .5; stroke-linejoin: round; }
#skinBg .sk-mov .mh { fill: none; stroke: var(--brass2); stroke-width: .26; }
#skinBg .sk-mov .mp { stroke: color-mix(in srgb, var(--brass) 50%, transparent); stroke-width: .4; }
#skinBg .sk-mov .mrw { stroke: var(--brass2); stroke-width: .6; }
#skinBg .sk-mov .mra { fill: color-mix(in srgb, var(--ground) 50%, transparent); stroke: color-mix(in srgb, var(--brass) 62%, transparent); stroke-width: .34; stroke-linejoin: round; }
#skinBg .sk-mov .mg { fill: color-mix(in srgb, var(--ground) 35%, transparent); }
#skinBg .sk-mov .mf { fill: var(--brass2); }
#skinBg .sk-mov .mj { fill: #E5484D; fill-opacity: .8; }
/* 23 Nov (Mohammed picked «ميزان حي وتكة»): the balance and its spring swing on a layer of their own over the drawing (app.js
   movArt draws them there), so the drawing is not redrawn as they swing; the rest moves one tick a second */
#skinBg .skx { position: absolute; pointer-events: none; }
#skinBg .skx svg { left: 23.267%; top: 6.436%; width: 19.802%; height: 19.802%; opacity: .6; will-change: transform; }
#skinBg .skx .balx { animation: skBal 1s ease-in-out infinite alternate; }
#skinBg .skx .hsx { animation: skSpring 1s ease-in-out infinite alternate; }
@keyframes skBal { from { transform: rotate(-118deg); } to { transform: rotate(118deg); } }
@keyframes skSpring { from { transform: rotate(-118deg) scale(1.07); } to { transform: rotate(118deg) scale(.93); } }
html[data-skin^="skel"] .card, html[data-skin^="skel"] .house, html[data-skin^="skel"] .kpi {
  border-radius: 8px 22px; border: 1px solid color-mix(in srgb, var(--brass) 34%, var(--line));
  background:
    radial-gradient(circle at 12px 12px, var(--brass2) 0 1.4px, var(--brass) 1.8px, color-mix(in srgb, var(--brass) 40%, transparent) 2.6px, transparent 3.2px),
    radial-gradient(circle at calc(100% - 12px) calc(100% - 12px), var(--brass2) 0 1.4px, var(--brass) 1.8px, color-mix(in srgb, var(--brass) 40%, transparent) 2.6px, transparent 3.2px),
    linear-gradient(160deg, color-mix(in srgb, var(--raised) 86%, transparent), color-mix(in srgb, var(--surface) 78%, transparent));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 0 0 0 1px rgba(0,0,0,.35), 0 16px 28px -18px rgba(0,0,0,.95); }
html[data-skin^="skel"] .btn.gold { background: linear-gradient(180deg, color-mix(in srgb, var(--brass2) 80%, #fff), var(--brass) 50%, color-mix(in srgb, var(--brass) 70%, #000)); border-color: color-mix(in srgb, var(--brass) 70%, #000); box-shadow: inset 0 1px 0 rgba(255,255,255,.6), 0 6px 12px -6px rgba(0,0,0,.8); }
html[data-skin^="skel"] .tabs { background: color-mix(in srgb, var(--deep) 92%, transparent); border-top: 1px solid color-mix(in srgb, var(--brass) 30%, var(--line)); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
html[data-skin^="skel"] .tabs button.on { position: relative; }
/* the open tab carries a jewel, like the ruby on a bridge */
html[data-skin^="skel"] .tabs button.on::before { content: ''; position: absolute; top: 5px; left: 50%; width: 8px; height: 8px; margin-left: -4px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #fff 0 .8px, var(--brass2) 1.6px, var(--brass) 3px, color-mix(in srgb, var(--brass) 55%, #000) 100%); box-shadow: 0 0 0 1.5px color-mix(in srgb, var(--brass) 45%, transparent); }
html[data-skin^="skel"] .modalbox { border-radius: 10px 26px; border-color: color-mix(in srgb, var(--brass) 34%, var(--line)); }
html[data-skin^="skel"] .pricebar { border-radius: 8px 22px; border-color: color-mix(in srgb, var(--brass) 34%, var(--line)); }
/* the look picker: a square for each version beside the look's name */
.skpick { align-items: center; gap: 12px; flex-wrap: nowrap; }
.skqs { flex: none; gap: 10px; align-items: flex-start; }
.skq { display: flex; flex-direction: column; align-items: center; gap: 5px; min-width: 50px; padding: 0; border: 0; background: none; color: var(--muted); font-size: 12.5px; touch-action: manipulation; }
.skq i { position: relative; width: 46px; height: 46px; border-radius: 12px; background: var(--sw); box-shadow: inset 0 0 0 2px var(--ac), 0 0 0 1px var(--line2); transition: transform .12s cubic-bezier(.25, .46, .45, .94); }
.skq:active i { transform: scale(.93); }
.skq.on i { box-shadow: inset 0 0 0 2px var(--ac), 0 0 0 2px var(--ground), 0 0 0 4px var(--ac); }
.skq.on i::after { content: ''; position: absolute; left: 50%; top: 50%; width: 9px; height: 15px; margin: -10px 0 0 -5px; border: solid var(--ac); border-width: 0 3px 3px 0; transform: rotate(45deg); }
.skq.on span { color: var(--text); font-weight: 700; }

/* ---- the small loading watch (app.js MW) wherever something is on its way ---- */
.mw { display: inline-block; flex: none; overflow: visible; vertical-align: -0.18em; }
.mw.s { width: 1.15em; height: 1.15em; margin-inline-end: 6px; }
.mw.m { display: block; width: 56px; height: 56px; margin: 0 auto 8px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.45)); }
.mw .k1, .mw .k2, .mw .k3 { fill: none; }
.mw .k1 { stroke: var(--brass); } .mw .k2 { stroke: var(--brass2); } .mw .k3 { stroke: color-mix(in srgb, var(--brass) 45%, var(--surface)); } .mw .kf { fill: var(--brass2); }
.btn .mw.s { margin-inline-end: 7px; }
.banner .mw.s, .conn .mw.s { width: 18px; height: 18px; margin-inline-end: 8px; }
.novideo .mw.m { width: 64px; height: 64px; margin-bottom: 10px; }
.conn .mw .k1, .conn .mw .k2 { stroke: #17110A; } .conn .mw .kf { fill: #17110A; }

/* ---- the levels box (picked 19 Nov): a ladder, the top level first, joined by a line; the bidder's own step lights up
   with what is left to the next. The team and support: three tiles a row, each badge with its job under it. ---- */
#levelsCard .lvl { list-style: none; margin: 2px 0 0; padding: 0; position: relative; display: flex; flex-direction: column; gap: 14px; }
#levelsCard .lvl::before { content: ''; position: absolute; top: 14px; bottom: 14px; right: 9px; width: 2px; border-radius: 2px; background: linear-gradient(var(--brass), var(--line2)); }
#levelsCard .lvs { position: relative; display: grid; grid-template-columns: 20px auto 1fr; align-items: center; column-gap: 12px; min-height: 40px; }
#levelsCard .lvd { width: 12px; height: 12px; margin-inline: 4px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line2); z-index: 1; }
#levelsCard .lvs > .lvn { color: var(--soft); font-size: 13.5px; text-align: end; }
#levelsCard .lvme { display: none; grid-column: 2 / -1; color: var(--brass2); font-size: 13px; font-weight: 700; }
#levelsCard .lvs.me { padding: 8px 0; }
#levelsCard .lvs.me::after { content: ''; position: absolute; inset: 0 -8px; border-radius: 14px; background: color-mix(in srgb, var(--brass) 10%, transparent); border: 1px solid color-mix(in srgb, var(--brass) 45%, transparent); }
#levelsCard .lvs.me > * { position: relative; z-index: 1; }
#levelsCard .lvs.me .lvd { background: var(--brass); border-color: var(--brass2); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brass) 25%, transparent); }
#levelsCard .lvs.me .lvme { display: block; }
#levelsCard .lvh { margin: 10px 0 0; font-size: 16px; color: var(--brass2); }
#levelsCard .lvg3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
/* 19 Nov (Mohammed picked «2»): the support row is two tiles, then the last one wide, so every badge keeps its full name
   on one line; the team row stays three */
#levelsCard .lvg3.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
#levelsCard .lvg3.two > :last-child:nth-child(odd) { grid-column: 1 / -1; }
#levelsCard .lvc { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; padding: 12px 2px 10px; border-radius: 14px; background: var(--raised); border: 1px solid var(--line); text-align: center; }
#levelsCard .lvc .nick { max-width: 100%; font-size: 10px; white-space: normal; justify-content: center; text-align: center; line-height: 1.4; border-radius: 14px; }
#levelsCard .lvc .lvn { color: var(--soft); font-size: 12px; line-height: 1.5; }

/* ================= the calendar looks: أقراص التقويم (cald), الرجعي (calr), التقويم الدائم (calp) =================
   20 Nov: Mohammed picked these three from the trial page, each in blue (rose gold on navy) and in gold (gold on black).
   One family: the same plates, windows and tab bar; only the moving drawing behind the pages differs. */
html[data-skin^="cal"] { --ground: #050917; --deep: #060B1C; --surface: #0D1730; --raised: #152445; --line: #22335A; --line2: #33487A; --text: #F4EEDF; --muted: #9AA5BE; --soft: #C9D0E0;
  --brass: #E0AE84; --brass2: #F3D2B3; --onbrass: #1B120A; --cal-win: #F1E9D8; --cal-ink: #13203F; --cal-red: #E5564A; --cal-a: 224,174,132; --cal-card: 13,23,48; --cal-frame: 5,9,23;
  background: radial-gradient(120% 62% at 50% 0%, #0F1E45 0%, #050917 64%) fixed #050917; }
html[data-skin="caldg"], html[data-skin="calrg"], html[data-skin="calpg"] { --ground: #070605; --deep: #0A0806; --surface: #17130C; --raised: #231D12; --line: #352B19; --line2: #4D3F23; --text: #F6F0E2; --muted: #A9A18F; --soft: #D2C9B5;
  --brass: #D9B56B; --brass2: #F2DBA2; --onbrass: #1A1307; --cal-win: #F3ECDC; --cal-ink: #1A1408; --cal-red: #E0553B; --cal-a: 217,181,107; --cal-card: 26,21,12; --cal-frame: 7,6,5;
  background: radial-gradient(120% 62% at 50% 0%, #2B2211 0%, #070605 64%) fixed #070605; }
/* plates: a window cut in the dial — a thin metal rim, a dark step, then a hairline */
html[data-skin^="cal"] .card, html[data-skin^="cal"] .house, html[data-skin^="cal"] .kpi { border-radius: 12px; border-color: rgba(var(--cal-a), .34); background: linear-gradient(180deg, rgba(var(--cal-card), .8), rgba(var(--cal-frame), .86));
  box-shadow: inset 0 0 0 3px rgba(var(--cal-frame), .7), inset 0 0 0 4px rgba(var(--cal-a), .14), 0 18px 30px -20px #000; }
html[data-skin^="cal"] .lotrow { border-radius: 8px; background: rgba(var(--cal-frame), .55); border-color: rgba(var(--cal-a), .2); }
html[data-skin^="cal"] .btn { border-radius: 12px; border-color: rgba(var(--cal-a), .4); }
html[data-skin^="cal"] .btn.sm, html[data-skin^="cal"] .btn.xs { border-radius: 9px; }
html[data-skin^="cal"] .btn.gold { background: linear-gradient(180deg, color-mix(in srgb, var(--brass2) 78%, #fff) 0%, var(--brass) 52%, color-mix(in srgb, var(--brass) 76%, #000) 100%); border-color: var(--brass2); color: var(--onbrass);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), 0 10px 18px -10px rgba(var(--cal-a), .8); }
/* chips: the day and month windows — a cream disc showing through, dark print, red for what is on now */
html[data-skin^="cal"] .chip { border-radius: 5px; background: var(--cal-win); color: var(--cal-ink); font-weight: 700; box-shadow: inset 0 1px 2px rgba(0, 0, 0, .5), 0 0 0 1px rgba(var(--cal-a), .8); }
html[data-skin^="cal"] .chip.live { background: var(--cal-win); color: var(--cal-red); }
html[data-skin^="cal"] .chip.live .dot { background: var(--cal-red); }
html[data-skin^="cal"] .chip.ok { background: var(--cal-win); color: #0C6B3C; }
html[data-skin^="cal"] .chip.wait, html[data-skin^="cal"] .chip.low { background: var(--cal-win); color: #8A4310; }
html[data-skin^="cal"] .chip.low.bad { color: #B3261E; }
html[data-skin^="cal"] .chip.dark, html[data-skin^="cal"] #live .lvhead .chip.lvview { background: rgba(var(--cal-frame), .82); color: #fff; box-shadow: none; border: 1px solid rgba(var(--cal-a), .5); }
html[data-skin^="cal"] #live .lvhead .chip.lvhd[aria-pressed="true"] { background: var(--brass); border-color: var(--brass); color: var(--onbrass); }
html[data-skin^="cal"] .pricebar, html[data-skin^="cal"] #live .pricebar { border-radius: 12px; border-color: rgba(var(--cal-a), .5); box-shadow: inset 0 0 0 3px rgba(var(--cal-frame), .5), inset 0 0 0 4px rgba(var(--cal-a), .16); }
html[data-skin^="cal"] .pricebar { background: rgba(var(--cal-frame), .72); }
/* tabs: the date track, a red pointer on the open one */
html[data-skin^="cal"] .tabs { background-color: var(--deep); border-top: 0; background-image: repeating-linear-gradient(90deg, rgba(var(--cal-a), .7) 0 1px, transparent 1px 10px); background-size: 100% 6px; background-repeat: no-repeat; }
html[data-skin^="cal"] .tabs button { position: relative; }
html[data-skin^="cal"] .tabs button.on::before { content: ''; position: absolute; top: 0; left: 50%; margin-left: -6px; border: 6px solid transparent; border-top: 8px solid var(--cal-red); }
html[data-skin^="cal"] .modalbox, html[data-skin^="cal"] .sheet { border-radius: 14px; border-color: rgba(var(--cal-a), .4); }
html[data-skin^="cal"] input.in, html[data-skin^="cal"] select.in, html[data-skin^="cal"] textarea.in { border-radius: 9px; }
/* the drawing behind the pages */
html[data-skin^="cal"] #skinBg { --w: min(100vw, 520px); }
#skinBg .sk-cal { left: 50%; transform: translateX(-50%); }
#skinBg .sk-cal text { font-family: 'Readex Pro', 'IBM Plex Sans Arabic', Tahoma, sans-serif; fill: var(--text); text-anchor: middle; dominant-baseline: central; }
#skinBg .sk-cal .cl1 { fill: none; stroke: rgba(var(--cal-a), .6); stroke-width: .32; }
#skinBg .sk-cal .cl2 { fill: none; stroke: rgba(var(--cal-a), .26); stroke-width: .24; }
#skinBg .sk-cal .cl3 { fill: none; stroke: rgba(var(--cal-a), .13); stroke-width: .22; }
#skinBg .sk-cal .ct1 { stroke: rgba(var(--cal-a), .75); stroke-width: .34; }
#skinBg .sk-cal .ct2 { stroke: rgba(var(--cal-a), .4); stroke-width: .22; }
#skinBg .sk-cal .cb1 { fill-opacity: .74; font-weight: 400; }
#skinBg .sk-cal .cb2 { fill: var(--brass2); fill-opacity: .8; font-weight: 300; }
#skinBg .sk-cal .cdot { fill: rgba(var(--cal-a), .7); }
#skinBg .sk-cal .cap { fill: none; stroke: var(--brass2); stroke-width: .38; }
#skinBg .sk-cal .crd { fill: var(--cal-red); }
#skinBg .sk-cal .crl { fill: none; stroke: var(--cal-red); stroke-width: .5; }
#skinBg .sk-cal .chd { fill: var(--brass2); }
#skinBg .sk-cal .chl { fill: none; stroke: var(--brass2); stroke-width: .5; stroke-linejoin: round; }
#skinBg .sk-cal .chub { fill: rgb(var(--cal-frame)); }
#skinBg .cd-top { width: calc(var(--w) * 2.15); height: calc(var(--w) * 2.15); top: calc(var(--w) * -1.505); opacity: .74; }
#skinBg .cd-bot { width: calc(var(--w) * 2.15); height: calc(var(--w) * 2.15); top: calc(100% - var(--w) * .62); opacity: .66; }
#skinBg .cr-top { width: calc(var(--w) * 2.09); aspect-ratio: 2 / 1; top: calc(var(--w) * -.345); opacity: .8; }
#skinBg .cr-bot { width: calc(var(--w) * 2.09); aspect-ratio: 2 / 1; bottom: calc(var(--w) * -.2); opacity: .7; }
#skinBg .sk-sheen { position: absolute; left: 50%; top: calc(var(--w) * -.204); width: 300vmax; height: 300vmax; margin: -150vmax 0 0 -150vmax;
  background: conic-gradient(from 0deg, transparent 0 166deg, rgba(var(--cal-a), .13) 180deg, transparent 194deg 360deg); animation: calSheen 17s ease-in-out infinite alternate; }
@keyframes calSheen { from { transform: rotate(-44deg); } to { transform: rotate(44deg); } }
#skinBg .cp-dial { width: calc(var(--w) * 1.5); height: calc(var(--w) * 1.5); top: calc(var(--w) * -.1); opacity: .62; }

/* ================= waiting, 21 Nov (Mohammed picked these from the loading trial page) =================
   «الرجعي» pull to refresh (drawn on #ptrCv by pullToRefresh in app.js), «الغالق» for photos, «العجلة» for lists. */
#ptrCv { position: fixed; inset: 0 0 auto 0; width: 100%; height: 180px; z-index: 30; pointer-events: none; display: none; }
/* a photo on its way waits behind the closed shutter (24 Nov, Mohammed: «تطلع جزء منها وبعدها ترد كاملها وتفتح»):
   eight gunmetal blades with the look's metal in their seams, breathing, as on the trial page he picked it from. The
   photo itself is kept out of the frame (object-position) until it has fully arrived, so no half-drawn photo ever shows
   through; the old shutter was see-through and the top of a photo still arriving showed in it */
img.pl:not(.ok), img.pl[src^="data:image/gif"] {
  object-position: -9999px -9999px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-50 -50 100 100' preserveAspectRatio='xMidYMid slice'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='1' y2='1'%3E%3Cstop offset='0' stop-color='%233A4250'/%3E%3Cstop offset='.5' stop-color='%2312161D'/%3E%3Cstop offset='1' stop-color='%232A313C'/%3E%3C/linearGradient%3E%3Cpath id='b' d='M0 3L-34 -73L34 -73Z'%3E%3CanimateTransform attributeName='transform' type='rotate' values='0 -34 -73;-7 -34 -73;0 -34 -73' keyTimes='0;.5;1' calcMode='spline' keySplines='.45 0 .55 1;.45 0 .55 1' dur='1.6s' repeatCount='indefinite'/%3E%3C/path%3E%3Cmask id='m' maskUnits='userSpaceOnUse' x='-80' y='-80' width='160' height='160'%3E%3Crect x='-80' y='-80' width='160' height='160' fill='%23fff'/%3E%3Cg fill='none' stroke='%23000' stroke-width='.7' stroke-linejoin='round'%3E%3Cuse href='%23b'/%3E%3Cuse href='%23b' transform='rotate(45)'/%3E%3Cuse href='%23b' transform='rotate(90)'/%3E%3Cuse href='%23b' transform='rotate(135)'/%3E%3Cuse href='%23b' transform='rotate(180)'/%3E%3Cuse href='%23b' transform='rotate(225)'/%3E%3Cuse href='%23b' transform='rotate(270)'/%3E%3Cuse href='%23b' transform='rotate(315)'/%3E%3C/g%3E%3C/mask%3E%3C/defs%3E%3Cg mask='url(%23m)' fill='url(%23g)'%3E%3Cuse href='%23b'/%3E%3Cuse href='%23b' transform='rotate(45)'/%3E%3Cuse href='%23b' transform='rotate(90)'/%3E%3Cuse href='%23b' transform='rotate(135)'/%3E%3Cuse href='%23b' transform='rotate(180)'/%3E%3Cuse href='%23b' transform='rotate(225)'/%3E%3Cuse href='%23b' transform='rotate(270)'/%3E%3Cuse href='%23b' transform='rotate(315)'/%3E%3C/g%3E%3C/svg%3E") center / cover no-repeat var(--brass); }
/* the photo has arrived: the very same closed shutter lies over it (irisOpen in app.js lays .irisov), so nothing
   changes on screen, and once the photo is decoded and ready the eight blades swing open over it, once */
.irisov { position: absolute; z-index: 2; overflow: hidden; pointer-events: none; }
.irisov svg, .irisov i { position: absolute; inset: 0; width: 100%; height: 100%; }
.irisov path { transform-origin: -34px -73px; transform: rotate(-3.5deg); }
.irisov .f { fill: url(#irisG); }
.irisov .o { fill: none; stroke: var(--brass); stroke-width: .7; stroke-linejoin: round; }
.irisov.go path { animation: irisOpen .95s cubic-bezier(.6, 0, .15, 1) both; animation-delay: calc(var(--i) * 35ms); }
@keyframes irisOpen { 0% { transform: rotate(-3.5deg); opacity: 1; } 75% { opacity: 1; } 100% { transform: rotate(-84deg); opacity: 0; } }
.irisov i { opacity: 0; background: radial-gradient(circle, rgba(255, 255, 255, .5), transparent 62%); }
.irisov.go i { animation: irisFlash 1.1s ease-out both; }
@keyframes irisFlash { 0%, 35% { opacity: 0; } 55% { opacity: 1; } 100% { opacity: 0; } }
/* a list on its way: three blank rows whose lines run past like a date disc turning, under a red index line */
.wl { display: flex; flex-direction: column; gap: 8px; }
.wlr { position: relative; overflow: hidden; display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 12px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--brass) 22%, var(--line)); background: linear-gradient(160deg, var(--raised), var(--surface)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07); }
.wlr::before { content: ''; position: absolute; inset: 50% 0 auto 0; height: 1px; background: linear-gradient(90deg, transparent, var(--red, #E5564A), transparent); opacity: .7; }
.wl i { display: block; flex-shrink: 0; height: 10px; border-radius: 6px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 2px 3px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .07); }
.wlt { width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: rgba(0, 0, 0, .35); box-shadow: inset 0 2px 4px rgba(0, 0, 0, .7), 0 1px 0 rgba(255, 255, 255, .07); }
.wle { width: 56px; }
.wlb { flex: 1; height: 60px; overflow: hidden; -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent); }
.wlb > span { display: flex; flex-direction: column; gap: 14px; padding-top: 6px; filter: blur(.7px); animation: wlReel .42s linear infinite; animation-delay: calc(var(--n) * -130ms); }
.wlb i:nth-child(even) { width: 60%; }
@keyframes wlReel { to { transform: translateY(-48px); } }
.feed.wlin > * { animation: wlDrop .7s cubic-bezier(.2, 1.5, .35, 1) both; }
.feed.wlin > :nth-child(2) { animation-delay: .07s; } .feed.wlin > :nth-child(3) { animation-delay: .14s; } .feed.wlin > :nth-child(4) { animation-delay: .21s; } .feed.wlin > :nth-child(n+5) { animation-delay: .28s; }
@keyframes wlDrop { from { transform: translateY(-34px); opacity: 0; } to { transform: none; opacity: 1; } }
html.lowfx .wlb > span, html.lowfx .feed.wlin > * { animation: none; }
/* (23 Nov) the backdrop stands still inside the live, the broadcast screen and the control desk, and on a phone that cannot keep up */
html.bgstill #skinBg, html.bgstill #skinBg * { animation-play-state: paused !important; }

/* ---------- 24 Nov (v100): «ملاحظات واقتراحات» — the user's box in his settings, the platform owner's inbox in «الحسابات» ---------- */
textarea.in.fbtext { height: auto; min-height: 112px; padding: 12px 14px; line-height: 1.7; resize: vertical; font: inherit; }
.fbthumb img, .fbshot img { display: block; width: 72px; height: 72px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line2); background: var(--deep); }
.fbshot { display: inline-block; align-self: flex-start; }
.fbm, .fbitem { display: flex; flex-direction: column; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--deep); min-width: 0; }
.fbm.fresh, .fbitem.fresh { border-color: var(--brass); }
.fbbody { margin: 0; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.fbdev { margin: 0; font-size: 12.5px; }
.fbkind, .fbst { display: inline-flex; align-items: center; min-height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.fbkind { background: var(--raised); color: var(--soft); border: 1px solid var(--line2); }
.fbkind.idea { color: var(--brass2); }
.fbkind.bug { color: var(--orange2); }
.fbst.new { background: #2A1B10; color: var(--orange2); }
.fbst.study { background: #2A2412; color: var(--brass2); }
.fbst.done { background: var(--greenbg); color: var(--green2); }
.fbst.closed { background: var(--raised); color: var(--muted); }
.fbreply { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; border-radius: 12px; background: var(--surface); border-inline-start: 3px solid var(--brass); }
.fbreply b { font-size: 13px; color: var(--brass2); }
.fbreply p { margin: 0; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; }
.fbacts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.fbacts .btn, .fbform .btn { height: 40px; font-size: 14px; }
.fbacts .btn { padding: 0 4px; font-size: 13.5px; }
.fbacts .btn[aria-pressed="true"] { border-color: var(--brass); color: var(--brass2); }
.fbform, .fbquick { display: flex; flex-direction: column; gap: 6px; }
.fbquick .btn.xs { height: auto; min-height: 34px; padding: 6px 10px; white-space: normal; justify-content: flex-start; text-align: start; line-height: 1.5; font-weight: 600; }
.durs.fbchips { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.durs.fbchips button { min-width: 0; height: 38px; padding: 0 6px; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#fbFs.durs.fbchips { grid-template-columns: repeat(6, minmax(0, 1fr)); }
#fbFs button { grid-column: span 2; }
#fbFs button:nth-child(n+4) { grid-column: span 3; }
@media (min-width: 560px) {
  #fbFs.durs.fbchips { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  #fbFs button, #fbFs button:nth-child(n+4) { grid-column: auto; }
}
.durs.uview.five { display: flex; flex-wrap: nowrap; }
.durs.uview.five button { flex: 1 1 auto; min-width: 0; padding: 0 5px; font-size: 12.5px; }
.tabdot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--orange); margin-inline-start: 4px; vertical-align: middle; }

/* v103 (25 Nov): last appearance under a name (the platform owner and his deputy only), and the login log table in the
   account sheet («الحسابات» ← the account ← «سجل الدخول») */
.seenl { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }
.seenl::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--line2); flex: none; }
.seenl.on { color: var(--green2); } .seenl.on::before { background: var(--green); }
.seenl.cold { color: var(--orange2); } .seenl.cold::before { background: var(--orange); }
#acLog { gap: 6px; }
#acLog .tblwrap { overflow: auto; max-height: 50vh; border: 1px solid var(--line); border-radius: 12px; }
table.oplog { width: 100%; border-collapse: collapse; font-size: 13px; }
table.oplog th, table.oplog td { text-align: start; padding: 7px 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
table.oplog tr:last-child td { border-bottom: 0; }
table.oplog th { color: var(--muted); font-weight: 600; font-size: 12px; position: sticky; top: 0; background: var(--surface); }
.pwtag { font-size: 11px; padding: 1px 6px; border-radius: 6px; background: color-mix(in srgb, var(--brass) 16%, transparent); color: var(--brass2); }
.acicons button[aria-pressed="true"] { border-color: var(--brass); color: var(--brass2); }

/* v104 (25 Nov): the error log (the platform owner, his deputy, and a programmer with the permission), and each
   programmer's permissions in «الحسابات» ← «المبرمجين» */
.erritem { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--deep); min-width: 0; }
.erritem b { color: var(--orange2); font-size: 14px; overflow-wrap: anywhere; }
.erritem .muted { overflow-wrap: anywhere; }
.devperms { display: flex; flex-direction: column; padding: 0 4px 10px 0; border-bottom: 1px solid var(--line); }
.devperms .setrow:last-of-type { border-bottom: 0; }

/* v104 (25 Nov): the deputy's permissions in the platform owner's settings */
#asDep .depgrp { color: var(--brass2); padding-top: 10px; }
.deplock { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--red, #E5484D) 8%, transparent); border: 1px solid color-mix(in srgb, var(--red, #E5484D) 35%, transparent); }
.deplock b { color: #FF9A9D; font-size: 14px; }

/* v105 (25 Nov): the support contacts under the login page and in every account's settings, the platform owner's
   banned words of the comments, and a bidder deleting his own account */
.supbar { display: flex; flex-direction: column; gap: 8px; }
.supbar > span { text-align: center; }
#supBox { gap: 8px; }
.wordchips { display: flex; flex-wrap: wrap; gap: 6px; }
.wordchip { display: inline-flex; align-items: center; gap: 2px; font-size: 14px; padding: 2px 4px 2px 12px; border-radius: 999px; background: var(--deep); border: 1px solid var(--line2); max-width: 100%; }
.wordchip > span { overflow-wrap: anywhere; }
.wordchip button { background: none; border: 0; color: var(--muted); font: inherit; font-size: 18px; line-height: 1; padding: 4px 8px; cursor: pointer; }
.delme { border-top: 1px solid var(--line); padding-top: 10px; gap: 8px; }
