:root {
  --bg: #f7f3ec;
  --bg-soft: #fbf9f5;
  --bg-grad: linear-gradient(180deg, #faf8f3 0%, #f4efe6 100%);
  --sidebar-start: #101722;
  --sidebar-end: #0b121c;
  --card: rgba(255, 255, 255, 0.96);
  --card-solid: #ffffff;
  --text: #13284a;
  --text-2: #4d607f;
  --muted: #8a97ac;
  --line: rgba(20, 49, 92, 0.08);
  --line-2: rgba(255, 255, 255, 0.07);
  --blue: #2677f4;
  --blue-2: #eaf3ff;
  --green: #27b26f;
  --green-2: #e9fbf1;
  --orange: #ff980f;
  --orange-2: #fff1de;
  --yellow: #ffca22;
  --yellow-2: #ffe58b;
  --pink: #f3688a;
  --pink-2: #ffe9ee;
  --purple: #9b63e6;
  --purple-2: #f3e9ff;
  --teal: #1eb0a2;
  --teal-2: #e7fbf8;
  --shadow: 0 20px 48px rgba(25, 48, 86, 0.08);
  --shadow-soft: 0 12px 30px rgba(24, 48, 88, 0.06);
  --shadow-hover: 0 24px 52px rgba(24, 48, 88, 0.12);
  --sidebar-shadow: 0 22px 48px rgba(0, 0, 0, 0.35);
  --radius-xl: 28px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --radius-xs: 10px;
  --sidebar-width: 242px;
  --content-max: 1440px;
  --transition: 220ms cubic-bezier(.2, .7, .2, 1);
  --font-sans: "Segoe UI", "PingFang SC", "Microsoft YaHei UI", "Noto Sans SC", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 16% 4%, rgba(255, 202, 34, 0.11), transparent 22%),
    radial-gradient(circle at 74% 8%, rgba(38, 119, 244, 0.10), transparent 26%),
    radial-gradient(circle at 78% 56%, rgba(255, 152, 15, 0.08), transparent 20%),
    var(--bg-grad);
  min-height: 100vh;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.page {
  position: relative;
  overflow: hidden;
}

.page::before,
.page::after {
  content: "";
  position: fixed;
  inset: auto;
  pointer-events: none;
  z-index: 0;
  border-radius: 999px;
  filter: blur(12px);
}

.page::before {
  top: 80px;
  right: -180px;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(255, 202, 34, 0.16), transparent 64%);
}

.page::after {
  left: -180px;
  top: 360px;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(38, 119, 244, 0.08), transparent 64%);
}

.app-shell {
  position: relative;
  display: grid;
  grid-template-columns: var(--sidebar-width) minmax(0, 1fr);
  min-height: calc(100vh - 146px);
  width: 100%;
}

.sidebar {
  position: relative;
  background: linear-gradient(180deg, var(--sidebar-start) 0%, var(--sidebar-end) 100%);
  color: rgba(255, 255, 255, 0.94);
  padding: 18px 18px 26px;
  box-shadow: var(--sidebar-shadow);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 22px;
}

.sidebar::before,
.sidebar::after {
  content: "";
  position: absolute;
  inset: auto;
  border-radius: 999px;
  pointer-events: none;
}

.sidebar::before {
  width: 240px;
  height: 240px;
  left: -140px;
  top: -100px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08), transparent 70%);
}

.sidebar::after {
  width: 220px;
  height: 220px;
  right: -140px;
  bottom: 90px;
  background: radial-gradient(circle, rgba(255, 202, 34, 0.07), transparent 70%);
}

.sidebar > * {
  position: relative;
  z-index: 1;
}

.sidebar[data-animate] {
  opacity: 1;
  transform: none;
  animation: none;
}

.brand-block {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-right: 8px;
}

.sidebar-close {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.88);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex: 0 0 auto;
}

.brand-copy h1,
.brand-copy p,
.top-brand h2,
.top-brand p {
  margin: 0;
}

.brand-copy h1 {
  font-size: 17px;
  line-height: 1.1;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.brand-copy p {
  margin-top: 8px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.55;
}

.status-card,
.support-card {
  border-radius: 18px;
  padding: 16px 16px 15px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(14px);
}

.status-head,
.support-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.status-title,
.support-title {
  font-size: 15px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.96);
}

.status-value {
  font-size: 28px;
  line-height: 1;
  font-weight: 800;
  color: var(--yellow);
}

.progress-bar {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.progress-bar span {
  display: block;
  width: 74%;
  height: 100%;
  background: linear-gradient(90deg, #ffb300 0%, #ff8a00 100%);
  border-radius: inherit;
  box-shadow: 0 0 12px rgba(255, 164, 28, 0.45);
}

.status-card p,
.support-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.66);
}

.nav-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 6px;
}

.nav-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 12px;
  border-radius: 15px;
  color: rgba(255, 255, 255, 0.86);
  transition: transform var(--transition), background var(--transition), color var(--transition), border-color var(--transition), box-shadow var(--transition);
  border: 1px solid transparent;
  cursor: pointer;
  user-select: none;
}

.nav-item.prominent {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 170, 34, 0.18);
}

.nav-item:hover {
  transform: translateY(-1px);
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.nav-item.active {
  background: linear-gradient(180deg, rgba(255, 175, 38, 0.16), rgba(255, 175, 38, 0.10));
  border-color: rgba(255, 180, 56, 0.72);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 235, 187, 0.2);
  color: #ffffff;
}

.nav-item[data-menu="home"].active {
  background: linear-gradient(180deg, rgba(41, 111, 255, 0.12), rgba(255, 171, 43, 0.06));
  border-color: rgba(255, 179, 56, 0.8);
}

.nav-item svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  stroke-width: 2;
  opacity: 0.95;
}

.nav-label {
  font-size: 14px;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.nav-chevron {
  margin-left: auto;
  opacity: 0.7;
  transition: transform var(--transition);
}

.nav-item:hover .nav-chevron {
  transform: translateY(1px);
}

.sidebar-bottom {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.support-head {
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 8px;
}

.support-badge {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 195, 58, 0.25), rgba(255, 147, 0, 0.14));
  color: #ffca22;
  flex: 0 0 auto;
}

.support-button {
  height: 54px;
  border: 0;
  border-radius: 14px;
  cursor: pointer;
  background: linear-gradient(180deg, #ffd42d 0%, #ffbe1e 100%);
  color: #1c232f;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 14px 24px rgba(255, 180, 30, 0.24);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform var(--transition), box-shadow var(--transition), filter var(--transition);
}

.support-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 28px rgba(255, 180, 30, 0.3);
  filter: saturate(1.03);
}

.main {
  min-width: 0;
  width: 100%;
  padding: 14px 24px 32px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 22px;
  padding: 8px 0 4px;
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
  flex: 0 0 auto;
}

.menu-toggle:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(38, 119, 244, 0.22);
}

.top-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.top-brand h2 {
  font-size: 22px;
  line-height: 1;
  font-weight: 900;
  color: #0c2247;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.top-brand p {
  position: relative;
  padding-left: 16px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.top-brand p::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 1px;
  height: 18px;
  background: rgba(19, 40, 74, 0.18);
  transform: translateY(-50%);
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.search-shell {
  position: relative;
  width: 100%;
  max-width: 300px;
  min-width: 220px;
}

.search-shell input,
.toolbar-search input,
.filter-select {
  width: 100%;
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(20, 49, 92, 0.10);
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  padding: 0 44px 0 16px;
  outline: none;
  transition: border-color var(--transition), box-shadow var(--transition), background var(--transition);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.search-shell input::placeholder,
.toolbar-search input::placeholder {
  color: #97a4b7;
}

.search-shell input:focus,
.toolbar-search input:focus,
.filter-select:focus {
  border-color: rgba(38, 119, 244, 0.42);
  box-shadow: 0 0 0 4px rgba(38, 119, 244, 0.11);
  background: #ffffff;
}

.search-icon,
.toolbar-search .search-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #73819b;
  pointer-events: none;
}

.icon-button,
.avatar-button {
  position: relative;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(20, 49, 92, 0.09);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: var(--shadow-soft);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
  flex: 0 0 auto;
}

.icon-button:hover,
.avatar-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  border-color: rgba(38, 119, 244, 0.2);
  color: var(--blue);
}

.notify-badge {
  position: absolute;
  top: -2px;
  right: -1px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(180deg, #ff9c1e, #ff7f08);
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 2px solid #fffaf2;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 22px;
}

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), rgba(255, 255, 255, 0.94));
  border: 1px solid rgba(20, 49, 92, 0.07);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(38, 119, 244, 0.1);
}

.stat-card {
  padding: 20px 18px;
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 118px;
}

.stat-icon {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.stat-card.blue .stat-icon { background: var(--blue-2); color: var(--blue); }
.stat-card.orange .stat-icon { background: var(--orange-2); color: var(--orange); }
.stat-card.green .stat-icon { background: var(--green-2); color: var(--green); }
.stat-card.teal .stat-icon { background: #eaf9f1; color: #23a85f; }

.stat-copy {
  min-width: 0;
}

.stat-title {
  font-size: 13px;
  color: var(--text-2);
  font-weight: 700;
  margin-bottom: 6px;
}

.stat-value {
  font-size: 26px;
  line-height: 1;
  font-weight: 850;
  color: #0e2347;
  margin-bottom: 8px;
}

.stat-note {
  font-size: 12px;
  color: #8b97ab;
  line-height: 1.4;
}

.content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.95fr) minmax(290px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.list-card,
.detail-card {
  min-width: 0;
  padding: 18px 18px 14px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-title {
  margin: 0;
  font-size: 19px;
  line-height: 1.2;
  font-weight: 850;
  color: #101f3b;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.toolbar-search {
  position: relative;
  width: min(100%, 376px);
  flex: 1 1 auto;
}

.toolbar-right {
  margin-left: auto;
  position: relative;
  flex: 0 0 auto;
}

.filter-button {
  height: 44px;
  border-radius: 13px;
  border: 1px solid rgba(20, 49, 92, 0.09);
  padding: 0 14px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--text);
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition), color var(--transition);
}

.filter-button:hover,
.filter-button.is-open {
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  border-color: rgba(38, 119, 244, 0.18);
  color: var(--blue);
}

.filter-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(320px, calc(100vw - 40px));
  padding: 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(20, 49, 92, 0.08);
  box-shadow: 0 26px 50px rgba(21, 45, 85, 0.14);
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px) scale(0.98);
  transition: opacity var(--transition), visibility var(--transition), transform var(--transition);
  z-index: 25;
}

.filter-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

.filter-panel h3 {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 800;
  color: #12284a;
}

.filter-tip {
  font-size: 12px;
  color: #7b8aa2;
  line-height: 1.6;
  margin-bottom: 14px;
}

.filter-options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.chip-toggle {
  position: relative;
  border: 0;
  padding: 0;
  background: none;
  cursor: pointer;
}

.chip-toggle input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chip-toggle span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(20, 49, 92, 0.08);
  color: var(--text-2);
  background: #f7f9fc;
  font-size: 13px;
  font-weight: 700;
  transition: background var(--transition), color var(--transition), border-color var(--transition), transform var(--transition), box-shadow var(--transition);
}

.chip-toggle:hover span {
  transform: translateY(-1px);
  border-color: rgba(38, 119, 244, 0.18);
  color: var(--blue);
}

.chip-toggle input:checked + span {
  color: var(--blue);
  background: var(--blue-2);
  border-color: rgba(38, 119, 244, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.filter-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.ghost-btn,
.solid-btn {
  height: 38px;
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.ghost-btn {
  border: 1px solid rgba(20, 49, 92, 0.09);
  background: #ffffff;
  color: var(--text-2);
}

.solid-btn {
  border: 0;
  background: linear-gradient(180deg, #2d81ff 0%, #1f6bf4 100%);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(38, 119, 244, 0.18);
}

.ghost-btn:hover,
.solid-btn:hover {
  transform: translateY(-1px);
}

.table-wrap {
  width: 100%;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(20, 49, 92, 0.05);
  background: rgba(255, 255, 255, 0.78);
}

table {
  width: 100%;
  border-collapse: collapse;
}

thead th {
  text-align: left;
  padding: 18px 18px;
  font-size: 13px;
  font-weight: 800;
  color: #12284a;
  background: linear-gradient(180deg, rgba(250, 252, 255, 0.9), rgba(246, 249, 253, 0.82));
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}

tbody tr {
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}

tbody tr:hover {
  background: rgba(242, 247, 255, 0.78);
}

tbody tr.selected {
  background: linear-gradient(180deg, rgba(245, 249, 255, 0.92), rgba(240, 247, 255, 0.88));
}

tbody td {
  padding: 22px 18px;
  border-bottom: 1px solid rgba(20, 49, 92, 0.07);
  vertical-align: middle;
  font-size: 13px;
  color: #324764;
  line-height: 1.5;
}

tbody tr:last-child td {
  border-bottom: 0;
}

.firm-name {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 850;
  color: #12284a;
  letter-spacing: -0.01em;
  transition: color var(--transition), background-color var(--transition), box-shadow var(--transition), transform var(--transition);
}

tbody tr:hover .firm-name {
  color: var(--blue);
  background: rgba(38, 119, 244, 0.1);
  box-shadow: inset 0 0 0 1px rgba(38, 119, 244, 0.18);
  transform: translateY(-1px);
}

tbody tr.selected .firm-name {
  color: var(--blue);
  background: rgba(38, 119, 244, 0.12);
  box-shadow: inset 0 0 0 1px rgba(38, 119, 244, 0.22);
}

.cell-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.cell-inline svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  flex: 0 0 auto;
}

.cell-inline a {
  color: var(--blue);
  text-decoration: none;
}

.cell-inline a:hover {
  text-decoration: underline;
}

.tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.tag.blue { color: var(--blue); background: var(--blue-2); }
.tag.green { color: var(--green); background: var(--green-2); }
.tag.orange { color: var(--orange); background: var(--orange-2); }
.tag.purple { color: var(--purple); background: var(--purple-2); }
.tag.teal { color: var(--teal); background: var(--teal-2); }
.tag.pink { color: var(--pink); background: var(--pink-2); }

.mobile-cards {
  display: none;
  padding: 12px;
  gap: 12px;
}

.mobile-firm-card {
  border-radius: 18px;
  border: 1px solid rgba(20, 49, 92, 0.08);
  background: #ffffff;
  padding: 14px;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}

.mobile-firm-card.selected {
  border-color: rgba(38, 119, 244, 0.18);
  box-shadow: 0 16px 28px rgba(38, 119, 244, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f5f9ff 100%);
}

.mobile-firm-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.mobile-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.mobile-card-name {
  font-size: 17px;
  font-weight: 850;
  color: #12284a;
  transition: color var(--transition);
}

.mobile-firm-card:hover .mobile-card-name {
  color: var(--blue);
}

.mobile-card-body {
  display: grid;
  gap: 8px;
  font-size: 13px;
  color: #4b6180;
}

.mobile-card-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.mobile-card-line svg {
  width: 15px;
  height: 15px;
  color: var(--blue);
  flex: 0 0 auto;
}

.mobile-card-line a {
  color: var(--blue);
  word-break: break-all;
}

.empty-state {
  padding: 46px 20px 50px;
  text-align: center;
  color: #7a8aa2;
  font-size: 14px;
}

.empty-state svg {
  width: 44px;
  height: 44px;
  margin-bottom: 12px;
  color: #b4bfd0;
}

.list-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 4px 6px;
}

.list-meta {
  font-size: 13px;
  color: #8190a6;
}

.pagination-wrap {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin-left: auto;
  flex-wrap: wrap;
}

.pager {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  max-width: 100%;
  white-space: nowrap;
  padding: 4px 0;
}

.pagination-btn {
  padding: 6px 12px;
  border-radius: 8px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  font-size: 14px;
}

.pagination-btn:hover:not(:disabled) {
  background-color: #f3f4f6;
  color: #1f2937;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pagination-btn.active {
  background-color: #ea580c;
  color: #ffffff;
  font-weight: bold;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
  border-color: #ea580c;
  transform: scale(1.05);
  box-shadow: 0 0 0 2px rgba(234, 88, 12, 0.3);
}

.pager-btn,
.page-btn {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(20, 49, 92, 0.10);
  background: #ffffff;
  color: var(--text-2);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform var(--transition), border-color var(--transition), box-shadow var(--transition);
}

.pager-btn:hover,
.page-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(38, 119, 244, 0.18);
  box-shadow: var(--shadow);
}

.pager-btn:disabled {
  opacity: 0.4;
  cursor: default;
  transform: none;
  box-shadow: none;
}

.page-btn.active {
  border-color: rgba(255, 152, 15, 0.26);
  background: linear-gradient(180deg, #ffa31b 0%, #ff8f0d 100%);
  color: #ffffff;
  box-shadow: 0 12px 20px rgba(255, 152, 15, 0.24);
}

.detail-card {
  padding: 18px 18px 20px;
  position: sticky;
  top: 18px;
}

.detail-heading {
  margin: 0;
  font-size: 18px;
  font-weight: 850;
  color: #101f3b;
}

.detail-name {
  margin: 20px 0 18px;
  font-size: clamp(36px, 3vw, 48px);
  line-height: 1.02;
  font-weight: 900;
  color: #102547;
  letter-spacing: -0.03em;
  word-break: break-word;
}

.detail-header {
  position: relative;
  margin-bottom: 18px;
}

.detail-view-btn {
  position: absolute;
  top: 0;
  right: 0;
  padding: 8px 16px;
  background-color: #ff9600;
  color: white;
  font-size: 14px;
  font-weight: 600;
  border-radius: 8px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.detail-view-btn:hover {
  background-color: #f59e0b;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(255, 150, 0, 0.3);
}

.detail-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-top: 1px solid rgba(20, 49, 92, 0.08);
}

.detail-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 20px 0;
  border-bottom: 1px solid rgba(20, 49, 92, 0.08);
}

.detail-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: var(--blue);
  background: linear-gradient(180deg, #edf4ff 0%, #e6effd 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.85);
}

.detail-icon svg {
  width: 22px;
  height: 22px;
}

.detail-label {
  font-size: 13px;
  font-weight: 800;
  color: #162c51;
  margin-bottom: 6px;
}

.detail-value {
  font-size: 15px;
  color: #334967;
  line-height: 1.55;
  word-break: break-word;
}

.detail-value a {
  color: var(--blue);
}

.detail-value a:hover {
  text-decoration: underline;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.footer {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #162130 0%, #101a28 100%);
  color: rgba(255, 255, 255, 0.88);
  margin-top: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.footer-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 32px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 0.9fr);
  gap: 28px;
  align-items: start;
}

.footer-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 850;
  color: #ffffff;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.footer-logo {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, rgba(255, 197, 43, 0.22), rgba(255, 147, 0, 0.1));
  color: #ffca22;
  border: 1px solid rgba(255, 202, 34, 0.18);
}

.footer-brand h3,
.footer-brand p,
.footer-copy,
.footer-list,
.footer-list li {
  margin: 0;
}

.footer-brand h3 {
  font-size: 18px;
  font-weight: 850;
  color: #ffffff;
}

.footer-brand p,
.footer-copy,
.footer-list a,
.footer-list li {
  font-size: 13px;
  line-height: 1.85;
  color: rgba(255, 255, 255, 0.74);
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.footer-nav a:hover,
.footer-list a:hover {
  color: #ffffff;
}

.footer-list {
  list-style: none;
  padding: 0;
  display: grid;
  gap: 4px;
}

.footer-contact-line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.footer-contact-line svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
}

.back-top {
  position: fixed;
  right: 26px;
  bottom: 28px;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(20, 31, 46, 0.72);
  color: #ffffff;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 60;
  box-shadow: 0 16px 36px rgba(16, 26, 40, 0.26);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity var(--transition), transform var(--transition), border-color var(--transition), background var(--transition), box-shadow var(--transition);
  backdrop-filter: blur(14px);
}

.back-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-top:hover {
  background: rgba(26, 40, 60, 0.92);
  border-color: rgba(255, 202, 34, 0.48);
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(16, 26, 40, 0.32);
}

.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(8, 16, 28, 0.42);
  backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition), visibility var(--transition);
  z-index: 49;
}

.drawer-overlay.show {
  opacity: 1;
  visibility: visible;
}

[data-animate] {
  opacity: 0;
  transform: translateY(18px);
  animation: fadeUp 680ms cubic-bezier(.2, .7, .2, 1) forwards;
  animation-delay: var(--delay, 0ms);
}

@keyframes fadeUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1180px) {
  .content-grid {
    grid-template-columns: minmax(0, 1.55fr) minmax(280px, 0.9fr);
  }

  .stats-grid {
    gap: 14px;
  }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 224px minmax(0, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-grid {
    grid-template-columns: 1fr;
  }

  .detail-card {
    position: static;
  }
}

@media (max-width: 768px) {
  .drawer-overlay {
    background: rgba(8, 16, 28, 0.28);
    backdrop-filter: none;
  }

  .app-shell {
    display: block;
    min-height: auto;
  }

  .sidebar {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(280px, 78vw);
    padding: 16px 14px 20px;
    gap: 16px;
    border-radius: 0 22px 22px 0;
    transform: translateX(-102%);
    transition: transform 280ms cubic-bezier(.2, .7, .2, 1);
    z-index: 60;
    overflow-y: auto;
  }

  .sidebar[data-animate] {
    transform: translateX(-102%);
  }

  body.drawer-open .sidebar {
    transform: translateX(0);
  }

  body.drawer-open .sidebar[data-animate] {
    transform: translateX(0);
  }

  body.drawer-open {
    overflow: hidden;
  }

  .main {
    padding: 14px 14px 24px;
  }

  .brand-block {
    padding-right: 0;
  }

  .brand-copy p,
  .status-card,
  .sidebar-bottom {
    display: none;
  }

  .sidebar-close {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-list {
    gap: 8px;
    margin-top: 2px;
  }

  .nav-item {
    padding: 12px 10px;
  }

  .menu-toggle {
    display: inline-flex;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-bottom: 18px;
  }

  .topbar-left {
    justify-content: space-between;
    gap: 10px;
  }

  .top-brand {
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
  }

  .top-brand h2 {
    font-size: 20px;
  }

  .top-brand p {
    font-size: 13px;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .search-shell {
    order: 3;
    max-width: none;
    min-width: 100%;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }

  .stat-card {
    min-height: 104px;
  }

  .toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .toolbar-search,
  .toolbar-right,
  .filter-button {
    width: 100%;
  }

  .toolbar-right {
    margin-left: 0;
  }

  .filter-button {
    justify-content: center;
  }

  .filter-panel {
    left: 0;
    right: 0;
    width: auto;
  }

  .list-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .pagination-wrap {
    width: 100%;
    justify-content: space-between;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 22px;
  }
}

@media (max-width: 640px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }

  .list-card,
  .detail-card {
    padding: 16px 14px 14px;
  }

  .section-title,
  .detail-heading {
    font-size: 18px;
  }

  .table-wrap {
    background: transparent;
    border: 0;
    overflow: visible;
  }

  table {
    display: none;
  }

  .mobile-cards {
    display: grid;
  }

  .list-footer {
    padding: 14px 2px 4px;
  }

  .pagination-wrap {
    gap: 10px;
  }

  .pager {
    gap: 6px;
    overflow-x: auto;
    white-space: nowrap;
    padding: 2px 0;
  }

  .pager-btn,
  .page-btn {
    width: 28px;
    height: 28px;
    font-size: 12px;
  }

  .detail-name {
    font-size: 34px;
    margin-bottom: 14px;
  }

  .detail-item {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 12px;
    padding: 16px 0;
  }

  .detail-icon {
    width: 42px;
    height: 42px;
  }

  .back-top {
    right: 18px;
    bottom: 20px;
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 460px) {
  .pagination-wrap {
    justify-content: center;
    width: 100%;
    margin-left: 0;
  }

  .pager {
    justify-content: center;
    gap: 6px;
  }

  .pagination-btn {
    padding: 5px 10px;
    font-size: 12px;
    border-radius: 6px;
  }

  .top-brand {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
  }

  .top-brand p {
    padding-left: 0;
  }

  .top-brand p::before {
    display: none;
  }

  .topbar-right {
    gap: 10px;
  }

  .icon-button,
  .avatar-button {
    width: 40px;
    height: 40px;
  }

  .list-meta {
    font-size: 12px;
  }

  .page-btn,
  .pager-btn {
    width: 32px;
    height: 32px;
  }
}