.home-screen.compass-open > .home-scroll,
.home-screen.compass-open > .tab-panel,
.home-screen.compass-open > .tabbar {
  display: none;
}

.compass-page {
  position: absolute;
  inset: 0;
  z-index: 24;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fffdfa;
  color: #121514;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
}

.compass-page[hidden] {
  display: none;
}

.compass-page svg:not(.compass-svg) {
  width: 1em;
  height: 1em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compass-header {
  display: grid;
  grid-template-columns: 44px 1fr 148px;
  align-items: center;
  min-height: 58px;
  padding: 6px 20px 0;
  background: rgba(255, 253, 250, 0.96);
}

.compass-header h1 {
  margin: 0;
  color: #080909;
  font-size: 23px;
  font-weight: 900;
  letter-spacing: 0;
  text-align: center;
}

.compass-back {
  display: grid;
  place-items: center;
  width: 34px;
  height: 38px;
  color: #050706;
}

.compass-back svg {
  width: 31px;
  height: 31px;
  stroke-width: 2.5;
}

.compass-header-actions {
  display: flex;
  gap: 13px;
  justify-content: flex-end;
}

.compass-header-actions button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  color: #1c1f1d;
  font-size: 15px;
  font-weight: 560;
  white-space: nowrap;
}

.compass-header-actions svg {
  width: 18px;
  height: 18px;
}

.compass-scroll {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding: 8px 20px 112px;
  background: linear-gradient(180deg, #fffdfa 0%, #fffaf4 100%);
  scrollbar-width: none;
}

.compass-scroll::-webkit-scrollbar {
  display: none;
}

.compass-location,
.compass-guide {
  display: flex;
  align-items: center;
  min-height: 31px;
  border: 1px solid rgba(13, 133, 77, 0.15);
  border-radius: 8px;
  background: rgba(244, 251, 246, 0.88);
  color: #303a36;
  font-size: 13px;
  font-weight: 600;
}

.compass-location {
  gap: 8px;
  padding: 0 10px;
}

.compass-location > svg,
.compass-guide > svg {
  flex: 0 0 auto;
  color: #0c8a50;
}

.compass-location span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compass-location button {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  margin-left: auto;
  color: #0c8a50;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

.compass-summary {
  display: grid;
  grid-template-columns: minmax(0, 1.16fr) minmax(0, 0.9fr) minmax(0, 1fr) minmax(0, 1.12fr);
  min-height: 80px;
  overflow: hidden;
  border: 1px solid rgba(38, 34, 27, 0.07);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 9px 25px rgba(48, 39, 28, 0.08);
}

.compass-summary div {
  display: grid;
  gap: 3px;
  place-items: center;
  min-width: 0;
  padding: 11px 6px;
  text-align: center;
}

.compass-summary div + div {
  border-left: 1px solid rgba(48, 42, 32, 0.11);
}

.compass-summary span {
  color: #424846;
  font-size: 13px;
  font-weight: 560;
}

.compass-summary strong {
  color: #222624;
  font-size: 16px;
  font-weight: 560;
  line-height: 1.1;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compass-summary strong.is-green {
  color: #0b8a4c;
  font-size: 24px;
  font-weight: 900;
}

.compass-summary em {
  color: #555c59;
  font-size: 12px;
  font-style: normal;
  font-weight: 500;
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compass-dot-row {
  display: inline-flex;
  gap: 5px;
  align-items: center;
}

.compass-dot-row i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #9fb3a8;
}

.compass-dot-row i.is-on {
  background: #0f9a5b;
}

.compass-dot-row b,
.compass-guide em {
  display: grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border: 1px solid #9aa19e;
  border-radius: 50%;
  color: #868d8a;
  font-size: 10px;
  font-weight: 800;
}

.compass-card {
  border: 1px solid rgba(33, 34, 31, 0.06);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 8px 25px rgba(40, 38, 33, 0.07);
}

.compass-card h2 {
  margin: 0;
  padding: 11px 12px 8px;
  color: #202321;
  font-size: 16px;
  font-weight: 900;
}

.compass-guide {
  gap: 7px;
  padding: 0 10px;
}

.compass-guide b {
  color: #0b8a4c;
}

.compass-guide span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.compass-guide em {
  flex: 0 0 auto;
  margin-left: auto;
  font-style: normal;
}
