﻿/* â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•
   TheHobbyDesk.com â€” styles
   Material-inspired tokens (MUI default palette: primary #1976d2,
   grey scale, Roboto, elevation shadows).
   â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â•â• */
:root {
  --primary: #1976d2;
  --primary-dark: #1565c0;
  --primary-light: #42a5f5;
  --primary-050: #e3f2fd;
  --gold: #8a6d00;
  --error: #d32f2f;
  --success: #2e7d32;
  --warning: #ed6c02;

  --text: rgba(0, 0, 0, 0.87);
  --text-2: rgba(0, 0, 0, 0.60);
  --text-3: rgba(0, 0, 0, 0.45);
  --divider: rgba(0, 0, 0, 0.12);
  --line: rgba(0, 0, 0, 0.08);
  --outline: rgba(0, 0, 0, 0.23);

  --bg: #f5f5f5;
  --surface: #ffffff;
  --hover: rgba(25, 118, 210, 0.04);

  --radius: 8px;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 1px 3px rgba(0, 0, 0, 0.2);
  --shadow-appbar: 0 2px 4px -1px rgba(0,0,0,.2), 0 4px 5px 0 rgba(0,0,0,.14), 0 1px 10px 0 rgba(0,0,0,.12);
  --shadow-menu: 0 3px 5px -1px rgba(0,0,0,.2), 0 6px 10px 0 rgba(0,0,0,.14);

  --pad: 24px 32px;
}
:root[data-theme="dark"] {
  --primary: #42a5f5;
  --primary-dark: #1e88e5;
  --primary-light: #64b5f6;
  --primary-050: rgba(66, 165, 245, 0.14);
  --gold: #e0b84a;

  --text: rgba(255, 255, 255, 0.92);
  --text-2: rgba(255, 255, 255, 0.68);
  --text-3: rgba(255, 255, 255, 0.5);
  --divider: rgba(255, 255, 255, 0.14);
  --line: rgba(255, 255, 255, 0.10);
  --outline: rgba(255, 255, 255, 0.3);

  --bg: #10151c;
  --surface: #1a212b;
  --hover: rgba(66, 165, 245, 0.1);
}
:root[data-theme="dark"] .catbar__menu,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] select.input,
:root[data-theme="dark"] .hero__search .filter-search,
:root[data-theme="dark"] .btn--scan,
:root[data-theme="dark"] .bottom-nav,
:root[data-theme="dark"] .trend-strip { background: var(--surface); }
:root[data-theme="dark"] .ladder__row.top { background: rgba(224, 184, 74, 0.12); }
:root[data-theme="dark"] .photo-drop { background: rgba(255, 255, 255, 0.03); }
:root[data-theme="dark"] .snackbar { background: #2b333e; }
:root[data-theme="dark"] .modal-source, :root[data-theme="dark"] .modal__source { background: rgba(255, 255, 255, 0.04); }

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-dark); text-decoration: underline; }
button { font-family: inherit; }

.msy {
  font-family: 'Material Symbols Outlined';
  font-weight: normal; font-style: normal; line-height: 1;
  letter-spacing: normal; text-transform: none; display: inline-block;
  white-space: nowrap; word-wrap: normal; direction: ltr;
  -webkit-font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased;
  font-size: 20px; vertical-align: middle;
}

/* â”€â”€ App bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.appbar {
  position: sticky; top: 0; z-index: 20;
  background: var(--primary); color: #fff;
  box-shadow: var(--shadow-appbar);
}
.appbar__inner {
  height: 64px; display: flex; align-items: center; gap: 14px;
  padding: 0 24px; width: 100%;
}
.appbar__spacer { flex: 1; }
.brand { background: none; border: none; padding: 0; cursor: pointer; display: flex; align-items: center; }
.brand__logo { height: 38px; width: auto; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }

.nav { display: flex; align-items: center; gap: 2px; margin-left: 6px; min-width: 0; }
.nav-btn {
  height: 36px; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px;
  border: none; background: transparent; color: #fff; font-size: .875rem; font-weight: 500;
  border-radius: 4px; cursor: pointer;
}
.nav-btn .msy { font-size: 18px; }
.nav-btn:hover { background: rgba(255, 255, 255, 0.12); }
.nav-btn.is-active { background: rgba(255, 255, 255, 0.18); }
.nav-btn--ext { text-decoration: none; }
.nav-btn--ext:hover { color: #fff; text-decoration: none; }
.nav-btn__ext { font-size: 14px !important; opacity: .7; }

.search { display: flex; align-items: center; gap: 8px; border-radius: 4px; }
.search--bar {
  background: rgba(255, 255, 255, 0.15); padding: 0 12px; height: 40px;
  width: min(320px, 28vw);
}
.search--bar .msy { font-size: 22px; opacity: .9; }
.search--bar input {
  flex: 1; border: none; background: transparent; outline: none;
  color: #fff; font-family: inherit; font-size: .9rem; min-width: 0;
  -webkit-appearance: none; appearance: none; border-radius: 0;
}
.search--bar input::placeholder { color: rgba(255, 255, 255, 0.7); }
.search--bar input::-webkit-search-decoration,
.search--bar input::-webkit-search-cancel-button,
.search--bar input::-webkit-search-results-button,
.search--bar input::-webkit-search-results-decoration { -webkit-appearance: none; appearance: none; }
.search--bar .icon-btn { color: #fff; flex-shrink: 0; }
.search--bar .icon-btn:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }

.modesw {
  display: flex; align-items: center; background: rgba(0, 0, 0, 0.18);
  border-radius: 20px; padding: 3px; height: 34px;
}
.modesw__btn {
  height: 28px; padding: 0 12px; border: none; border-radius: 16px;
  font-size: .78rem; font-weight: 600; cursor: pointer;
  display: inline-flex; align-items: center; gap: 4px;
  background: transparent; color: rgba(255, 255, 255, 0.85);
}
.modesw__btn .msy { font-size: 15px; }
.modesw__btn.is-active { background: #fff; color: var(--primary); }

.statusbar {
  font-size: .78rem; padding: 5px 24px; display: flex; align-items: center; gap: 8px;
  background: rgba(0, 0, 0, 0.28); color: #fff;
}
.statusbar.is-error { background: var(--error); }
.statusbar .msy { font-size: 15px; }

/* â”€â”€ Category bar (sports â†’ brand dropdowns) â”€â”€â”€ */
.catbar {
  display: flex; align-items: stretch; background: #0f5aa8; /* darker primary */
  padding: 0 24px; overflow: visible; position: relative; z-index: 35;
}
.catbar__item { position: relative; flex: 0 0 auto; }
.catbar__btn {
  height: 42px; padding: 0 16px; border: none; background: transparent; color: #fff;
  font-size: .82rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  border-bottom: 3px solid transparent;
}
.catbar__btn .msy { font-size: 16px; opacity: .8; }
.catbar__item:hover .catbar__btn,
.catbar__item.is-open .catbar__btn,
.catbar__btn.is-active { background: rgba(255, 255, 255, 0.12); border-bottom-color: #fff; }
.catbar__menu {
  position: absolute; top: 100%; left: 0; min-width: 190px; background: #fff;
  border-radius: 0 0 6px 6px; box-shadow: var(--shadow-menu); padding: 6px 0; z-index: 80;
  opacity: 0; visibility: hidden; transform: translateY(-4px); transition: opacity .12s, transform .12s;
}
.catbar__item:hover .catbar__menu, .catbar__item:focus-within .catbar__menu, .catbar__item.is-open .catbar__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.catbar__menu button {
  width: 100%; text-align: left; background: none; border: none; cursor: pointer;
  padding: 9px 18px; font-size: .85rem; color: var(--text); display: flex; align-items: center; gap: 8px;
}
.catbar__menu button:hover { background: var(--hover); color: var(--primary); }
.catbar__menu .catbar__all { font-weight: 600; color: var(--primary); border-bottom: 1px solid var(--line); }
@media (max-width: 720px) {
  .community-metrics, .community-rail, .community-gallery, .community-gallery--full { grid-template-columns: 1fr; }
  .community-list-row { grid-template-columns: auto minmax(0, 1fr); }
  .community-list-row .btn { grid-column: 2; justify-self: start; }
  .community-comment-form, .community-reply-box, .community-inline-form { flex-direction: column; align-items: stretch; }
  .community-composer__actions { justify-content: stretch; }
  .community-composer__actions .btn { flex: 1; }
  .catbar { overflow-x: auto; overflow-y: visible; padding: 0 8px; }
  .catbar__menu { position: fixed; left: 8px; right: 8px; min-width: 0; max-height: min(60vh, 420px); overflow: auto; }
}
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* â”€â”€ Buttons â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.btn {
  height: 40px; padding: 0 20px; border: none; border-radius: 4px;
  font-size: .875rem; font-weight: 500; text-transform: uppercase; letter-spacing: .02em;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--primary); color: #fff; box-shadow: var(--shadow-2); white-space: nowrap; line-height: 1.15;
}
.btn .msy { font-size: 18px; }
.btn:hover { background: var(--primary-dark); }
.btn--sm { min-height: 36px; height: auto; padding: 8px 14px; font-size: .8rem; }
.btn--onblue { background: #fff; color: var(--primary); box-shadow: none; height: 38px; padding: 0 14px; flex: 0 0 auto; min-width: 108px; white-space: nowrap; line-height: 1; border: 1px solid transparent; transition: background .12s, border-color .12s, color .12s; }
.btn--onblue:hover, .btn--onblue:focus-visible { background: var(--primary-050); border-color: rgba(255,255,255,.45); color: var(--primary-dark); }
.btn--outline { background: var(--surface); color: var(--primary); border: 1px solid rgba(25,118,210,.5); box-shadow: none; }
.btn--outline:hover { background: var(--hover); }
.btn--danger-outline { background: var(--surface); color: var(--error); border: 1px solid rgba(211,47,47,.5); box-shadow: none; }

.icon-btn {
  width: 32px; height: 32px; border: none; background: transparent; border-radius: 50%;
  cursor: pointer; color: var(--text-2); display: grid; place-items: center; transition: background .12s;
}
.icon-btn .msy { font-size: 19px; }
.icon-btn:hover { background: rgba(0, 0, 0, 0.06); color: var(--primary); }
.icon-btn--danger:hover { background: rgba(211, 47, 47, 0.08); color: var(--error); }
.icon-btn--light { width: 40px; height: 40px; color: #fff; }
.icon-btn--light .msy { font-size: 23px; }
.icon-btn--light:hover { background: rgba(255, 255, 255, 0.15); color: #fff; }
.icon-btn--box { border: 1px solid rgba(25,118,210,.5); border-radius: 4px; width: 40px; height: 40px; color: var(--primary); }
.icon-btn--box:hover { background: var(--hover); }
.icon-btn--box.is-danger { border-color: rgba(211,47,47,.5); color: var(--error); }

/* â”€â”€ Layout â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.main { flex: 1; width: 100%; padding: var(--pad); }
.surface { background: var(--surface); border: 1px solid var(--divider); border-radius: var(--radius); box-shadow: var(--shadow-1); }

.page-head { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; margin-bottom: 2px; }
.page-head h1 { margin: 0; font-size: 1.5rem; font-weight: 400; }
.page-head .count { color: var(--text-2); font-size: .875rem; }
.page-sub { margin: 0 0 20px; color: var(--text-2); font-size: .875rem; }

/* â”€â”€ Summary widget â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.summary { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; margin-bottom: 20px; }
.summary__main { padding: 20px 24px; }
.summary__row { display: flex; align-items: flex-start; justify-content: space-between; }
.eyebrow { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; color: var(--text-2); font-weight: 500; }
.summary__value { font-size: 2rem; font-weight: 500; margin-top: 4px; }
.badge-up { display: inline-flex; align-items: center; gap: 4px; background: #e8f5e9; color: var(--success); font-size: .8125rem; font-weight: 500; padding: 4px 8px; border-radius: 16px; }
.badge-down { display: inline-flex; align-items: center; gap: 4px; background: #ffebee; color: #c62828; font-size: .8125rem; font-weight: 500; padding: 4px 8px; border-radius: 16px; }
.badge-up .msy, .badge-down .msy { font-size: 15px; }
.stats-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat { padding: 16px 18px; display: flex; flex-direction: column; justify-content: center; }
.stat__label { display: flex; align-items: center; gap: 8px; color: var(--text-2); }
.stat__label .msy { font-size: 20px; color: var(--primary); }
.stat__label span:last-child { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 500; }
.stat__value { font-size: 1.5rem; font-weight: 500; margin-top: 6px; }

/* â”€â”€ Filter bar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.filterbar {
  border-radius: var(--radius) var(--radius) 0 0; border-bottom: none;
  padding: 12px 16px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
}
.filterbar--add { gap: 14px; align-items: flex-end; }
.filterbar--add .fld { flex: 0 0 188px; min-width: 160px; }
.filterbar--add .fld--price { flex-basis: 140px; }
.filterbar--add .input { height: 50px; font-size: 1rem; }
.filter-search {
  display: flex; align-items: center; gap: 8px; border: 1px solid var(--outline);
  border-radius: 4px; padding: 0 10px; height: 36px; flex: 1; min-width: 180px;
}
.filter-search .msy { font-size: 20px; color: rgba(0, 0, 0, 0.54); }
.filter-search input { flex: 1; border: none; outline: none; font-family: inherit; font-size: .875rem; background: transparent; color: inherit; min-width: 0; }
.pdf-opt { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; color: var(--text-2); cursor: pointer; white-space: nowrap; }
.pdf-opt input { cursor: pointer; }
.collection-toolbar { padding: 14px 16px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 14px; }
.collection-metrics { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.collection-metrics span { display: inline-flex; align-items: baseline; gap: 6px; }
.collection-metrics b { font-size: 1.05rem; }
.collection-metrics small { color: var(--text-2); font-size: .78rem; }
.toolbar-row { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.toolbar-group { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.toolbar-group--display { flex: 1 1 520px; justify-content: center; }
.toolbar-group--add { margin-left: auto; }
.toolbar-select { display: inline-flex; align-items: center; gap: 10px; color: var(--text-2); font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.toolbar-select .input { height: 40px; width: 190px; font-size: .9rem; }
.pdf-opt--toolbar { height: 40px; padding: 0 2px; }
.divider-v { width: 1px; height: 24px; background: var(--divider); }
.chip {
  height: 32px; padding: 0 13px; border-radius: 16px; font-size: .8125rem; font-weight: 500;
  cursor: pointer; border: 1px solid var(--outline); background: transparent; color: var(--text-2);
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
}
.chip .msy { font-size: 16px; }
.chip.is-active { border-color: var(--primary); background: var(--primary); color: #fff; }
.grow { flex: 1; }

/* â”€â”€ Table (desktop) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.table-wrap { border-radius: 0 0 var(--radius) var(--radius); overflow: hidden; }
table.cards-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.cards-table thead th {
  text-align: left; background: var(--hover); border-bottom: 1px solid var(--divider);
  padding: 0; font-weight: 600; position: relative; overflow: hidden;
}
.col-resize { position: absolute; top: 0; right: -3px; bottom: 0; width: 7px; cursor: col-resize; z-index: 1; touch-action: none; }
.col-resize:hover, .col-resize:active { background: var(--primary); opacity: .35; }
.cards-table td { overflow: hidden; }
.cell-name b, .cell-name small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cards-table th button {
  width: 100%; display: inline-flex; align-items: center; gap: 4px; background: none; border: none;
  padding: 10px 8px; cursor: pointer; font-family: inherit; font-size: .75rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--text-2); text-align: left;
}
.cards-table th button.no-sort { cursor: default; }
.cards-table th button.is-sort { color: var(--primary); }
.cards-table th button .msy { font-size: 16px; opacity: 0; }
.cards-table th button.is-sort .msy { opacity: 1; }
.cards-table th:first-child button, .cards-table td:first-child { padding-left: 16px; }
.cards-table th:last-child button { justify-content: flex-end; }
.cards-table td:last-child { padding-right: 16px; }
.cards-table tbody tr { border-bottom: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.cards-table tbody tr:hover { background: var(--hover); }
.cards-table td { padding: 10px 8px; font-size: .9rem; vertical-align: middle; }
.cell-card { display: flex; align-items: center; gap: 12px; min-width: 0; }
.cell-card img { width: 40px; height: 56px; border-radius: 4px; flex-shrink: 0; box-shadow: 0 1px 2px rgba(0,0,0,.25); object-fit: cover; background: #eceff1; }
.cell-name { min-width: 0; }
.cell-name b { font-weight: 500; font-size: .9rem; display: flex; align-items: center; gap: 6px; }
.cell-name small { color: var(--text-2); font-size: .75rem; }
.cell-name .live-dot { font-size: 14px; color: var(--success); }
.price-strong { font-weight: 500; }
.price-gold { font-weight: 500; color: var(--gold); }
.price-mut { color: rgba(0, 0, 0, 0.8); }
.row-actions { display: flex; gap: 2px; justify-content: flex-end; }

/* chips: sport + grade */
.tag { display: inline-block; font-size: .7rem; font-weight: 600; padding: 2px 9px; border-radius: 12px; white-space: nowrap; }
.grade-tag { display: inline-block; font-size: .78rem; font-weight: 600; padding: 2px 10px; border-radius: 12px; white-space: nowrap; color: var(--gold); background: linear-gradient(#fff8e1, #ffecb3); border: 1px solid #ffd54f; }
.grade-tag.raw { font-weight: 500; color: #455a64; background: #eceff1; border: none; }

/* â”€â”€ Tags / folders â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.tag-editor { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; padding: 6px 0; }
.tag-chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 4px 0 9px; border-radius: 11px; font-size: .72rem; font-weight: 500; background: var(--primary-050); color: var(--primary); white-space: nowrap; }
.tag-chip button { border: none; background: none; color: inherit; opacity: .6; cursor: pointer; font-size: .9rem; line-height: 1; padding: 0 4px; }
.tag-chip button:hover { opacity: 1; }
.tag-chip--add { background: transparent; border: 1px dashed var(--outline); color: var(--text-2); cursor: pointer; padding: 0 9px; }
.tag-chip--add:hover { border-color: var(--primary); color: var(--primary); }
.tag-input { height: 22px; border: 1px dashed var(--outline); border-radius: 11px; padding: 0 9px; font-size: .72rem; font-family: inherit; background: transparent; color: var(--text); width: 76px; outline: none; }
.tag-input:focus { border-style: solid; border-color: var(--primary); width: 110px; }

/* â”€â”€ Collection cost basis / P&L â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cost-cell { display: flex; flex-direction: column; gap: 2px; }
.input--sm { height: 30px; padding: 0 8px; font-size: .8rem; }
input.input:invalid { box-shadow: none; }

/* â”€â”€ Mobile cards â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.cards-list { display: none; flex-direction: column; gap: 12px; }
.mcard { padding: 14px; cursor: pointer; }
.mcard__top { display: flex; gap: 14px; align-items: flex-start; }
.mcard__top img { width: 64px; height: 90px; border-radius: 5px; flex-shrink: 0; box-shadow: 0 1px 3px rgba(0,0,0,.3); object-fit: cover; background: #eceff1; }
.mcard__body { min-width: 0; flex: 1; }
.mcard__body b { font-weight: 500; font-size: .95rem; }
.mcard__body small { color: var(--text-2); font-size: .8rem; display: block; margin: 2px 0 8px; }
.mcard__price { text-align: right; flex-shrink: 0; }
.mcard__price b { font-weight: 500; font-size: 1.05rem; }
.mcard__price small { color: var(--text-2); font-size: .72rem; display: block; }
.mcard__actions { display: flex; gap: 6px; margin-top: 12px; }
.mcard__actions .btn { flex: 1; }

.empty { text-align: center; padding: 48px; color: var(--text-2); border-top: none; border-radius: 0 0 var(--radius) var(--radius); }
.empty .msy { font-size: 40px; opacity: .4; }

/* â”€â”€ Detail â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.crumbs { display: flex; align-items: center; gap: 8px; font-size: .875rem; color: var(--text-2); margin-bottom: 16px; }
.crumbs .msy { font-size: 16px; }
.detail-grid { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: start; }
.detail-left { position: sticky; top: 88px; }
.detail-card { padding: 16px; }
.detail-card img { width: 100%; aspect-ratio: 5/7; border-radius: 10px; box-shadow: 0 4px 14px rgba(0,0,0,.28); object-fit: cover; display: block; background: #eceff1; }
.parallels { margin-top: 14px; }
.parallels .eyebrow { margin-bottom: 8px; }
.parallels__row { display: flex; flex-wrap: wrap; gap: 6px; }
.chip--sm { height: 30px; padding: 0 12px; font-size: .78rem; }
.detail-actions { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.detail-actions .btn { flex: 1; min-width: 210px; min-height: 42px; height: auto; padding: 9px 14px; text-align: center; }
.detail-right { display: flex; flex-direction: column; gap: 16px; }
.detail-title { padding: 22px 24px; }
.detail-title h1 { margin: 0; font-size: 1.75rem; font-weight: 500; }
.detail-title .titlerow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.detail-title small { color: var(--text-2); font-size: .9rem; display: block; margin-top: 4px; }
.rc-badge { background: var(--primary); color: #fff; font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 4px; letter-spacing: .05em; }
.live-badge { background: #e8f5e9; color: var(--success); font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 3px; }
.live-badge .msy { font-size: 13px; }
.heat-badge { font-size: .7rem; font-weight: 600; padding: 2px 8px; border-radius: 12px; display: inline-flex; align-items: center; gap: 3px; vertical-align: middle; }
.heat-badge .msy { font-size: 13px; }
.heat-hot { background: #fdecea; color: #c62828; }
.heat-cold { background: #e3f2fd; color: #1565c0; }
:root[data-theme="dark"] .heat-hot { background: rgba(198, 40, 40, 0.2); color: #ff8a80; }
:root[data-theme="dark"] .heat-cold { background: rgba(66, 165, 245, 0.18); color: #82b1ff; }

.panel__head { padding: 16px 24px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; gap: 8px; font-weight: 500; font-size: 1rem; }
.panel__head .msy { font-size: 20px; color: var(--primary); }
.panel__head .muted { color: var(--text-3); font-size: .8rem; font-weight: 400; }
.panel__body { padding: 22px 24px; }
.headline { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.headline .num { font-size: 2.25rem; font-weight: 500; line-height: 1; }
.chart { margin-top: 16px; }
.chart svg { display: block; width: 100%; }
.chart-cap { font-size: .75rem; color: var(--text-3); margin-top: 6px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.tile { border: 1px solid rgba(0, 0, 0, 0.1); border-radius: 6px; padding: 12px 14px; }
.tile__k { font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(0,0,0,.55); font-weight: 500; }
.tile__v { font-size: 1.25rem; font-weight: 500; margin-top: 3px; }
.tile__sub { font-size: .72rem; color: var(--text-3); }

.gradebars { display: flex; align-items: flex-end; gap: 10px; height: 110px; padding: 0 2px; }
.gradebars__col { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; justify-content: flex-end; height: 100%; }
.gradebars__val { font-size: .62rem; font-weight: 600; color: rgba(0,0,0,.7); }
.gradebars__bar { width: 100%; max-width: 46px; background: var(--primary); border-radius: 4px 4px 0 0; }
.gradebars__bar.top { background: var(--gold); }
.gradebars__lbl { font-size: .6rem; color: var(--text-3); text-align: center; line-height: 1.1; }

.ladder__head { padding: 14px 24px; border-bottom: 1px solid var(--divider); font-weight: 500; font-size: .95rem; display: flex; align-items: center; gap: 8px; }
.ladder__head .msy { font-size: 19px; color: var(--primary); }
.ladder__head .muted { color: var(--text-3); font-size: .78rem; font-weight: 400; }
.ladder__row { display: grid; grid-template-columns: 1.2fr 2fr 1fr; gap: 12px; padding: 11px 24px; border-bottom: 1px solid var(--line); align-items: center; font-size: .875rem; cursor: pointer; transition: background .12s; }
.ladder__row:hover { background: var(--hover); }
.ladder__row.top { background: #fffdf5; }
.ladder__row.is-selected { background: var(--primary-050); box-shadow: inset 3px 0 0 var(--primary); }
.ladder__bar { height: 8px; background: var(--line); border-radius: 4px; overflow: hidden; }
.ladder__bar > div { height: 100%; background: var(--primary); }
.ladder__bar > div.gold { background: var(--gold); }
.ladder__price { text-align: right; font-weight: 500; }
.ladder__compare { display: flex; align-items: center; gap: 6px; padding: 10px 24px; font-size: .85rem; color: var(--text-2); background: var(--hover); border-top: 1px solid var(--line); }
.ladder__compare .msy { font-size: 16px; color: var(--primary); }
.ladder__compare b { color: var(--text); }

.comps { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.comps__head { padding: 14px 20px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; font-weight: 500; font-size: .9rem; }
.comp-row { padding: 11px 20px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; }
.comp-row__main { min-width: 0; flex: 1; }
.comp-row__main .t { font-size: .8125rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.comp-row__main .s { font-size: .72rem; color: var(--text-3); }
.comp-row__price { text-align: right; flex-shrink: 0; }
.comp-row__price b { font-weight: 500; font-size: .9rem; }
.comp-row__price .vs { font-size: .72rem; }
.vs.up { color: var(--success); } .vs.down { color: #c62828; } .vs.ask { color: var(--warning); }
.disclaimer-note { margin: 0; font-size: .72rem; color: var(--text-3); }

/* â”€â”€ Text pages / settings / login â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.doc { max-width: 760px; margin: 0 auto; padding: 40px 44px; }
.doc h1 { margin: 0 0 4px; font-size: 1.75rem; font-weight: 500; }
.doc h2 { font-size: 1.15rem; font-weight: 500; margin: 28px 0 10px; }
.doc .lead { color: var(--text-2); margin: 0 0 24px; font-size: .9rem; }
.doc p { line-height: 1.65; font-size: .95rem; color: rgba(0,0,0,.8); }
.doc ul { line-height: 1.7; font-size: .95rem; color: rgba(0,0,0,.8); padding-left: 20px; margin: 0; }
.doc .actions { margin-top: 28px; display: flex; gap: 10px; }
.doc code { background: #f5f5f5; padding: 1px 5px; border-radius: 3px; }
.stack-16 { display: flex; flex-direction: column; gap: 16px; }

.settings { max-width: 640px; margin: 0 auto; padding: 36px 40px; }
.field-label { display: block; font-size: .8125rem; font-weight: 500; color: rgba(0,0,0,.7); margin-bottom: 6px; }
.token-row { display: flex; gap: 8px; }
.input { height: 42px; border: 1px solid var(--outline); border-radius: 4px; padding: 0 14px; font-family: inherit; font-size: .9rem; outline: none; width: 100%; background: var(--surface); color: var(--text); }
.input:focus { border-color: var(--primary); }
.hint { font-size: .78rem; color: rgba(0,0,0,.55); margin: 8px 0 0; }
.source-row { display: flex; align-items: center; gap: 10px; margin-bottom: 24px; flex-wrap: wrap; }
.source-row .label { font-size: .875rem; font-weight: 500; }
.modesw--light { background: #eceff1; }
.modesw--light .modesw__btn { color: var(--text-2); }
.modesw--light .modesw__btn.is-active { background: #fff; color: var(--primary); }
.test-result { margin-top: 16px; padding: 12px 14px; border-radius: 6px; font-size: .85rem; }
.test-result.ok { background: #e8f5e9; color: #1b5e20; }
.test-result.err { background: #fff3e0; color: #8a4b00; }
.settings__foot { margin-top: 28px; border-top: 1px solid rgba(0,0,0,.1); padding-top: 20px; font-size: .8125rem; color: var(--text-2); line-height: 1.6; }

.login { max-width: 420px; margin: 32px auto; padding: 36px 36px 32px; text-align: center; box-shadow: 0 3px 8px rgba(0,0,0,.12); }
.login img { height: 44px; width: auto; }
.login h1 { margin: 16px 0 4px; font-size: 1.5rem; font-weight: 500; }
.login .lead { color: var(--text-2); font-size: .875rem; margin: 0 0 28px; }
.btn-google {
  width: 100%; height: 44px; background: #fff; border: 1px solid var(--outline); border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center; gap: 12px;
  font-family: inherit; font-size: .9rem; font-weight: 500; color: var(--text-2); cursor: pointer;
  box-shadow: 0 1px 2px rgba(0,0,0,.08);
}
.btn-google:hover { background: #fafafa; box-shadow: 0 1px 3px rgba(0,0,0,.16); }
.google-slot { display:flex; justify-content:center; min-height:44px; margin: 12px 0 16px; }
.lookup-msg--error { background:#ffebee; color:#b71c1c; }
.or { display: flex; align-items: center; gap: 12px; margin: 22px 0; color: rgba(0,0,0,.4); font-size: .8rem; }
.or > div { flex: 1; height: 1px; background: var(--divider); }
.login .input { margin-bottom: 12px; }
.login .btn { width: 100%; }
.login .fine { color: var(--text-3); font-size: .75rem; margin: 18px 0 0; }
.account-settings .btn { margin-top: 10px; }
.account-avatar {
  width: 72px !important; height: 72px !important; border-radius: 50%;
  object-fit: cover; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
.account-field { text-align: left; margin: 18px 0 12px; }
.account-toggle {
  display: flex; align-items: center; gap: 10px; text-align: left;
  font-size: .86rem; color: var(--text-2); margin: 10px 0;
}
.account-toggle input { width: 16px; height: 16px; accent-color: var(--primary); }
.account-preview {
  display: flex; align-items: center; gap: 12px; margin: 16px 0; padding: 12px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--hover); text-align: left;
}
.account-preview img { width: 42px !important; height: 42px !important; border-radius: 50%; object-fit: cover; }
.account-preview b { display: block; font-size: .9rem; }
.account-preview small { display: block; color: var(--text-2); margin-top: 2px; }
.nav-avatar { width: 22px; height: 22px; border-radius: 50%; object-fit: cover; }
.account-settings { max-width: 560px; }
.profile-settings { margin: 18px 0; padding: 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--hover); text-align: left; }
.profile-settings h2 { margin: 0 0 4px; font-size: 1rem; font-weight: 600; }
.profile-settings p { margin: 0 0 10px; color: var(--text-2); font-size: .84rem; line-height: 1.45; }
.textarea { min-height: 84px; padding-top: 10px; resize: vertical; line-height: 1.4; }
.empty-actions { margin-top: 14px; display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.empty-actions .btn { width: auto; }


.community-head { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; flex-wrap: wrap; }
.community-head h1 { margin: 0 0 4px; font-size: 1.75rem; font-weight: 500; }
.community-metrics { display: grid; grid-template-columns: repeat(4, minmax(116px, 1fr)); gap: 10px; flex: 1; min-width: min(560px, 100%); }
.community-metric { padding: 12px 14px; display: flex; align-items: center; gap: 10px; min-height: 64px; }
.community-metric > .msy { color: var(--primary); background: var(--primary-050); width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; }
.community-metric b { display: block; font-size: 1.1rem; font-weight: 600; }
.community-metric small { color: var(--text-2); font-size: .75rem; text-transform: uppercase; letter-spacing: .04em; }
.community-tabs { display: flex; gap: 6px; padding: 8px; overflow-x: auto; }
.community-tab { height: 38px; border: none; background: transparent; border-radius: 4px; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 0 12px; font-weight: 600; white-space: nowrap; }
.community-tab .msy { font-size: 18px; }
.community-tab:hover { background: var(--hover); color: var(--primary); }
.community-tab.is-active { background: var(--primary); color: #fff; }
.community-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.community-main, .community-rail, .community-feed, .community-message-list { display: flex; flex-direction: column; gap: 16px; }
.community-composer, .community-create { padding: 16px; }
.community-composer__top { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.community-composer__top b { display: block; font-weight: 600; }
.community-composer__top small, .community-muted { color: var(--text-2); font-size: .82rem; }
.community-kind-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.community-textarea { width: 100%; min-height: 96px; resize: vertical; border: 1px solid var(--outline); border-radius: 4px; padding: 12px 14px; margin-top: 10px; font-family: inherit; font-size: .92rem; outline: none; }
.community-textarea:focus { border-color: var(--primary); }
.community-composer__actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.community-avatar { width: 40px; height: 40px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0; background: #e8f5e9; color: #1b5e20; font-size: .72rem; font-weight: 700; }
.community-post { padding: 16px; }
.community-post__head, .community-message__head { display: flex; align-items: center; gap: 10px; }
.community-post__meta { flex: 1; min-width: 0; }
.community-post__meta b, .community-message__head b { display: block; font-weight: 600; }
.community-post__meta small, .community-message__head small { color: var(--text-2); font-size: .78rem; }
.community-kind { border-radius: 14px; padding: 4px 9px; font-size: .72rem; font-weight: 700; background: #eceff1; color: #455a64; }
.community-kind--trade { background: #fff3e0; color: #8a4b00; }
.community-kind--wishlist { background: #fff8e1; color: var(--gold); }
.community-kind--showcase, .community-kind--gallery { background: var(--primary-050); color: var(--primary-dark); }
.community-kind--discussion { background: #e8f5e9; color: var(--success); }
.community-post h3 { margin: 14px 0 6px; font-size: 1.08rem; font-weight: 600; }
.community-post__text { margin: 0; color: rgba(0,0,0,.78); line-height: 1.5; }
.community-card-ref { margin-top: 14px; display: flex; align-items: center; gap: 12px; border: 1px solid var(--line); border-radius: 8px; padding: 10px; background: #fafafa; }
.community-card-ref img { width: 42px; height: 58px; border-radius: 4px; object-fit: cover; background: #eceff1; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.community-card-ref div { flex: 1; min-width: 0; }
.community-card-ref b { display: block; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.community-card-ref small { color: var(--text-2); font-size: .75rem; }
.community-actions { display: flex; align-items: center; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 10px 0; margin-top: 14px; }
.community-action { min-height: 34px; border: none; background: transparent; border-radius: 18px; color: var(--text-2); display: inline-flex; align-items: center; gap: 6px; padding: 0 10px; cursor: pointer; font-weight: 600; }
.community-action .msy { font-size: 18px; }
.community-action:hover, .community-action.is-active { background: var(--hover); color: var(--primary); }
.community-action--static { cursor: default; }
.community-comments { display: flex; flex-direction: column; gap: 10px; padding-top: 12px; }
.community-comment, .community-reply { display: flex; align-items: flex-start; gap: 10px; }
.community-comment .community-avatar, .community-reply .community-avatar { width: 30px; height: 30px; font-size: .62rem; }
.community-comment__body { flex: 1; min-width: 0; }
.community-comment__body b, .community-reply b { font-size: .82rem; }
.community-comment__body p, .community-reply p { margin: 2px 0 4px; font-size: .84rem; color: rgba(0,0,0,.72); line-height: 1.4; }
.community-reply { margin-top: 8px; padding-left: 8px; border-left: 2px solid var(--line); }
.community-reply-box, .community-comment-form, .community-inline-form { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.community-comment-form .input, .community-reply-box .input, .community-inline-form .input { min-width: 0; }
.text-btn { border: none; background: transparent; color: var(--primary); padding: 0; cursor: pointer; font-weight: 600; font-size: .8rem; }
.text-btn--block { width: 100%; text-align: center; padding: 12px 0; border-top: 1px solid var(--line); margin-top: 4px; }
.community-panel { overflow: hidden; }
.community-panel--main { overflow: visible; }
.community-panel__head { min-height: 52px; padding: 12px 14px; border-bottom: 1px solid var(--divider); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.community-panel__head h2, .community-create h2 { margin: 0; font-size: 1rem; font-weight: 600; }
.community-panel__head .msy { color: var(--primary); }
.community-list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.community-list-row--wide { grid-template-columns: auto minmax(0, 1fr) auto; }
.community-list-row b { display: block; font-size: .88rem; }
.community-list-row small { display: block; color: var(--text-2); font-size: .74rem; line-height: 1.35; }
.community-icon { width: 40px; height: 40px; border-radius: 8px; display: grid; place-items: center; background: #f1f8e9; color: var(--success); }
.community-create { display: flex; flex-direction: column; gap: 12px; }
.community-message { padding: 16px; }
.community-message p { margin: 12px 0; color: rgba(0,0,0,.78); }
.community-dot { margin-left: auto; background: var(--error); color: #fff; border-radius: 10px; padding: 2px 7px; font-size: .68rem; font-weight: 700; text-transform: uppercase; }
.message-line { display: flex; gap: 8px; padding: 8px 0; border-top: 1px solid var(--line); font-size: .82rem; }
.message-line b { min-width: 54px; }
.message-line span { color: var(--text-2); }
.wishlist-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: .86rem; }
.wishlist-row .msy { color: var(--gold); font-size: 18px; }
.community-panel > .community-inline-form { padding: 12px 14px; margin: 0; border-bottom: 1px solid var(--line); }
.community-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; padding: 14px; }
.community-gallery--full { grid-template-columns: repeat(3, 1fr); }
.community-gallery-tile img { width: 100%; aspect-ratio: 5 / 7; object-fit: cover; border-radius: 8px; background: #eceff1; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.community-gallery-tile b { display: block; margin-top: 7px; font-size: .82rem; }
.community-gallery-tile small { color: var(--text-2); font-size: .72rem; }
.community-upload { position: relative; overflow: hidden; }
.community-upload input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.community-feed--compact { margin-top: 16px; }

/* â”€â”€ Footer â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.footer { background: var(--surface); border-top: 1px solid var(--divider); padding: 20px 32px; }
.footer__inner { width: 100%; display: flex; align-items: center; gap: 20px; flex-wrap: wrap; font-size: .8125rem; color: var(--text-2); }
.footer__brand { font-weight: 500; color: rgba(0,0,0,.8); }
.footer__spacer { flex: 1; }

/* â”€â”€ Snackbar â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.snackbar {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  background: #323232; color: #fff; padding: 12px 20px; border-radius: 6px;
  box-shadow: var(--shadow-menu); font-size: .875rem; z-index: 50; max-width: 90vw;
  animation: snack .2s ease-out;
}
@keyframes snack { from { transform: translate(-50%, 120%); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }

/* â”€â”€ Responsive â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
@media (max-width: 1080px) {
  .community-layout { grid-template-columns: 1fr; }
  .community-rail { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .community-gallery--full { grid-template-columns: repeat(2, 1fr); }
  .table-wrap { display: none; }
  .cards-list { display: flex; }
  .summary { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .detail-left { position: static; }
  .comps { grid-template-columns: 1fr; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
}
/* â”€â”€ Mobile bottom nav (tab bar) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.bottom-nav {
  display: none;
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  background: #fff; border-top: 1px solid var(--divider);
  box-shadow: 0 -2px 8px rgba(0,0,0,.1);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav .nav-btn {
  flex: 1; height: 58px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 2px; color: var(--text-2); border-radius: 0; padding: 4px; position: relative;
}
.bottom-nav .nav-btn .msy { font-size: 22px; }
.bottom-nav .nav-btn small { font-size: .65rem; font-weight: 600; }
.bottom-nav .nav-btn:hover { background: var(--hover); }
.bottom-nav .nav-btn.is-active { color: var(--primary); background: none; }
.bottom-nav .coll-count { position: absolute; top: 2px; right: calc(50% - 24px); background: var(--primary); color: #fff; }

@media (max-width: 720px) {
  .community-metrics, .community-rail, .community-gallery, .community-gallery--full { grid-template-columns: 1fr; }
  .community-list-row { grid-template-columns: auto minmax(0, 1fr); }
  .community-list-row .btn { grid-column: 2; justify-self: start; }
  .community-comment-form, .community-reply-box, .community-inline-form { flex-direction: column; align-items: stretch; }
  .community-composer__actions { justify-content: stretch; }
  .community-composer__actions .btn { flex: 1; }
  :root { --pad: 16px; }
  .appbar__inner { gap: 8px; padding: 0 12px; }
  .nav { display: flex; order: 4; flex: 1 1 100%; width: 100%; overflow-x: auto; padding-bottom: 4px; margin-left: 0; }
  .nav::-webkit-scrollbar { display: none; }
  .search--bar { display: none; }
  .doc, .settings { padding: 24px 20px; }
  body { padding-bottom: 60px; }
  .bottom-nav { display: flex; }
  .snackbar { bottom: calc(60px + env(safe-area-inset-bottom) + 12px); }
  .hero__search .filter-search, .hero__search .btn { border-radius: 26px; }
  .btn--scan { width: 100%; }
}

/* â”€â”€ Collection count badge â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.coll-count { background: rgba(255,255,255,.92); color: var(--primary); border-radius: 10px; font-size: .7rem; font-weight: 700; padding: 0 6px; margin-left: 2px; min-width: 18px; text-align: center; line-height: 18px; height: 18px; }

/* â”€â”€ Clear filters chip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.chip--clear { border-color: var(--error); color: var(--error); }
.chip--clear:hover { background: rgba(211,47,47,.06); }

/* â”€â”€ Modal (search / pack) â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.modal-overlay { position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 60; display: flex; align-items: flex-start; justify-content: center; padding: 64px 16px; animation: fade .15s ease-out; }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.modal { background: #fff; width: min(560px, 100%); border-radius: 10px; box-shadow: var(--shadow-menu); overflow: hidden; max-height: 82vh; display: flex; flex-direction: column; animation: pop .16s ease-out; }
@keyframes pop { from { transform: translateY(-8px) scale(.98); opacity: .6; } to { transform: none; opacity: 1; } }
.modal__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--divider); }
.modal__head > .msy { color: var(--text-2); }
.modal__head input { flex: 1; border: none; outline: none; font-size: 1rem; font-family: inherit; background: transparent; color: inherit; }
.modal__head h2 { flex: 1; margin: 0; font-size: 1.15rem; font-weight: 500; }
.modal__source { padding: 8px 18px; font-size: .75rem; color: var(--text-3); background: #fafafa; border-bottom: 1px solid var(--line); }
.modal__body { overflow: auto; padding: 6px 0; }
.result-row { display: flex; align-items: center; gap: 12px; padding: 8px 18px; }
.result-row:hover { background: var(--hover); }
.result-row img { width: 34px; height: 48px; border-radius: 3px; object-fit: cover; background: #eceff1; box-shadow: 0 1px 2px rgba(0,0,0,.2); flex-shrink: 0; }
.result-row__main { flex: 1; min-width: 0; }
.result-row__main b { font-size: .875rem; font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.result-row__main small { color: var(--text-2); font-size: .75rem; }
.result-empty { padding: 32px 18px; text-align: center; color: var(--text-2); font-size: .9rem; }

/* â”€â”€ Add-card dialog (tabs + photo capture + form) â”€â”€â”€ */
.modal-tabs { display: flex; border-bottom: 1px solid var(--divider); }
.modal-tab { flex: 1; height: 46px; border: none; background: none; cursor: pointer; font-family: inherit; font-size: .875rem; font-weight: 600; color: var(--text-2); border-bottom: 2px solid transparent; }
.modal-tab.is-active { color: var(--primary); border-bottom-color: var(--primary); }
.form { padding: 18px; overflow: auto; }
.photo-drop { position: relative; border: 2px dashed var(--outline); border-radius: 10px; min-height: 160px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--text-2); cursor: pointer; overflow: hidden; text-align: center; padding: 12px; }
.photo-drop:hover { border-color: var(--primary); background: var(--hover); }
.photo-drop.has { border-style: solid; padding: 0; background: #0b1220; }
.photo-drop .msy { font-size: 36px; color: var(--primary); }
.photo-drop small { font-size: .78rem; }
.photo-drop img { max-height: 240px; max-width: 100%; width: auto; border-radius: 8px; display: block; }
.photo-drop input[type=file] { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.photo-remove { margin-top: 10px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 14px; }
.fld { display: flex; flex-direction: column; gap: 4px; font-size: .75rem; color: var(--text-2); }
.fld span { font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.fld .input, .fld select.input { height: 40px; font-size: .9rem; }
.fld--wide { grid-column: 1 / -1; }
select.input { background: #fff; }
.form-actions { display: flex; gap: 10px; margin-top: 18px; }
.form-actions .btn { flex: 1; }
.lookup-msg { margin-top: 12px; font-size: .85rem; padding: 10px 12px; border-radius: 6px; background: var(--primary-050); color: var(--primary-dark); }

/* â”€â”€ Rip a Pack â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.pack-stage { padding: 28px 24px 32px; text-align: center; }
.pack-wrap {
  width: 190px; height: 264px; margin: 8px auto 22px; border-radius: 14px; cursor: pointer;
  background: linear-gradient(150deg, #1976d2, #0d47a1 60%, #4527a0);
  box-shadow: 0 12px 28px rgba(13,71,161,.4), inset 0 2px 8px rgba(255,255,255,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; color: #fff;
  position: relative; overflow: hidden; transition: transform .18s;
}
.pack-wrap:hover { transform: translateY(-3px) rotate(-1deg); }
.pack-wrap::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.45), transparent); transform: skewX(-18deg); animation: sheen 2.6s infinite; }
@keyframes sheen { 0% { left: -60%; } 60%, 100% { left: 130%; } }
.pack-wrap .msy { font-size: 52px; }
.pack-wrap b { font-size: 1.1rem; letter-spacing: .04em; }
.pack-wrap small { font-size: .72rem; opacity: .85; }
.pack-reveal { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.pack-card { animation: reveal .5s cubic-bezier(.2,.8,.2,1) backwards; }
.pack-card:nth-child(1) { animation-delay: .05s; }
.pack-card:nth-child(2) { animation-delay: .18s; }
.pack-card:nth-child(3) { animation-delay: .31s; }
@keyframes reveal { from { transform: rotateY(90deg) scale(.9); opacity: 0; } to { transform: none; opacity: 1; } }
.pack-card img { width: 100%; aspect-ratio: 5/7; border-radius: 8px; object-fit: cover; box-shadow: 0 4px 12px rgba(0,0,0,.25); background: #eceff1; }
.pack-card b { display: block; font-size: .78rem; font-weight: 500; margin: 8px 0 2px; line-height: 1.2; }
.pack-card .val { font-size: .8rem; color: var(--gold); font-weight: 600; }
.pack-card button { margin-top: 6px; width: 100%; }
.pack-hint { color: var(--text-2); font-size: .85rem; margin: 0 0 6px; }

/* â”€â”€ Landing splash (gate page â€” fixed dark brand look, ignores theme toggle) â”€â”€ */
.splash {
  margin: -24px -32px 0; padding: 64px 24px 56px; text-align: center; color: #fff;
  background: radial-gradient(ellipse at top, #163a63 0%, #0a1220 55%, #060a12 100%);
}
.splash__logo { max-width: 420px; width: 80%; height: auto; margin: 0 auto 20px; display: block; filter: drop-shadow(0 4px 20px rgba(66,165,245,.35)); }
.splash h1 { font-size: 2.6rem; font-weight: 800; margin: 0 0 6px; line-height: 1.2; }
.splash h1 .accent { color: #4fa8ff; display: block; }
.splash__divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 20px auto 34px; max-width: 340px; }
.splash__divider::before, .splash__divider::after { content: ""; flex: 1; height: 1px; background: rgba(255,255,255,.2); }
.splash__divider .msy { font-size: 16px; color: #4fa8ff; }

.splash__feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 980px; margin: 0 auto 26px; }
.splash__feat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 26px 18px; }
.splash__feat .msy { font-size: 34px; color: #4fa8ff; }
.splash__feat h3 { font-size: .92rem; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; margin: 14px 0 8px; }
.splash__feat p { font-size: .85rem; color: rgba(255,255,255,.65); line-height: 1.5; margin: 0; }

.splash__stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; max-width: 1080px; margin: 0 auto 40px; }
.splash__stat { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1); border-radius: 12px; padding: 20px 10px; }
.splash__stat .msy { font-size: 26px; color: #4fa8ff; }
.splash__stat b { display: block; font-size: 1.4rem; font-weight: 800; margin: 8px 0 4px; }
.splash__stat span { font-size: .74rem; color: rgba(255,255,255,.6); line-height: 1.35; display: block; }

.splash__cta { display: flex; flex-direction: column; align-items: center; gap: 12px; max-width: 420px; margin: 0 auto; }
.splash__enter, .splash__signin {
  width: 100%; height: 54px; border-radius: 10px; font-weight: 700; font-size: 1rem; letter-spacing: .02em;
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer; font-family: inherit;
}
.splash__enter { background: linear-gradient(135deg, #1976d2, #1252a3); color: #fff; border: none; box-shadow: 0 8px 24px rgba(25,118,210,.4); max-width: 420px; margin: 0 auto 28px; }
.splash__enter:hover { filter: brightness(1.08); }
.splash__signin { height: 50px; background: transparent; border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .95rem; }
.splash__signin:hover { background: rgba(255,255,255,.06); }
.splash__how { color: rgba(255,255,255,.6); font-size: .8rem; text-decoration: underline; background: none; border: none; cursor: pointer; margin-top: 4px; font-family: inherit; }
.splash__how:hover { color: #fff; }

.splash__quote { margin: 40px auto 14px; max-width: 640px; font-size: .85rem; color: rgba(255,255,255,.55); display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; }
.splash__quote .msy { font-size: 14px; color: #4fa8ff; }
.splash__quote em { color: #4fa8ff; font-style: italic; }
.splash__copy { font-size: .75rem; color: rgba(255,255,255,.35); margin: 0; }
.public-home { display: flex; flex-direction: column; align-items: center; }
.public-home .splash__hero-copy { width: min(920px, 100%); margin: 0 auto 8px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.public-home .splash__logo { max-width: 300px; margin: 0 auto 22px; }
.splash__eyebrow { margin: 0 0 10px; font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.68); }
.splash__signin-note { max-width: 760px; margin: -6px auto 26px; color: rgba(255,255,255,.72); font-size: .94rem; line-height: 1.6; text-align: center; }
.splash__headline { max-width: 760px; margin: 0 auto 16px; font-size: 2.65rem; font-weight: 700; letter-spacing: 0; line-height: 1.12; text-align: center; }
.splash__purpose { max-width: 760px; margin: 0 auto 24px; color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.68; text-align: center; }
.splash__cta--row { flex-direction: row; justify-content: center; max-width: 760px; margin: 0 auto 30px; }
.splash__cta--row .splash__enter, .splash__cta--row .splash__signin { margin: 0; max-width: 340px; }
.splash__stats { grid-template-columns: repeat(4, 1fr); }
.splash__info {
  max-width: 980px; margin: 0 auto 24px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; text-align: left;
}
.splash__info h2 { margin: 0 0 10px; font-size: 1rem; color: #fff; }
.splash__info ul { margin: 0; padding-left: 20px; color: rgba(255,255,255,.68); font-size: .9rem; line-height: 1.65; }
.splash__legal { max-width: 820px; margin: 20px auto 18px; color: rgba(255,255,255,.68); font-size: .9rem; line-height: 1.55; }
.splash__links { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; margin: 0 auto 18px; }
.splash__links a, .splash__links button { color: rgba(255,255,255,.72); background: none; border: none; padding: 0; font: inherit; font-size: .84rem; text-decoration: underline; cursor: pointer; }
.splash__links a:hover, .splash__links button:hover { color: #fff; }
.public-sections { max-width: 1080px; margin: 0 auto 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; text-align: left; }
.public-sections section { background: rgba(255,255,255,.045); border: 1px solid rgba(255,255,255,.1); border-radius: 8px; padding: 20px; }
.public-sections .msy { color: #4fa8ff; font-size: 30px; }
.public-sections h2 { margin: 12px 0 8px; font-size: 1rem; color: #fff; }
.public-sections p { margin: 0 0 14px; color: rgba(255,255,255,.68); font-size: .88rem; line-height: 1.55; }
.public-sections a, .public-sections button { color: #fff; background: transparent; border: 1px solid rgba(255,255,255,.28); border-radius: 6px; padding: 8px 10px; font: inherit; font-size: .84rem; cursor: pointer; text-decoration: none; }
.public-sections a:hover, .public-sections button:hover { background: rgba(255,255,255,.08); }

@media (max-width: 900px) { .splash__feats, .splash__stats, .public-sections { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px) {
  .community-metrics, .community-rail, .community-gallery, .community-gallery--full { grid-template-columns: 1fr; }
  .community-list-row { grid-template-columns: auto minmax(0, 1fr); }
  .community-list-row .btn { grid-column: 2; justify-self: start; }
  .community-comment-form, .community-reply-box, .community-inline-form { flex-direction: column; align-items: stretch; }
  .community-composer__actions { justify-content: stretch; }
  .community-composer__actions .btn { flex: 1; }
  .filterbar--add .fld { flex: 1 1 100%; }
  .toolbar-row, .toolbar-group, .toolbar-group--display { justify-content: flex-start; }
  .toolbar-group--display, .toolbar-group--add { flex: 1 1 100%; margin-left: 0; }
  .toolbar-select { width: 100%; justify-content: space-between; }
  .toolbar-select .input { flex: 1; width: auto; }
  .detail-actions .btn { min-width: 100%; }
  .splash { margin: -16px -16px 0; padding: 48px 16px 40px; }
  .splash h1 { font-size: 2rem; }
  .splash__headline { font-size: 1.9rem; }
  .splash__purpose { font-size: .98rem; }
  .splash__signin-note { font-size: .9rem; }
  .splash__cta--row, .splash__info, .public-sections { grid-template-columns: 1fr; flex-direction: column; }
  .splash__cta--row .splash__enter, .splash__cta--row .splash__signin { max-width: none; }
  .pack-reveal { gap: 8px; }
}
@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; }
  .form-actions { flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: 0s !important; }
  .ticker__track { animation: none; }
}

/* â”€â”€ Formatting repair: prevent app-bar overflow â”€â”€â”€ */
html { overflow-x: hidden; }
body { overflow-x: hidden; }
.appbar__inner { flex-wrap: wrap; height: auto; min-height: 64px; row-gap: 8px; }
.search--bar { flex: 1 1 240px; }
@media (max-width: 1180px) { .search--bar { order: 5; flex-basis: 100%; width: auto; } }

/* â”€â”€ Trending strip â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€â”€ */
.trend-strip { display: flex; align-items: center; gap: 12px; background: #fff; color: var(--text); border-bottom: 1px solid var(--divider); padding: 8px 24px; overflow: hidden; white-space: nowrap; box-shadow: var(--shadow-1); }
.ticker { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.ticker__track { display: inline-flex; gap: 12px; animation: ticker 48s linear infinite; will-change: transform; }
.ticker:hover .ticker__track { animation-play-state: paused; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.trend-strip__label { display: inline-flex; align-items: center; gap: 6px; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--primary); flex-shrink: 0; }
.trend-strip__label .msy { font-size: 17px; color: var(--warning); }
.trend-item { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; flex-shrink: 0; padding: 4px 10px 4px 6px; border-radius: 18px; border: 1px solid var(--line); }
.trend-item:hover { background: var(--hover); border-color: var(--primary); }
.trend-item .rank { font-size: .72rem; color: var(--text-3); font-weight: 700; }
.trend-item img { width: 20px; height: 28px; border-radius: 2px; object-fit: cover; background: #eceff1; }
.trend-item b { font-size: .8rem; font-weight: 500; }
.trend-item .p { font-size: .8rem; font-weight: 600; }
.trend-item .up { color: var(--success); font-size: .72rem; font-weight: 600; }
.trend-item .down { color: #c62828; font-size: .72rem; font-weight: 600; }


