/* Doolaby styles. Branding after Oli's design: near-black ink, chalk white, lime and hot pink,
   Unbounded for headings and Readex Pro (which also covers Arabic) for everything else. */
:root {
  --brand: #c6f432; /* lime: a fill with black text on it, never text on a light background */
  --brand-600: #111111; /* accents that are text use ink */
  --brand-50: #f2fbd6;
  --brand-100: #e2f7a3;
  --pink: #ff4fa3;
  --pink-50: #ffe3f0;
  --ink: #111111;
  --ink-2: #3a3a36;
  --muted: #66665f;
  --faint: #9a9a92;
  --line: #deded6;
  --line-2: #ebebe4;
  --bg: #f5f5f0;
  --card: #ffffff;
  --sand: #ecece5;
  --sand-2: #e0e0d8;
  --ok: #2f8a57;
  --ok-50: #e6f3eb;
  --warn: #a86b12;
  --warn-50: #fcf2df;
  --bad: #c0392f;
  --bad-50: #fbeae8;
  --info: #2c67a8;
  --info-50: #e8f0fa;
  --r-sm: 10px;
  --r: 16px;
  --r-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(17, 17, 17, .08);
  --shadow: 0 6px 24px rgba(17, 17, 17, .10);
  --shadow-lg: 0 18px 48px rgba(17, 17, 17, .20);
  --font: 'Readex Pro', 'Segoe UI', Tahoma, Arial, sans-serif;
  --display: 'Unbounded', 'Arial Black', Impact, sans-serif;
  --wrap: 1240px;
  --header: 64px;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1, h2 { font-family: var(--display); letter-spacing: -.01em; }
h1 { font-size: 26px; font-weight: 800; }
h2 { font-size: 20px; font-weight: 800; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.strong { font-weight: 700; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.hidden { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }
.row { display: flex; align-items: center; gap: 8px; }
.row.between { justify-content: space-between; }
.row.wrap-row { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack.lg { gap: 20px; }
.grow { flex: 1; min-width: 0; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.link { color: var(--ink); font-weight: 700; text-decoration: underline; text-decoration-color: var(--pink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.link:hover { text-decoration-color: var(--ink); }
.divider { height: 1px; background: var(--line); margin: 4px 0; }
.icon { display: inline-block; flex: none; vertical-align: middle; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(17, 17, 17, .96); color: var(--bg); backdrop-filter: blur(8px); }
.header-bar { height: var(--header); display: flex; align-items: center; gap: 16px; }
.logo { display: inline-flex; align-items: center; flex: none; }
.logo-img { display: block; height: 46px; width: auto; max-width: 100%; }
.site-footer .logo-img { height: 46px; }
.auth-wrap .logo-img { height: 52px; }
.label-sheet .logo-img { height: 34px; }
@media (max-width: 767px) { .site-header .logo-img { height: 34px; } }
.wordmark { display: inline-flex; align-items: baseline; gap: 8px; white-space: nowrap; }
.wordmark b { font-family: var(--display); font-weight: 900; font-size: 24px; letter-spacing: .01em; text-transform: uppercase; color: var(--ink); }
.wordmark span { font-size: 19px; font-weight: 700; color: var(--ink-2); }
.site-header .wordmark b, .site-footer .wordmark b { color: var(--brand); }
.site-header .wordmark span, .site-footer .wordmark span { color: var(--bg); }
@media (max-width: 767px) { .wordmark b { font-size: 20px; } .wordmark span { font-size: 16px; } }
.search-form { flex: 1; max-width: 620px; position: relative; }
.mobile-search { padding-bottom: 10px; }
.mobile-search .search-form { max-width: none; }
.search-form input {
  width: 100%; height: 42px; border-radius: 999px; border: 2px solid transparent; background: var(--bg); color: var(--ink);
  padding: 0 16px 0 42px; outline: none; transition: border-color .15s, background .15s;
}
.search-form input:focus { border-color: var(--brand); background: #fff; }
.search-form .icon { position: absolute; left: 14px; top: 11px; color: var(--muted); pointer-events: none; }
.header-actions { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.icon-btn {
  position: relative; width: 42px; height: 42px; border-radius: 999px; border: 0; background: transparent;
  display: inline-grid; place-items: center; color: var(--ink-2);
}
.icon-btn:hover { background: var(--sand); color: var(--ink); }
.site-header .icon-btn { color: #e8e8e0; }
.site-header .icon-btn:hover { background: #262626; color: #fff; }
.site-header .btn-ghost { color: #e8e8e0; }
.site-header .btn-ghost:hover:not(:disabled) { background: #262626; color: #fff; }
.site-header .btn-outline { background: transparent; color: var(--bg); border-color: #4a4a4a; }
.site-header .btn-outline:hover:not(:disabled) { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.badge {
  position: absolute; top: 4px; right: 3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--pink); color: var(--ink); font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--ink);
}
.header-auth { display: flex; gap: 8px; align-items: center; }
.menu-wrap { position: relative; }
.menu {
  position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: #fff; border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 6px; z-index: 60;
}
.menu a, .menu button {
  display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border-radius: var(--r-sm); border: 0;
  background: none; text-align: left; font-weight: 500; color: var(--ink-2);
}
.menu a:hover, .menu button:hover { background: var(--sand); color: var(--ink); }
.menu .menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }

.cat-nav { border-top: 1px solid #262626; }
.cat-nav ul { list-style: none; margin: 0; padding: 0; display: flex; gap: 4px; height: 44px; align-items: stretch; overflow-x: auto; scrollbar-width: none; }
.cat-nav ul::-webkit-scrollbar { display: none; }
.cat-nav li { display: flex; }
.cat-nav a { display: flex; align-items: center; padding: 0 12px; color: #c9c9c0; font-weight: 600; font-size: 14px; white-space: nowrap; border-bottom: 2px solid transparent; }
.cat-nav a:hover, .cat-nav a.active { color: #fff; border-bottom-color: var(--brand); }
.cat-nav .spacer { flex: 1; }
.mega {
  position: absolute; left: 0; right: 0; top: 100%; background: #fff; border-bottom: 1px solid var(--line);
  box-shadow: 0 18px 30px rgba(17, 17, 17, .12); z-index: 40; color: var(--ink);
}
.mega-inner { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 24px; padding: 24px 0 28px; }
.mega h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin-bottom: 10px; }
.mega h4 a { color: inherit; }
.mega ul.mega-list { display: block; height: auto; }
.mega ul.mega-list li { display: block; }
.mega ul.mega-list a { display: block; padding: 5px 0; border: 0; font-weight: 500; }
.mega ul.mega-list a:hover { color: var(--ink); text-decoration: underline; text-decoration-color: var(--pink); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 42px; padding: 0 18px;
  border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 14px; white-space: nowrap;
  transition: background .15s, border-color .15s, color .15s, transform .2s ease; user-select: none;
}
.btn:active { transform: scale(.97); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--brand); color: var(--ink); }
.btn-primary:hover:not(:disabled) { background: #d4ff52; transform: scale(1.03); }
.btn-primary .spinner.sm { border-color: rgba(17, 17, 17, .25); border-top-color: var(--ink); }
.btn-dark { background: var(--ink); color: var(--bg); }
.btn-dark:hover:not(:disabled) { background: #2a2a2a; transform: scale(1.03); }
.btn-outline { background: #fff; border-color: var(--ink); color: var(--ink); }
.btn-outline:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.btn-soft { background: var(--brand-50); color: var(--ink); }
.btn-soft:hover:not(:disabled) { background: var(--brand-100); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover:not(:disabled) { background: var(--sand); color: var(--ink); }
.btn-danger { background: #fff; border-color: var(--bad-50); color: var(--bad); }
.btn-danger:hover:not(:disabled) { background: var(--bad-50); }
.btn-ok { background: var(--ok); color: #fff; }
.btn-ok:hover:not(:disabled) { background: #187049; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15px; }
.btn-block { width: 100%; }
.btn .icon { margin-left: -2px; }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-weight: 700; font-size: 14px; }
.field .hint { color: var(--muted); font-size: 13px; }
.field .err { color: var(--bad); font-size: 13px; font-weight: 600; }
.input, .select, .textarea {
  width: 100%; height: 44px; border: 1px solid var(--line); border-radius: var(--r-sm); background: #fff; padding: 0 12px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.textarea { height: auto; min-height: 120px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(198, 244, 50, .55); }
.input.invalid, .select.invalid, .textarea.invalid { border-color: var(--bad); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2366665f' stroke-width='1.8' fill='none' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.input-prefix { position: relative; }
.input-prefix span { position: absolute; left: 12px; top: 0; height: 44px; display: flex; align-items: center; color: var(--muted); font-weight: 600; font-size: 14px; }
.input-prefix .input { padding-left: 52px; }
.grid-2 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 18px; height: 18px; flex: none; }
.option-card {
  display: flex; gap: 12px; align-items: flex-start; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); cursor: pointer; background: #fff;
  transition: border-color .15s, background .15s;
}
.option-card:hover { border-color: var(--faint); }
.option-card.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); }
.option-card input { accent-color: var(--brand); margin-top: 3px; width: 18px; height: 18px; flex: none; }
.option-card.disabled { opacity: .5; cursor: not-allowed; }
.options { display: grid; gap: 10px; }
.toggle { position: relative; width: 46px; height: 26px; flex: none; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; transition: background .15s; cursor: pointer; }
.toggle span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 20px; height: 20px; background: #fff; border-radius: 50%; box-shadow: var(--shadow-sm); transition: transform .15s; }
.toggle input:checked + span { background: var(--brand); }
.toggle input:checked + span::after { transform: translateX(20px); }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  display: inline-flex; align-items: center; gap: 8px; height: 36px; padding: 0 12px 0 6px; border: 1px solid var(--line);
  border-radius: 999px; background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.swatch i { width: 24px; height: 24px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.swatch.selected { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap;
}
.chip:hover { border-color: var(--faint); color: var(--ink); }
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip.soft { background: var(--sand); border-color: transparent; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.chips.scroll::-webkit-scrollbar { display: none; }

/* ---------- Layout ---------- */
main#app { flex: 1; padding-bottom: 48px; }
.page { padding-top: 24px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-head p { margin-top: 6px; }
.section { margin-top: 36px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.card.flat { border: 0; background: var(--sand); }
.card-title { font-size: 16px; font-weight: 800; margin-bottom: 12px; }
.panel-list > * + * { border-top: 1px solid var(--line-2); }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.btn-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.btn-pair .btn { min-width: 0; padding: 0 12px; }
@media (min-width: 960px) { .two-col { grid-template-columns: minmax(0, 1fr) 380px; gap: 32px; } .two-col.wide-side { grid-template-columns: minmax(0, 1fr) 420px; } }
.sticky-side { position: sticky; top: calc(var(--header) + 60px); }

/* ---------- Item cards ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 12px; }
@media (min-width: 640px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 16px; } }
@media (min-width: 960px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1200px) { .grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.grid.cols-4 { }
@media (min-width: 1200px) { .grid.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.item-card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.item-card .seller-line { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); margin-bottom: 6px; min-width: 0; }
.item-card .seller-line span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-photo { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); background: var(--sand-2); }
/* The photo is clipped to the rounded corners, not the whole box, so tags can hang over its edge. */
.item-photo > a { display: block; width: 100%; height: 100%; border-radius: inherit; overflow: hidden; }
.item-photo img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.item-card:hover .item-photo img { transform: scale(1.03); }
.fav-btn {
  position: absolute; right: 8px; bottom: 8px; display: inline-flex; align-items: center; gap: 4px; height: 30px; padding: 0 10px;
  border-radius: 999px; border: 0; background: rgba(255, 255, 255, .94); color: var(--ink-2); font-size: 12px; font-weight: 700; box-shadow: var(--shadow-sm);
}
.fav-btn.on { color: var(--pink); }
.fav-btn:hover { background: #fff; }
.tag {
  display: inline-flex; align-items: center; gap: 4px; height: 24px; padding: 0 9px; border-radius: 999px; font-size: 11px; font-weight: 800;
  letter-spacing: .02em; text-transform: uppercase; background: var(--sand); color: var(--ink-2);
}
.item-photo .tag { position: absolute; left: 8px; top: 8px; }
.tag.bumped { background: var(--brand); color: var(--ink); }
.tag.sold { background: var(--pink); color: var(--ink); }
.tag.reserved { background: var(--warn-50); color: var(--warn); }
.tag.hidden-tag { background: #fff; color: var(--ink-2); }
.item-photo.dim img { opacity: .55; }
.item-info { padding-top: 8px; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.item-info .price { font-weight: 800; font-size: 15px; }
.item-info .buyer-price { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-2); font-weight: 600; }
.item-info .meta { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item-card.selectable { cursor: pointer; }
.item-card.selectable .item-photo { outline: 3px solid transparent; outline-offset: -3px; transition: outline-color .15s; }
.item-card.selectable.selected .item-photo { outline-color: var(--brand); }
.select-mark { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border-radius: 50%; background: rgba(255, 255, 255, .95); border: 2px solid var(--line); display: grid; place-items: center; color: var(--ink); }
.item-card.selected .select-mark { background: var(--brand); border-color: var(--ink); }

.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 12px) / 2.3); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; scrollbar-width: thin; }
.scroller > * { scroll-snap-align: start; }
@media (min-width: 640px) { .scroller { grid-auto-columns: calc((100% - 48px) / 4.3); gap: 16px; } }
@media (min-width: 1200px) { .scroller { grid-auto-columns: calc((100% - 80px) / 6); } }

/* ---------- Avatars and ratings ---------- */
.avatar { border-radius: 50%; overflow: hidden; flex: none; display: inline-grid; place-items: center; font-weight: 800; color: #fff; text-transform: uppercase; background: var(--ink-2); }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.stars { display: inline-flex; align-items: center; gap: 1px; color: #e0a03a; }
.stars .off { color: #dcd6cc; }
.rating-line { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--muted); }

/* ---------- Home: dark banner, ticker, carousels (after Oli's design) ---------- */
.home-hero { background: var(--ink); color: var(--bg); position: relative; overflow: hidden; }
.home-hero > .wrap { position: relative; padding-top: 32px; padding-bottom: 36px; }
.hero-tagline { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-weight: 600; font-size: 15px; color: #e8e8e0; }
.hero-chip { background: var(--pink); color: var(--ink); border-radius: 999px; padding: 7px 14px; font-size: 14px; font-weight: 700; }
.home-hero h1 { font-size: clamp(38px, 13vw, 104px); line-height: 1.02; letter-spacing: -.03em; margin: 18px 0 18px; font-weight: 900; }
.home-hero h1 .line { display: block; white-space: nowrap; }
.home-hero h1 .eyebrow { display: block; font-family: var(--font); font-size: 15px; font-weight: 600; letter-spacing: 0; color: #a8a8a0; margin-bottom: 14px; }
.home-hero h1 em { font-style: normal; color: var(--brand); }
.hero-lede { font-size: 18px; line-height: 1.55; color: #c9c9c0; max-width: 560px; }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.home-hero .btn-outline { background: transparent; color: var(--bg); border-color: #4a4a4a; }
.home-hero .btn-outline:hover:not(:disabled) { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.hero-sticker { position: absolute; right: 48px; top: 318px; width: 176px; height: 176px; border-radius: 50%; background: var(--pink); color: var(--ink); rotate: 8deg; display: none; place-items: center; text-align: center; font-family: var(--display); font-weight: 900; text-transform: uppercase; font-size: 16px; line-height: 1.1; padding: 22px; }
@media (min-width: 1200px) { .hero-sticker { display: grid; } }
.home-hero .carousel { margin-top: 34px; }
.home-hero .carousel-head h2 { font-size: 17px; color: var(--bg); }
.home-hero .carousel-head .muted { color: #a8a8a0; }
.home-hero .carousel-arrows button { background: transparent; border-color: #4a4a4a; color: var(--bg); }
.home-hero .carousel-arrows button:hover:not(:disabled) { background: var(--bg); color: var(--ink); border-color: var(--bg); }
.home-hero .item-card { background: var(--bg); color: var(--ink); }
.home-hero .link { color: var(--bg); }
.home-hero .item-card .seller-line { color: var(--muted); }

.ticker { background: var(--brand); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.ticker-track { display: flex; width: max-content; animation: ticker 40s linear infinite; }
.ticker span { display: inline-flex; align-items: center; gap: 22px; padding: 15px 11px; font-family: var(--display); font-weight: 800; font-size: 17px; text-transform: uppercase; white-space: nowrap; }
.ticker span::after { content: '✦'; color: var(--pink); }
.ticker [lang='ar'] { font-family: var(--font); font-size: 20px; text-transform: none; }
@keyframes ticker { to { transform: translateX(-50%); } }

.carousel { position: relative; }
.carousel-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.carousel-head .muted { margin-top: 4px; }
.carousel-arrows { display: none; gap: 8px; }
@media (min-width: 768px) { .carousel-arrows { display: flex; } }
.carousel-arrows button { width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: #fff; color: var(--ink); display: grid; place-items: center; transition: background .15s, color .15s; }
.carousel-arrows button:hover:not(:disabled) { background: var(--ink); color: var(--bg); }
.carousel-arrows button:disabled { opacity: .3; cursor: default; }
.carousel-track { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; padding: 16px 6px 18px; margin: -16px -6px 0; }
.carousel-track::-webkit-scrollbar { display: none; }
.carousel-track > * { scroll-snap-align: start; }
@media (min-width: 640px) { .carousel-track { grid-auto-columns: calc((100% - 48px) / 4); gap: 16px; } }
@media (min-width: 1100px) { .carousel-track { grid-auto-columns: calc((100% - 80px) / 6); } }
.carousel .item-card { background: #fff; border-radius: var(--r-lg); padding: 10px; border: 2px solid transparent; transition: translate .2s ease, border-color .2s, rotate .2s ease; }
.carousel .item-card:hover { translate: 0 -4px; border-color: var(--ink); }
.carousel .item-photo { border-radius: 14px; }
.carousel-skel { aspect-ratio: 4 / 5.7; border-radius: var(--r-lg); }
/* Cards in the ordinary rows float and wobble, each a little out of step. */
.float { min-width: 0; animation: float 5s ease-in-out infinite; }
.float .item-card { width: 100%; }
@keyframes float { 0%, 100% { translate: 0 0; rotate: -1deg; } 50% { translate: 0 -7px; rotate: 1deg; } }

/* Wardrobe rails (after Oli's design): cards hang from coat hangers on a rail and sway. */
.rail { position: relative; }
.rail-bar { position: absolute; left: 0; right: 0; top: 16px; height: 10px; border-radius: 5px; background: #8c8c85; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .25); z-index: 1; }
.rail .carousel-track { position: relative; z-index: 2; padding-top: 10px; padding-bottom: 22px; }
.hang { display: flex; flex-direction: column; align-items: center; min-width: 0; transform-origin: 50% 10px; animation: swing 3s ease-in-out infinite alternate; }
.hanger { position: relative; z-index: 2; margin-bottom: -14px; flex: none; color: #3a3a36; }
.home-hero .hanger { color: #c9c9c0; }
.hang .item-card { width: 100%; }
.carousel .hang .item-card:hover { translate: 0 -6px; }
@keyframes swing { from { rotate: -3deg; } to { rotate: 3deg; } }
.rail.auto { overflow: hidden; padding: 10px 0 26px; outline: none; }
.rail.auto:focus-visible { outline: 3px solid var(--pink); outline-offset: 4px; border-radius: 12px; }
.rail.auto .rail-bar { top: 26px; }
.rail-track { display: flex; width: max-content; position: relative; z-index: 2; animation: rail 90s linear infinite; }
.rail.auto:hover .rail-track, .rail.auto:focus-within .rail-track { animation-play-state: paused; }
.rail-set { display: flex; gap: 24px; padding-right: 24px; }
.rail-set .hang { flex: 0 0 200px; }
@media (max-width: 640px) { .rail-set .hang { flex-basis: 168px; } .rail-set { gap: 16px; padding-right: 16px; } .rail-track { animation-duration: 74s; } }
@keyframes rail { to { transform: translateX(-50%); } }

.cat-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .cat-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .cat-tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; } }
.cat-tile { display: flex; align-items: center; gap: 10px; min-width: 0; overflow-wrap: break-word; padding: 12px; border-radius: 14px; background: #fff; border: 2px solid var(--ink); font-weight: 700; font-size: 15px; transition: background .15s, translate .15s; }
.cat-tile:hover { background: var(--brand); translate: 0 -2px; }
.cat-tile .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--brand); color: var(--ink); flex: none; }
.cat-tile:nth-child(even) .ico { background: var(--pink); }
.cat-tile:hover .ico { background: #fff; }
@media (max-width: 420px) { .cat-tile { gap: 8px; padding: 10px; font-size: 14px; } .cat-tile .ico { width: 30px; height: 30px; } }
.welcome { margin-top: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 22px 24px; border-radius: var(--r-lg); background: var(--ink); color: var(--bg); box-shadow: 8px 8px 0 var(--brand); }
.welcome .muted { color: #c9c9c0; }
.welcome .btn-outline { background: transparent; color: var(--bg); border-color: #4a4a4a; }
.welcome .btn-outline:hover:not(:disabled) { background: var(--bg); color: var(--ink); border-color: var(--bg); }

.before-after { display: grid; gap: 10px; margin-top: 16px; }
.ba-row { display: grid; grid-template-columns: 1fr; gap: 4px; background: #fff; border: 2px solid var(--ink); border-radius: 16px; padding: 14px 18px; font-size: 16px; }
@media (min-width: 768px) { .ba-row { grid-template-columns: 1fr 34px 1fr; align-items: center; gap: 16px; } }
.ba-row .was { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--pink); text-decoration-thickness: 2px; }
.ba-row .arrow { display: none; color: var(--pink); font-family: var(--display); font-weight: 900; font-size: 20px; }
@media (min-width: 768px) { .ba-row .arrow { display: block; } }
.ba-row .now { font-weight: 700; }
.pillars { display: grid; grid-template-columns: 1fr; gap: 14px; margin-top: 16px; }
@media (min-width: 768px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { background: var(--ink); color: var(--bg); border-radius: 24px; padding: 24px; }
.pillar h3 { font-family: var(--display); font-size: 18px; margin-bottom: 8px; color: var(--brand); }
.pillar p { color: #c9c9c0; line-height: 1.6; }
.meaning { display: grid; gap: 10px; background: #fff; border: 2px solid var(--ink); border-radius: 28px; padding: 28px; box-shadow: 10px 10px 0 var(--pink); max-width: 720px; }
.meaning .ar { font-size: 48px; font-weight: 700; line-height: 1.1; }
.meaning p { font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.join { text-align: center; background: var(--ink); color: var(--bg); border-radius: 32px; padding: 48px 20px; }
.join h2 { font-size: clamp(32px, 6vw, 72px); font-weight: 900; line-height: 1.04; }
.join h2 span { display: block; color: var(--brand); }
.join p { color: #c9c9c0; margin: 14px auto 22px; max-width: 460px; }
@media (prefers-reduced-motion: reduce) {
  .ticker-track, .hang, .float, .rail-track { animation: none; }
  .rail.auto { overflow-x: auto; }
  .rail-set[aria-hidden] { display: none; }
  .btn, .carousel .item-card, .cat-tile { transition: none; }
  .btn-primary:hover:not(:disabled), .btn-dark:hover:not(:disabled) { transform: none; }
}

/* ---------- Catalog ---------- */
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.filter-bar .sort { margin-left: auto; }
.pop-wrap { position: relative; }
.popover {
  position: absolute; left: 0; top: calc(100% + 8px); z-index: 30; width: 320px; max-height: 420px; overflow: auto; background: #fff;
  border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 12px;
}
.popover.right { left: auto; right: 0; }
.popover .opt { display: flex; align-items: center; gap: 10px; padding: 8px 6px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.popover .opt:hover { background: var(--sand); }
.popover .opt input { accent-color: var(--brand); width: 17px; height: 17px; }
.popover .pop-foot { display: flex; justify-content: space-between; gap: 8px; padding-top: 10px; margin-top: 8px; border-top: 1px solid var(--line-2); position: sticky; bottom: -12px; background: #fff; padding-bottom: 2px; }
.tree-node { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px; border-radius: 6px; cursor: pointer; font-size: 14px; }
.tree-node:hover { background: var(--sand); }
.tree-node.current { font-weight: 800; }
.active-filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.active-filters .chip { background: var(--sand); border-color: transparent; }
.results-line { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; gap: 8px; }
.sheet-backdrop { position: fixed; inset: 0; background: rgba(17, 17, 17, .5); z-index: 90; }
.sheet { position: fixed; inset: 0; background: #fff; z-index: 91; display: flex; flex-direction: column; }
.sheet-head { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.sheet-body { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 22px; }
.sheet-foot { padding: 12px 16px; border-top: 1px solid var(--line); display: flex; gap: 10px; }
.show-mobile { display: none; }
@media (max-width: 767px) { .hide-mobile { display: none !important; } .show-mobile { display: initial; } }

/* ---------- Item page ---------- */
.gallery { display: grid; gap: 10px; }
.gallery-main { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r-lg); overflow: hidden; background: var(--sand-2); cursor: zoom-in; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; box-shadow: var(--shadow); }
.gallery-nav.prev { left: 12px; }
.gallery-nav.next { right: 12px; }
.gallery-count { position: absolute; right: 12px; bottom: 12px; background: rgba(17, 17, 17, .75); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.thumbs { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.thumbs button { padding: 0; border: 2px solid transparent; border-radius: var(--r-sm); overflow: hidden; aspect-ratio: 4 / 5; background: var(--sand-2); }
.thumbs button.on { border-color: var(--ink); }
.thumbs img { width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .item-layout { grid-template-columns: minmax(0, 1fr) 400px; } .gallery-main { aspect-ratio: auto; height: min(74vh, 680px); } .gallery-main img { object-fit: contain; } .gallery.single { grid-template-columns: 1fr; } .gallery { grid-template-columns: 76px 1fr; align-items: start; } .thumbs { grid-template-columns: 1fr; order: -1; } }
.price-big { font-family: var(--display); font-size: 28px; font-weight: 800; letter-spacing: -.02em; }
.protect-line { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 700; font-size: 14px; background: none; border: 0; padding: 0; }
.protect-line:hover { text-decoration: underline; }
.details { display: grid; grid-template-columns: 110px 1fr; gap: 9px 12px; font-size: 14px; }
.details dt { color: var(--muted); }
.details dd { margin: 0; font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.description { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.notice { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--r); background: var(--sand); font-size: 14px; }
.notice .icon { margin-top: 1px; }
.notice.ok { background: var(--ok-50); color: #145c3c; }
.notice.warn { background: var(--warn-50); color: #6f4608; }
.notice.bad { background: var(--bad-50); color: #8c2323; }
.notice.info { background: var(--info-50); color: #1e4a7a; }
.notice.brand { background: var(--brand-50); color: var(--ink); }
.seller-card { display: flex; gap: 12px; align-items: center; }
.lightbox { position: fixed; inset: 0; background: rgba(10, 10, 10, .94); z-index: 100; display: grid; place-items: center; }
.lightbox img { max-width: 94vw; max-height: 88vh; border-radius: 8px; }
.lightbox .close { position: absolute; right: 16px; top: 16px; color: #fff; background: rgba(255, 255, 255, .12); }
.lightbox .gallery-nav { background: rgba(255, 255, 255, .15); color: #fff; }

/* ---------- Sell ---------- */
.sell-wrap { max-width: 820px; margin: 0 auto; }
.sell-section { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 768px) { .sell-section { padding: 28px; } }
.photo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
@media (min-width: 640px) { .photo-grid { grid-template-columns: repeat(5, 1fr); } }
.photo-tile { position: relative; aspect-ratio: 4 / 5; border-radius: var(--r); overflow: hidden; background: var(--sand-2); border: 1px solid var(--line); }
.photo-tile img { width: 100%; height: 100%; object-fit: cover; }
.photo-tile .cover { position: absolute; left: 6px; bottom: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 999px; }
.photo-tile .tile-actions { position: absolute; right: 6px; top: 6px; display: flex; gap: 4px; }
.photo-tile .tile-actions button { width: 28px; height: 28px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.photo-tile.loading::after { content: ''; position: absolute; inset: 0; background: rgba(255, 255, 255, .6); }
.photo-tile.dragging { opacity: .4; }
.photo-add {
  aspect-ratio: 4 / 5; border-radius: var(--r); border: 2px dashed var(--ink); background: var(--brand-50); color: var(--ink);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; font-weight: 700; font-size: 13px; cursor: pointer; text-align: center; padding: 8px;
}
.photo-add:hover, .photo-drop.over .photo-add { background: var(--brand-100); }
.cat-picker { display: grid; grid-template-columns: 1fr; gap: 10px; }
@media (min-width: 640px) { .cat-picker { grid-template-columns: repeat(3, 1fr); } }
.earn-box { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; font-size: 14px; padding: 14px 16px; background: var(--sand); border-radius: var(--r); }
.earn-box .strong { text-align: right; }
.sell-foot { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; }

/* ---------- Member ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 16px 20px; align-items: center; }
@media (min-width: 768px) { .profile-head { grid-template-columns: auto 1fr auto; gap: 24px; } }
.profile-stats { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--muted); margin-top: 8px; }
.profile-stats b { color: var(--ink); }
.profile-stats button { background: none; border: 0; padding: 0; color: inherit; }
.profile-stats button:hover { color: var(--ink); text-decoration: underline; }
.profile-actions { display: flex; gap: 8px; grid-column: 1 / -1; flex-wrap: wrap; }
@media (min-width: 768px) { .profile-actions { grid-column: auto; } }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin: 24px 0 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a, .tabs button { padding: 12px 14px; font-weight: 700; color: var(--muted); border: 0; background: none; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs a.on, .tabs button.on { color: var(--ink); border-bottom-color: var(--pink); }
.tabs .count { color: var(--faint); font-weight: 600; margin-left: 4px; }
.review-summary { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.review-summary .big { font-size: 44px; font-weight: 800; line-height: 1; }
.bar-row { display: grid; grid-template-columns: 34px 1fr 34px; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.bar { height: 8px; background: var(--line-2); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; background: #e0a03a; border-radius: 999px; }
.review { display: flex; gap: 12px; padding: 16px 0; }
.bundle-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--r); background: var(--brand-50); }
.bundle-banner .icon { color: var(--ink); }
.bundle-bar { position: sticky; bottom: 0; z-index: 20; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(17, 17, 17, .08); padding: 12px 0; margin-top: 24px; }

/* ---------- Inbox ---------- */
.inbox { display: grid; grid-template-columns: 1fr; border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; height: calc(100vh - var(--header) - 44px - 48px); min-height: 480px; background: #fff; }
@media (min-width: 900px) { .inbox { grid-template-columns: 340px 1fr; } }
.inbox-list { border-right: 1px solid var(--line); overflow-y: auto; }
.inbox-list h2 { padding: 18px 18px 12px; }
.convo-row { display: flex; gap: 12px; padding: 14px 16px; align-items: center; border-top: 1px solid var(--line-2); }
.convo-row:hover { background: var(--sand); }
.convo-row.on { background: var(--sand); box-shadow: inset 4px 0 0 var(--pink); }
.convo-row .preview { font-size: 13px; color: var(--muted); }
.convo-row.unread .preview { color: var(--ink); font-weight: 700; }
.convo-row .thumb { width: 44px; height: 55px; border-radius: 8px; overflow: hidden; background: var(--sand-2); flex: none; }
.convo-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--pink); flex: none; }
.chat { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.chat-item { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--sand); flex-wrap: wrap; }
.chat-item .thumb { width: 40px; height: 50px; border-radius: 6px; overflow: hidden; background: var(--sand-2); flex: none; }
.chat-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.chat-body { flex: 1; overflow-y: auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.bubble-row { display: flex; flex-direction: column; align-items: flex-start; }
.bubble-row.mine { align-items: flex-end; }
.bubble { max-width: min(78%, 520px); padding: 10px 14px; border-radius: 18px; background: var(--sand); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.bubble-row.mine .bubble { background: var(--ink); color: #fff; border-bottom-right-radius: 6px; }
.bubble-row:not(.mine) .bubble { border-bottom-left-radius: 6px; }
.bubble-time { font-size: 11px; color: var(--faint); margin-top: 3px; padding: 0 4px; }
.system-msg { align-self: center; max-width: 88%; text-align: center; font-size: 12px; color: var(--muted); background: var(--line-2); padding: 7px 12px; border-radius: 12px; }
.offer-card { width: min(300px, 86%); border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: #fff; display: flex; flex-direction: column; gap: 8px; }
.bubble-row.mine .offer-card { border-color: var(--ink-2); }
.offer-card .amount { font-size: 22px; font-weight: 800; }
.offer-card .was { text-decoration: line-through; color: var(--faint); font-size: 13px; }
.chat-foot { border-top: 1px solid var(--line); padding: 10px 12px; display: flex; gap: 8px; align-items: flex-end; }
.chat-foot textarea { flex: 1; resize: none; min-height: 42px; max-height: 140px; border: 1px solid var(--line); border-radius: 21px; padding: 10px 16px; outline: none; line-height: 1.4; }
.chat-foot textarea:focus { border-color: var(--ink-2); }
.chat-empty { flex: 1; display: grid; place-items: center; color: var(--muted); padding: 24px; text-align: center; }
@media (max-width: 899px) {
  .inbox { height: calc(100vh - var(--header) - 130px); border-radius: var(--r); }
  .inbox.has-chat .inbox-list { display: none; }
  .inbox:not(.has-chat) .chat { display: none; }
  .inbox-list { border-right: 0; }
}

/* ---------- Checkout and orders ---------- */
.summary-rows { display: grid; grid-template-columns: 1fr auto; gap: 10px 16px; font-size: 14px; }
.summary-rows .total { font-size: 17px; font-weight: 800; padding-top: 12px; border-top: 1px solid var(--line); }
.summary-rows .minus { color: var(--ok); font-weight: 700; }
.line-item { display: flex; gap: 12px; align-items: center; padding: 10px 0; }
.line-item .thumb { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--sand-2); flex: none; }
.line-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.status-pill { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; white-space: nowrap; }
.st-paid { background: var(--info-50); color: var(--info); }
.st-shipped { background: #efe9fb; color: #5b3fa0; }
.st-delivered { background: var(--warn-50); color: var(--warn); }
.st-completed { background: var(--ok-50); color: var(--ok); }
.st-disputed { background: var(--bad-50); color: var(--bad); }
.st-cancelled, .st-refunded { background: var(--line-2); color: var(--muted); }
.order-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 14px; align-items: center; padding: 14px 0; }
.order-row .thumb { width: 56px; height: 70px; border-radius: 8px; overflow: hidden; background: var(--sand-2); }
.order-row .thumb img { width: 100%; height: 100%; object-fit: cover; }
.order-row:hover .title { text-decoration: underline; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 4px 0; }
.step { display: flex; flex-direction: column; gap: 8px; font-size: 12px; color: var(--faint); font-weight: 600; }
.step i { height: 5px; border-radius: 999px; background: var(--line); }
.step.done { color: var(--ink); }
.step.done i { background: var(--ok); }
.step.now { color: var(--ink); }
.step.now i { background: linear-gradient(90deg, var(--ok) 50%, var(--line) 50%); }
.step.stop i { background: var(--bad); }
.star-pick { display: flex; gap: 4px; }
.star-pick button { border: 0; background: none; padding: 2px; color: #dcd6cc; }
.star-pick button.on { color: #e0a03a; }
.address-block { font-size: 14px; line-height: 1.6; }

/* Shipping label (printable) */
.label-sheet { max-width: 520px; margin: 24px auto; border: 2px solid var(--ink); border-radius: 12px; padding: 22px; background: #fff; font-size: 14px; }
.label-sheet .lbl-top { display: flex; justify-content: space-between; align-items: center; border-bottom: 2px solid var(--ink); padding-bottom: 12px; }
.label-sheet .lbl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding: 16px 0; border-bottom: 2px dashed var(--line); }
.label-sheet .lbl-to { font-size: 17px; font-weight: 700; line-height: 1.45; padding: 16px 0; border-bottom: 2px dashed var(--line); }
.barcode { display: flex; justify-content: center; height: 70px; align-items: stretch; gap: 0; margin: 16px 0 6px; }
.barcode i { display: block; background: var(--ink); }
@media print {
  .site-header, .bottom-nav, .site-footer, .no-print { display: none !important; }
  .label-sheet { margin: 0; border-radius: 0; }
  main#app { padding: 0; }
}

/* ---------- Wallet ---------- */
.balance-cards { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 640px) { .balance-cards { grid-template-columns: 1fr 1fr; } }
.balance-card { padding: 22px; border-radius: var(--r-lg); background: var(--ink); color: #fff; }
.balance-card.light { background: var(--sand); color: var(--ink); }
.balance-card .amount { font-size: 32px; font-weight: 800; letter-spacing: -.02em; margin-top: 6px; }
.tx-row { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; align-items: center; }
.plus { color: var(--ok); font-weight: 800; }
.minus-amt { color: var(--ink); font-weight: 800; }

/* ---------- Notifications ---------- */
.note-row { display: flex; gap: 14px; padding: 14px 4px; align-items: flex-start; }
.note-row .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: var(--ink); flex: none; }
.note-row.unread { background: linear-gradient(90deg, var(--pink-50), rgba(255, 227, 240, 0)); border-radius: var(--r); }
.note-row:hover .text { text-decoration: underline; }

/* ---------- Auth ---------- */
.auth-wrap { max-width: 440px; margin: 32px auto 0; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.demo-btn { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; text-align: left; min-width: 0; }
.demo-btn:hover { border-color: var(--ink-2); }
.demo-btn.featured { grid-column: 1 / -1; border-color: var(--brand-100); background: var(--brand-50); }
.or-line { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 13px; margin: 20px 0; }
.or-line::before, .or-line::after { content: ''; flex: 1; height: 1px; background: var(--line); }

/* ---------- Admin ---------- */
.stat-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .stat-grid { grid-template-columns: repeat(4, 1fr); gap: 14px; } }
@media (min-width: 1100px) { .stat-grid { grid-template-columns: repeat(5, 1fr); } }
.stat { padding: 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.stat .v { font-family: var(--display); font-size: 22px; font-weight: 800; margin-top: 4px; letter-spacing: -.01em; }
.stat .s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.stat.hl { background: var(--ink); color: var(--bg); border-color: var(--ink); box-shadow: 6px 6px 0 var(--brand); }
.stat.hl .s, .stat.hl .muted { color: rgba(245, 245, 240, .7); }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: 12px 14px; background: var(--sand); white-space: nowrap; }
.table td { padding: 12px 14px; border-top: 1px solid var(--line-2); vertical-align: middle; }
.table td.num, .table th.num { text-align: right; white-space: nowrap; }
.table .thumb { width: 40px; height: 50px; border-radius: 6px; overflow: hidden; background: var(--sand-2); }
.table .thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-card { display: grid; gap: 14px; }

/* ---------- Info page ---------- */
.info-hero { padding: 40px 0 10px; text-align: center; }
.info-hero p { max-width: 620px; margin: 12px auto 0; color: var(--muted); font-size: 16px; }
.steps-3 { display: grid; grid-template-columns: 1fr; gap: 14px; }
@media (min-width: 768px) { .steps-3 { grid-template-columns: repeat(3, 1fr); } }
.step-card { padding: 22px; border-radius: var(--r-lg); background: var(--sand); }
.step-card .num { width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: var(--ink); font-weight: 800; display: grid; place-items: center; margin-bottom: 12px; }
.step-card h3 { margin-bottom: 6px; }
.step-card p { color: var(--ink-2); font-size: 14px; }

/* ---------- Modals and toasts ---------- */
.modal-backdrop { position: fixed; inset: 0; background: rgba(17, 17, 17, .55); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { width: 100%; max-width: 480px; max-height: calc(100vh - 32px); overflow: auto; background: #fff; border-radius: var(--r-lg); box-shadow: var(--shadow-lg); animation: rise .18s ease; }
.modal.wide { max-width: 640px; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; }
.modal-body { padding: 16px 20px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; gap: 10px; justify-content: flex-end; padding: 0 20px 20px; flex-wrap: wrap; }
@media (max-width: 520px) { .modal-backdrop { align-items: end; padding: 0; } .modal { border-radius: 20px 20px 0 0; max-height: 92vh; } .modal-foot .btn { flex: 1; } }
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(12px); opacity: 0; } }
#toasts { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 120; display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 440px; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow-lg); font-size: 14px; font-weight: 600; display: flex; gap: 10px; align-items: center; animation: rise .2s ease; pointer-events: auto; }
.toast.error { background: var(--bad); }
.toast.ok .icon { color: #7ee2b0; }
@media (max-width: 767px) { #toasts { bottom: 84px; } }

/* ---------- Empty, loading ---------- */
.empty { text-align: center; padding: 56px 16px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.empty .ico { width: 64px; height: 64px; border-radius: 50%; background: var(--brand); display: grid; place-items: center; color: var(--ink); margin-bottom: 6px; }
.empty p { color: var(--muted); max-width: 380px; }
.empty .btn { margin-top: 8px; }
.skeleton { background: linear-gradient(90deg, var(--sand) 0%, var(--sand-2) 50%, var(--sand) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: var(--r); }
@keyframes shimmer { to { background-position: -200% 0; } }
.skel-card .skeleton.photo { aspect-ratio: 4 / 5; }
.skel-card .skeleton.line { height: 12px; margin-top: 10px; width: 60%; }
.skel-card .skeleton.line.short { width: 40%; }
.spinner { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--ink); border-radius: 50%; animation: spin .7s linear infinite; }
.photo-tile .spinner { position: absolute; left: 50%; top: 50%; margin: -11px 0 0 -11px; z-index: 2; }
@keyframes spin { to { transform: rotate(360deg); } }
.load-more { display: flex; justify-content: center; padding: 28px 0 8px; }

/* ---------- Footer and bottom nav ---------- */
.site-footer { background: var(--ink); color: #a8a8a0; padding: 44px 0 28px; margin-top: 32px; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 2fr 1fr 1fr 1fr; } }
.footer-grid h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: #c9c9c0; margin-bottom: 10px; }
.footer-grid a { display: block; padding: 3px 0; color: #a8a8a0; font-size: 14px; }
.footer-grid a:hover { color: var(--brand); }
.footer-brand p { color: #a8a8a0; font-size: 14px; margin-top: 12px; max-width: 320px; }
.footer-base { margin-top: 28px; padding-top: 18px; border-top: 1px solid #2a2a2a; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; color: #a8a8a0; font-size: 13px; }
.bottom-nav { display: none; }
@media (max-width: 767px) {
  body { padding-bottom: 64px; }
  .bottom-nav { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; height: 64px; background: #fff; border-top: 1px solid var(--line); z-index: 70; padding-bottom: env(safe-area-inset-bottom); }
  .bottom-nav a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 11px; font-weight: 600; color: var(--muted); position: relative; }
  .bottom-nav a.on { color: var(--ink); }
  .bottom-nav a.sell .ico { width: 40px; height: 40px; border-radius: 50%; background: var(--brand); color: var(--ink); border: 2px solid var(--ink); display: grid; place-items: center; margin-top: -6px; }
  .bottom-nav .badge { top: 6px; right: calc(50% - 22px); }
  .header-bar { gap: 10px; }
  .header-actions .desktop-only { display: none; }
  .logo { font-size: 21px; }
  h1 { font-size: 24px; }
  .page { padding-top: 16px; }
}
@media (min-width: 768px) { .mobile-only { display: none !important; } }

/* ---------- Snap to sell, price guide, saved searches, scam shield ---------- */
.spinner.sm { width: 16px; height: 16px; border-width: 2px; border-color: rgba(255, 255, 255, .45); border-top-color: #fff; }
.btn-outline .spinner.sm, .btn-ghost .spinner.sm { border-color: var(--line); border-top-color: var(--ink); }
.snap-card { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-radius: var(--r); background: linear-gradient(135deg, var(--brand-50), var(--sand)); border: 1px solid var(--brand-100); }
.snap-row { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.snap-row .grow { flex: 1 1 240px; }
.snap-ico { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: var(--ink); display: grid; place-items: center; flex: none; }
.snap-card .btn-primary:disabled { opacity: .55; }
ul.tips { margin: 4px 0 0; padding-left: 18px; font-size: 14px; }
ul.tips li { margin: 2px 0; }
.guide { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; padding: 12px 14px; border-radius: var(--r); background: var(--info-50); color: #1e4a7a; font-size: 14px; }
.guide .grow { flex: 1 1 220px; }
.guide .small.muted { color: #4a6a90; }
@keyframes flash { from { box-shadow: 0 0 0 3px var(--brand-100); } to { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); } }
.sell-section.flash { animation: flash 1.6s ease-out; }
@media (prefers-reduced-motion: reduce) { .sell-section.flash { animation: none; } }
.arabic { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); font-family: var(--font); }
.arabic .strong { margin-bottom: 4px; }
.msg-warn { display: flex; gap: 10px; align-items: flex-start; max-width: 520px; margin: 6px 0 4px; padding: 10px 12px; border-radius: var(--r); background: var(--warn-50); color: #6f4608; font-size: 13px; }
.msg-warn .icon { flex: none; margin-top: 1px; }
.msg-warn p { margin: 0; }
.results-line .save-search { margin-left: auto; }
.search-row { display: flex; gap: 12px; align-items: center; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--r); flex-wrap: wrap; }
.search-row .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--sand); color: var(--brand); display: grid; place-items: center; flex: none; }
.search-row .grow { flex: 1 1 200px; min-width: 0; }

/* ---------- Doolaby Managed ---------- */
.tag.checked { background: #fff; color: var(--ok); }
.protect-line.static { cursor: default; }
.protect-line.static:hover { text-decoration: none; }
.managed-promo { color: inherit; align-items: center; }
.managed-promo:hover { border-color: var(--brand-100); }
.managed-steps { gap: 12px; }
.gs-prep { background: var(--info-50); color: var(--info); }
.gs-live { background: var(--ok-50); color: var(--ok); }
.gs-clear { background: var(--warn-50); color: var(--warn); }
.gs-sold { background: #efe9fb; color: #5b3fa0; }
.gs-bad { background: var(--bad-50); color: var(--bad); }
.gs-end { background: var(--line-2); color: var(--muted); }
.g-list { display: flex; flex-direction: column; gap: 10px; }
.g-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px; background: var(--card);
  border: 1px solid var(--line); border-radius: var(--r); color: inherit; }
.g-row:hover { border-color: var(--brand-100); box-shadow: var(--shadow-sm); }
.g-thumb { width: 72px; height: 90px; border-radius: var(--r-sm); background: var(--sand); overflow: hidden; display: grid; place-items: center; color: var(--faint); flex: none; }
.g-thumb img { width: 100%; height: 100%; object-fit: cover; }
.g-main { min-width: 0; }
.g-money { display: grid; gap: 2px; text-align: right; font-size: 13px; }
.g-money .strong { font-size: 15px; }
.g-code { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; letter-spacing: .03em; font-weight: 700; }
.days-badge { display: inline-flex; align-items: center; gap: 4px; height: 26px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800;
  background: var(--sand); color: var(--ink-2); }
.days-badge.soon { background: var(--warn-50); color: var(--warn); }
.g-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.g-photos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); background: var(--sand-2); }
.event-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.event-list li { padding: 10px 0 10px 16px; border-left: 2px solid var(--line); position: relative; }
.event-list li::before { content: ''; position: absolute; left: -5px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
.event-list li + li::before { background: var(--faint); }
.tag-internal { margin-left: 8px; font-size: 11px; font-weight: 800; color: var(--muted); background: var(--line-2); padding: 1px 7px; border-radius: 999px; }
.markdown-toggle { padding: 12px; border-radius: var(--r); background: var(--sand); }
.markdown-toggle > span { display: flex; flex-direction: column; gap: 2px; }
.expiry-panel { margin-bottom: 20px; }
.return-picks { max-height: 280px; overflow: auto; }
.service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 16px; }
.service-grid .check { align-items: center; }
.service-grid .check span:nth-child(2) { flex: 1; }
.loc { display: inline-block; font-weight: 800; font-size: 12px; letter-spacing: .04em; padding: 3px 8px; border-radius: 6px; background: var(--ink); color: #fff; }
.warn-text { color: var(--warn); font-weight: 800; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--sand); }
.g-table td { vertical-align: middle; }
@media (max-width: 640px) {
  .g-row { grid-template-columns: auto minmax(0, 1fr); }
  .g-money { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 12px; text-align: left; padding-top: 8px; border-top: 1px solid var(--line-2); }
  .service-grid { grid-template-columns: 1fr; }
}

/* ---------- Warehouse scanner ---------- */
.scan-page { max-width: 640px; }
.scan-big { width: 100%; height: 96px; font-size: 22px; font-weight: 800; letter-spacing: .05em; border-radius: var(--r-lg); gap: 12px; margin-bottom: 12px; }
.scan-manual { gap: 8px; }
.scan-manual .input { flex: 1; min-width: 0; }
.cam-box { margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.cam-box[hidden] { display: none; }
.cam-view { width: 100%; min-height: 260px; background: #000; border-radius: var(--r); overflow: hidden; }
.cam-view video { width: 100% !important; display: block; }
.cam-prompt { font-weight: 800; text-align: center; }
.scan-card .scan-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.scan-photo { width: 96px; height: 120px; border-radius: var(--r); background: var(--sand); overflow: hidden; display: grid; place-items: center; color: var(--faint); flex: none; }
.scan-photo img { width: 100%; height: 100%; object-fit: cover; }
.g-code.big { font-size: 16px; }
.loc.big { font-size: 16px; padding: 5px 12px; }
.scan-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.scan-action { min-height: 56px; justify-content: flex-start; gap: 10px; text-align: left; white-space: normal; line-height: 1.2; min-width: 0; padding-left: 14px; padding-right: 14px; }
.scan-actions .btn-primary.scan-action { grid-column: 1 / -1; justify-content: center; font-size: 17px; }
.tx-row.linkish { width: 100%; background: none; border: 0; text-align: left; cursor: pointer; color: inherit; font: inherit; }
.qr-card { gap: 14px; align-items: center; }

/* ---------- QR labels ---------- */
.qr-sheet.a4 { display: grid; grid-template-columns: repeat(3, 1fr); }
.qr-sheet.roll { display: flex; flex-wrap: wrap; gap: 10px; }
.qr-label { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px dashed var(--line); background: #fff; color: #000; overflow: hidden; }
.qr-sheet.roll .qr-label { width: 62mm; height: 29mm; }
.qr-sheet.a4 .qr-label { height: 37mm; }
.qr-label svg { flex: none; }
.qr-text { min-width: 0; }
.qr-code { font-weight: 800; font-size: 13px; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
.qr-code.big { font-size: 20px; }
.qr-title { font-size: 11px; line-height: 1.25; max-height: 2.5em; overflow: hidden; }
.qr-sub { font-size: 10px; color: #444; }
@media print {
  .qr-label { border-color: transparent; break-inside: avoid; }
  .qr-sheet.roll { display: block; }
  .qr-sheet.roll .qr-label { page-break-after: always; }
  @page { margin: 5mm; }
}
.tag.clearance { background: var(--warn-50); color: var(--warn); }
.basket-group { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line-2); }
.line-item.faded { opacity: .55; }

/* ---------- Admin: members in full, conversations and flagged messages ---------- */
.wrap.narrow { max-width: 880px; }
.inbox-note { display: flex; gap: 6px; align-items: center; margin: -6px 18px 10px; font-size: 12px; color: var(--muted); }
.inbox-note .icon { flex: none; color: var(--ok); }
.member-head { display: flex; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.member-head h1 { font-size: 26px; }
.member-head p { margin: 2px 0; }
.tab-count { margin-left: 6px; font-size: 12px; color: var(--muted); font-weight: 700; }
.time-bars { display: grid; grid-template-columns: repeat(30, 1fr); gap: 3px; align-items: end; height: 120px; margin: 8px 0 6px; }
.time-bar { height: 100%; display: flex; align-items: flex-end; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.time-bar span { display: block; width: 100%; min-height: 0; background: var(--brand); border-radius: 4px 4px 0 0; }
.time-bar:hover span { background: var(--brand-600); }
.activity-list { display: grid; }
.activity-day { margin: 14px 0 4px; font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.activity-day:first-child { margin-top: 0; }
.activity-row { display: flex; gap: 10px; align-items: center; padding: 7px 8px; border-radius: var(--r-sm); color: var(--ink); font-size: 14px; }
a.activity-row:hover { background: var(--sand); }
.activity-time { width: 44px; flex: none; font-size: 12px; color: var(--faint); font-variant-numeric: tabular-nums; }
.activity-icon { flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--sand); color: var(--ink-2); }
.convo-admin-list { padding: 0; overflow: hidden; }
.convo-admin-row { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--line-2); color: var(--ink); min-width: 0; }
.convo-admin-row:last-child { border-bottom: 0; }
.convo-admin-row:hover { background: var(--sand); }
.convo-admin-row .grow { min-width: 0; }
.convo-admin-row p { margin: 1px 0; }
.flag-card.open { border-left: 4px solid var(--bad); }
.flag-quote { margin: 0; padding: 10px 14px; border-radius: var(--r); background: var(--sand); white-space: pre-wrap; overflow-wrap: anywhere; }
.flag-kind { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--warn-50); color: var(--warn); }
.fk-abuse { background: var(--bad-50); color: var(--bad); }
.fk-phone, .fk-email { background: var(--info-50); color: var(--info); }
.fk-link { background: var(--line-2); color: var(--ink-2); }
.admin-thread { display: flex; flex-direction: column; gap: 10px; }
.bubble-name { font-size: 11px; font-weight: 800; color: var(--muted); margin: 0 4px 2px; }
.admin-thread .bubble-row.mine .bubble { background: var(--ink); color: #fff; }
.bubble.flagged { outline: 2px solid var(--bad); outline-offset: 2px; }
.bubble.offer { font-weight: 700; }
.bubble.refused { background: #fff; color: var(--muted); border: 2px dashed var(--line); }
.admin-thread .bubble-row.mine .bubble.refused { background: #fff; color: var(--muted); }
.bubble-row.pulse .bubble { animation: pulse 1.6s ease-out 2; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(192, 57, 47, .45); } 100% { box-shadow: 0 0 0 14px rgba(192, 57, 47, 0); } }
@media (prefers-reduced-motion: reduce) { .bubble-row.pulse .bubble { animation: none; } }

/* ---------- Pages built at Cloudflare, shown until the app takes over ---------- */
/* Hidden from people: the app draws the real page. Browsers without JavaScript show it (see seo.js). */
.ssr { display: none; }
.ssr h1 { margin: 8px 0 10px; font-size: 26px; }
.ssr h2 { margin: 26px 0 10px; font-size: 18px; }
.ssr p { max-width: 70ch; }
.ssr-crumbs { font-size: 13px; color: var(--muted); }
.ssr-item { display: grid; gap: 22px; margin-top: 12px; }
@media (min-width: 768px) { .ssr-item { grid-template-columns: minmax(0, 420px) 1fr; } }
.ssr-photo { width: 100%; height: auto; border-radius: var(--r); background: var(--sand); }
.ssr-price { font-size: 22px; font-weight: 800; }
.ssr-cats { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.ssr-cats a { padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: 14px; color: var(--ink); }
.ssr-list ul { margin: 0; padding-left: 18px; columns: 2 280px; }
.ssr-list li { margin: 4px 0; break-inside: avoid; }
.ssr-list span { color: var(--muted); font-size: 14px; }

/* ---------- Doolaby Managed: box to wardrobe ---------- */
/* The sticker on every Doolaby Managed listing. */
/* The Doolaby tag on Doolaby Managed listings: it hangs off the top of the photo on a short string and sways, the tag
   drooping from its hole like a real swing tag. Pointing at it, or tapping it, shows "Checked by Doolaby". */
.managed-mark { position: absolute; right: 12px; top: 0; z-index: 2; width: 48px; height: 60px; cursor: help; outline: none; }
/* How far the tags swing. Pointing at the item swings them further, easing in and out. */
@property --sway { syntax: '<angle>'; inherits: true; initial-value: 7deg; }
@property --csway { syntax: '<angle>'; inherits: true; initial-value: 3deg; }
.managed-mark .swing { position: absolute; left: 0; top: 0; width: 44px; height: 100%; transform-origin: 7px 0;
  animation: tag-sway 2.6s ease-in-out infinite alternate; transition: --sway .6s ease; }
.item-photo:hover .managed-mark .swing, .managed-mark:focus .swing { --sway: 18deg; }
.managed-mark .string { position: absolute; left: 6px; top: 0; width: 2px; height: 18px; border-radius: 1px; background: rgba(17, 17, 17, .6); }
/* The hole in the artwork is 16% in from the left and halfway down, so the tag turns about the end of the string. */
.managed-mark img { position: absolute; left: 0; top: 3px; width: 44px; height: auto; display: block; transform-origin: 16% 50%; rotate: 24deg;
  filter: drop-shadow(0 3px 3px rgba(0, 0, 0, .25)); }
@keyframes tag-sway { from { rotate: calc(var(--sway) * -1); } to { rotate: var(--sway); } }
.managed-mark::after { content: attr(data-tip); position: absolute; right: 0; top: calc(100% + 2px); padding: 6px 10px; border-radius: 999px;
  background: var(--ink); color: var(--brand); font-size: 11px; font-weight: 800; line-height: 1.2; white-space: nowrap;
  opacity: 0; transform: translateY(-4px); transition: opacity .15s, transform .15s; pointer-events: none; }
.managed-mark:hover::after, .managed-mark:focus-visible::after, .managed-mark:focus::after { opacity: 1; transform: none; }
@media (max-width: 640px) {
  .item-photo .managed-mark { right: 8px; width: 42px; height: 54px; }
  .item-photo .managed-mark .swing, .item-photo .managed-mark img { width: 38px; }
  .item-photo .managed-mark .string { height: 16px; }
  .item-photo .managed-mark img { top: 2px; }
}
@media (prefers-reduced-motion: reduce) { .managed-mark .swing { animation: none; } }
.managed-mark.big { position: static; width: 64px; height: auto; cursor: default; }
.managed-mark.big img { position: static; width: 100%; rotate: none; filter: none; }
.managed-head { display: flex; align-items: center; gap: 12px; }
/* The CLEARANCE and BUMPED swing tags hang over the photo's top-left edge and sway about their hole (8 to 10% in,
   halfway down). */
.clearance-tag, .bumped-tag { position: absolute; left: -10px; top: 12px; z-index: 2; width: 112px; line-height: 0; transform-origin: 8% 50%;
  filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); animation: clearance-sway 3.2s ease-in-out infinite alternate; transition: --csway .6s ease; }
.bumped-tag { width: 104px; transform-origin: 10% 52%; animation-duration: 2.9s; }
.clearance-tag img, .bumped-tag img { width: 100%; height: auto; display: block; }
.item-photo:hover .clearance-tag, .item-photo:hover .bumped-tag { --csway: 10deg; }
@keyframes clearance-sway { from { rotate: calc(-4deg - var(--csway)); } to { rotate: calc(-4deg + var(--csway)); } }
@media (max-width: 640px) { .clearance-tag { width: 92px; left: -8px; } .bumped-tag { width: 86px; left: -8px; } }
@media (prefers-reduced-motion: reduce) { .clearance-tag, .bumped-tag { animation: none; rotate: -4deg; } }
.managed-panel { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; margin-top: 10px; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; }
.managed-points { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.managed-points li { display: flex; align-items: center; gap: 8px; }
.managed-points svg { color: var(--ok); flex: none; }

/* Where an item is on its way from the box to the wardrobe. */
.progress-card { padding: 18px 16px; }
.progress-steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 6px; counter-reset: step; }
.progress-steps li { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; min-width: 0; }
.progress-steps li::before { content: ''; position: absolute; top: 14px; right: 50%; width: 100%; height: 3px; background: var(--line); z-index: 0; }
.progress-steps li:first-child::before { display: none; }
.progress-steps li.done::before, .progress-steps li.current::before, .progress-steps li.problem::before, .progress-steps li.skipped::before { background: var(--ink); }
.progress-steps .dot { position: relative; z-index: 1; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: #fff; color: var(--ink); }
.progress-steps .done .dot { background: var(--brand); border-color: var(--ink); }
.progress-steps .current .dot { background: var(--pink); border-color: var(--ink); animation: pulse-dot 1.6s ease-in-out infinite; }
.progress-steps .problem .dot { background: var(--bad); border-color: var(--bad); color: #fff; }
.progress-steps .skipped .dot { border-style: dashed; border-color: var(--faint); }
.progress-steps .name { font-size: 12px; font-weight: 800; line-height: 1.2; }
.progress-steps .when { font-size: 11px; color: var(--muted); }
.progress-steps .todo .name { color: var(--faint); }
@keyframes pulse-dot { 50% { box-shadow: 0 0 0 6px rgba(255, 79, 163, .2); } }
@media (max-width: 640px) {
  .progress-steps { grid-template-columns: 1fr; gap: 0; }
  .progress-steps li { flex-direction: row; text-align: left; gap: 10px; padding: 4px 0; }
  .progress-steps li::before { top: auto; bottom: 50%; right: auto; left: 14px; width: 3px; height: 100%; }
  .progress-steps .when { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) { .progress-steps .current .dot { animation: none; } }

/* The box code a seller writes on a note in the box. */
.box-code { border: 2px dashed var(--ink); border-radius: var(--r); padding: 12px 14px; background: var(--brand-50); max-width: 360px; }
.box-code .code { font-family: var(--display); font-weight: 900; font-size: 30px; letter-spacing: .06em; margin: 2px 0 6px; }
.booking-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; justify-content: space-between; padding: 12px 0; border-top: 1px solid var(--line-2); }
.booking-row:first-child { border-top: 0; padding-top: 0; }
.box-card .box-input { max-width: 260px; font-family: var(--display); font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.loc.big { font-size: 18px; }

.update-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line-2); }
.update-row:first-child { border-top: 0; padding-top: 0; }
.update-row .grow { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lead { font-size: 17px; line-height: 1.5; }
.bad-text { color: var(--bad); font-weight: 700; }
.pre { white-space: pre-wrap; }
.genuine-check { align-items: flex-start; padding: 14px 16px; border: 2px solid var(--ink); border-radius: var(--r); background: #fff; line-height: 1.5; }
.genuine-check input { margin-top: 4px; }
.more-moves summary { cursor: pointer; }
.request-card { border: 2px solid var(--pink); }
.chip.small { height: 30px; font-size: 12px; }

/* The studio. */
.studio-page { max-width: 820px; }
.studio-empty { display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center; padding: 32px 16px; }
.studio-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.studio-photos .photo-tile.loading { display: grid; place-items: center; }
.studio-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; max-height: 260px; overflow: auto; }
.studio-log .strong { font-weight: 700; }
.studio-log .bad { color: var(--bad); }

/* ---------- Doolaby Managed: coming soon ---------- */
.managed-soon { padding-bottom: 20px; }
.ms-hero { background: var(--ink); color: var(--bg); overflow: hidden; }
.ms-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 32px; align-items: center; padding-top: 48px; padding-bottom: 56px; }
.ms-hero h1 { font-size: clamp(34px, 6vw, 68px); line-height: 1.02; margin: 16px 0 14px; font-weight: 900; }
.ms-hero h1 em { font-style: normal; color: var(--brand); display: block; }
.ms-lede { font-size: 18px; line-height: 1.55; color: #d8d8d0; max-width: 52ch; margin: 0 0 22px; }
.btn.on-dark { background: transparent; color: var(--bg); border-color: #4a4a4a; }
.btn.on-dark:hover { background: var(--bg); color: var(--ink); }
.ms-hero-phones { display: flex; justify-content: center; gap: 18px; }
.ms-hero-phones .phone:last-child { margin-top: 60px; }
.ms-section { padding-top: 56px; }
.ms-section h2 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 8px; }
.ms-intro { margin: 0 0 12px; font-size: 17px; }
.ms-step { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: center; padding: 30px 0; border-bottom: 2px solid var(--line-2); }
.ms-step:nth-child(even) { grid-template-columns: auto minmax(0, 1fr); }
.ms-step:nth-child(even) .phone { order: -1; }
.ms-text h3 { font-size: 24px; margin: 10px 0 8px; }
.ms-text p { font-size: 17px; line-height: 1.6; max-width: 46ch; margin: 0; color: var(--ink-2); }
.ms-num { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--brand); border: 2px solid var(--ink);
  font-family: var(--display); font-weight: 900; font-size: 18px; box-shadow: 3px 3px 0 var(--pink); }
.ms-band { background: #fff; border-top: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); margin-top: 56px; padding-bottom: 56px; }
.ms-pros { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.ms-pro { border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 18px; background: var(--bg); }
.ms-pro h3 { font-size: 17px; margin: 12px 0 6px; }
.ms-pro p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.ms-ico { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--brand); border: 2px solid var(--ink); }
.ms-pro:nth-child(even) .ms-ico { background: var(--pink); }
.ms-cost { align-items: start; gap: 32px; }
.ms-example { background: var(--ink); color: var(--bg); border-radius: var(--r-lg); padding: 22px; box-shadow: 6px 6px 0 var(--brand); }
.ms-example .summary-rows span { color: var(--bg); }
.ms-example .label { color: var(--brand); }
.ms-big { font-family: var(--display); font-weight: 900; font-size: 24px; margin: 4px 0 14px; }
.ms-faq { border-bottom: 2px solid var(--line-2); padding: 14px 0; }
.ms-faq summary { cursor: pointer; font-weight: 700; font-size: 17px; }
.ms-faq p { margin: 10px 0 0; color: var(--ink-2); line-height: 1.6; max-width: 70ch; }
.ms-wl { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: start; background: var(--ink); color: var(--bg);
  border-radius: 28px; padding: 32px; box-shadow: 8px 8px 0 var(--pink); }
.ms-wl-text h2 { margin: 14px 0 10px; }
.ms-wl-text p { color: #d8d8d0; font-size: 17px; line-height: 1.55; }
.ms-wl-form { color: var(--ink); }
.wl-done { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 12px 0; }
.wl-done h3 { margin: 6px 0 0; font-size: 22px; }
.wl-tick { display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--brand); border: 2px solid var(--ink); }

/* A phone, with a screen drawn in HTML. */
.phone { position: relative; flex: none; width: 250px; height: 520px; border: 10px solid #111; border-radius: 42px; background: var(--bg); overflow: hidden;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .28), inset 0 0 0 2px #2b2b2b; animation: phone-float 5s ease-in-out infinite alternate; }
.phone .notch { position: absolute; left: 50%; top: 6px; translate: -50% 0; width: 88px; height: 22px; border-radius: 14px; background: #111; z-index: 2; }
.phone .screen { position: absolute; inset: 0; display: flex; flex-direction: column; font-size: 12px; color: var(--ink); text-align: left; }
@keyframes phone-float { from { translate: 0 0; } to { translate: 0 -10px; } }
@media (prefers-reduced-motion: reduce) { .phone { animation: none; } }
.ph-bar { background: var(--ink); color: var(--bg); padding: 38px 14px 12px; display: flex; flex-direction: column; gap: 2px; }
.ph-logo { font-family: var(--display); font-weight: 900; color: var(--brand); font-size: 12px; letter-spacing: .04em; }
.ph-title { font-weight: 700; font-size: 15px; }
.ph-body { padding: 12px; display: flex; flex-direction: column; gap: 9px; }
.ph-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ph-stat { background: #fff; border-radius: 12px; padding: 8px; display: flex; flex-direction: column; border: 1.5px solid var(--line); }
.ph-stat b { font-family: var(--display); font-size: 13px; }
.ph-stat span, .ph-row span, .ph-card span, .ph-note span { color: var(--muted); font-size: 11px; line-height: 1.35; }
.ph-card { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; }
.ph-card b { font-size: 13px; }
.ph-card.lime { background: var(--brand); border-color: var(--ink); }
.ph-card.lime span { color: var(--ink); }
.ph-row { display: flex; gap: 9px; align-items: center; background: #fff; border-radius: 12px; padding: 7px; border: 1.5px solid var(--line); }
.ph-row div { display: flex; flex-direction: column; min-width: 0; }
.ph-thumb { width: 34px; height: 42px; border-radius: 8px; flex: none; }
.ph-code { background: var(--brand-50); border: 2px dashed var(--ink); border-radius: 14px; padding: 14px; text-align: center; display: flex; flex-direction: column; gap: 4px; }
.ph-code b { font-family: var(--display); font-size: 26px; letter-spacing: .06em; }
.ph-code span { font-size: 11px; color: var(--ink-2); }
.ph-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.ph-steps li { display: grid; grid-template-columns: 22px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; position: relative; }
.ph-steps li + li::before { content: ''; position: absolute; left: 9px; top: -9px; height: 18px; width: 2px; background: var(--ink); }
.ph-steps .dot { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--line); background: #fff; }
.ph-steps .done .dot { background: var(--brand); border-color: var(--ink); }
.ph-steps .now .dot { background: var(--pink); border-color: var(--ink); animation: pulse-dot 1.6s ease-in-out infinite; }
.ph-steps .todo b { color: var(--faint); }
.ph-steps span { font-size: 10px; color: var(--muted); }
.ph-note { background: #fff; border: 1.5px solid var(--line); border-radius: 14px; padding: 10px 12px; display: flex; flex-direction: column; gap: 3px; }
.ph-note.pink { background: var(--pink); border-color: var(--ink); }
.ph-note.pink span { color: var(--ink); }
@media (max-width: 900px) {
  .ms-hero-in, .ms-wl { grid-template-columns: 1fr; }
  .ms-hero-phones .phone:last-child { display: none; }
  .ms-step, .ms-step:nth-child(even) { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 22px; }
  .ms-step:nth-child(even) .phone { order: 0; }
  .ms-text p { margin: 0 auto; }
  .ms-pros { grid-template-columns: 1fr; }
  .ms-wl { padding: 22px; }
}
@media (min-width: 901px) and (max-width: 1100px) { .ms-pros { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ms-hero .phone { border-color: #2c2c2a; box-shadow: 0 0 0 2px #4a4a46, 0 24px 50px rgba(0, 0, 0, .5); }
.ph-stat b { font-size: 12px; white-space: nowrap; }

/* ---------- Invest in Doolaby ---------- */
.inv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.inv-fact { background: #1c1c1a; border: 2px solid #3a3a36; border-radius: var(--r-lg); padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.inv-fact:nth-child(1), .inv-fact:nth-child(4) { border-color: var(--brand); }
.inv-fact b { font-family: var(--display); font-weight: 900; font-size: clamp(20px, 2.3vw, 28px); color: var(--brand); white-space: nowrap; }
.inv-fact:nth-child(even) b { color: var(--pink); }
.inv-fact span { color: #d8d8d0; line-height: 1.45; }
.inv-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.inv-step { border: 2px solid var(--ink); border-radius: var(--r-lg); padding: 18px; background: var(--bg); }
.inv-step h3 { font-size: 18px; margin: 12px 0 6px; }
.inv-step p { margin: 0; color: var(--ink-2); line-height: 1.55; }
.inv-legal { margin-top: 28px; }
@media (max-width: 900px) { .inv-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .inv-steps, .inv-facts { grid-template-columns: 1fr; } }

/* ---------- Warehouse: scanner first, then what needs doing ---------- */
.wh-actions { display: grid; gap: 10px; }
.wh-scan { width: 100%; justify-content: center; font-size: 18px; min-height: 60px; }
.task-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 5px 14px 5px 5px; border: 2px solid var(--ink);
  border-radius: 999px; background: var(--card); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.task-chip .n {
  min-width: 30px; height: 30px; padding: 0 8px; display: inline-grid; place-items: center; border-radius: 999px;
  background: var(--brand); color: var(--ink); font-variant-numeric: tabular-nums;
}
.task-chip.warn .n { background: var(--pink); color: #fff; }
.task-chip:hover { background: var(--brand-50); }
.task-chip:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
/* Room for the sticky site header when a "To do now" count jumps to its list. */
[id^="wh-"] { scroll-margin-top: 180px; }
@media (min-width: 900px) { [id^="wh-"] { scroll-margin-top: 130px; } }

/* From booking to on sale: one row of stages per kind, scrolling sideways on a phone. */
.flow { display: flex; gap: 22px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x proximity; }
.flow-step {
  position: relative; flex: 0 0 auto; min-width: 104px; max-width: 132px; display: grid; gap: 4px; justify-items: start;
  padding: 10px 12px; border: 2px solid var(--ink); border-radius: 14px; background: var(--card); color: var(--ink);
  font: inherit; text-align: left; text-decoration: none; cursor: pointer; scroll-snap-align: start;
}
.flow-step + .flow-step::before { content: '›'; position: absolute; left: -17px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 20px; }
.flow-step .n { font-family: var(--display, inherit); font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.flow-step .l { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); }
.flow-step:not(.none) .n { color: var(--ink); }
.flow-step:not(.none) { background: var(--brand-50); }
.flow-step.none { border-color: var(--line); }
.flow-step.none .n { color: var(--faint); }
.flow-step:hover { border-color: var(--ink); }
.flow-step:focus-visible { outline: 3px solid var(--pink); outline-offset: 2px; }
/* On a phone every stage shows at once, three to a row, in order. */
@media (max-width: 600px) {
  .flow { flex-wrap: wrap; gap: 8px; overflow: visible; }
  .flow-step { flex: 1 1 calc(33.333% - 8px); min-width: 0; max-width: none; padding: 8px 10px; }
  .flow-step + .flow-step::before { display: none; }
  .flow-step .n { font-size: 20px; }
}

/* ---------- The warehouse app ---------- */
.wh-app .tabs a { display: inline-flex; align-items: center; gap: 4px; }
.clock-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 14px; margin-bottom: 14px; border: 2px solid var(--line); border-radius: 14px; background: var(--card); }
.clock-bar .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--faint); flex: none; }
.clock-bar.working { border-color: var(--ok); }
.clock-bar.working .dot { background: var(--ok); }
.clock-bar.break { border-color: var(--warn); }
.clock-bar.break .dot { background: var(--warn); }
.clock-bar p { margin: 0; min-width: 0; }
.job-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; }
.job-card { display: grid; gap: 2px; padding: 12px 14px; border: 2px solid var(--ink); border-radius: 14px; background: var(--brand-50); color: var(--ink); text-decoration: none; }
.job-card .n { font-family: var(--display); font-size: 24px; font-weight: 800; font-variant-numeric: tabular-nums; }
.job-card .l { font-size: 13px; color: var(--ink-2); }
.job-card.none { background: var(--card); border-color: var(--line); }
.job-card.none .n { color: var(--faint); }
.job-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 12px; }

/* The team calendar: a month grid on wide screens, one day per row on a phone. */
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-head { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; padding: 0 4px; }
.cal-cell { min-height: 92px; padding: 6px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cal-cell.blank { border: 0; background: transparent; }
.cal-cell.today { border: 2px solid var(--ink); }
.cal-day { display: flex; align-items: baseline; gap: 6px; }
.cal-day .wd { display: none; font-size: 12px; color: var(--muted); }
.cal-day .num { font-weight: 700; font-variant-numeric: tabular-nums; }
.cal-day .hrs { margin-left: auto; font-size: 11px; color: var(--ok); font-weight: 700; white-space: nowrap; }
.cal-chip { display: block; padding: 2px 6px; border-radius: 6px; font-size: 11.5px; line-height: 1.35; overflow-wrap: anywhere; background: var(--sand); color: var(--ink); }
.cal-chip.k-shift { background: var(--brand-50); }
.cal-chip.k-holiday { background: var(--pink-50); }
.cal-chip.k-sick { background: var(--warn-50); }
.cal-chip.k-off { background: var(--sand-2); }
.cal-chip.requested { border: 1.5px dashed var(--ink-2); background: transparent; }
.cal-chip.declined { text-decoration: line-through; color: var(--faint); }
.cal-chip.removable { cursor: pointer; }
.cal-chip.removable:hover { outline: 2px solid var(--ink); }
.row.small .cal-chip { display: inline-block; }
@media (max-width: 700px) {
  .cal-grid { grid-template-columns: 1fr; }
  .cal-head, .cal-cell.blank { display: none; }
  .cal-cell { min-height: 0; flex-direction: row; flex-wrap: wrap; align-items: center; }
  .cal-day { min-width: 84px; }
  .cal-day .wd { display: inline; }
  .cal-day .hrs { margin-left: 6px; }
}

/* A suspended account: the time left, counting down. */
.countdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.cd-part { background: var(--sand); border-radius: var(--r); padding: 10px 4px; text-align: center; display: flex; flex-direction: column; }
.cd-n { font-size: 26px; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cd-w { font-size: 12px; color: var(--muted); }

/* Warehouse language picker and the how-to guide. */
.lang-pick { display: inline-flex; align-items: center; gap: 6px; }
.lang-pick .select { width: auto; min-width: 120px; height: 36px; padding-top: 0; padding-bottom: 0; }
.guide-steps { margin: 0; padding-inline-start: 22px; display: grid; gap: 8px; }
.guide-steps li { line-height: 1.5; }
.wh-guide .chip { text-decoration: none; }
@media print { .wh-app .tabs, .wh-app .clock-bar, .wh-app .page-head .row { display: none !important; } .wh-guide .card { break-inside: avoid; box-shadow: none; } }

/* Admin > Accounts: profit and loss lines and the year table. */
.pl-line { padding: 6px 0; font-size: 14px; }
.pl-line.total { border-top: 1px solid var(--line-2); padding-top: 10px; }
.pl-line.neg span:last-child, .pl-table td.neg { color: #8c2323; }
.pl-table td.num, .pl-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pl-table tr.on td { background: var(--sand); }
.pl-bar { display: block; height: 8px; min-width: 2px; border-radius: 4px; background: #2f7a55; }
.pl-bar.neg { background: #b54141; }

/* Rewards: levels, badges and progress. */
.level-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--sand); color: var(--ink); }
.level-pill.lg { font-size: 18px; padding: 6px 14px; }
.lv-bronze { background: #f3e0cf; color: #7a4414; }
.lv-silver { background: #e6e8ec; color: #3d4450; }
.lv-gold { background: #f7e7b4; color: #6f5208; }
.lv-platinum { background: #dde9f2; color: #1e4b6b; }
.badge-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 12px; }
.badge-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-size: 12px; background: #fff; border: 1px solid var(--line); }
.progress { height: 10px; border-radius: 999px; background: var(--sand); overflow: hidden; }
.progress.thin { height: 6px; }
.progress > span { display: block; height: 100%; background: #2f7a55; border-radius: 999px; }
.level-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; }
.level-card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.level-card.on { border-color: #2f7a55; box-shadow: 0 0 0 2px rgba(47, 122, 85, .15); }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.badge-card { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; text-align: center; display: flex; flex-direction: column; gap: 4px; align-items: center; opacity: .65; }
.badge-card.earned { opacity: 1; border-color: #2f7a55; }
.badge-card .progress { width: 100%; }
.badge-ico { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--sand); }
.badge-card.earned .badge-ico { background: #e3f1e9; color: #1f5e3f; }

/* Money figures on phones: a little smaller, and allowed to wrap rather than run out of the card. */
@media (max-width: 480px) { .stat .v { font-size: 18px; overflow-wrap: anywhere; } }
.job-cell { display: grid; gap: 4px; }
.job-batch { display: inline-flex; align-items: center; justify-content: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; padding: 4px; }

/* Spotlight: the boost above bumps. A pink pill hanging where the swing tags hang. */
.spotlight-tag { position: absolute; left: -6px; top: 12px; z-index: 2; display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px;
  background: var(--pink); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; font-family: var(--display); font-size: 10px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; rotate: -4deg; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .25)); }
.boost-picker .option-card.disabled { opacity: .55; }
/* "For you": why an item was suggested. */
.item-card .why { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; color: var(--muted); }

/* Coming soon: the page visitors see before launch. */
.soon-hero { background: var(--ink); color: var(--chalk, #F5F5F0); padding-block: 40px 48px; }
.soon-grid { display: grid; gap: 28px; align-items: start; }
@media (min-width: 900px) { .soon-grid { grid-template-columns: 1.1fr 1fr; gap: 48px; } }
.soon-logo img, .soon-logo svg { height: 46px; width: auto; }
.soon-tag { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; background: var(--brand); color: var(--ink); border: 2px solid var(--ink); border-radius: 999px; padding: 4px 12px; font-size: 13px; font-weight: 600; }
.soon-title { font-family: var(--display); font-size: clamp(34px, 7vw, 56px); line-height: 1.05; letter-spacing: -.02em; margin: 0; color: inherit; }
.soon-lead { font-size: 17px; line-height: 1.55; max-width: 52ch; opacity: .9; }
.soon-hero .btn-outline { color: var(--chalk, #F5F5F0); border-color: var(--chalk, #F5F5F0); }
.soon-hero .btn-dark { background: var(--brand); color: var(--ink); border-color: var(--brand); }
.soon-card { color: var(--ink); scroll-margin-top: 90px; }
.soon-want { padding: 6px 10px; border: 1px solid var(--line); border-radius: 999px; }
.soon-done { align-items: center; text-align: center; padding: 12px 0; }
.soon-done-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--ink); border: 2px solid var(--ink); }
.soon-points { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; padding-block: 36px 12px; }
.soon-point { display: flex; gap: 12px; align-items: flex-start; }
.soon-point h3 { margin: 0 0 4px; font-size: 16px; }
.soon-ico { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--pink-50, #ffe3f0); color: var(--ink); }
.soon-foot { gap: 18px; padding-block: 18px 40px; font-size: 14px; }
.soon-hero .btn.btn-outline { background: transparent; color: #F5F5F0; border-color: #F5F5F0; }
.prelaunch .header-bar .grow.hide-mobile, .prelaunch .mobile-search, .prelaunch .cat-nav { display: none !important; }
