:root {
  --bg: #f7f8fb;
  --panel: #ffffff;
  --panel-soft: #fbfcfe;
  --ink: #202636;
  --muted: #7b8494;
  --line: #edf0f5;
  --navy: #2f5f98;
  --navy-2: #eef5ff;
  --green: #45a85c;
  --green-soft: #edf8f0;
  --red: #c2413b;
  --red-soft: #fdeceb;
  --blue: #2f5f98;
  --orange: #f2a93b;
  --shadow: 0 12px 32px rgba(32, 38, 54, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(47, 95, 152, 0.12), transparent 34rem),
    linear-gradient(180deg, #f8fbfd 0%, var(--bg) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
}

a {
  color: var(--navy);
  font-weight: 700;
}

.hidden {
  display: none !important;
}

.eyebrow {
  margin: 0 0 5px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-shell {
  width: min(440px, 100%);
}

.login-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.logo-tile,
.brand-mark span {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-size: 22px;
  font-weight: 900;
}

.login-brand h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.15;
}

.auth-card,
.dialog-panel,
.admin-panel,
.card,
.summary-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow);
}

.auth-card {
  display: grid;
  gap: 16px;
  padding: 22px;
}

.auth-card h2 {
  margin: 0 0 5px;
  font-size: 20px;
}

.auth-card p,
.notice,
.muted {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.notice {
  margin-bottom: 12px;
  padding: 12px;
  border: 1px solid #b9d9d2;
  border-radius: 8px;
  background: var(--green-soft);
  line-height: 1.6;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
}

input,
select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: #fff;
  outline: none;
}

input:focus,
select:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(22, 128, 107, 0.14);
}

.primary-button,
button[type="submit"] {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--navy);
  font-weight: 800;
}

.text-button {
  min-height: 36px;
  border: 0;
  color: var(--navy);
  background: transparent;
  font-weight: 800;
}

.form-error {
  min-height: 18px;
  margin: 0;
  color: var(--red);
  font-size: 13px;
}

.dialog {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(18, 24, 38, 0.42);
}

.dialog-panel {
  width: min(420px, 100%);
  display: grid;
  gap: 14px;
  padding: 20px;
}

.dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.dialog-head strong {
  font-size: 20px;
}

.icon-button {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  color: var(--navy);
  background: #edf3f8;
  font-size: 20px;
  font-weight: 900;
}

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

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: none;
  flex-direction: column;
  gap: 18px;
  padding: 20px 14px;
  color: var(--ink);
  background: #fff;
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(32, 38, 54, 0.05);
}

.brand-mark {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 4px 14px;
  border-bottom: 1px solid var(--line);
}

.brand-mark span {
  color: #fff;
  background: var(--navy);
}

.brand-mark strong {
  display: block;
  font-size: 16px;
}

.brand-mark small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
}

.nav {
  display: grid;
  gap: 14px;
}

.nav-section {
  display: grid;
  gap: 6px;
  padding: 10px 12px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(32, 38, 54, 0.04);
}

.nav-section-title {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 1px;
  color: var(--navy);
  text-transform: none;
  padding: 0 2px 6px;
  border-bottom: 1px dashed #dbe4f1;
  margin-bottom: 4px;
}

.nav-section-items {
  display: grid;
  gap: 6px;
}

.nav-section-items .nav-main {
  width: 100%;
  text-align: left;
}

.nav-section-items .nav-main.active {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.nav-main {
  font-size: 15px;
}

.nav-tree {
  display: grid;
  gap: 6px;
  padding-left: 10px;
  border-left: 2px solid #dbe9f8;
}

.nav-branch {
  display: grid;
  gap: 5px;
}

.nav-sub,
.nav-team {
  width: 100%;
}

.nav-sub {
  min-height: 38px !important;
  padding-left: 12px !important;
  font-size: 14px;
}

.nav-team-list {
  max-height: min(38vh, 320px);
  display: grid;
  gap: 4px;
  overflow-y: auto;
  padding: 0 0 4px 12px;
}

.nav-team {
  min-height: 32px !important;
  padding-left: 10px !important;
  color: #7a8494 !important;
  font-size: 12px;
  font-weight: 700 !important;
}

.nav-team.active,
.nav-team:hover {
  color: var(--navy) !important;
  background: #f3f8ff !important;
}

.nav button,
.side-logout,
.side-filter-list button {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  color: #586274;
  background: transparent;
  text-align: left;
  font-weight: 800;
}

.nav button {
  padding: 0 12px;
}

.nav button.active,
.nav button:hover,
.side-filter-list button.active,
.side-filter-list button:hover {
  color: var(--navy);
  background: var(--navy-2);
}

.side-filters {
  min-height: 0;
  display: grid;
  gap: 14px;
  overflow: hidden;
}

.side-filter-group {
  min-height: 0;
  display: grid;
  gap: 8px;
}

.side-filter-group p {
  margin: 0;
  padding: 0 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.side-filter-list {
  display: grid;
  gap: 6px;
}

.side-filter-list button {
  padding: 0 10px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-list {
  max-height: min(42vh, 360px);
  overflow-y: auto;
  padding-right: 3px;
}

.side-logout {
  margin-top: auto;
  padding: 0 12px;
  border: 1px solid var(--line);
  text-align: center;
}

.sidebar-close {
  display: none;
}

.main {
  min-width: 0;
  padding: 20px;
}

.top-nav {
  position: sticky;
  top: 0;
  z-index: 15;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(32, 38, 54, 0.06);
}

.top-nav-module {
  position: relative;
}

.top-nav-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 18px;
  font-size: 15px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.top-nav-title::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
}

.top-nav-module:hover .top-nav-title,
.top-nav-module.open .top-nav-title {
  color: var(--navy);
  background: var(--navy-2);
  border-color: #d4e4f7;
}

.top-nav-module.active > .top-nav-title {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.top-nav-module.active > .top-nav-title::after {
  border-top-color: #fff;
}

.top-nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(32, 38, 54, 0.14);
}

.top-nav-module.open .top-nav-dropdown {
  display: flex;
}

.top-nav-item {
  width: 100%;
  text-align: left;
  height: 38px;
  padding: 0 12px;
  font-size: 14px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease;
  font-family: inherit;
}

.top-nav-item:hover {
  background: var(--navy-2);
  color: var(--navy);
}

.top-nav-item.active {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}

.top-nav-spacer {
  flex: 1;
}

.topbar {
  min-height: 62px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(640px, 720px);
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px 18px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #2f5f98 0%, #4f86c6 100%);
  box-shadow: 0 14px 30px rgba(47, 95, 152, 0.20);
}

.title-block h2 {
  margin: 0;
  font-size: 24px;
  line-height: 1.2;
}

.topbar .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.topbar-filters {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.topbar-filter {
  position: relative;
  min-width: 0;
}

.topbar-filter-button {
  position: relative;        /* 让 ::after 相对按钮定位 */
  width: 100%;
  min-height: 44px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 8px;
  padding: 6px 12px;
  padding-right: 32px;      /* 给右侧 ::after 留位置 */
  color: var(--ink);
  background: #fff;
  text-align: left;
  font-weight: 900;
}

.topbar-filter-button small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.topbar-filter-button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-filter-button::after {
  content: "v";
  position: absolute;
  right: 12px;
  top: 50%;
  color: #315a88;
  transform: translateY(-50%);
}

.topbar-filter-menu {
  position: absolute;
  z-index: 20;
  top: calc(100% + 6px);
  right: 0;
  width: min(240px, 76vw);
  max-height: 280px;
  display: none;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(18, 24, 38, 0.18);
}

.topbar-filter.open .topbar-filter-menu {
  display: grid;
  gap: 6px;
}

.filter-menu-option {
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 10px;
  color: #315a88;
  background: #f5f9ff;
  text-align: left;
  font-weight: 800;
}

.filter-menu-option.active {
  color: #fff;
  background: var(--navy);
}

/* force-mobile 下强制加深选中项（OPPO ColorOS 下默认 active 颜色偏淡） */
.force-mobile .filter-menu-option.active {
  color: #ffffff;
  background: linear-gradient(135deg, var(--navy) 0%, #1e4174 100%);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px #ffffff, 0 1px 4px rgba(32, 89, 159, 0.3);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(110px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.summary-card {
  padding: 13px;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.04);
  border-top: 3px solid var(--navy);
}

.summary-card small,
.metric small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.summary-card strong {
  display: block;
  margin-top: 5px;
  font-size: 23px;
  line-height: 1.1;
}

.content {
  display: grid;
  gap: 16px;
}

.data-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.04);
}

.data-panel .section-title {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.brand-section {
  display: grid;
  gap: 10px;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.section-title h3 {
  margin: 0;
  font-size: 18px;
}

.section-title span {
  color: var(--muted);
  font-size: 13px;
}

.card-list {
  display: grid;
  gap: 10px;
}

.card {
  padding: 14px;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.04);
}

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

.card-title {
  min-width: 0;
}

.card-title strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 16px;
}

.card-title small {
  color: var(--muted);
  font-size: 12px;
}

.rank {
  min-width: 36px;
  padding: 5px 8px;
  border-radius: 8px;
  color: var(--green);
  background: var(--green-soft);
  text-align: center;
  font-weight: 900;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 8px;
}

.metric {
  min-width: 0;
  padding: 9px;
  border-radius: 8px;
  background: var(--panel-soft);
}

.metric strong {
  display: block;
  margin-top: 4px;
  overflow-wrap: anywhere;
  font-size: 17px;
}

.team-picker {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.team-picker button,
.mini-button {
  flex: 0 0 auto;
  min-height: 36px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  color: var(--navy);
  background: #eaf0f5;
  font-weight: 800;
}

.team-picker button.active {
  color: #fff;
  background: var(--navy);
}

.filter-panel {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.04);
}

.filter-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
}

.filter-label {
  padding-top: 9px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 900;
}

.filter-chips {
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
}

.filter-chip {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid #dbe7f5;
  border-radius: 8px;
  padding: 0 12px;
  color: #315a88;
  background: #f5f9ff;
  font-weight: 800;
}

.filter-chip.active {
  color: #fff;
  border-color: var(--navy);
  background: var(--navy);
}

.admin-panel {
  padding: 16px;
  box-shadow: 0 1px 2px rgba(18, 24, 38, 0.04);
}

.admin-panel h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

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

.full-row {
  grid-column: 1 / -1;
}

.upload-hint {
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid #dbe9f8;
  border-radius: 8px;
  background: #f5f9ff;
}

.json-upload-form {
  margin-top: 8px;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.data-table-wrap {
  width: 100%;
  max-height: calc(100vh - 360px);
  overflow-x: auto;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #c7d3e4 transparent;
  -webkit-overflow-scrolling: touch;
}

.data-table-wrap::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

.data-table-wrap::-webkit-scrollbar-thumb {
  background: #c7d3e4;
  border-radius: 6px;
  border: 2px solid #fff;
}

.data-table-wrap::-webkit-scrollbar-track {
  background: #f1f4f9;
}

table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
  font-size: 14px;
}

.data-table {
  min-width: 796px;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table thead th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tfoot th,
.data-table tfoot td {
  position: sticky;
  bottom: 0;
  z-index: 2;
  background: #eef3fa;
  border-top: 2px solid #2f5f98;
  border-bottom: none;
  font-weight: 700;
}

.data-table tfoot .total-label {
  color: #2f5f98;
  background: #eef3fa;
  font-size: 13px;
}

.data-table tfoot .total-cell {
  color: #273044;
  font-size: 15px;
}

.data-table tfoot .total-cell.visit-cell {
  font-size: 17px;
}

.data-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: background 0.12s ease;
}

.data-table th.sortable:hover {
  background: #3a6fab;
}

.data-table th.sortable .sort-label {
  vertical-align: middle;
}

.data-table th.sortable .sort-arrow {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  opacity: 0.45;
  font-weight: 400;
  vertical-align: middle;
}

.data-table th.sortable.sorted {
  background: #1f4f87;
}

.data-table th.sortable.sorted .sort-arrow {
  opacity: 1;
  font-weight: 600;
}

.data-table th:first-child,
.data-table td:first-child {
  width: 220px;
}

.data-table th:not(:first-child),
.data-table td:not(:first-child) {
  width: 96px;
  text-align: right;
}

th,
td {
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  white-space: nowrap;
}

th {
  color: var(--muted);
  background: #f8fafc;
  font-size: 12px;
}

.data-table th {
  color: #fff;
  background: #2f5f98;
}

.data-table th:first-child,
.data-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
}

.data-table td:first-child {
  background: #fff;
}

.data-table th:first-child {
  z-index: 2;
}

.name-cell {
  min-width: 150px;
  text-align: left !important;
}

.name-cell strong {
  display: block;
  color: var(--ink);
  line-height: 1.2;
}

.name-cell small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.2;
}

.number-cell {
  color: #273044;
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0;
}

.visit-cell {
  color: #245b96;
  font-size: 16px;
  font-weight: 900;
}

.device-cell {
  max-width: 280px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.danger {
  color: var(--red);
  background: var(--red-soft);
}

.perm-label {
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.perm-box {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.perm-all-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}

.perm-all-row small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 400;
}

.perm-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 8px;
  max-height: 220px;
  overflow-y: auto;
  padding: 2px;
  scrollbar-width: thin;
}

.perm-item {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--navy);
}

.perm-item input[type="checkbox"],
.perm-all-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--navy);
}

.perm-select {
  width: 100%;
  min-height: 40px;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--navy);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.mini-button.danger {
  color: #fff;
  background: #d64545;
}

.mini-button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.empty {
  padding: 22px 12px;
  color: var(--muted);
  text-align: center;
}

.mobile-only {
  display: none;
}

@media (max-width: 1100px) {
  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

/* 移动端顶部导航：不滚动、不 sticky，flex-wrap 自然换行，避免触发 OPPO ColorOS 滚动容器点击失效问题 */
.force-mobile .top-nav {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px 8px;
  padding: 8px 10px;
  touch-action: manipulation;
  z-index: 5;
}

.force-mobile .top-nav-brand {
  grid-column: 1 / -1;
  padding: 4px 4px 8px;
  margin-right: 0;
  border-right: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}

.force-mobile .top-nav-module {
  overflow: visible;
  min-width: 0;
}

.force-mobile .top-nav-module[data-public-row] .top-nav-title,
.force-mobile .top-nav-single[data-public-row] {
  width: 100%;
  justify-content: center;
  padding: 0 4px;
  font-size: 13px;
}

.force-mobile .top-nav-single {
  width: 100%;
}

.force-mobile .top-nav-logout {
  grid-column: 3 / -1;
  justify-self: end;
}

/* topbar 移动端：单列布局 */
.force-mobile .topbar {
  grid-template-columns: minmax(0, 1fr);
  margin-top: 16px;
  padding: 14px;
}

.force-mobile .topbar .title-block {
  margin-bottom: 10px;
  min-width: 0;
}

.force-mobile .topbar .title-block h2 {
  font-size: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.force-mobile .topbar .eyebrow {
  white-space: nowrap;
}

.force-mobile .topbar-filters {
  grid-column: 1 / -1;
}

.force-mobile .topbar .topbar-filter {
  flex: 1 1 auto;
}

/* sidebar 移动端：完全隐藏 */
.force-mobile .sidebar,
.force-mobile .sidebar-close {
  display: none;
}

/* 移动端：运营团队/运营人列缩窄（够展示"运营人/团队 + 小字 brand"即可） */
.force-mobile .name-cell {
  width: 78px;
  min-width: 78px;
  padding: 8px 5px;
}

.force-mobile .name-cell strong {
  font-size: 13px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.force-mobile .name-cell small {
  font-size: 11px;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 下拉菜单移动端：fixed 右上角 */
.force-mobile .top-nav-dropdown {
  position: fixed;
  top: 10px;
  right: 10px;
  width: calc(100vw - 20px);
  max-width: 380px;
  max-height: calc(100vh - 30px);
  overflow-y: auto;
  z-index: 40;
}

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

  /* 移动端顶部导航：grid 布局强制 3 列，避免 flex-wrap 在某些浏览器下分行 */
  .top-nav {
    position: relative;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px 8px;
    padding: 8px 10px;
    touch-action: manipulation;
    z-index: 5;
  }

  /* 移动端：品牌占满第一行 */
  .top-nav-brand {
    grid-column: 1 / -1;
    padding: 4px 4px 8px;
    margin-right: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    margin-bottom: 4px;
  }

  .top-nav-module {
    overflow: visible;
    min-width: 0;
  }

  /* 三个公开板块：内容紧凑 + 均分 3 列 */
  .top-nav-module[data-public-row] .top-nav-title,
  .top-nav-single[data-public-row] {
    width: 100%;
    justify-content: center;
    padding: 0 4px;
    font-size: 13px;
  }

  .top-nav-single {
    width: 100%;
  }

  /* 退出登录按钮：单独放第三行末尾 */
  .top-nav-logout {
    grid-column: 3 / -1;
    justify-self: end;
  }

  .top-nav-logout {
    flex-shrink: 0;
  }

  /* 移动端下拉：fixed 右上角弹出，避开滚动容器 */
  .top-nav-dropdown {
    position: fixed;
    top: 10px;
    right: 10px;
    width: calc(100vw - 20px);
    max-width: 380px;
    max-height: calc(100vh - 30px);
    overflow-y: auto;
    z-index: 40;
  }

  .data-table-wrap {
    max-height: calc(100vh - 320px);
  }

  .sidebar {
    display: none;
  }

  .sidebar-close {
    display: none;
  }

  .main {
    padding: 14px;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 16px;        /* 拉开与 top-nav 的距离 */
    padding: 14px;
  }

  .topbar-filters {
    grid-column: 1 / -1;
  }

  /* title-block 与 topbar-filters 之间增加间距 */
  .topbar .title-block {
    margin-bottom: 10px;
    min-width: 0;            /* 允许收缩 */
  }

  /* 移动端：标题字号缩小且禁止换行 */
  .topbar .title-block h2 {
    font-size: 20px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .topbar .eyebrow {
    white-space: nowrap;
  }

  /* 让 topbar-filters 按钮在移动端铺满 */
  .topbar .topbar-filter {
    flex: 1 1 auto;
  }

  .mobile-only {
    display: none;
  }
}

/* 移动端信息密度优化：压缩导航、筛选和指标区域，让数据表更早进入首屏。 */
@media (max-width: 780px) {
  .main {
    padding: 8px;
  }

  .top-nav,
  .force-mobile .top-nav {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
    margin-bottom: 8px;
    padding: 6px 8px;
    border-radius: 10px;
  }

  .top-nav-brand,
  .force-mobile .top-nav-brand {
    grid-column: span 3;
    display: flex;
    align-items: center;
    min-height: 32px;
    margin: 0;
    padding: 0 2px;
    border: 0;
  }

  .top-nav-brand .logo-tile {
    width: 30px;
    height: 30px;
    font-size: 16px;
  }

  .top-nav-brand strong {
    font-size: 14px;
  }

  .top-nav-brand small {
    display: none;
  }

  .top-nav-module[data-public-row] .top-nav-title,
  .top-nav-single[data-public-row],
  .top-nav-module .top-nav-title {
    height: 32px;
    min-height: 32px;
    padding: 0 3px;
    justify-content: center;
    font-size: 12px;
  }

  .top-nav-title::after {
    margin-left: 3px;
    border-left-width: 3px;
    border-right-width: 3px;
    border-top-width: 4px;
  }

  .top-nav-logout,
  .force-mobile .top-nav-logout {
    grid-row: 1;
    grid-column: 4;
    min-width: 0;
    height: 32px;
    padding: 0 4px;
    font-size: 11px;
    justify-self: stretch;
  }

  .top-nav-spacer {
    display: none;
  }

  .topbar,
  .force-mobile .topbar {
    grid-template-columns: minmax(0, 1fr);
    min-height: 0;
    gap: 5px;
    margin-top: 0;
    margin-bottom: 8px;
    padding: 8px 10px;
    border-radius: 10px;
  }

  .topbar .title-block,
  .force-mobile .topbar .title-block {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 0;
  }

  .topbar .eyebrow {
    margin: 0;
    font-size: 10px;
  }

  .topbar .title-block h2 {
    font-size: 18px;
  }

  .topbar-filters,
  .force-mobile .topbar-filters {
    grid-column: 1 / -1;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 4px;
  }

  .topbar-filter-button {
    min-height: 36px;
    padding: 4px 7px;
    font-size: 12px;
  }

  .topbar-filter-button small {
    font-size: 9px;
  }

  .topbar-filter-button::after {
    right: 6px;
  }

  .summary-grid {
    gap: 4px;
    margin-bottom: 8px;
  }

  .summary-card {
    min-height: 50px;
    padding: 6px 7px;
  }

  .summary-card small {
    font-size: 10px;
  }

  .summary-card strong {
    margin-top: 2px;
    font-size: 16px;
  }

  .content {
    gap: 8px;
  }

  .data-panel .section-title {
    padding: 8px 10px;
  }

  .section-title h3 {
    font-size: 16px;
  }

  .section-title span {
    font-size: 11px;
  }

  .data-table-wrap {
    max-height: calc(100vh - 248px);
  }

  .data-table {
    min-width: 468px;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    width: 108px;
  }

  .data-table th:not(:first-child),
  .data-table td:not(:first-child) {
    width: 60px;
  }

  th,
  td {
    padding: 7px 6px;
    font-size: 12px;
  }

  .name-cell {
    min-width: 104px;
    padding: 6px 5px;
  }

  .name-cell strong {
    font-size: 13px;
  }

  .name-cell small {
    margin-top: 1px;
    font-size: 10px;
  }
}

@media (max-width: 520px) {
  body {
    background: #f6f9fd;
  }

  .data-table-wrap {
    max-height: calc(100vh - 300px);
  }

  .login-screen {
    padding: 18px;
    align-items: start;
  }

  .login-shell {
    padding-top: 26px;
  }

  .login-brand h1 {
    font-size: 24px;
  }

  .auth-card {
    padding: 18px;
  }

  .main {
    padding: 10px;
  }

  .topbar {
    min-height: 52px;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 8px;
    margin-bottom: 8px;
    padding: 10px;
    border-radius: 8px;
  }

  .topbar .icon-button {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }

  .topbar-filters {
    gap: 6px;
  }

  .topbar-filter-button {
    min-height: 40px;
    padding: 5px 9px;
    font-size: 13px;
  }

  .topbar-filter-button small {
    font-size: 10px;
  }

  .topbar-filter-button::after {
    right: 8px;
  }

  .topbar-filter-menu {
    left: 0;
    right: auto;
    width: min(280px, calc(100vw - 28px));
    max-height: 320px;
  }

  .topbar .eyebrow {
    margin-bottom: 2px;
    font-size: 11px;
  }

  .title-block h2 {
    font-size: 20px;
  }

  .summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
    margin-bottom: 10px;
  }

  .summary-card {
    min-height: 62px;
    padding: 9px 8px;
    border-top-width: 2px;
    box-shadow: 0 1px 2px rgba(18, 24, 38, 0.03);
  }

  .summary-card:first-child {
    color: #fff;
    border-color: #1f5f9e;
    background: linear-gradient(135deg, #2f5f98, #4d86c8);
  }

  .summary-card:first-child small,
  .summary-card:first-child strong {
    color: #fff;
  }

  .summary-card small {
    font-size: 11px;
  }

  .summary-card strong {
    margin-top: 3px;
    font-size: 18px;
    line-height: 1.05;
  }

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

  .metric strong {
    font-size: 16px;
  }

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

  .content {
    gap: 10px;
  }

  .filter-panel {
    gap: 8px;
    padding: 10px;
  }

  .filter-row {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 8px;
  }

  .filter-label {
    padding-top: 8px;
    font-size: 12px;
  }

  .filter-chips {
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .filter-chip {
    min-height: 30px;
    padding: 0 9px;
    font-size: 12px;
  }

  .brand-section {
    gap: 8px;
  }

  .data-panel .section-title {
    padding: 10px 12px;
  }

  .section-title h3 {
    font-size: 18px;
  }

  .section-title span {
    font-size: 12px;
  }

  .data-table {
    min-width: 560px;
  }

  .data-table th:first-child,
  .data-table td:first-child {
    width: 138px;
  }

  .data-table th:not(:first-child),
  .data-table td:not(:first-child) {
    width: 72px;
  }

  th,
  td {
    padding: 10px 9px;
    font-size: 13px;
  }

  .name-cell {
    min-width: 116px;
  }

  .name-cell strong {
    font-size: 14px;
  }

  .name-cell small {
    margin-top: 3px;
    font-size: 11px;
  }

  .visit-cell {
    font-size: 16px;
  }
}

.date-range-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
  padding: 12px 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
}

.date-range-nav .range-preset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 80px;
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  font-family: inherit;
}

.date-range-nav .range-preset:hover {
  border-color: var(--navy);
  color: var(--navy);
}

.date-range-nav .range-preset.active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
  font-weight: 500;
}

.date-range-nav .range-custom {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
  margin-left: 6px;
}

.date-range-nav .range-custom.disabled {
  opacity: 0.55;
}

.date-range-nav .range-custom-label {
  color: var(--ink);
  font-weight: 500;
}

.date-range-nav .range-sep {
  color: var(--muted);
  padding: 0 4px;
}

.date-range-nav .range-custom input[type="date"] {
  height: 36px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-family: inherit;
  cursor: pointer;
}

.date-range-nav .range-custom input[type="date"]:focus {
  outline: none;
  border-color: var(--navy);
}

.date-range-nav .range-custom input[type="date"]:disabled {
  background: #f5f6f9;
  color: var(--muted);
  cursor: not-allowed;
}

@media (max-width: 780px) {
  .date-range-nav {
    padding: 10px;
    gap: 8px;
  }
  .date-range-nav .range-preset {
    min-width: 64px;
    height: 32px;
    font-size: 13px;
    padding: 0 10px;
  }
  .date-range-nav .range-custom {
    flex-basis: 100%;
    margin-left: 0;
    flex-wrap: wrap;
  }
}

.detail-block {
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.detail-block-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 12px 16px;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.detail-block-head strong {
  font-size: 15px;
  color: var(--ink);
}

.detail-block-head small {
  font-size: 12px;
  color: var(--muted);
}

.detail-table {
  min-width: 560px;
}

.detail-table .date-cell {
  font-weight: 500;
  color: var(--navy);
  width: 140px;
}

/* 移动端：详情表日期列缩 15-20%（140→115px），表固定布局，其他列均分 */
.force-mobile .detail-table {
  table-layout: fixed;
  min-width: 360px;
  width: 100%;
}

.force-mobile .detail-table th:first-child,
.force-mobile .detail-table td.date-cell {
  width: 95px;
  white-space: nowrap;
  padding-left: 6px;
  padding-right: 6px;
  font-size: 12.5px;
}

.force-mobile .detail-table th,
.force-mobile .detail-table td {
  padding: 8px 6px;
  font-size: 12px;
}

.force-mobile .detail-table td:not(.date-cell) {
  font-size: 13px;
}

.top-nav-logout {
  height: 36px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--red);
  background: var(--red-soft);
  border: 1px solid #f3c9c7;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s ease;
  font-family: inherit;
}

.top-nav-logout:hover {
  background: #fbe0de;
}

.top-nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 10px 0 4px;
  margin-right: 10px;
  border-right: 1px solid var(--line);
}

.top-nav-brand .logo-tile {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #fff;
  background: var(--navy);
  font-size: 17px;
  font-weight: 600;
}

.top-nav-brand strong {
  display: block;
  font-size: 14px;
  color: var(--ink);
}

.top-nav-brand small {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--muted);
}

.top-nav-section {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 6px;
  border-right: 1px solid var(--line);
}

.top-nav-section:last-of-type {
  border-right: 0;
}

.top-nav-section.active {
  color: var(--navy);
}

.top-nav-section-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.5px;
}

.top-nav-section.active .top-nav-section-label {
  color: var(--navy);
}

.top-nav-section-items {
  display: flex;
  align-items: center;
  gap: 4px;
}

.top-nav-item {
  height: 32px;
  padding: 0 12px;
  font-size: 13.5px;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.12s ease, color 0.12s ease, border-color 0.12s ease;
  font-family: inherit;
}

.top-nav-item:hover {
  background: var(--navy-2);
  color: var(--navy);
}

.top-nav-item.active {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}

.detail-filter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 12px 0 14px;
}

.detail-filter {
  position: relative;
}

.detail-filter-button {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 100px;
  height: 38px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.12s ease;
  font-family: inherit;
}

.detail-filter-button small {
  font-size: 10px;
  color: var(--muted);
  line-height: 1;
}

.detail-filter-button span {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
  margin-top: 2px;
}

.detail-filter-button.active {
  border-color: var(--navy);
  color: var(--navy);
}

.detail-filter-button.active small,
.detail-filter-button.active span {
  color: var(--navy);
}

.detail-filter-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 5;
  display: none;
  flex-direction: column;
  gap: 4px;
  max-height: 320px;
  overflow-y: auto;
  min-width: 160px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px rgba(32, 38, 54, 0.12);
}

.detail-filter.open .detail-filter-menu {
  display: flex;
}

.detail-filter-menu .filter-menu-option {
  width: 100%;
  text-align: left;
  height: 32px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.detail-filter-menu .filter-menu-option:hover {
  background: var(--navy-2);
  color: var(--navy);
}

.detail-filter-menu .filter-menu-option.active {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}

.top-nav-module {
  position: relative;
}

.top-nav-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 38px;
  padding: 0 16px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.top-nav-title::after {
  content: "";
  width: 0;
  height: 0;
  margin-left: 6px;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid var(--muted);
}

.top-nav-module:hover .top-nav-title,
.top-nav-module.open .top-nav-title {
  color: var(--navy);
  background: var(--navy-2);
  border-color: #d4e4f7;
}

.top-nav-module.active > .top-nav-title {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.top-nav-module.active > .top-nav-title::after {
  border-top-color: #fff;
}

.top-nav-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 10;
  min-width: 180px;
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(32, 38, 54, 0.14);
}

.top-nav-module.open .top-nav-dropdown {
  display: flex;
}

.top-nav-single {
  height: 38px;
  padding: 0 18px;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  background: transparent;
  border: 1px solid transparent;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
  font-family: inherit;
}

.top-nav-single:hover {
  color: var(--navy);
  background: var(--navy-2);
  border-color: #d4e4f7;
}

.top-nav-single.active {
  color: #fff;
  background: var(--navy);
  border-color: var(--navy);
}

.detail-search {
  position: relative;
  flex: 1;
  max-width: 280px;
  display: flex;
  align-items: center;
}

.detail-search input[type="search"] {
  width: 100%;
  height: 38px;
  padding: 0 32px 0 14px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.detail-search input[type="search"]:focus {
  border-color: var(--navy);
}

.detail-search input[type="search"]::placeholder {
  color: var(--muted);
}

.detail-search-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  border: 0;
  background: #e6ebf3;
  color: var(--muted);
  border-radius: 50%;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  padding: 0;
}

.detail-search-clear:hover {
  background: #d0d8e5;
  color: var(--ink);
}

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

.detail-toolbar .date-range-nav {
  margin: 0;
}

.topbar-team-search {
  display: flex;
  align-items: center;
}

.topbar-team-search input[type="search"] {
  height: 40px;
  min-width: 200px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.topbar-team-search input[type="search"]:focus {
  border-color: var(--navy);
}

.topbar-team-search input[type="search"]::placeholder {
  color: var(--muted);
}

.top-nav-dropdown-teams {
  width: 320px;
  padding: 12px;
  gap: 8px;
}

.top-nav-dropdown-search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  font-size: 13px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: none;
  font-family: inherit;
  -webkit-appearance: none;
  appearance: none;
}

.top-nav-dropdown-search:focus {
  border-color: var(--navy);
}

.top-nav-dropdown-search::placeholder {
  color: var(--muted);
}

.top-nav-dropdown-options {
  display: flex;
  flex-direction: column;
  gap: 2px;
  max-height: 320px;
  overflow-y: auto;
}

.top-nav-dropdown-options .top-nav-item {
  width: 100%;
  text-align: left;
  height: 34px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  font-family: inherit;
}

.top-nav-dropdown-options .top-nav-item:hover {
  background: var(--navy-2);
  color: var(--navy);
}

.top-nav-dropdown-options .top-nav-item.active {
  background: var(--navy);
  color: #fff;
  font-weight: 500;
}

/* 团队/员工明细选择器：手机端使用底部抽屉，避免长列表遮住整页。 */
.mobile-team-picker-head {
  display: none;
}

@media (max-width: 780px) {
  .top-nav-module.open::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: 39;
    background: rgba(15, 30, 52, 0.34);
  }

  .top-nav-module.open .top-nav-dropdown.top-nav-dropdown-teams {
    position: fixed;
    inset: auto 0 0;
    z-index: 40;
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
    width: 100%;
    max-width: none;
    height: min(72vh, 620px);
    max-height: min(72vh, 620px);
    margin: 0;
    padding: 0 14px 14px;
    gap: 10px;
    overflow: hidden;
    border: 0;
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -12px 34px rgba(15, 30, 52, 0.24);
  }

  .mobile-team-picker-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 56px;
    padding: 0 2px;
    color: var(--ink);
    border-bottom: 1px solid var(--line);
  }

  .mobile-team-picker-head strong {
    font-size: 18px;
  }

  .mobile-team-picker-close {
    display: grid;
    place-items: center;
    width: 40px;
    height: 40px;
    padding: 0;
    color: var(--navy);
    background: var(--navy-2);
    border: 0;
    border-radius: 50%;
    font: inherit;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
  }

  .top-nav-dropdown-teams .top-nav-dropdown-search {
    height: 48px;
    padding: 0 14px;
    font-size: 17px;
    border-width: 2px;
    border-radius: 12px;
  }

  .top-nav-dropdown-teams .top-nav-dropdown-options {
    max-height: none;
    min-height: 0;
    padding: 2px 0 12px;
    gap: 5px;
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .top-nav-dropdown-teams .top-nav-item {
    min-height: 50px;
    height: auto;
    padding: 10px 14px;
    font-size: 17px;
    line-height: 1.35;
    border-radius: 10px;
  }
}
