/* ============================================================
   LEEBA — Collection Page Styles
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --teal:      #2bada5;
  --teal-dk:   #1a6b6b;
  --teal-xdk:  #0f4040;
  --teal-lt:   #4ecdc4;
  --teal-pale: #e8f8f7;
  --teal-bg:   #f2fbfa;
  --gold:      #c9a96d;
  --gold-lt:   #e8d4a8;
  --ink:       #0d1f1f;
  --ink2:      #1a3333;
  --muted:     #4a7272;
  --border:    #c0dede;
  --row-alt:   #f8fefe;
  --surface:   #ffffff;
}

html, body {
  height: 100%;
  font-family: 'Raleway', sans-serif;
  background: var(--teal-bg);
  color: var(--ink);
}

/* ─────────────────────────────────────────────────
   SHELL  — the main flex column layout.
   Applied to #collection-ui.
   display:flex is set by JS when data is ready.
───────────────────────────────────────────────── */
.shell {
  flex-direction: column;
  height: 100vh;
  overflow: hidden;
}

/* ─────────────────────────────────────────────────
   FIRST-TIME SETUP SCREEN
   Full-page gradient with a centred card.
   Only shown on very first open (no saved data).
───────────────────────────────────────────────── */
.setup-screen {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: linear-gradient(135deg, #0f4040 0%, #1a6b6b 55%, #2aa8a0 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.ss-card {
  background: var(--surface);
  border-radius: 10px;
  padding: 2.8rem 3rem;
  max-width: 460px;
  width: 100%;
  text-align: center;
  box-shadow: 0 32px 80px rgba(10,32,32,.4);
  animation: ssIn .35s ease both;
}
@keyframes ssIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.ss-logo { height: 34px; width: auto; margin-bottom: 1.6rem; display: block; margin-left: auto; margin-right: auto; }
.ss-wordmark {
  display: block;
  font-family: 'Playfair Display', serif;
  font-size: 1.7rem;
  letter-spacing: .22em;
  color: var(--teal-dk);
  margin-bottom: 1.6rem;
}

.ss-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 400;
  color: var(--ink);
  margin-bottom: .5rem;
}

.ss-sub {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 1.6rem;
}

/* Step-by-step instructions */
.ss-steps {
  display: flex;
  flex-direction: column;
  gap: .7rem;
  margin-bottom: 1.8rem;
  text-align: left;
  background: var(--teal-bg);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 1rem 1.2rem;
}

.ss-step {
  display: flex;
  align-items: center;
  gap: .75rem;
  font-size: .82rem;
  color: var(--ink2);
}

.ss-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-xdk);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  flex-shrink: 0;
}

/* Browse file button */
.ss-browse-label {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  padding: .7rem 2rem;
  border-radius: 4px;
  background: linear-gradient(135deg, var(--teal-lt), var(--teal-dk));
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .08em;
  cursor: pointer;
  transition: opacity .2s, transform .15s;
  margin-bottom: .8rem;
}
.ss-browse-label:hover { opacity: .9; transform: translateY(-1px); }

/* Status / error message under the button */
.ss-status {
  font-size: .78rem;
  color: #b91c1c;
  background: #fff3f3;
  border: 1px solid #f5c6c6;
  border-radius: 4px;
  padding: .5rem .9rem;
  margin-top: .4rem;
  text-align: left;
  line-height: 1.6;
}

/* ─────────────────────────────────────────────────
   HEADER
───────────────────────────────────────────────── */
.hero {
  flex-shrink: 0;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .5rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo-img { height: 24px; width: auto; object-fit: contain; flex-shrink: 0; }

.hero-right {
  display: flex;
  align-items: center;
  gap: .7rem;
  font-size: .78rem;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  flex-shrink: 0;
  flex-wrap: wrap;
}
.hero-right a       { color: var(--teal-dk); text-decoration: none; }
.hero-right a:hover { color: var(--teal); }

.loaded-info {
  font-size: .67rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: .02em;
}

/* "Update Data" button — a label so it can wrap a file input */
.update-btn {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  padding: .28rem .75rem;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: var(--teal-pale);
  color: var(--teal-dk);
  font-family: 'Raleway', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: all .15s;
  white-space: nowrap;
}
.update-btn:hover { background: var(--teal-dk); color: #fff; border-color: var(--teal-dk); }

/* ── HERO STRIP ── */
.hero-strip {
  flex-shrink: 0;
  background: linear-gradient(135deg, #0f4040 0%, #1a6b6b 55%, #2aa8a0 100%);
  padding: .45rem 1.5rem;
}
.hero-strip-inner { max-width: 100%; display: flex; align-items: center; gap: 0; flex-wrap: wrap; }
.hs-item { display: flex; align-items: center; gap: .5rem; padding: .1rem 1.1rem; border-right: 1px solid rgba(255,255,255,.15); white-space: nowrap; }
.hs-item:first-child { padding-left: 0; }
.hs-item:last-child  { border-right: none; }
.hs-label { font-size: .65rem; letter-spacing: .15em; text-transform: uppercase; color: rgba(255,255,255,.85); font-weight: 400; }
.hs-bespoke { margin-left: auto; display: inline-flex; align-items: center; gap: .3rem; padding: .3rem 1rem; border-radius: 3px; background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.5); color: #fff; font-family: 'Raleway', sans-serif; font-size: .67rem; letter-spacing: .12em; font-weight: 700; text-transform: uppercase; cursor: pointer; white-space: nowrap; transition: background .2s, border-color .2s; }
.hs-bespoke:hover { background: rgba(255,255,255,.28); border-color: rgba(255,255,255,.85); }

/* ─────────────────────────────────────────────────
   FILTER BAR
───────────────────────────────────────────────── */
.filter-bar { flex-shrink: 0; background: var(--surface); border-bottom: 2px solid var(--border); box-shadow: 0 2px 8px rgba(15,64,64,.08); }
.filter-inner { display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; padding: .5rem 1.5rem; }

.cat-pill { display: inline-flex; align-items: center; gap: .25rem; padding: .3rem .75rem; border: 1.5px solid var(--border); border-radius: 3px; cursor: pointer; font-family: 'Raleway', sans-serif; font-size: .75rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; background: transparent; color: var(--muted); transition: all .15s; white-space: nowrap; }
.cat-pill:hover  { border-color: var(--teal); color: var(--teal-dk); background: var(--teal-pale); }
.cat-pill.active { background: var(--teal-xdk); border-color: var(--teal-xdk); color: #fff; }
.pill-ct { font-size: .65rem; font-weight: 700; background: rgba(255,255,255,.2); border-radius: 2px; padding: .05rem .3rem; margin-left: .1rem; }
.cat-pill:not(.active) .pill-ct { background: var(--teal-pale); color: var(--teal-dk); }

.fsep  { width: 1px; height: 22px; background: var(--border); margin: 0 .2rem; flex-shrink: 0; }
.flbl  { font-size: .67rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; white-space: nowrap; }
.rc    { margin-left: auto; font-size: .78rem; color: var(--muted); white-space: nowrap; }
.rc strong { color: var(--teal-dk); font-weight: 700; }

select, input[type="text"] { padding: .32rem .65rem; height: 32px; border: 1.5px solid var(--border); border-radius: 3px; background: var(--surface); color: var(--ink); font-family: 'Raleway', sans-serif; font-size: .82rem; font-weight: 500; outline: none; transition: border-color .2s; }
select:focus, input[type="text"]:focus { border-color: var(--teal); }
.sw       { position: relative; }
.sw input { padding-left: 1.8rem; width: 250px; }
.si       { position: absolute; left: .5rem; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8rem; pointer-events: none; }

/* ─────────────────────────────────────────────────
   SCROLL AREA — flex:1 + min-height:0 fixes scroll
───────────────────────────────────────────────── */
.scroll-area { flex: 1; min-height: 0; overflow-y: auto; overflow-x: auto; background: var(--teal-bg); }

/* ─────────────────────────────────────────────────
   DESKTOP TABLE
───────────────────────────────────────────────── */
.table-wrap { min-width: 1060px; }
table { width: 100%; border-collapse: collapse; min-width: 1060px; }

thead th { background: var(--teal-xdk); color: #fff; font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: .85rem 1rem; text-align: center; position: sticky; top: 0; z-index: 20; border-right: 1px solid rgba(255,255,255,.1); cursor: pointer; user-select: none; white-space: nowrap; transition: background .15s; }
thead th:hover { background: #1c5252; }

.si-col { opacity: .45; margin-left: .25rem; font-size: .6rem; }
thead th.asc  .si-col::after { content: '▲'; opacity: 1; color: var(--gold-lt); }
thead th.desc .si-col::after { content: '▼'; opacity: 1; color: var(--gold-lt); }
thead th:not(.asc):not(.desc) .si-col::after { content: '⇅'; }

tbody tr             { border-bottom: 1px solid var(--border); transition: background .1s; }
tbody tr:nth-child(even) { background: var(--row-alt); }
tbody tr:hover       { background: var(--teal-pale); }
tbody td             { padding: .7rem 1rem; vertical-align: middle; text-align: center; font-size: .88rem; font-weight: 600; color: var(--ink2); }

.rn  { color: var(--muted); font-size: .78rem; font-weight: 500; }
.sku { font-family: 'Courier New', monospace; font-size: .88rem; font-weight: 700; color: var(--teal-dk); letter-spacing: .02em; }

.dna-btn { display: inline-flex; align-items: center; gap: .28rem; padding: .28rem .7rem; border: 2px solid var(--teal); border-radius: 3px; background: var(--teal-pale); color: var(--teal-dk); font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-decoration: none; transition: all .15s; }
.dna-btn:hover { background: var(--teal-dk); color: #fff; border-color: var(--teal-dk); }

.cat-b { display: inline-block; padding: .22rem .65rem; border-radius: 3px; font-size: .72rem; letter-spacing: .07em; text-transform: uppercase; font-weight: 700; }
.cat-RING     { background: #e2f4e2; color: #1a5a28; }
.cat-BRACELET { background: #e2eaf8; color: #1a2868; }
.cat-EARRING  { background: #f4e2f4; color: #68186a; }
.cat-EARING   { background: #f4e2f4; color: #68186a; }
.cat-NECKLACE { background: #f4f0e2; color: #6a4818; }
.cat-PENDANT  { background: var(--teal-pale); color: var(--teal-xdk); }
.cat-BANGLE   { background: #fde8e8; color: #991b1b; }

.tone-wrap { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; font-weight: 600; }
.tgem      { display: inline-block; width: 12px; height: 12px; transform: rotate(45deg); border-radius: 1px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.tone-W  .tgem { background: linear-gradient(135deg,#f2f2f2,#b8b8b8); border:1px solid #999; }
.tone-Y  .tgem { background: linear-gradient(135deg,#f7df72,#c8a020); border:1px solid #b08010; }
.tone-R  .tgem { background: linear-gradient(135deg,#f2a0a0,#c84040); border:1px solid #a03030; }
.tone-YW .tgem { background: linear-gradient(135deg,#f7df72 50%,#dedede 50%); border:1px solid #b0a050; }
.tone-RW .tgem { background: linear-gradient(135deg,#f2a0a0 50%,#dedede 50%); border:1px solid #b07070; }
.tone-D  .tgem { background: linear-gradient(135deg,#f2a0a0 33.3%, #dedede 33.3%, #f7df72 33.3%); border:1px solid #999; }

/* Description cell — normal cursor, text selectable, truncated */
td.desc-cell { max-width: 280px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 600; font-size: .83rem; color: var(--ink2); cursor: default; user-select: text; }

.wa-btn { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .8rem; border-radius: 3px; background: #25d366; color: #fff; font-size: .74rem; font-weight: 700; letter-spacing: .05em; text-decoration: none; transition: opacity .15s; white-space: nowrap; }
.wa-btn:hover { opacity: .85; }
.no-res { text-align: center; padding: 3rem; color: var(--muted); font-size: .95rem; }

/* ─────────────────────────────────────────────────
   MOBILE CARDS
───────────────────────────────────────────────── */
.mobile-cards { display: none; padding: .75rem; }
.prod-card { background: var(--surface); border: 1px solid var(--border); border-radius: 4px; margin-bottom: .6rem; padding: .85rem 1rem; box-shadow: 0 1px 4px rgba(15,64,64,.06); }
.card-top    { display: flex; align-items: center; justify-content: space-between; margin-bottom: .5rem; }
.card-sku    { font-family: 'Courier New', monospace; font-size: .88rem; font-weight: 700; color: var(--teal-dk); }
.card-grid   { display: grid; grid-template-columns: 1fr 1fr; gap: .3rem .8rem; margin-bottom: .5rem; }
.card-field  { display: flex; flex-direction: column; gap: .05rem; }
.card-lbl    { font-size: .58rem; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.card-val    { font-size: .84rem; font-weight: 700; color: var(--ink2); }
.card-desc   { font-size: .80rem; color: var(--muted); font-weight: 600; padding: .4rem 0 .5rem; border-top: 1px dashed var(--border); margin-bottom: .3rem; line-height: 1.55; }
.card-desc-label { font-size: .57rem; letter-spacing: .1em; text-transform: uppercase; color: var(--border); font-weight: 600; display: block; margin-bottom: .12rem; }
.card-actions { display: flex; gap: .5rem; padding-top: .5rem; border-top: 1px solid var(--border); }
.card-dna { flex: 1; display: flex; align-items: center; justify-content: center; gap: .3rem; padding: .38rem; border: 2px solid var(--teal); border-radius: 3px; background: var(--teal-pale); color: var(--teal-dk); font-size: .75rem; font-weight: 700; text-decoration: none; }
.card-dna:hover { background: var(--teal-dk); color: #fff; border-color: var(--teal-dk); }
.card-wa  { flex: 2; display: flex; align-items: center; justify-content: center; gap: .35rem; padding: .38rem; border-radius: 3px; background: #25d366; color: #fff; font-size: .75rem; font-weight: 700; text-decoration: none; }

/* ── BESPOKE SECTION ── */
.cust { background: linear-gradient(135deg, var(--teal-xdk), var(--teal-dk) 55%, var(--teal)); padding: 2rem 1.5rem; position: relative; overflow: hidden; }
.cust::before { content: '◆'; position: absolute; right: 2rem; top: 50%; transform: translateY(-50%); font-size: 8rem; color: rgba(255,255,255,.04); pointer-events: none; }
.cust-inner { max-width: 1100px; margin: auto; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.cust h2 { font-family: 'Playfair Display', serif; font-size: clamp(1.2rem,3vw,1.7rem); color: #fff; font-weight: 400; margin-bottom: .4rem; }
.cust h2 em { font-style: italic; color: var(--gold-lt); }
.cust p     { font-size: .82rem; color: rgba(255,255,255,.72); max-width: 440px; line-height: 1.75; }
.cust-feats { display: flex; gap: 1.2rem; margin-top: .8rem; flex-wrap: wrap; }
.cust-feat  { font-size: .7rem; color: rgba(255,255,255,.8); display: flex; align-items: center; gap: .3rem; }
.cust-feat::before { content: '◆'; color: var(--gold-lt); font-size: .48rem; }
.cust-btns  { display: flex; flex-direction: column; gap: .6rem; align-items: flex-end; min-width: 180px; }
.btn-gold { padding: .65rem 1.8rem; border-radius: 3px; background: var(--gold); border: none; color: var(--ink); font-family: 'Raleway', sans-serif; font-size: .76rem; letter-spacing: .1em; font-weight: 700; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; transition: all .2s; visibility: hidden; }
.btn-gold:hover { background: var(--gold-lt); transform: translateY(-1px); }
.btn-wa-outline { padding: .58rem 1.6rem; border-radius: 3px; border: 1.5px solid rgba(255,255,255,.5); background: transparent; color: rgba(255,255,255,.92); font-family: 'Raleway', sans-serif; font-size: .74rem; letter-spacing: .1em; font-weight: 600; text-transform: uppercase; cursor: pointer; text-decoration: none; display: inline-block; text-align: center; transition: all .2s; }
.btn-wa-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); }

/* ── LOCATION BADGE ── */
.loc-b {
  display: inline-block;
  padding: .2rem .6rem;
  border-radius: 3px;
  font-size: .72rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  font-weight: 700;
  white-space: nowrap;
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

/* ─────────────────────────────────────────────────
   SUMMARY BAR
   Frozen strip between scroll-area and footer.
   Always visible — shows totals for filtered data.
───────────────────────────────────────────────── */
.summary-bar {
  flex-shrink: 0;
  background: var(--teal-xdk);
  border-top: 2px solid rgba(255,255,255,.12);
  padding: .45rem 1.5rem;
}
.summary-inner {
  display: flex;
  align-items: center;
  gap: 1.4rem;
  flex-wrap: wrap;
}
.sum-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .05rem;
}
.sum-lbl {
  font-size: .56rem;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(255,255,255,.55);
  font-weight: 600;
  white-space: nowrap;
}
.sum-val {
  font-size: .92rem;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.sum-sep {
  color: rgba(255,255,255,.2);
  font-size: 1rem;
  line-height: 1;
  align-self: center;
}

/* ── FOOTER ── */
.page-footer { flex-shrink: 0; border-top: 1px solid var(--border); background: var(--surface); padding: .6rem 1.5rem; }
.foot-inner  { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.foot-contact   { font-size: .82rem; font-weight: 600; color: var(--ink2); }
.foot-contact a { color: var(--teal-dk); text-decoration: none; font-weight: 700; }
.socials { display: flex; gap: 1rem; }
.soc { font-size: .82rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); text-decoration: none; display: flex; align-items: center; gap: .28rem; transition: color .2s; }
.soc:hover { color: var(--teal); }

/* ── FLOAT BUTTON ── */
.float-wrap { position: fixed; bottom: 4rem; right: 1.5rem; z-index: 400; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.float-tip { background: var(--teal-xdk); color: #fff; font-size: .7rem; font-weight: 600; padding: .35rem .8rem; border-radius: 3px; white-space: nowrap; opacity: 0; transform: translateX(6px); transition: all .2s; pointer-events: none; }
.float-wrap:hover .float-tip { opacity: 1; transform: translateX(0); }
.float-b { width: 68px; height: 68px; background: linear-gradient(135deg,#e8c060,var(--gold),#a07020); border: none; border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; cursor: pointer; box-shadow: 0 4px 16px rgba(0,0,0,.25); transition: transform .2s, box-shadow .2s; color: #fff; }
.float-b:hover { transform: translateY(-3px); box-shadow: 0 8px 22px rgba(0,0,0,.3); }
.fi { font-size: 1.4rem; line-height: 1; }
.fl { font-size: .5rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; text-align: center; }

/* ── MODAL ── */
.modal-ov { display: none; position: fixed; inset: 0; z-index: 500; background: rgba(10,32,32,.6); backdrop-filter: blur(4px); align-items: center; justify-content: center; }
.modal-ov.open { display: flex; }
.modal-box { background: var(--surface); border-radius: 4px; padding: 2.2rem; max-width: 420px; width: 92%; box-shadow: 0 24px 60px rgba(10,32,32,.3); animation: mIn .22s ease; }
@keyframes mIn { from{opacity:0;transform:scale(.96) translateY(8px);} to{opacity:1;transform:none;} }
.mt { font-family: 'Playfair Display', serif; font-size: 1.35rem; color: var(--ink); margin-bottom: .3rem; }
.ms { font-size: .8rem; color: var(--muted); margin-bottom: 1.3rem; }
.fg { margin-bottom: .85rem; }
.fg label { display: block; font-size: .63rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: .28rem; font-weight: 700; }
.fg input, .fg select, .fg textarea { width: 100%; padding: .48rem .68rem; border: 1.5px solid var(--border); border-radius: 3px; font-family: 'Raleway', sans-serif; font-size: .85rem; color: var(--ink); outline: none; transition: border-color .2s; }
.fg textarea { min-height: 70px; resize: vertical; }
.fg input:focus, .fg select:focus, .fg textarea:focus { border-color: var(--teal); }
.mact { display: flex; gap: .6rem; justify-content: flex-end; margin-top: 1.1rem; }
.m-cancel { padding: .42rem 1rem; border: 1px solid var(--border); border-radius: 3px; background: transparent; font-family: 'Raleway', sans-serif; font-size: .76rem; cursor: pointer; color: var(--muted); }
.m-submit { padding: .42rem 1.2rem; border: none; border-radius: 3px; background: linear-gradient(135deg,var(--teal-lt),var(--teal-dk)); color: #fff; font-family: 'Raleway', sans-serif; font-size: .76rem; letter-spacing: .07em; cursor: pointer; font-weight: 700; }

/* ─────────────────────────────────────────────────
   LOADING SPINNER (inside loading screen)
───────────────────────────────────────────────── */
.ls-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--teal);
  border-radius: 50%;
  animation: spin .7s linear infinite;
  margin: 0 auto;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─────────────────────────────────────────────────
   TOAST NOTIFICATION
───────────────────────────────────────────────── */
.toast {
  position: fixed;
  bottom: 5.5rem;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  background: var(--teal-xdk);
  color: #fff;
  font-size: .78rem;
  font-weight: 600;
  padding: .55rem 1.2rem;
  border-radius: 4px;
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .25s;
  z-index: 600;
  white-space: nowrap;
  letter-spacing: .03em;
}
.toast.show            { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast.toast-error     { background: #b91c1c; }
.toast.toast-ok        { background: var(--teal-dk); }

/* ─────────────────────────────────────────────────
   MULTI-SELECT DROPDOWN
───────────────────────────────────────────────── */
.ms-wrap {
  position: relative;
  display: inline-block;
  flex-shrink: 0;
}

.ms-btn {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .32rem .65rem;
  height: 32px;
  min-width: 88px;
  max-width: 140px;
  border: 1.5px solid var(--border);
  border-radius: 3px;
  background: var(--surface);
  color: var(--ink);
  font-family: 'Raleway', sans-serif;
  font-size: .82rem;
  font-weight: 500;
  cursor: pointer;
  white-space: nowrap;
  justify-content: space-between;
  transition: border-color .2s, background .15s;
}
.ms-btn:hover  { border-color: var(--teal); background: var(--teal-pale); }
.ms-btn.open   { border-color: var(--teal); background: var(--teal-pale); }

.ms-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  text-align: left;
}
.ms-label.has-val { color: var(--teal-dk); font-weight: 700; }

.ms-caret {
  font-size: .62rem;
  color: var(--muted);
  flex-shrink: 0;
  display: inline-block;
  transition: transform .18s;
}
.ms-btn.open .ms-caret { transform: rotate(180deg); }

.ms-panel {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 160px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 4px;
  box-shadow: 0 6px 20px rgba(15,64,64,.13);
  z-index: 300;
  flex-direction: column;
  overflow: hidden;
}
.ms-panel.open { display: flex; animation: msIn .13s ease; }
@keyframes msIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: none; }
}

.ms-item {
  display: flex;
  align-items: center;
  gap: .5rem;
  padding: .42rem .75rem;
  font-size: .82rem;
  color: var(--ink2);
  font-weight: 500;
  cursor: pointer;
  transition: background .1s;
  user-select: none;
}
.ms-item:hover { background: var(--teal-pale); }
.ms-item:has(input:checked) { background: #edf8f7; color: var(--teal-dk); font-weight: 700; }

.ms-item input[type=checkbox] {
  accent-color: var(--teal-dk);
  width: 14px;
  height: 14px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

.ms-footer {
  display: flex;
  gap: .4rem;
  padding: .45rem .6rem;
  border-top: 1px solid var(--border);
  background: var(--teal-bg);
  justify-content: flex-end;
  flex-shrink: 0;
}

.ms-clear {
  padding: .27rem .75rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  background: transparent;
  color: var(--muted);
  font-family: 'Raleway', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .04em;
  cursor: pointer;
  transition: all .15s;
}
.ms-clear:hover { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }

.ms-ok {
  padding: .27rem 1rem;
  border: none;
  border-radius: 3px;
  background: linear-gradient(135deg, var(--teal-lt), var(--teal-dk));
  color: #fff;
  font-family: 'Raleway', sans-serif;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .06em;
  cursor: pointer;
  transition: opacity .15s;
}
.ms-ok:hover { opacity: .88; }

/* ─────────────────────────────────────────────────
   RESPONSIVE
───────────────────────────────────────────────── */
@media (max-width: 700px) {
  html, body      { height: auto; }
  .shell          { height: auto; overflow: visible; flex-direction: column; }
  .scroll-area    { overflow: visible; flex: none; min-height: unset; }
  .table-wrap     { display: none; }
  .mobile-cards   { display: block; }
  .filter-inner   { gap: .3rem; }
  .cat-pill       { font-size: .68rem; padding: .25rem .55rem; }
  select, input[type="text"] { font-size: .78rem; height: 30px; }
  .sw input       { width: 140px; }
  .cust-inner     { grid-template-columns: 1fr; }
  .cust-btns      { align-items: flex-start; flex-direction: row; flex-wrap: wrap; }
  .hero           { padding: .45rem 1rem; }
  .hero-right     { font-size: .63rem; gap: .4rem; }
  .loaded-info    { display: none; }
  .ss-card        { padding: 1.8rem 1.4rem; }
}
