:root {
  color: #1f2937;
  background: #f7f6f2;
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", Arial,
    sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --bg: #f7f6f2;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --ink: #1f2937;
  --muted: #667085;
  --line: rgba(34, 43, 69, 0.1);
  --blue: #2563eb;
  --teal: #0f766e;
  --coral: #e76f51;
  --gold: #c58a12;
  --shadow: 0 18px 50px rgba(42, 50, 66, 0.1);
  --soft-shadow: 0 10px 28px rgba(42, 50, 66, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 5%, rgba(37, 99, 235, 0.1), transparent 30%),
    radial-gradient(circle at 85% 12%, rgba(231, 111, 81, 0.14), transparent 28%),
    linear-gradient(180deg, #fbfaf7 0%, var(--bg) 46%, #f1f5f4 100%);
  -webkit-font-smoothing: antialiased;
}

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

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

.site-shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 100vh;
  padding: 22px 18px;
  overflow-y: auto;
  border-right: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  backdrop-filter: blur(18px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 48px;
  margin-bottom: 22px;
  color: #101828;
  font-size: 21px;
  font-weight: 850;
  white-space: nowrap;
}

.brand-mark {
  display: inline-grid;
  width: 44px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, #ffffff 0%, #eef4ff 100%);
  color: var(--blue);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 10px 22px rgba(37, 99, 235, 0.12);
}

.side-nav {
  display: grid;
  gap: 8px;
}

.side-nav a {
  display: grid;
  grid-template-columns: 30px 1fr 12px;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: #465267;
  font-size: 14px;
  transition: background 0.16s ease, border-color 0.16s ease, transform 0.16s ease;
}

.side-nav a:hover {
  border-color: rgba(37, 99, 235, 0.16);
  background: #ffffff;
  color: #111827;
  transform: translateX(2px);
}

.nav-icon {
  display: grid;
  width: 26px;
  height: 26px;
  place-items: center;
  border-radius: 8px;
  background: #eff6ff;
  color: var(--blue);
  font-size: 12px;
  font-weight: 800;
}

.side-nav a:nth-child(3n + 2) .nav-icon {
  background: #ecfdf5;
  color: var(--teal);
}

.side-nav a:nth-child(3n) .nav-icon {
  background: #fff7ed;
  color: var(--coral);
}

.chevron {
  color: #a8b0be;
  font-size: 18px;
}

.main {
  width: min(100%, 1280px);
  padding-bottom: 72px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  align-items: center;
  gap: 18px;
  min-height: 68px;
  padding: 14px 30px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  background: rgba(247, 246, 242, 0.78);
  backdrop-filter: blur(18px);
}

.menu-button {
  display: none;
  width: 38px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: #344054;
  font-size: 18px;
}

.top-links {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  color: #5f6b7a;
  font-size: 14px;
}

.top-links a {
  min-height: 34px;
  border-radius: 8px;
  padding: 8px 12px;
}

.top-links a:hover {
  background: #ffffff;
  color: var(--blue);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-button,
.primary-button,
.secondary-button {
  min-height: 38px;
  border-radius: 8px;
  padding: 0 15px;
  border: 1px solid transparent;
  font-weight: 760;
}

.ghost-button {
  border-color: transparent;
  background: transparent;
  color: #667085;
}

.ghost-button:hover {
  background: #ffffff;
  color: #111827;
}

.primary-button {
  border-color: rgba(37, 99, 235, 0.72);
  background: #2563eb;
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.2);
}

.primary-button:hover {
  background: #1d4ed8;
}

.secondary-button {
  border-color: rgba(37, 99, 235, 0.16);
  background: #eff6ff;
  color: var(--blue);
}

.utility-strip {
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 14px;
  margin: 22px 30px 18px;
}

.rate-box,
.time-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  color: #667085;
  font-size: 13px;
}

.rate-box {
  padding: 8px 14px;
  flex-wrap: wrap;
}

.rate-box span {
  white-space: nowrap;
}

.rate-box strong {
  color: #111827;
  font-weight: 850;
  white-space: nowrap;
}

.rate-box input {
  width: 96px;
  height: 32px;
  border: 1px solid #d6dce8;
  border-radius: 8px;
  padding: 0 10px;
  background: #ffffff;
  color: #111827;
}

.rate-box button {
  min-width: 68px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  padding: 0 14px;
  background: #111827;
  color: #ffffff;
  font-weight: 760;
  white-space: nowrap;
}

.time-row {
  flex-wrap: wrap;
  padding: 8px 14px;
}

.time-row span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 116px;
}

.time-row b {
  display: inline-grid;
  width: 26px;
  height: 18px;
  place-items: center;
  border-radius: 5px;
  background: #f2f4f7;
  color: #344054;
  font-size: 9px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(360px, 0.9fr);
  gap: 18px;
  margin: 0 30px 22px;
}

.banner-stack {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.promo-banner {
  position: relative;
  min-height: 156px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 8px;
  padding: 24px;
  color: #ffffff;
  box-shadow: var(--shadow);
}

.promo-banner::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -54px;
  width: 178px;
  height: 178px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
}

.promo-banner::before {
  content: "";
  position: absolute;
  right: 32px;
  top: 24px;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  transform: rotate(10deg);
}

.promo-banner p,
.promo-banner h1,
.promo-banner h2,
.promo-banner span {
  position: relative;
  z-index: 1;
  margin: 0;
}

.promo-banner p {
  display: inline-flex;
  margin-bottom: 12px;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 760;
}

.promo-banner h1,
.promo-banner h2 {
  max-width: 560px;
  margin-bottom: 10px;
  font-size: 34px;
  line-height: 1.13;
}

.promo-banner h2 {
  font-size: 22px;
}

.promo-banner span {
  display: block;
  max-width: 520px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 15px;
  line-height: 1.65;
}

.main-banner {
  grid-column: 1 / -1;
  min-height: 214px;
  background:
    linear-gradient(135deg, rgba(15, 23, 42, 0.94), rgba(37, 99, 235, 0.82)),
    #111827;
}

.secondary-banner {
  background:
    linear-gradient(135deg, rgba(15, 118, 110, 0.95), rgba(20, 184, 166, 0.72)),
    #0f766e;
}

.dark-banner {
  background:
    linear-gradient(135deg, rgba(72, 63, 170, 0.94), rgba(231, 111, 81, 0.76)),
    #4f46e5;
}

.right-column {
  display: grid;
  gap: 16px;
}

.search-card,
.headline-panel,
.manager-panel,
.link-section,
.stats-row div {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--soft-shadow);
  backdrop-filter: blur(16px);
}

.search-card {
  padding: 20px;
}

.search-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
}

.search-tabs button {
  height: 32px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  padding: 0 12px;
}

.search-tabs button:first-child {
  border-color: rgba(37, 99, 235, 0.18);
  background: #eff6ff;
  color: var(--blue);
  font-weight: 760;
}

.search-field {
  display: flex;
  align-items: center;
  min-height: 54px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  background: #ffffff;
  padding: 0 16px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.search-field input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #111827;
}

.search-field span {
  color: #98a2b3;
  font-size: 22px;
}

.headline-panel {
  display: grid;
  overflow: hidden;
}

.headline-panel section {
  padding: 17px 18px;
}

.headline-panel section + section {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
}

.headline-panel header,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.headline-panel header {
  margin-bottom: 10px;
  color: #111827;
}

.headline-panel header strong {
  font-size: 15px;
}

.headline-panel header a,
.section-header a {
  color: #98a2b3;
  font-size: 12px;
}

.headline-item {
  display: grid;
  gap: 5px;
  padding: 10px 0;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
  color: #475467;
  font-size: 13px;
  line-height: 1.5;
}

.headline-item:hover {
  color: var(--blue);
}

.headline-item small {
  color: #98a2b3;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 0 30px 22px;
}

.stats-row div {
  display: grid;
  gap: 6px;
  padding: 20px 22px;
}

.stats-row strong {
  color: #111827;
  font-size: 29px;
  line-height: 1;
}

.stats-row div:nth-child(1) strong {
  color: var(--blue);
}

.stats-row div:nth-child(2) strong {
  color: var(--teal);
}

.stats-row div:nth-child(3) strong {
  color: var(--gold);
}

.stats-row div:nth-child(4) strong {
  color: var(--coral);
}

.stats-row span {
  color: #667085;
  font-size: 13px;
}

.manager-panel {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 22px;
  margin: 0 30px 22px;
  padding: 22px;
  border-color: rgba(37, 99, 235, 0.18);
}

.eyebrow {
  margin: 0 0 6px;
  color: var(--teal);
  font-size: 13px;
  font-weight: 850;
}

.manager-panel h2 {
  margin: 0;
  color: #111827;
  font-size: 22px;
  line-height: 1.25;
}

.collector-form {
  display: grid;
  grid-template-columns: minmax(180px, 1.25fr) auto minmax(140px, 0.85fr) 150px 124px minmax(180px, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.collector-form input,
.collector-form select {
  min-width: 0;
  height: 40px;
  border: 1px solid #d8dee9;
  border-radius: 8px;
  padding: 0 12px;
  background: #ffffff;
  color: #344054;
  outline: 0;
}

.collector-form input:focus,
.collector-form select:focus {
  border-color: rgba(37, 99, 235, 0.8);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.collector-status {
  grid-column: 1 / -1;
  margin: -2px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.5;
}

.collector-status.success {
  color: #12805c;
}

.collector-status.error {
  color: #c2410c;
}

.section-list {
  display: grid;
  gap: 18px;
  margin: 0 30px;
}

.link-section {
  padding: 20px;
}

.section-header {
  margin-bottom: 18px;
}

.section-header > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-header h2 {
  margin: 0;
  color: #111827;
  font-size: 19px;
  font-weight: 850;
}

.dot {
  width: 12px;
  height: 12px;
  border: 0;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: 0 0 0 6px rgba(37, 99, 235, 0.12);
}

.section-tabs {
  display: flex;
  flex: 1;
  gap: 7px;
  margin-left: 8px;
}

.section-tabs button {
  height: 30px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 12px;
  background: #f2f4f7;
  color: #667085;
  font-size: 13px;
}

.section-tabs button.active,
.section-tabs button:hover {
  border-color: rgba(15, 118, 110, 0.18);
  background: #ecfdf5;
  color: var(--teal);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.resource-card {
  position: relative;
  min-height: 118px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.92);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(42, 50, 66, 0.06);
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.resource-card::after {
  content: "";
  position: absolute;
  inset: auto 14px 0 14px;
  height: 3px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--blue), var(--teal), var(--coral));
  opacity: 0;
  transition: opacity 0.16s ease;
}

.resource-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: 0 18px 34px rgba(42, 50, 66, 0.12);
}

.resource-card:hover::after {
  opacity: 1;
}

.resource-card > a {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 118px;
  padding: 17px 14px 18px;
}

.resource-logo {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.1)),
    #f8fafc;
  color: var(--blue);
  font-size: 13px;
  font-weight: 850;
}

.resource-logo img {
  width: 25px;
  height: 25px;
  object-fit: contain;
}

.resource-card strong,
.resource-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.resource-card strong {
  padding-right: 64px;
  color: #111827;
  font-size: 15px;
  line-height: 1.35;
  white-space: nowrap;
}

.resource-card small {
  display: -webkit-box;
  margin-top: 7px;
  color: #667085;
  font-size: 12px;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.resource-card em {
  position: absolute;
  top: 14px;
  right: 12px;
  max-width: 68px;
  overflow: hidden;
  border-radius: 999px;
  background: #f8fafc;
  color: #667085;
  border: 1px solid #eef2f7;
  font-size: 10px;
  font-style: normal;
  line-height: 20px;
  padding: 0 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-actions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 5px;
  padding: 0 12px 12px;
}

.card-actions button {
  height: 28px;
  border: 1px solid #e5e7eb;
  border-radius: 7px;
  background: #f8fafc;
  color: #667085;
  font-size: 12px;
}

.card-actions button:hover {
  background: #ffffff;
  color: var(--blue);
}

.card-actions button:last-child {
  color: #c2410c;
}

@media (max-width: 1180px) {
  .site-shell {
    grid-template-columns: 218px minmax(0, 1fr);
  }

  .hero-grid,
  .utility-strip {
    grid-template-columns: 1fr;
  }

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

  .collector-form {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 860px) {
  .site-shell {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    height: auto;
    padding: 14px;
    overflow: visible;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .brand {
    min-height: 42px;
    margin-bottom: 12px;
    font-size: 20px;
  }

  .side-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .side-nav a {
    min-height: 38px;
    grid-template-columns: 26px 1fr;
    padding: 0 10px;
    background: rgba(255, 255, 255, 0.58);
  }

  .side-nav .chevron {
    display: none;
  }

  .topbar {
    min-height: auto;
    flex-wrap: wrap;
    padding: 12px 14px;
  }

  .menu-button {
    display: inline-grid;
    place-items: center;
  }

  .top-links {
    order: 3;
    width: 100%;
    overflow-x: auto;
    gap: 4px;
    padding-bottom: 2px;
  }

  .top-actions {
    margin-left: auto;
  }

  .utility-strip,
  .hero-grid,
  .stats-row,
  .manager-panel,
  .section-list {
    margin-left: 14px;
    margin-right: 14px;
  }

  .rate-box {
    flex-wrap: wrap;
  }

  .banner-stack {
    grid-template-columns: 1fr;
  }

  .main-banner {
    min-height: 190px;
  }

  .promo-banner h1,
  .promo-banner h2 {
    font-size: 26px;
  }

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

  .manager-panel {
    grid-template-columns: 1fr;
  }

  .collector-form {
    grid-template-columns: 1fr;
  }

  .section-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .section-tabs {
    order: 3;
    width: 100%;
    flex-wrap: wrap;
    margin-left: 0;
  }

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

@media (max-width: 540px) {
  .top-actions {
    width: 100%;
  }

  .top-actions .primary-button {
    flex: 1;
  }

  .utility-strip {
    margin-top: 14px;
  }

  .stats-row,
  .card-grid {
    grid-template-columns: 1fr;
  }

  .resource-card > a {
    min-height: 104px;
  }
}

/* Polished top-navigation version */
.site-shell {
  display: block;
}

.sidebar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 22px;
  width: 100%;
  height: auto;
  padding: 14px 30px;
  overflow: visible;
  border-right: 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.82);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 12px 36px rgba(42, 50, 66, 0.07);
}

.brand {
  min-height: 42px;
  margin: 0;
  flex: 0 0 auto;
}

.side-nav {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding: 2px 0;
  scrollbar-width: none;
}

.side-nav::-webkit-scrollbar {
  display: none;
}

.side-nav a {
  display: inline-flex;
  min-height: 38px;
  min-width: max-content;
  padding: 0 12px;
  border-color: rgba(226, 232, 240, 0.75);
  background: rgba(248, 250, 252, 0.84);
}

.side-nav a:hover {
  transform: translateY(-1px);
}

.side-nav .chevron {
  display: none;
}

.main {
  width: min(100%, 1200px);
  margin: 0 auto;
}

.topbar {
  top: 71px;
  min-height: 58px;
  margin: 16px 30px 0;
  border: 1px solid rgba(226, 232, 240, 0.84);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: var(--soft-shadow);
}

.top-links a:first-child {
  background: #111827;
  color: #ffffff;
}

.utility-strip {
  margin-top: 18px;
}

.hero-grid {
  grid-template-columns: minmax(0, 1.28fr) minmax(330px, 0.72fr);
}

.main-banner {
  background:
    radial-gradient(circle at 78% 78%, rgba(255, 255, 255, 0.19), transparent 30%),
    linear-gradient(135deg, #101828 0%, #173b86 58%, #0f766e 100%);
}

.secondary-banner {
  background:
    radial-gradient(circle at 78% 85%, rgba(255, 255, 255, 0.18), transparent 31%),
    linear-gradient(135deg, #0f766e 0%, #14b8a6 100%);
}

.dark-banner {
  background:
    radial-gradient(circle at 80% 82%, rgba(255, 255, 255, 0.18), transparent 31%),
    linear-gradient(135deg, #4338ca 0%, #e76f51 100%);
}

.quick-entry {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0 30px 22px;
}

.quick-card {
  position: relative;
  display: grid;
  min-height: 148px;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.88);
  border-radius: 8px;
  padding: 18px;
  background: #ffffff;
  box-shadow: var(--soft-shadow);
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}

.quick-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -42px;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.1;
}

.quick-card:hover {
  transform: translateY(-3px);
  border-color: rgba(37, 99, 235, 0.22);
  box-shadow: var(--shadow);
}

.quick-card span {
  width: fit-content;
  height: 26px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255, 255, 255, 0.68);
  color: currentColor;
  font-size: 12px;
  font-weight: 800;
}

.quick-card strong {
  margin-top: 12px;
  color: #111827;
  font-size: 20px;
}

.quick-card small {
  margin-top: 8px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.tone-blue {
  color: #2563eb;
  background: linear-gradient(135deg, #ffffff, #eff6ff);
}

.tone-green {
  color: #0f766e;
  background: linear-gradient(135deg, #ffffff, #ecfdf5);
}

.tone-gold {
  color: #c58a12;
  background: linear-gradient(135deg, #ffffff, #fffbeb);
}

.tone-violet {
  color: #6d28d9;
  background: linear-gradient(135deg, #ffffff, #f5f3ff);
}

.drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 30;
  background: rgba(15, 23, 42, 0.28);
  backdrop-filter: blur(3px);
}

.manager-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 31;
  display: block;
  width: min(520px, calc(100vw - 36px));
  margin: 0;
  overflow-y: auto;
  padding: 22px;
  border-color: rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 30px 90px rgba(15, 23, 42, 0.24);
}

.login-panel {
  top: 50%;
  bottom: auto;
  transform: translateY(-50%);
  max-height: calc(100vh - 36px);
}

.login-form input[type="password"] {
  letter-spacing: 0;
}

.manager-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.drawer-close {
  min-height: 34px;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #f8fafc;
  color: #475467;
  padding: 0 12px;
  font-size: 13px;
}

.collector-form {
  grid-template-columns: 1fr;
}

.collector-form .primary-button,
.collector-form .secondary-button {
  width: 100%;
}

.resource-card {
  isolation: isolate;
}

.resource-card:nth-child(4n + 1) .resource-logo {
  color: #2563eb;
  background: #eff6ff;
}

.resource-card:nth-child(4n + 2) .resource-logo {
  color: #0f766e;
  background: #ecfdf5;
}

.resource-card:nth-child(4n + 3) .resource-logo {
  color: #c58a12;
  background: #fffbeb;
}

.resource-card:nth-child(4n) .resource-logo {
  color: #6d28d9;
  background: #f5f3ff;
}

@media (max-width: 1180px) {
  .sidebar {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
    padding: 14px;
  }

  .main {
    width: 100%;
  }

  .topbar {
    top: 105px;
  }

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

@media (max-width: 860px) {
  .sidebar {
    position: sticky;
    padding: 12px 14px;
  }

  .topbar {
    top: 101px;
    margin: 12px 14px 0;
  }

  .utility-strip,
  .hero-grid,
  .stats-row,
  .quick-entry,
  .section-list {
    margin-left: 14px;
    margin-right: 14px;
  }
}

@media (max-width: 540px) {
  .quick-entry {
    grid-template-columns: 1fr;
  }

  .manager-panel {
    inset: 10px;
    width: auto;
  }
}
