/* ===== Tokens ===== */
:root {
  --bg: #f9f9f9;
  --surface: #ffffff;
  --surface-2: #f0f0f0;
  --search-bg: #f5f5f5;
  --tile: rgba(0, 0, 0, 0.04);
  --text: #333333;
  --text-strong: rgba(0, 0, 0, 0.88);
  --text-2: #999999;
  --text-3: rgba(0, 0, 0, 0.45);
  --border: rgba(0, 0, 0, 0.15);
  --border-soft: #d9d9d9;
  --split: rgba(0, 0, 0, 0.06);
  --line: rgba(0, 0, 0, 0.07);
  --card-line: #f0f0f0;
  --primary: #ef7f1a;
  --primary-bg: #fdf2e8;
  --primary-bg-2: #fbe0c8;
  --primary-text: #b35309;
  --stat-bg: #f9fafb;
  --stat-label: #9fa5b3;
  --stat-value: #2e323c;
  --seg-bg: #f3f4f6;
  --seg-text: #6b7280;
  --th-bg: rgba(0, 0, 0, 0.02);
  --icon-filter: none;
  --shadow-row: 0 1px 1px rgba(0,0,0,.03), 0 1px 3px rgba(0,0,0,.02), 0 2px 2px rgba(0,0,0,.02);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}

html[data-theme="dark"] {
  --bg: #1f1e1b;
  --surface: #2b2a27;
  --surface-2: #3a3833;
  --search-bg: #3a3833;
  --tile: rgba(255, 255, 255, 0.05);
  --text: #f0eee6;
  --text-strong: #f0eee6;
  --text-2: #a5a096;
  --text-3: #a5a096;
  --border: rgba(255, 255, 255, 0.16);
  --border-soft: rgba(255, 255, 255, 0.16);
  --split: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --card-line: rgba(255, 255, 255, 0.08);
  --primary: #f08a2c;
  --primary-bg: #3a2a18;
  --primary-bg-2: #4a3115;
  --primary-text: #f08a2c;
  --stat-bg: #34322e;
  --stat-label: #a5a096;
  --stat-value: #f0eee6;
  --seg-bg: #3a3833;
  --seg-text: #a5a096;
  --th-bg: rgba(255, 255, 255, 0.03);
  --icon-filter: invert(1) brightness(0.95);
  --shadow-row: none;
  color-scheme: dark;
}

/* ===== Base ===== */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: var(--font);
  font-size: 14px;
  line-height: 22px;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
img { display: block; }
p { margin: 0; }
.icon { display: block; flex: none; filter: var(--icon-filter); }
.muted { color: var(--text-2); }

/* ===== Header ===== */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  height: 60px; display: flex; align-items: center; justify-content: space-between;
  padding: 8px 20px 8px 30px;
  background: var(--surface); border-bottom: 1px solid var(--split);
}
.header-logo { width: 38px; height: 32px; }
.header-search {
  position: absolute; left: 50%; transform: translateX(-56%);
  width: 512px; max-width: 40vw; height: 32px; border-radius: 56px;
  background: var(--search-bg); display: flex; align-items: center; gap: 16px; padding: 0 16px;
  color: var(--text-2); font-size: 16px;
}
.header-actions { display: flex; align-items: center; gap: 16px; }
.theme-switch { width: 44px; height: 24px; position: relative; }
.theme-switch img { width: 44px; height: 24px; position: absolute; inset: 0; transition: opacity .2s; }
.theme-switch .on-dark { opacity: 0; }
html[data-theme="dark"] .theme-switch .on-dark { opacity: 1; }
html[data-theme="dark"] .theme-switch .on-light { opacity: 0; }
.round-btn {
  position: relative; width: 32px; height: 32px; border-radius: 28px;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center;
}
.badge {
  position: absolute; top: -8px; right: -8px; height: 20px; min-width: 20px; padding: 0 4px;
  border-radius: 16px; background: #ff4d4f; border: 1px solid var(--surface);
  color: #fff; font-size: 14px; line-height: 18px; text-align: center;
}
.user { display: flex; align-items: center; gap: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; border: 1px solid var(--split); }

/* ===== Sidebar ===== */
.sidebar {
  position: fixed; top: 60px; left: 0; bottom: 0; z-index: 10; width: 101px;
  padding: 20px; background: var(--surface); border-right: 1px solid var(--split);
  display: flex; flex-direction: column; align-items: center; gap: 24px; overflow-y: auto;
  scrollbar-width: none;
}
.sidebar::-webkit-scrollbar { display: none; }
.nav-item { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; }
.nav-item span { font-size: 11px; line-height: normal; font-weight: 600; color: var(--text); }
.nav-circle {
  position: relative; width: 46px; height: 46px; border-radius: 80px; flex: none;
  border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center;
}
.nav-item.active .nav-circle { border-color: transparent; background: var(--primary-bg); }
.nav-item:hover .nav-circle { border-color: var(--primary); }
.nav-circle .icon { width: 24px; height: 24px; }
.nav-guide { position: relative; width: 24px; height: 24px; }
.nav-guide i { position: absolute; display: block; filter: var(--icon-filter); }
.nav-guide .g1 { inset: 12.34% 36.45% 13.12% 16.32%; background: url(assets/nav-guide-1.svg) center/100% 100%; -webkit-mask: url(assets/nav-guide-mask1.svg) -0.262px -0.5px / 11.93px 18.777px no-repeat; mask: url(assets/nav-guide-mask1.svg) -0.262px -0.5px / 11.93px 18.777px no-repeat; }
.nav-guide .g2 { inset: 14.9% 12.5% 16.7% 41.59%; background: url(assets/nav-guide-2.svg) center/100% 100%; -webkit-mask: url(assets/nav-guide-mask2.svg) -0.486px -0.408px / 11.797px 17.324px no-repeat; mask: url(assets/nav-guide-mask2.svg) -0.486px -0.408px / 11.797px 17.324px no-repeat; }
.nav-dot-badge {
  position: absolute; top: -6px; right: -6px; width: 20px; height: 20px; border-radius: 100px;
  background: #f04438; color: #fff; font-size: 12px; font-weight: 600; line-height: 20px; text-align: center;
}
.nav-app { width: 46px; height: 46px; border-radius: 46px; overflow: hidden; position: relative; flex: none; }
.nav-app img { position: absolute; max-width: none; object-fit: cover; }
.nav-divider { width: 61px; height: 1px; background: var(--split); flex: none; }
.nav-ergiz { width: 44px; height: 44px; border-radius: 54px; overflow: hidden; background: #f5f5f5; position: relative; }
.nav-ergiz img { position: absolute; left: -2.95%; top: -0.17%; width: 113.29%; height: 113.29%; max-width: none; }
.nav-settings { margin-top: auto; }
.nav-settings .nav-circle { width: 44px; height: 44px; border-radius: 54px; }
.nav-settings .icon { width: 20px; height: 18px; }

/* ===== Main layout ===== */
.main { margin-left: 101px; padding: 80px 40px 32px; min-height: 100vh; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.card { background: var(--surface); border-radius: 16px; }
.card-title { display: flex; align-items: center; justify-content: space-between; }
.card-title h2 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text); }
.link-accent { color: var(--primary); }

/* Top bar */
.topbar {
  background: var(--surface); border-radius: 24px; border-bottom: 1px solid #eee;
  padding: 16px; display: flex; align-items: center; gap: 10.5px;
}
html[data-theme="dark"] .topbar { border-bottom-color: var(--split); }
.brand { font-size: 20px; line-height: 36px; font-weight: 800; letter-spacing: -0.2px; white-space: nowrap; color: var(--text); }
.brand b { color: #e94511; font-weight: 800; }
.pill {
  height: 35px; padding: 0 17.5px; border-radius: 999px; display: inline-flex; align-items: center; gap: 7px;
  font-weight: 500; font-size: 14px; line-height: 21px; white-space: nowrap; flex: none;
}
.pill .icon { width: 14px; height: 14px; }
.pill-primary { background: var(--primary); color: #fff; }
.pill-primary .icon { filter: none; }
.pill-gray { background: var(--surface-2); color: var(--text); }
.pill-outline { background: var(--surface); border: 1px solid var(--border); color: var(--text); }
.pill:hover { filter: brightness(0.97); }
.search-input {
  flex: 1; min-width: 0; height: 32px; display: flex; border-radius: 666px; overflow: hidden;
  border: 1px solid var(--border); background: var(--surface);
}
.search-input span { flex: 1; padding: 0 12px; color: var(--text-2); line-height: 30px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-input i { width: 32px; border-left: 1px solid var(--border); display: grid; place-items: center; }
.search-input .icon { width: 16px; height: 16px; }

/* Categories + organizers */
.showcase-top {
  background: var(--surface); border: 1px solid var(--split); border-radius: 24px;
  padding: 16px; display: flex; gap: 16px; overflow: hidden;
}
.cats { flex: none; width: 764px; height: 216px; position: relative; }
.cat {
  position: absolute; height: 102px; border-radius: 20px; overflow: hidden;
  background: var(--tile); border: 1px solid var(--surface); color: var(--text-strong);
  font-size: 15px; line-height: 20px; transition: transform .15s;
}
.cat:hover { transform: translateY(-2px); }
.cat p { position: absolute; left: 19px; top: 13px; }
.cat img { position: absolute; max-width: none; object-fit: cover; }
.orgs {
  flex: 1; min-width: 0; position: relative; border-radius: 24px; background: var(--tile); border: 1px solid var(--surface);
}
.orgs h3 { position: absolute; left: 19px; top: 23px; margin: 0; font-size: 16px; font-weight: 500; line-height: 24px; color: var(--text-strong); }
.orgs-row {
  position: absolute; left: calc(50% + 6px); top: calc(50% + 10.5px); transform: translate(-50%, -50%);
  width: max-content; max-width: calc(100% - 16px);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 3.69px 18.46px; overflow: hidden;
}
.org { display: flex; flex-direction: column; align-items: center; gap: 7.38px; width: 69.23px; }
.org-logo { width: 69.23px; height: 69.23px; border-radius: 11.08px; background: #f6f7f9; border: 0.54px solid var(--border); position: relative; display: block; overflow: hidden; transition: border-color .15s; }
.org:hover .org-logo { border-color: var(--primary); }
.org-box { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.org-box img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cat p.manrope { font-family: "Manrope", var(--font); }
.cat p { color: #000; }
html[data-theme="dark"] .cat p { color: var(--text); }
.org-name { font-size: 11.08px; line-height: 11.08px; font-weight: 600; letter-spacing: -0.22px; color: var(--text); text-align: center; height: 22.15px; white-space: nowrap; }
.erg { position: absolute; left: 15.28px; top: 19.69px; width: 39.37px; height: 30.22px; }
.erg i { position: absolute; display: block; }
.erg .e1 { inset: 0 26.2% 0 22.11%; background: url(assets/org-erg-1.svg) center/100% 100%; -webkit-mask: url(assets/org-erg-mask1.svg) 0 0 / 20.046px 30.223px no-repeat; mask: url(assets/org-erg-mask1.svg) 0 0 / 20.046px 30.223px no-repeat; }
.erg .e2 { inset: 3.44% 0 4.8% 49.76%; background: url(assets/org-erg-2.svg) center/100% 100%; -webkit-mask: url(assets/org-erg-mask2.svg) 0.521px 0.001px / 19.259px 27.732px no-repeat; mask: url(assets/org-erg-mask2.svg) 0.521px 0.001px / 19.259px 27.732px no-repeat; }
.erg .e3 { inset: 47.22% 62.28% 34.45% 0; background: url(assets/org-erg-3.svg) center/100% 100%; }
.circle-arrow {
  width: 36px; height: 36px; border-radius: 50px; border: 1px solid var(--border); background: var(--surface);
  display: grid; place-items: center; flex: none;
}
.circle-arrow .icon { width: 18px; height: 18px; }
.dots { display: flex; gap: 5.25px; justify-content: center; align-items: center; }
.dots i { width: 5.25px; height: 5.25px; border-radius: 99px; background: #a5a096; }
.dots i.on { width: 17.5px; background: #f08a2c; }
.orgs .dots { position: absolute; bottom: 17px; left: 0; right: 0; }

/* Hot offers */
.hot { padding: 20px 16px; display: flex; flex-direction: column; gap: 14px; position: relative; }
.hot-row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.lot-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 10.5px;
  padding: 12px 8px; display: flex; flex-direction: column; gap: 6px; transition: box-shadow .15s;
}
.lot-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,.08); }
.lot-img { height: 186px; border-radius: 7px; overflow: hidden; background: #f0f0f0; }
.lot-img img { width: 100%; height: 100%; object-fit: cover; }
.lot-id { font-size: 11px; line-height: 16.5px; color: var(--text-2); }
.lot-name { font-size: 14px; line-height: 17.5px; font-weight: 500; color: var(--text); height: 35px; overflow: hidden; }
.lot-meta { font-size: 12px; line-height: 18px; color: var(--text-2); }
.lot-price { font-size: 14px; line-height: 21px; font-weight: 600; color: var(--primary); }
.hot .circle-arrow { position: absolute; right: 4px; top: 264px; }

/* All auctions list */
.split { display: flex; gap: 21px; align-items: flex-start; }
.split > .grow { flex: 1; min-width: 0; }
.aside { width: 320px; flex: none; display: flex; flex-direction: column; gap: 14px; }
.list-card { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.filters { display: flex; gap: 7px; align-items: center; }
.filter-pill {
  height: 28px; padding: 0 12.25px; border-radius: 999px; background: var(--surface-2);
  display: inline-flex; align-items: center; gap: 5.25px; font-size: 13px; line-height: 19.5px; color: var(--text);
}
.filter-pill small { font-size: 9px; color: var(--text-2); }
.filter-pill .icon { width: 13px; height: 13px; }
.filters .push { margin-left: auto; }
.rows { display: flex; flex-direction: column; gap: 12px; }
.row-lot {
  height: 116px; padding: 12px 8px; border-radius: 9px; background: var(--surface);
  box-shadow: var(--shadow-row); display: flex; align-items: center; gap: 14px;
}
.row-lot:hover { background: var(--tile); }
.row-lot .thumb { width: 120px; height: 90px; border-radius: 2.9px; object-fit: cover; flex: none; }
.row-lot .body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.row-lot .lot-name { height: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-lot .lot-price { flex: none; padding-right: 8px; }
.pager-dots { display: flex; gap: 5.25px; justify-content: center; }
.pager-dots a { width: 28px; height: 28px; border-radius: 999px; display: grid; place-items: center; color: var(--text); font-size: 14px; }
.pager-dots a.on { background: var(--primary-bg-2); color: var(--primary); font-weight: 600; }
.pager-dots a:hover:not(.on) { background: var(--surface-2); }

/* Aside cards */
.aside .card { padding: 14px; display: flex; flex-direction: column; gap: 14px; }
.news-item { display: flex; flex-direction: column; gap: 5.25px; padding-bottom: 10.5px; border-bottom: 1px solid var(--line); }
.news-item:last-child { border-bottom: 0; padding-bottom: 0; }
.news-item p { font-size: 14px; line-height: 17.5px; font-weight: 500; color: var(--text); max-height: 52.5px; overflow: hidden; }
.news-item span { font-size: 12px; line-height: 18px; color: var(--text-2); }
.video { position: relative; height: 164.25px; border-radius: 10.5px; overflow: hidden; display: grid; place-items: center; }
.video > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.play { position: relative; width: 49px; height: 49px; border-radius: 99px; background: var(--primary); display: grid; place-items: center; }
.play .icon { width: 22px; height: 22px; filter: none; }
.info-link { height: 35px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: 14px; line-height: 21px; }
.info-link:last-child { border-bottom: 0; }
.info-link .icon { width: 11px; height: 11px; }
.info-link:hover { color: var(--primary); }

/* Showcase */
.vitrina { padding: 14px 20px; display: flex; flex-direction: column; gap: 14px; }
.vitrina-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.vitrina-grid img { width: 100%; aspect-ratio: 293 / 391; object-fit: cover; border-radius: 7.66px; }

/* Breadcrumbs */
.crumbs { display: flex; align-items: center; font-size: 14px; line-height: 22px; color: var(--text-3); }
.crumbs a { padding: 0 4px; border-radius: 4px; }
.crumbs a:hover { color: var(--text-strong); background: var(--tile); }
.crumbs .sep { padding: 0 8px; }
.crumbs .current { padding: 0 4px; color: var(--text-strong); }

/* ===== Cabinet page header ===== */
.main.cabinet { padding: 60px 0 0; }
.page-header { background: var(--surface); padding: 16px 24px 0; }
.page-title { display: flex; align-items: center; gap: 16px; padding: 4px 0; margin-bottom: 16px; }
.page-title a { display: grid; place-items: center; width: 20px; height: 20px; }
.page-title .icon { width: 20px; height: 20px; }
.page-title h1 { margin: 0; font-size: 20px; line-height: 28px; font-weight: 600; color: var(--text-strong); }
.role-tabs { display: flex; gap: 32px; border-bottom: 1px solid var(--split); }
.role-tabs a { padding: 12px 0; color: var(--text-strong); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.role-tabs a.on { color: var(--primary); font-weight: 600; border-bottom-color: var(--primary); }
.cab-body { padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.row-a { display: flex; align-items: center; justify-content: space-between; height: 48px; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border-radius: 10px; background: var(--seg-bg); }
.seg a { padding: 6px 16px; border-radius: 8px; font-size: 13px; line-height: 16px; color: var(--seg-text); }
.seg a.on { background: var(--surface); color: var(--primary-text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.seg a:not(.on):hover { color: var(--text); }
.btn {
  height: 32px; padding: 0 15px; border-radius: 6px; border: 1px solid var(--border-soft); background: var(--surface);
  display: inline-flex; align-items: center; gap: 8px; color: var(--text-strong); white-space: nowrap;
}
.btn .icon { width: 14px; height: 14px; }
.btn:hover { border-color: var(--primary); color: var(--primary); }
.btn-primary { background: #f28c28; border-color: #f28c28; color: #fff; }
.btn-primary:hover { color: #fff; filter: brightness(1.05); }
.btn-sm { height: 28px; padding: 0 7px; border-radius: 4px; }

/* Stat tiles */
.stats { background: var(--surface); border: 1px solid #f0f1f3; border-radius: 8px; padding: 20px; display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
html[data-theme="dark"] .stats { border-color: var(--card-line); }
.stat { background: var(--stat-bg); border-radius: 8px; padding: 4px 16px; height: 76px; display: flex; flex-direction: column; gap: 4px; }
.stat span { font-size: 12px; line-height: 20px; color: var(--stat-label); white-space: pre-line; }
.stat b { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--stat-value); }
.stat.on { background: var(--primary-bg); }
.stat.on span, .stat.on b { color: var(--primary); }
a.stat:hover { outline: 1px solid var(--primary); }

/* Table */
.table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 3px; font-size: 12px; line-height: 20px; color: var(--text-strong); table-layout: fixed; }
.table th { background: var(--th-bg); font-weight: 600; text-align: left; height: 52px; padding: 0 16px; border-bottom: 1px solid var(--split); position: relative; }
.table th::after { content: ""; position: absolute; right: 0; top: 16px; height: 20px; width: 1px; background: var(--split); }
.table th:last-child::after { display: none; }
.table th .th { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.table th .icon { width: 12px; height: 12px; }
.table td { padding: 8px 16px; border-bottom: 1px solid var(--split); height: 56px; vertical-align: middle; }
.table tr:hover td { background: var(--tile); }
.table .name { color: var(--primary); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.table .center { text-align: center; }
.tag { display: inline-flex; align-items: center; height: 28px; padding: 4px 8px; border-radius: 4px; font-size: 12px; line-height: 20px; border: 1px solid; white-space: nowrap; }
.tag-blue { background: #e6f4ff; border-color: #91caff; color: #1677ff; }
.tag-red { background: #fff1f0; border-color: #ffa39e; color: #f5222d; }
.tag-orange { height: 22px; padding: 1px 8px; background: var(--primary-bg); border-color: #f8c89d; color: var(--primary); }
html[data-theme="dark"] .tag-blue { background: #111d2c; border-color: #15395b; color: #3c89e8; }
html[data-theme="dark"] .tag-red { background: #2a1215; border-color: #58181c; color: #e84749; }
html[data-theme="dark"] .tag-orange { border-color: #7a4a1d; }
.icon-btn { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; margin: 0 auto; }
.icon-btn:hover { background: var(--tile); }
.icon-btn .icon { width: 16px; height: 16px; }
.pagination { display: flex; justify-content: flex-end; gap: 8px; }
.pagination a { width: 32px; height: 32px; border-radius: 6px; display: grid; place-items: center; font-size: 14px; color: var(--text-strong); }
.pagination a.on { border: 1px solid var(--primary); color: var(--primary); font-weight: 600; }
.pagination a.off { opacity: .35; pointer-events: none; }
.pagination a:hover:not(.on) { background: var(--tile); }
.pagination .icon { width: 14px; height: 14px; }

/* Status tabs (results) */
.status-tabs { display: flex; }
.status-tabs a { height: 32px; padding: 0 16px; border: 1px solid var(--border); margin-left: -1px; background: var(--surface); display: inline-flex; align-items: center; gap: 8px; color: var(--text-strong); }
.status-tabs a:first-child { margin-left: 0; border-radius: 0; }
.status-tabs a.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.status-tabs .count { height: 22px; padding: 0 6px; border-radius: 16px; background: #ff4d4f; color: #fff; font-size: 14px; line-height: 22px; }
.status-tabs .dot { width: 10px; height: 10px; border-radius: 50%; background: #ff4d4f; border: 1px solid #fff; }

/* Dashboard */
.period { display: flex; align-items: center; justify-content: space-between; height: 32px; }
.period .muted, .period label { font-size: 12px; line-height: 16px; color: var(--text-3); }
.period .controls { display: flex; align-items: center; gap: 8px; }
.select { height: 32px; padding: 0 11px; border-radius: 6px; border: 1px solid var(--border-soft); background: var(--surface); display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-strong); }
.select .icon { width: 12px; height: 12px; }
.dash-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.panel { background: var(--surface); border: 1px solid var(--card-line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.kpi span { font-size: 12px; line-height: 20px; color: var(--text-3); }
.kpi b { font-size: 24px; line-height: 24px; font-weight: 500; color: var(--text-strong); }
.span-2 { grid-column: span 2; }
.panel h3 { margin: 0; font-size: 16px; line-height: 24px; font-weight: 600; color: var(--text-strong); }
.panel h4 { margin: 0 0 4px; font-size: 14px; line-height: 20px; font-weight: 500; color: var(--text-strong); display: flex; justify-content: space-between; align-items: center; }
.big { display: flex; align-items: baseline; gap: 12px; font-size: 12px; line-height: 16px; color: var(--text-3); }
.big b { font-size: 24px; line-height: 32px; font-weight: 500; color: var(--text-strong); }
.big .neg { color: #e24b4a; }
.chart { width: 100%; height: auto; display: block; color: var(--text-3); }
.chart text { fill: currentColor; font-size: 11px; font-family: var(--font); }
.chart .grid { stroke: var(--card-line); }
.legend { display: flex; gap: 20px; font-size: 12px; line-height: 16px; color: var(--text-strong); }
.legend i { display: inline-block; width: 8px; height: 8px; border-radius: 4px; margin-right: 6px; }
.bars { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; }
.bar-row { display: grid; grid-template-columns: 62px 1fr 64px; align-items: center; gap: 8px; font-size: 12px; line-height: 16px; color: var(--text-strong); }
.bar-row .track { height: 7px; border-radius: 99px; background: var(--search-bg); overflow: hidden; }
.bar-row .track i { display: block; height: 100%; border-radius: 99px; background: #f28c28; }
.bar-row span:last-child { text-align: right; color: var(--text-3); }
.top-list { display: flex; flex-direction: column; }
.top-list div { display: grid; grid-template-columns: 20px 1fr auto; padding: 6px 0; font-size: 13px; line-height: 20px; color: var(--text-strong); border-bottom: 1px solid var(--card-line); }
.top-list div:last-child { border-bottom: 0; }
.top-list span:first-child, .top-list span:last-child { color: var(--text-3); }
.mini-select { height: 24px; padding: 0 8px; border-radius: 6px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 400; color: var(--text-strong); }
.mini-select .icon { width: 16px; height: 16px; }

/* Personal */
.pd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pd-card { background: var(--surface); border: 1px solid var(--card-line); border-radius: 8px; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.pd-head { display: flex; align-items: center; gap: 8px; }
.pd-head .icon { width: 20px; height: 20px; filter: none; }
.pd-head h3 { margin: 0; flex: 1; font-size: 16px; line-height: 24px; font-weight: 500; color: var(--text-strong); }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 24px 16px; }
.field label { display: block; font-size: 12px; line-height: 16px; color: var(--text-3); margin-bottom: 4px; }
.field p { font-size: 14px; line-height: 20px; color: var(--text-strong); }
.field .file { display: flex; align-items: center; gap: 6px; color: var(--primary-text); }
.field .file .icon { width: 16px; height: 16px; filter: none; }
.notice { border: 1px solid var(--border-soft); border-radius: 8px; padding: 12px; display: flex; align-items: center; gap: 8px; color: var(--text-3); }
.notice .icon { width: 20px; height: 20px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { height: 30px; padding: 4px 8px; border-radius: 4px; border: 1px solid var(--border); display: inline-flex; align-items: center; gap: 4px; color: var(--text-strong); }
.chip .icon { width: 12px; height: 12px; }
.chip.sel { background: #d9f7be; }
html[data-theme="dark"] .chip.sel { background: #1d3712; }
.chip:hover { border-color: var(--primary); }
.hr { height: 1px; background: var(--split); }

/* Category filter card */
.form-block { display: flex; flex-direction: column; gap: 16px; padding-bottom: 10.5px; border-bottom: 1px solid var(--line); }
.form-block > b { font-weight: 600; color: var(--text-strong); }
.input { height: 32px; border-radius: 6px; border: 1px solid var(--border); background: var(--surface); display: flex; align-items: center; gap: 4px; padding: 0 12px; color: var(--text-strong); }
.input .icon { width: 16px; height: 16px; }
.input.multi { padding: 0 4px; }
.sel-item { height: 24px; padding: 0 8px; border-radius: 4px; background: var(--tile); border: 1px solid var(--split); display: inline-flex; align-items: center; gap: 4px; }
.sel-item .icon { width: 12px; height: 12px; }
.dates { display: flex; gap: 7px; }
.dates .input { flex: 1; justify-content: space-between; color: rgba(0,0,0,.25); }
html[data-theme="dark"] .dates .input { color: var(--text-3); }
.btn-block { width: 100%; justify-content: center; border-radius: 4px; }
.btn-fill { background: var(--primary); border-color: var(--primary); color: #fff; }
.btn-fill:hover { color: #fff; filter: brightness(1.05); }

/* ===== Results (alt shell) ===== */
.alt-logo { position: fixed; top: 0; left: 0; z-index: 21; width: 72px; height: 60px; background: var(--surface); border-right: 1px solid var(--split); border-bottom: 1px solid var(--split); display: flex; align-items: center; padding-left: 24px; }
.alt-logo .icon { width: 24px; height: 24px; filter: none; }
.alt-header { left: 72px; padding: 8px 24px; border-bottom: 0; }
.alt-header .icon-btn { margin: 0; }
.alt-header .round-btn { border-radius: 6px; }
.alt-header .badge { top: 0; right: auto; left: 15px; height: 14px; min-width: 0; font-size: 12px; line-height: 12px; padding: 0 4px; border-radius: 12px; }
.alt-avatar { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.alt-sidebar { width: 72px; padding: 4px; gap: 8px; border-right-color: var(--card-line); }
.alt-sidebar a { width: 63px; height: 40px; border-radius: 8px; display: grid; place-items: center; flex: none; }
.alt-sidebar a.on { background: var(--primary-bg); }
.alt-sidebar a:hover:not(.on) { background: var(--tile); }
.alt-sidebar .icon { width: 16px; height: 16px; }
.main.alt { margin-left: 72px; }

@media (max-width: 1280px) {
  .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .showcase-top { flex-wrap: wrap; }
  .orgs { min-height: 216px; flex-basis: 100%; }
}
.pd-ic { border-radius: 99px; display: grid; place-items: center; flex: none; }
.pd-ic img { width: 12px; height: 12px; }
.nav-item.active .icon { filter: none; }
.pd-ic img { width: 11px; height: 11px; }
