.life-gps-view {
  min-height: 100%;
  padding: 14px 14px calc(24px + env(safe-area-inset-bottom, 0px));
  background:
    radial-gradient(circle at 12% 0%, rgba(251, 191, 36, 0.26) 0 18%, transparent 38%),
    radial-gradient(circle at 92% 8%, rgba(132, 204, 22, 0.18) 0 15%, transparent 34%),
    linear-gradient(180deg, #fbf7f0 0%, #f6f3ee 54%, #f0ebe2 100%);
  color: #2a2520;
}

.life-gps-hero {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  padding: 12px 0 14px;
}

.life-gps-icon-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.74);
  color: #2a2520;
  font: inherit;
  font-size: 22px;
  font-weight: 900;
  box-shadow:
    inset 0 0 0 1px rgba(100, 84, 68, 0.1),
    0 10px 24px rgba(86, 68, 49, 0.08);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.life-gps-icon-button--static {
  cursor: default;
}

.life-gps-icon-button:active:not(.life-gps-icon-button--static) {
  transform: scale(0.96);
}

.life-gps-hero__title {
  min-width: 0;
  text-align: center;
}

.life-gps-hero__title p {
  margin: 0;
  color: #9b8a76;
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.life-gps-hero__title h2 {
  margin: 3px 0 0;
  color: #2a2520;
  font-size: 24px;
  font-weight: 950;
  letter-spacing: -0.06em;
  line-height: 1;
}

.life-gps-dashboard {
  display: grid;
  grid-template-columns: 136px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(100, 84, 68, 0.1);
  border-radius: 30px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 18px 38px rgba(86, 68, 49, 0.1);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.life-gps-ring {
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, #fffaf3 0 49%, transparent 50%),
    conic-gradient(from -35deg, #f59e0b 0 72%, rgba(245, 158, 11, 0.16) 72% 100%);
  box-shadow:
    inset 0 0 0 1px rgba(100, 84, 68, 0.1),
    0 18px 32px rgba(180, 120, 33, 0.12);
}

.life-gps-ring[data-gps-status="in"] {
  background:
    radial-gradient(circle at center, #fffaf3 0 49%, transparent 50%),
    conic-gradient(from -35deg, #84cc16 0 82%, rgba(132, 204, 22, 0.16) 82% 100%);
}

.life-gps-ring[data-gps-status="out"] {
  background:
    radial-gradient(circle at center, #fffaf3 0 49%, transparent 50%),
    conic-gradient(from -35deg, #fb923c 0 64%, rgba(251, 146, 60, 0.16) 64% 100%);
}

.life-gps-ring span,
.life-gps-ring em {
  grid-area: 1 / 1;
  text-align: center;
}

.life-gps-ring span {
  max-width: 88px;
  color: #2a2520;
  font-size: 19px;
  font-weight: 950;
  letter-spacing: -0.05em;
  line-height: 1.08;
}

.life-gps-ring em {
  align-self: end;
  margin-bottom: 31px;
  color: rgba(42, 37, 32, 0.48);
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.life-gps-dashboard__meta {
  min-width: 0;
}

.life-gps-dashboard__meta strong {
  display: block;
  color: #2a2520;
  font-size: 34px;
  font-weight: 950;
  letter-spacing: -0.07em;
  line-height: 1;
}

.life-gps-dashboard__meta span {
  display: block;
  margin-top: 6px;
  color: #8a7a68;
  font-size: 12px;
  font-weight: 800;
}

.life-gps-dashboard__meta p {
  margin: 12px 0 0;
  color: #6f6255;
  font-size: 12px;
  font-weight: 620;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.life-gps-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 10px;
  margin-top: 12px;
}

.life-gps-primary-button,
.life-gps-secondary-button,
.life-gps-dashed-button,
.life-gps-ghost-button {
  border: 0;
  font: inherit;
  font-weight: 850;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.life-gps-primary-button,
.life-gps-secondary-button {
  min-height: 48px;
  border-radius: 18px;
}

.life-gps-primary-button {
  background: #2a2520;
  color: #fff7eb;
  box-shadow: 0 14px 28px rgba(42, 37, 32, 0.14);
}

.life-gps-secondary-button {
  background: rgba(255, 255, 255, 0.78);
  color: #2a2520;
  box-shadow: inset 0 0 0 1px rgba(100, 84, 68, 0.1);
}

.life-gps-card {
  margin-top: 12px;
  padding: 14px;
  border: 1px solid rgba(100, 84, 68, 0.1);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 14px 30px rgba(86, 68, 49, 0.08);
}

.life-gps-card--plain {
  color: #756859;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.7;
}

.life-gps-card--plain strong {
  display: block;
  margin-bottom: 6px;
  color: #2a2520;
  font-size: 15px;
  font-weight: 900;
}

.life-gps-card--plain p {
  margin: 6px 0 0;
}

.life-gps-card__head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.life-gps-card__head strong {
  color: #2a2520;
  font-size: 17px;
  font-weight: 920;
  letter-spacing: -0.04em;
}

.life-gps-card__head span {
  color: #988775;
  font-size: 11px;
  font-weight: 800;
}

.life-gps-places {
  display: grid;
  gap: 8px;
}

.life-gps-place {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border-radius: 18px;
  background: #f7f4ef;
  box-shadow: inset 0 0 0 1px rgba(100, 84, 68, 0.08);
}

.life-gps-place div {
  min-width: 0;
}

.life-gps-place strong {
  display: block;
  overflow: hidden;
  color: #2a2520;
  font-size: 14px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.life-gps-place span,
.life-gps-place em {
  display: block;
  margin-top: 3px;
  color: #827363;
  font-size: 11px;
  font-weight: 650;
  font-style: normal;
}

.life-gps-place em {
  display: -webkit-box;
  max-width: 190px;
  overflow: hidden;
  color: #a08f7c;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.life-gps-current-place {
  padding: 13px;
  border-radius: 20px;
  background:
    radial-gradient(circle at 92% 0%, rgba(251, 191, 36, 0.18), transparent 42%),
    #f7f4ef;
  box-shadow: inset 0 0 0 1px rgba(100, 84, 68, 0.08);
}

.life-gps-current-place span {
  color: #9b8a76;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.life-gps-current-place strong {
  display: block;
  margin-top: 6px;
  color: #2a2520;
  font-size: 16px;
  font-weight: 930;
  line-height: 1.35;
}

.life-gps-current-place p {
  margin: 7px 0 0;
  color: #756859;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.life-gps-sense-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.life-gps-sense-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 11px;
  border-radius: 17px;
  background: rgba(247, 244, 239, 0.82);
  box-shadow: inset 0 0 0 1px rgba(100, 84, 68, 0.08);
}

.life-gps-sense-item--inside {
  background: rgba(236, 252, 203, 0.82);
}

.life-gps-sense-item div {
  min-width: 0;
}

.life-gps-sense-item strong {
  display: block;
  color: #2a2520;
  font-size: 13px;
  font-weight: 900;
}

.life-gps-sense-item span {
  display: block;
  margin-top: 3px;
  color: #827363;
  font-size: 11px;
  font-weight: 650;
}

.life-gps-sense-item em {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(42, 37, 32, 0.08);
  color: #6f6255;
  font-size: 10px;
  font-style: normal;
  font-weight: 850;
}

.life-gps-sense-item--inside em {
  background: rgba(77, 124, 15, 0.12);
  color: #4d7c0f;
}

.life-gps-ghost-button {
  flex: 0 0 auto;
  height: 30px;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(42, 37, 32, 0.08);
  color: #2a2520;
  font-size: 12px;
}

.life-gps-dashed-button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 1px dashed rgba(100, 84, 68, 0.26);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.42);
  color: #6f6255;
}

.life-gps-logs {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.life-gps-log {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  padding: 10px 11px;
  border-radius: 16px;
  background: #f7f4ef;
}

.life-gps-log time {
  color: #9b8a76;
  font-size: 11px;
  font-weight: 800;
}

.life-gps-log span {
  color: #2a2520;
  font-size: 13px;
  font-weight: 820;
}

.life-gps-empty,
.life-gps-runtime-note {
  margin: 0;
  color: #847465;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.7;
}

.life-gps-runtime-note {
  margin-top: 12px;
  padding: 0 4px;
}

.life-gps-field {
  display: grid;
  gap: 7px;
  margin-bottom: 12px;
}

.life-gps-field:last-child {
  margin-bottom: 0;
}

.life-gps-field span {
  color: #7c6d5e;
  font-size: 12px;
  font-weight: 850;
}

.life-gps-field select,
.life-gps-field input {
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 16px;
  background: #f7f4ef;
  color: #2a2520;
  font: inherit;
  font-size: 14px;
  font-weight: 760;
  padding: 0 12px;
  outline: none;
  box-shadow: inset 0 0 0 1px rgba(100, 84, 68, 0.09);
  box-sizing: border-box;
}

.life-gps-coordinate-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.life-gps-form-note {
  margin: 0 0 10px;
  color: #847465;
  font-size: 12px;
  font-weight: 560;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.life-gps-actions--form {
  margin-top: 0;
}

.life-gps-danger-button {
  width: 100%;
  min-height: 42px;
  margin-top: 10px;
  border: 0;
  border-radius: 18px;
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  font: inherit;
  font-size: 13px;
  font-weight: 850;
  cursor: pointer;
}

.life-gps-primary-button:active,
.life-gps-secondary-button:active,
.life-gps-dashed-button:active,
.life-gps-ghost-button:active {
  transform: scale(0.98);
}

@media (max-width: 360px) {
  .life-gps-dashboard {
    grid-template-columns: 116px minmax(0, 1fr);
    padding: 13px;
  }

  .life-gps-ring {
    width: 110px;
    height: 110px;
  }

  .life-gps-ring span {
    max-width: 76px;
    font-size: 17px;
  }

  .life-gps-ring em {
    margin-bottom: 25px;
  }

  .life-gps-dashboard__meta strong {
    font-size: 29px;
  }
}
