:root {
  --asj-green: #064931;
  --asj-green-2: #0a6f42;
  --asj-accent: #65b83b;
  --asj-title: #064931;
  --asj-title-light: #e8f6df;
  --asj-subtle: #9fbea7;
  --page: #f7f9f5;
  --white: #ffffff;
  --ink: #141716;
  --muted: #666d69;
  --muted-2: #8a918e;
  --line: #dce7dc;
  --field: #edf2ee;
  --shadow: 0 2px 7px rgba(6, 37, 25, 0.17);
  --shadow-soft: 0 1px 4px rgba(6, 37, 25, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  background: #08120d;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: #08120d;
  color: var(--ink);
  font-family: "Segoe UI", "Aptos", system-ui, sans-serif;
}

button,
input {
  font: inherit;
}

button {
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.app-shell {
  width: min(540px, 100vw);
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: var(--page);
  border-left: 1px solid rgba(101, 184, 59, 0.16);
  border-right: 1px solid rgba(101, 184, 59, 0.16);
}

.gma-topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  height: 52px;
  display: grid;
  grid-template-columns: 96px 1fr 48px;
  align-items: center;
  background:
    linear-gradient(90deg, rgba(101, 184, 59, 0.18), rgba(6, 73, 49, 0.08)),
    linear-gradient(90deg, #0a2d20, #075135 58%, #063f2b);
  color: var(--asj-title-light);
  box-shadow: inset 5px 0 0 var(--asj-accent), 0 1px 0 rgba(0, 0, 0, 0.22);
}

.gma-topbar h1 {
  margin: 0;
  min-width: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0;
  text-align: center;
  line-height: 1;
}

.topbar-logo {
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 5px;
  background: #ffffff;
  object-fit: cover;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.18);
}

.top-action,
.calendar-action {
  height: 52px;
  border: 0;
  background: transparent;
  color: var(--asj-title-light);
}

.top-action {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  font-size: 19px;
  font-weight: 650;
  touch-action: manipulation;
}

.hamburger,
.hamburger::before,
.hamburger::after {
  display: block;
  width: 24px;
  height: 3px;
  border-radius: 2px;
  background: var(--asj-title-light);
}

.hamburger {
  position: relative;
}

.hamburger::before,
.hamburger::after {
  content: "";
  position: absolute;
  left: 0;
}

.hamburger::before {
  top: -7px;
}

.hamburger::after {
  top: 7px;
}

.calendar-action {
  display: grid;
  place-items: center;
}

.calendar-action.is-hidden {
  visibility: hidden;
}

.calendar-glyph {
  position: relative;
  display: block;
  width: 24px;
  height: 24px;
  border: 3px solid #ffffff;
  border-radius: 3px;
}

.calendar-glyph::before {
  content: "";
  position: absolute;
  top: 5px;
  left: -3px;
  width: 24px;
  height: 3px;
  background: #ffffff;
}

.calendar-glyph::after {
  content: "";
  position: absolute;
  top: -7px;
  left: 4px;
  width: 10px;
  height: 7px;
  border-left: 3px solid #ffffff;
  border-right: 3px solid #ffffff;
}

.mobile-screen {
  padding: 0 12px 10px;
}

.menu-panel {
  display: grid;
  gap: 10px;
  padding-top: 22px;
}

.home-row,
.season-card,
.climate-row,
.table-header {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
  box-shadow: var(--shadow);
}

.home-row {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 0 18px;
  color: var(--ink);
  text-align: left;
  font-size: 21px;
  border-radius: 10px;
  border-left: 5px solid var(--asj-accent);
  background:
    linear-gradient(90deg, rgba(101, 184, 59, 0.08), rgba(255, 255, 255, 0) 36%),
    #ffffff;
}

.home-row span:last-child,
.season-card > span:last-child {
  font-size: 38px;
  font-weight: 300;
  line-height: 1;
}

.date-nav {
  position: relative;
  height: 54px;
  display: grid;
  grid-template-columns: 1fr 210px 1fr;
  align-items: center;
}

.date-nav button {
  border: 0;
  background: transparent;
  color: var(--asj-title);
}

.date-nav button:first-child,
.date-nav button:nth-child(3) {
  color: #141716;
  font-size: 39px;
  font-weight: 200;
  line-height: 1;
}

.date-title {
  justify-self: center;
  min-width: 190px;
  font-size: 28px;
  font-weight: 400;
  letter-spacing: 0;
}

.native-date {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.table-header {
  display: grid;
  min-height: 35px;
  align-items: center;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 14px;
  box-shadow: var(--shadow-soft);
  background: linear-gradient(90deg, #fbfdf9, #ffffff);
}

.table-header span {
  min-width: 0;
  padding: 0 6px;
  text-align: right;
  border-left: 1px solid #e5eee4;
  white-space: nowrap;
}

.table-header span:first-child {
  text-align: left;
  border-left: 0;
}

.climate-list {
  display: grid;
  gap: 4px;
}

.climate-row {
  display: grid;
  min-height: 37px;
  align-items: center;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.05;
  border-left: 4px solid rgba(101, 184, 59, 0.58);
}

.climate-row strong,
.climate-row span {
  min-width: 0;
  padding: 0 7px;
  white-space: nowrap;
}

.climate-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 20px;
  font-weight: 400;
}

.climate-row span {
  text-align: right;
  font-weight: 400;
}

.result-title {
  padding: 17px 0 18px;
  text-align: center;
  color: var(--asj-title);
}

.result-title.compact {
  padding-bottom: 12px;
}

.result-title h2 {
  margin: 0;
  font-size: 30px;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.12;
}

.result-title p {
  margin: 8px 0 0;
  font-size: 26px;
  line-height: 1;
}

.form-page {
  padding: 39px 25px 0;
  text-align: center;
}

.form-page h2 {
  margin: 0 0 18px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 400;
  letter-spacing: 0;
}

.form-page h3 {
  margin: 24px 0 13px;
  color: var(--ink);
  font-size: 24px;
  font-weight: 400;
}

.form-card {
  padding: 9px 0;
  background: rgba(255, 255, 255, 0.72);
  border-left: 5px solid rgba(101, 184, 59, 0.75);
}

.date-field {
  display: grid;
  grid-template-columns: 150px 1fr;
  align-items: center;
  gap: 0;
  min-height: 56px;
  color: #4b504e;
  text-align: right;
  font-size: 16px;
}

.date-field span {
  padding-right: 6px;
}

.date-field input {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  text-align: center;
  font-size: 28px;
  outline: none;
}

.compare-form {
  padding-top: 39px;
}

.compare-form .date-field input {
  font-size: 21px;
}

.primary {
  width: 100%;
  min-height: 62px;
  border: 0;
  border-radius: 14px;
  display: grid;
  grid-template-columns: 44px 1fr 44px;
  align-items: center;
  margin-top: 24px;
  padding: 0 17px;
  background:
    linear-gradient(90deg, rgba(101, 184, 59, 0.22), rgba(6, 73, 49, 0)),
    linear-gradient(90deg, #065838, #087344);
  color: #ffffff;
  font-size: 20px;
  font-weight: 500;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.22);
}

.check-icon {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff;
  color: var(--asj-green);
  font-size: 20px;
  font-weight: 700;
}

.season-page h2 {
  margin-bottom: 26px;
}

.season-list {
  display: grid;
  gap: 19px;
  margin-top: 33px;
}

.season-card {
  min-height: 96px;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  text-align: left;
  color: var(--ink);
}

.season-card strong,
.season-card small {
  display: block;
}

.season-card strong {
  font-size: 20px;
  font-weight: 400;
}

.season-card small {
  margin-top: 5px;
  color: var(--muted);
  font-size: 16px;
}

.loading,
.warn-panel {
  margin-top: 26px;
  padding: 18px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: var(--shadow);
  color: var(--muted);
  text-align: center;
  font-size: 18px;
}

.warn-panel {
  color: #9b4a16;
}

.login-card {
  margin: 32px 10px 0;
  padding: 20px;
  border-radius: 13px;
  background: #ffffff;
  box-shadow: var(--shadow);
  border-left: 5px solid var(--asj-accent);
}

.login-logo {
  display: block;
  width: min(260px, 82%);
  margin: 0 auto 22px;
}

.field {
  display: grid;
  gap: 6px;
  margin-bottom: 13px;
  color: var(--muted);
  text-align: left;
  font-size: 15px;
}

.field input {
  width: 100%;
  height: 45px;
  border: 0;
  border-radius: 6px;
  background: var(--field);
  color: var(--ink);
  padding: 0 12px;
  outline: none;
}

.install-shell {
  min-height: 100vh;
  width: 100%;
  background: #fbf8f4;
  color: #202421;
  font-family: "Segoe UI", "Aptos", system-ui, sans-serif;
}

.install-strip {
  position: relative;
  height: 70px;
  background:
    linear-gradient(90deg, rgba(101, 184, 59, 0.18), rgba(6, 73, 49, 0.08)),
    linear-gradient(90deg, #0a2d20, #075135 58%, #063f2b);
  box-shadow: inset 5px 0 0 var(--asj-accent);
  border-bottom: 1px solid rgba(6, 73, 49, 0.22);
}

.install-arrow {
  position: absolute;
  top: -8px;
  right: 6px;
  color: #3268ef;
  font-size: 82px;
  line-height: 1;
  font-weight: 700;
  animation: install-arrow-point 1.05s ease-in-out infinite;
  will-change: transform;
}

@keyframes install-arrow-point {
  0%,
  100% {
    transform: translateY(-6px);
  }

  50% {
    transform: translateY(10px);
  }
}

.install-card {
  position: relative;
  width: min(calc(100vw - 48px), 420px);
  margin: 56px auto 0;
  padding: 76px 26px 26px;
  border-radius: 8px;
  background: #f7f7f7;
  box-shadow: 0 6px 22px rgba(17, 24, 22, 0.18);
  border-left: 5px solid var(--asj-accent);
  text-align: center;
}

.install-logo {
  position: absolute;
  top: -64px;
  left: 50%;
  width: 128px;
  height: 128px;
  transform: translateX(-50%);
  border-radius: 16px;
  background: #ffffff;
  object-fit: contain;
  box-shadow: 0 5px 20px rgba(17, 24, 22, 0.14);
}

.install-card h1 {
  margin: 0 0 26px;
  color: #111816;
  font-size: 29px;
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: 0;
}

.install-steps {
  display: grid;
  gap: 24px;
  margin: 0;
  padding: 0;
  list-style: none;
  text-align: left;
}

.install-steps li {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  color: #222622;
  font-size: 18px;
  line-height: 1.45;
}

.install-steps li > span:last-child {
  flex: 1;
  min-width: 0;
  overflow-wrap: break-word;
}

.step-number {
  width: 54px;
  height: 54px;
  flex: 0 0 54px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #a8aaa9;
  color: #ffffff;
  font-size: 28px;
  font-weight: 500;
}

.browser-menu,
.install-mini-button,
.inline-logo {
  display: inline-grid;
  vertical-align: middle;
  place-items: center;
  margin: 0 6px;
  border-radius: 4px;
  background: #ffffff;
  box-shadow: 0 3px 9px rgba(17, 24, 22, 0.18);
}

.browser-menu {
  width: 38px;
  height: 38px;
  color: #101411;
  font-size: 26px;
  font-weight: 500;
}

.install-mini-button {
  min-height: 38px;
  border: 0;
  padding: 0 10px;
  color: #101411;
  font-size: 17px;
  font-weight: 500;
}

.install-mini-button::before {
  content: "↧";
  margin-right: 5px;
  font-size: 24px;
  line-height: 1;
}

.inline-logo {
  width: 48px;
  height: 48px;
  padding: 4px;
  object-fit: contain;
}

.install-note {
  margin: 22px 0 0;
  color: #59645d;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  overflow-wrap: break-word;
}

.browser-continue {
  margin-top: 12px;
  border: 0;
  background: transparent;
  color: #076d3f;
  font-size: 12px;
  font-weight: 700;
  text-decoration: underline;
}

@media (max-width: 380px) {
  .gma-topbar {
    grid-template-columns: 88px 1fr 44px;
  }

  .gma-topbar h1 {
    gap: 6px;
    font-size: 18px;
  }

  .topbar-logo {
    width: 27px;
    height: 27px;
    flex-basis: 27px;
  }

  .top-action {
    font-size: 18px;
  }

  .date-title {
    font-size: 27px;
  }

  .climate-row strong {
    font-size: 18px;
  }

  .climate-row {
    min-height: 37px;
    font-size: 15px;
  }

  .date-field {
    grid-template-columns: 130px 1fr;
  }

  .date-field input {
    font-size: 24px;
  }
}
