:root {
  --v7-night: #171322;
  --v7-night-soft: #25203b;
  --v7-paper: #fcfbf8;
  --v7-ink: #35313a;
  --v7-soft: #77717d;
  --v7-gold: #efd486;
  --v7-line: rgba(53, 49, 58, 0.11);
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

body.v7 {
  color: var(--v7-ink);
  font-family: "PingFang SC", "Noto Sans SC", "Microsoft YaHei UI", "Segoe UI", system-ui, sans-serif;
  letter-spacing: 0;
}

.v7 .app-intro {
  min-height: 292px;
  background:
    radial-gradient(ellipse at 50% 31%, rgba(126, 109, 171, 0.2), transparent 43%),
    linear-gradient(180deg, var(--v7-night) 0%, var(--v7-night-soft) 68%, #2b3457 100%);
}

.v7 .app-intro::after {
  bottom: -54px;
  height: 78px;
  background: var(--v7-paper);
}

.v7 .mobile-top {
  min-height: 56px;
  padding: max(10px, env(safe-area-inset-top)) 17px 4px;
}

.v7 .brand-row {
  gap: 8px;
}

.v7 .brand-row strong {
  font-size: 18px;
  font-weight: 560;
}

.v7 .brand-dot {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
  box-shadow: inset 7px 0 0 #2c243b, 0 0 14px rgba(239, 212, 134, 0.24);
}

.v7 .top-tools {
  position: relative;
  gap: 2px;
}

.v7 .top-icon-button,
.v7 .privacy-link {
  display: grid;
  width: 40px;
  height: 40px;
  min-width: 40px;
  place-items: center;
  padding: 0;
  color: rgba(239, 234, 246, 0.72);
  background: transparent;
  border: 0;
  border-radius: 50%;
}

.v7 .top-icon-button {
  font: inherit;
  cursor: pointer;
}

.v7 .top-icon-button svg,
.v7 .privacy-link svg {
  width: 20px;
  height: 20px;
  stroke-width: 1.65;
}

.v7 .top-icon-button:hover,
.v7 .top-icon-button:focus-visible,
.v7 .top-icon-button[aria-expanded="true"],
.v7 .privacy-link:hover,
.v7 .privacy-link:focus-visible {
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  outline: none;
}

.v7 .language-picker {
  position: relative;
}

.v7 .language-menu {
  position: absolute;
  z-index: 30;
  top: 44px;
  right: 0;
  display: grid;
  width: 126px;
  padding: 5px;
  overflow: hidden;
  background: rgba(31, 26, 48, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(9, 6, 15, 0.38);
  backdrop-filter: blur(16px);
}

.v7 .language-menu[hidden] {
  display: none;
}

.v7 .language-menu button {
  min-height: 42px;
  padding: 0 12px;
  color: rgba(240, 235, 247, 0.72);
  font: inherit;
  font-size: 12px;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 5px;
}

.v7 .language-menu button.active {
  color: #fff4cf;
  background: rgba(239, 212, 134, 0.11);
}

.v7 .moon-hero {
  min-height: 224px;
  padding: 0 17px 45px;
}

.v7 .moon-phase-rail {
  margin-top: 0;
  gap: 1px;
}

.v7 .moon-day {
  min-height: 62px;
  gap: 2px;
  padding: 0 0 2px;
}

.v7 .moon-day-label {
  font-size: 8.5px;
  font-weight: 430;
}

.v7 .moon-day-date {
  display: none;
}

.v7 .moon-day-visual {
  width: 42px;
  height: 43px;
}

.v7 .moon-day-visual canvas {
  filter: drop-shadow(0 5px 7px rgba(4, 2, 11, 0.34));
}

.v7 .moon-summary-line {
  display: flex;
  min-height: 28px;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 0;
}

.v7 .moon-location-trigger,
.v7 .tonight-moon-link {
  width: auto;
  min-height: 28px;
  margin: 0;
  justify-content: flex-start;
  color: rgba(235, 229, 243, 0.58);
  font-size: 9.5px;
  white-space: nowrap;
}

.v7 .moon-location-trigger {
  max-width: 53%;
  overflow: hidden;
}

.v7 .moon-location-trigger [data-moon-location] {
  overflow: hidden;
  text-overflow: ellipsis;
}

.v7 .tonight-moon-link {
  justify-content: flex-end;
}

.v7 .tonight-moon-link strong {
  font-size: 10px;
}

.v7 .moon-hero-copy {
  margin-top: 5px;
}

.v7 .moon-hero-copy h1 {
  font-size: 28px;
  font-weight: 520;
  line-height: 1.32;
}

.v7 .moon-hero-copy small {
  margin-top: 3px;
  color: rgba(229, 222, 238, 0.62);
  font-size: 11.5px;
  line-height: 1.55;
}

.v7 .primary-panel {
  position: relative;
  padding-top: 4px;
}

.v7 .draft-clear {
  position: absolute;
  z-index: 5;
  top: 10px;
  right: 16px;
  width: 40px;
  height: 40px;
  min-width: 40px;
  color: #89828c;
  background: rgba(252, 251, 248, 0.86);
}

.v7 .draft-clear[hidden] {
  display: none;
}

.v7 .talk-box {
  height: 198px;
  min-height: 198px;
  border-bottom-color: var(--v7-line);
}

.v7 .talk-box textarea {
  min-height: 0;
  flex: 1 1 auto;
  padding: 14px 44px 12px 0;
  color: var(--v7-ink);
  font-size: 19px;
  font-weight: 390;
  line-height: 1.72;
}

.v7 .talk-box textarea::placeholder {
  color: #aaa4ad;
}

.v7 .voice-strip {
  margin-top: 10px;
  padding-block: 10px;
}

.v7 .privacy-note {
  color: #8a848e;
  font-size: 10.5px;
}

body.v7[data-dictation-visual="listening"] .voice-strip {
  position: absolute;
  right: 24px;
  bottom: max(30px, env(safe-area-inset-bottom));
  left: 24px;
  display: grid;
  grid-template-rows: auto auto;
  margin: 0;
  padding: 0;
  border: 0;
}

body.v7[data-dictation-visual="listening"] .voice-action {
  grid-row: 2;
}

body.v7[data-dictation-visual="listening"] .voice-strip p {
  grid-row: 1;
  display: block;
  margin: 0 0 16px;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 520;
  line-height: 1.5;
  text-align: center;
}

@media (max-width: 350px) {
  .v7 .app-intro {
    min-height: 284px;
  }

  .v7 .mobile-top,
  .v7 .moon-hero {
    padding-inline: 14px;
  }

  .v7 .moon-hero-copy h1 {
    font-size: 26px;
  }

  .v7 .moon-location-trigger,
  .v7 .tonight-moon-link {
    font-size: 8.5px;
  }

  .v7 .talk-box {
    height: 176px;
    min-height: 176px;
  }

  .v7 .talk-box textarea {
    font-size: 17px;
  }
}

@media (max-width: 430px) and (min-height: 651px) and (max-height: 880px) {
  .v7 .talk-box {
    height: 174px;
    min-height: 174px;
  }
}

@media (max-height: 650px) {
  .v7 .app-intro {
    height: 236px;
    min-height: 236px;
  }

  .v7 .app-intro::after {
    bottom: -58px;
    height: 70px;
  }

  .v7 .mobile-top {
    min-height: 47px;
    padding-top: max(6px, env(safe-area-inset-top));
  }

  .v7 .moon-hero {
    height: 184px;
    min-height: 184px;
    padding-bottom: 35px;
  }

  .v7 .moon-day {
    min-height: 52px;
  }

  .v7 .moon-day-visual {
    width: 36px;
    height: 34px;
    transform: none;
  }

  .v7 .moon-summary-line {
    min-height: 24px;
  }

  .v7 .moon-location-trigger,
  .v7 .tonight-moon-link {
    min-height: 24px;
  }

  .v7 .moon-hero-copy {
    display: block;
    margin-top: 1px;
  }

  .v7 .moon-hero-copy h1 {
    font-size: 22px;
  }

  .v7 .moon-hero-copy small {
    display: block;
    font-size: 9.5px;
  }

  .v7 .primary-panel {
    padding-top: 2px;
  }

  .v7 .talk-box {
    height: 102px;
    min-height: 102px;
  }

  .v7 .talk-box textarea {
    min-height: 0;
    padding-top: 8px;
    font-size: 16px;
  }

  body.v7[data-dictation-visual="listening"] .voice-strip p {
    display: block;
    margin-bottom: 10px;
    font-size: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v7 .language-menu {
    backdrop-filter: none;
  }
}
