:root {
  color-scheme: light;
  --pl-canvas: #eef3f9;
  --pl-surface: #ffffff;
  --pl-surface-blue: #eaf2ff;
  --pl-surface-blue-strong: #dceafe;
  --pl-ink: #14233e;
  --pl-ink-soft: #40516d;
  --pl-muted: #77859a;
  --pl-faint: #a6b0bf;
  --pl-line: #d7e0eb;
  --pl-line-strong: #c5d2e1;
  --pl-blue: #4b82d7;
  --pl-blue-strong: #2f67bf;
  --pl-green: #47a87a;
  --pl-orange: #e07b4f;
  --pl-gold: #c58938;
  --pl-gold-soft: #f7ead3;
  --pl-shadow: 0 14px 34px rgba(36, 66, 104, 0.09);
  --pl-shadow-soft: 0 8px 22px rgba(36, 66, 104, 0.07);
  --pl-radius: 8px;
}

html {
  background: #dfe7f0;
}

body {
  background: #dfe7f0;
  color: var(--pl-ink);
}

body,
button,
input,
select,
textarea {
  font-family: "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  letter-spacing: 0;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 2px solid rgba(47, 103, 191, 0.5);
  outline-offset: 2px;
}

.site-stage {
  width: min(100%, 450px);
  min-height: 100vh;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent 190px),
    var(--pl-canvas);
  color: var(--pl-ink);
  box-shadow: 0 0 0 1px rgba(44, 75, 112, 0.08);
}

.site-stage::before,
.site-stage::after {
  display: none;
}

.screen {
  color: var(--pl-ink);
}

.screen-report,
.screen-detail {
  padding: 0 20px calc(86px + env(safe-area-inset-bottom));
  background: var(--pl-canvas);
}

body.is-report-view .screen-report,
body.is-detail-view .screen-detail {
  background: var(--pl-canvas) !important;
  color: var(--pl-ink) !important;
}

.screen-report::before,
.screen-detail::before,
.report-root::before,
.detail-root::before {
  display: none !important;
}

/* Splash */
.screen-splash {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  padding:
    max(28px, env(safe-area-inset-top))
    24px
    max(28px, env(safe-area-inset-bottom));
  background:
    linear-gradient(180deg, #f3f6fa 0%, #edf3f8 48%, #e8eff6 100%);
}

.splash-card {
  width: min(100%, 340px);
  min-height: 0;
  gap: 14px;
  padding: 28px 22px;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pl-ink);
  box-shadow: none;
  animation: splashWelcomeIn 380ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-card::before,
.splash-card::after {
  display: none;
}

.splash-emblem {
  width: 226px;
  height: 226px;
  margin-bottom: 4px;
  filter: drop-shadow(0 16px 26px rgba(58, 85, 119, 0.1));
  animation: splashEmblemIn 440ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.moon-mark {
  width: 190px;
  height: 190px;
  border-color: rgba(74, 104, 140, 0.18);
  background:
    radial-gradient(circle at 50% 50%, rgba(75, 130, 215, 0.1) 0 2px, transparent 3px),
    radial-gradient(circle at 50% 50%, transparent 54%, rgba(75, 130, 215, 0.1) 55%, transparent 56%),
    conic-gradient(from 210deg, transparent 0 64%, rgba(197, 137, 56, 0.2) 65% 73%, transparent 74% 100%),
    #f8fbfe;
  box-shadow:
    0 12px 30px rgba(42, 76, 115, 0.08),
    inset 0 0 0 7px rgba(234, 242, 250, 0.66);
}

.manse-disk {
  width: 148px;
  height: 148px;
  border-color: rgba(75, 110, 151, 0.18);
  background:
    repeating-conic-gradient(from -15deg, rgba(75, 110, 151, 0.1) 0 1deg, transparent 1deg 30deg),
    radial-gradient(circle at 50% 50%, rgba(75, 130, 215, 0.1) 0 18%, transparent 19%),
    radial-gradient(circle at 50% 50%, transparent 0 54%, rgba(75, 110, 151, 0.08) 55%, transparent 57%),
    rgba(235, 243, 251, 0.9);
  box-shadow: inset 0 0 24px rgba(66, 103, 146, 0.04);
}

.manse-disk b,
.manse-disk span {
  color: #456d9d;
}

.manse-disk b {
  border-color: rgba(75, 110, 151, 0.2);
  background: var(--pl-surface);
  color: #315e94;
  box-shadow: 0 4px 10px rgba(48, 82, 121, 0.08);
}

.splash-elements span {
  border-color: rgba(102, 124, 151, 0.2);
  background: #f9fbfd;
  color: #55708f !important;
  box-shadow: 0 7px 16px rgba(48, 78, 112, 0.09);
}

.splash-elements span:nth-child(1) {
  border-color: #c8ddd3;
  background: #f0f7f3;
  color: #4d826c !important;
}

.splash-elements span:nth-child(2) {
  border-color: #e7c6b9;
  background: #fff3ee;
  color: #ba654b !important;
}

.splash-elements span:nth-child(3) {
  border-color: #e3d1aa;
  background: #fff8e9;
  color: #9d7436 !important;
}

.splash-elements span:nth-child(4) {
  border-color: #d3dae2;
  background: #f6f8fa;
  color: #6a788a !important;
}

.splash-elements span:nth-child(5) {
  border-color: #c7d8e8;
  background: #eff6fb;
  color: #4b78a5 !important;
}

.brand-seal {
  position: relative;
  width: max-content;
  min-width: 126px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 0 5px 11px;
  color: #172943;
  font-family: "Noto Serif CJK KR", "Noto Serif KR", "AppleMyungjo", "Batang", serif;
  font-size: 36px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0;
  text-shadow: none;
  animation: splashCopyIn 380ms 40ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-seal::after {
  content: "";
  position: absolute;
  left: 15%;
  right: 15%;
  bottom: 1px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, #2f67bf 16%, #5f93de 78%, transparent);
  transform: scaleX(0);
  transform-origin: left center;
  animation: splashWordmarkStroke 460ms 150ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.brand-seal-glyph {
  display: inline-block;
  min-width: 1em;
  color: inherit;
  text-align: center;
  text-rendering: geometricPrecision;
  animation: splashGlyphIn 400ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.brand-seal-glyph:first-child {
  transform-origin: right bottom;
  animation-delay: 55ms;
}

.brand-seal-glyph:last-child {
  transform-origin: left bottom;
  animation-delay: 105ms;
}

.brand-seal-divider {
  width: 5px;
  height: 5px;
  flex: 0 0 5px;
  border: 1px solid rgba(47, 103, 191, 0.78);
  background: rgba(234, 242, 255, 0.84);
  transform: rotate(45deg);
  box-shadow: 0 0 0 3px rgba(75, 130, 215, 0.06);
}

.splash-card p {
  color: #66768b;
  font-size: 14px;
  letter-spacing: 0;
  animation: splashCopyIn 380ms 70ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-thread {
  grid-template-columns: 42px 7px 42px;
  gap: 8px;
  margin-top: 2px;
  opacity: 0.72;
  animation: splashCopyIn 380ms 100ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.splash-thread i {
  background: linear-gradient(90deg, transparent, #bbc8d7);
}

.splash-thread i:last-child {
  background: linear-gradient(90deg, #bbc8d7, transparent);
}

.splash-thread b {
  width: 7px;
  height: 7px;
  border-color: rgba(197, 137, 56, 0.72);
}

@keyframes splashWelcomeIn {
  from {
    opacity: 1;
    transform: translateY(3px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashEmblemIn {
  from {
    opacity: 0.72;
    transform: scale(0.98);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes splashCopyIn {
  from {
    opacity: 0.68;
    transform: translateY(2px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashGlyphIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes splashWordmarkStroke {
  to {
    transform: scaleX(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .splash-card,
  .splash-emblem,
  .brand-seal,
  .brand-seal-glyph,
  .brand-seal::after,
  .splash-card p,
  .splash-thread {
    animation: none;
  }

  .brand-seal::after {
    transform: scaleX(1);
  }
}

/* Device-saved saju profiles v1 */
.report-personality-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 13px;
  margin-top: 8px;
}

body.is-report-view .report-personality-actions .report-personality-detail-link {
  margin-top: 0 !important;
}

.report-profile-save-button {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #526b88;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.report-profile-save-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.report-profile-save-button.is-saved {
  color: var(--pl-blue-strong);
}

.saved-profile-manager {
  position: fixed;
  z-index: 160;
  inset: 0;
  display: grid;
  align-items: end;
  justify-items: center;
}

.saved-profile-manager[hidden] {
  display: none;
}

.saved-profile-manager-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(26, 40, 57, 0.35);
  opacity: 0;
  transition: opacity 190ms ease;
}

.saved-profile-manager-panel {
  position: relative;
  width: min(100%, 480px);
  max-height: min(78dvh, 620px);
  overflow: auto;
  padding: 18px 18px max(20px, env(safe-area-inset-bottom));
  border: 1px solid #d8e1eb;
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: #fff;
  box-shadow: 0 -16px 36px rgba(42, 61, 84, 0.16);
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 210ms ease,
    transform 260ms cubic-bezier(0.22, 1, 0.36, 1);
}

.saved-profile-manager.is-open .saved-profile-manager-backdrop,
.saved-profile-manager.is-open .saved-profile-manager-panel {
  opacity: 1;
}

.saved-profile-manager.is-open .saved-profile-manager-panel {
  transform: translateY(0);
}

.saved-profile-manager-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 0 1px 14px;
  border-bottom: 1px solid #e0e7ef;
}

.saved-profile-manager-header h2 {
  margin: 0;
  color: var(--pl-ink);
  font-size: 17px;
  font-weight: 900;
  line-height: 1.35;
}

.saved-profile-manager-header p {
  margin: 4px 0 0;
  color: var(--pl-muted);
  font-size: 10px;
  line-height: 1.5;
}

.saved-profile-manager-close {
  width: 34px;
  height: 34px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  background: transparent;
  color: #65788f;
  cursor: pointer;
}

.saved-profile-manager-close svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.saved-profile-manager-list {
  display: grid;
}

.saved-profile-manager-empty {
  margin: 0;
  padding: 34px 0 20px;
  color: var(--pl-muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.saved-profile-manager-row {
  min-height: 69px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 1px;
  border-bottom: 1px solid #e4eaf1;
}

.saved-profile-manager-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.saved-profile-manager-copy strong {
  overflow: hidden;
  color: var(--pl-ink);
  font-size: 13px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-profile-manager-copy small {
  color: var(--pl-muted);
  font-size: 9.5px;
  line-height: 1.4;
}

.saved-profile-manager-actions {
  display: flex;
  align-items: center;
  gap: 3px;
}

.saved-profile-manager-action,
.saved-profile-manager-confirm {
  min-height: 34px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: #536b87;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.saved-profile-manager-action.is-danger,
.saved-profile-manager-confirm.is-danger {
  color: #a85f45;
}

.saved-profile-manager-edit {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 7px;
  margin: -2px 0 4px;
}

.saved-profile-manager-edit input {
  min-width: 0;
  height: 40px;
  padding: 0 11px;
  border: 1px solid #bfd1e5;
  border-radius: 6px;
  background: #f9fbfd;
  color: var(--pl-ink);
  font-size: 13px;
  outline: 0;
}

.saved-profile-manager-edit input:focus {
  border-color: var(--pl-blue);
  box-shadow: 0 0 0 3px rgba(70, 122, 190, 0.1);
}

.saved-profile-manager-edit button {
  min-width: 48px;
  height: 40px;
  padding: 0 10px;
  border: 1px solid #c8d6e5;
  border-radius: 6px;
  background: #fff;
  color: #536b87;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.saved-profile-manager-edit button.is-primary {
  border-color: var(--pl-blue-strong);
  background: var(--pl-blue-strong);
  color: #fff;
}

.saved-profile-manager-confirm-row {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  margin: -4px 0 4px;
  color: #6f5d55;
  font-size: 10px;
}

body.is-profile-manager-open {
  overflow: hidden;
}

@media (max-height: 700px) {
  .saved-profile-card {
    margin-top: 18px;
  }

  .saved-profile-card-header {
    min-height: 50px;
  }

  .saved-profile-row {
    min-height: 58px;
  }

  .saved-profile-list {
    max-height: 116px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .saved-profile-list,
  .saved-profile-expand svg,
  .saved-profile-manager-backdrop,
  .saved-profile-manager-panel {
    transition: none !important;
  }
}

/* Input */
.screen-home {
  min-height: 100vh;
  display: none;
  align-content: start;
  gap: 0;
  padding: 0 22px 28px;
  background: var(--pl-canvas);
}

.screen-home.is-active {
  display: grid;
  gap: 0;
}

.input-appbar {
  height: 57px;
  display: grid;
  place-items: center;
  margin: 0 -22px;
  border-bottom: 1px solid rgba(117, 138, 166, 0.17);
  background: rgba(255, 255, 255, 0.9);
  color: var(--pl-ink);
}

.input-appbar strong {
  font-size: 15px;
  font-weight: 900;
}

.home-hero {
  min-height: 0;
  display: block;
  padding: 28px 0 18px;
}

.hero-orbit {
  display: none;
}

.input-progress {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.input-progress i {
  width: 82px;
  height: 3px;
  border-radius: 99px;
  background: var(--pl-line);
}

.input-progress i.is-active {
  background: var(--pl-blue);
}

.input-progress span {
  margin-left: auto;
  color: var(--pl-muted);
  font-size: 10px;
}

.screen-home .eyebrow {
  margin: 0 0 6px;
  color: var(--pl-blue-strong);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
}

.home-hero h1 {
  margin: 0;
  color: var(--pl-ink);
  font-size: clamp(24px, 7vw, 29px);
  font-weight: 900;
  line-height: 1.3;
}

.v2-form {
  display: grid;
  gap: 12px;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pl-ink);
  box-shadow: none;
}

.input-card {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 18px 16px;
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-soft);
}

.input-card > h2 {
  margin: 0 !important;
  padding: 0 0 3px !important;
}

.input-card .field {
  margin-top: 0 !important;
}

.input-card h2 {
  margin: 0 0 1px;
  color: var(--pl-ink);
  font-size: 14px;
  font-weight: 900;
}

.v2-form .input-card h2::before,
.v2-form .input-card h2::after {
  display: none;
}

.v2-form .field {
  gap: 7px;
}

.v2-form .field > span,
.v2-form .field > label {
  color: var(--pl-ink);
  font-size: 12px;
  font-weight: 800;
}

.v2-form .field input,
.v2-form .field select {
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid var(--pl-line);
  border-radius: 7px;
  background: #f9fbfd !important;
  color: var(--pl-ink) !important;
  font-size: 14px !important;
  box-shadow: none;
}

.v2-form .field input::placeholder {
  color: var(--pl-faint);
}

.v2-form .field input:focus,
.v2-form .field select:focus {
  border-color: var(--pl-blue);
  background: var(--pl-surface) !important;
  box-shadow: 0 0 0 3px rgba(75, 130, 215, 0.12);
}

.v2-form .segmented {
  gap: 8px;
  padding: 3px;
  border: 1px solid var(--pl-line);
  border-radius: 7px;
  background: #f5f8fb;
}

.v2-form .segmented span {
  min-height: 42px;
  border: 0;
  border-radius: 5px;
  background: transparent !important;
  color: var(--pl-muted) !important;
  font-size: 13px;
}

.v2-form .segmented input:checked + span {
  border: 1px solid rgba(75, 130, 215, 0.22);
  background: var(--pl-surface) !important;
  color: var(--pl-blue-strong) !important;
  box-shadow: 0 3px 10px rgba(48, 91, 151, 0.1);
}

.gold-button {
  min-height: 50px;
  margin-top: 3px;
  border-radius: var(--pl-radius);
  background: var(--pl-blue-strong);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  box-shadow: 0 12px 25px rgba(47, 103, 191, 0.19);
}

.input-trust-note {
  margin: 0 !important;
  color: var(--pl-muted) !important;
  font-size: 9px !important;
  line-height: 1.75;
  text-align: center;
}

.input-trust-note span,
.input-trust-note a {
  display: block;
}

.input-trust-note a {
  color: var(--pl-gold);
  text-decoration: none;
}

.blog-entry-button {
  width: auto;
  min-height: 36px;
  margin-top: 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pl-muted);
  font-size: 10px;
}

/* Loading */
.screen-loading {
  min-height: 100vh;
  align-content: start;
  gap: 0;
  padding: 0 22px 26px;
  background: var(--pl-canvas);
  color: var(--pl-ink);
}

.screen-loading.is-active {
  display: grid;
}

.loading-brand {
  height: 57px;
  display: grid;
  place-items: center;
  margin: 0 -22px;
  border-bottom: 1px solid rgba(117, 138, 166, 0.17);
  background: rgba(255, 255, 255, 0.9);
  font-size: 15px;
  font-weight: 900;
}

.loading-intro {
  padding: 38px 0 0;
  text-align: center;
}

.loading-intro > span {
  color: var(--pl-blue-strong);
  font-size: 11px;
  font-weight: 800;
}

.loading-intro h1 {
  margin: 8px 0 0;
  color: var(--pl-ink);
  font-size: clamp(23px, 6.6vw, 28px);
  line-height: 1.34;
}

.loading-intro p {
  margin: 9px 0 0;
  color: var(--pl-muted);
  font-size: 11px;
}

.loading-report-stack {
  position: relative;
  width: min(100%, 286px);
  height: 330px;
  margin: 42px auto 18px;
}

.loading-report-sheet {
  position: absolute;
  left: 50%;
  width: 260px;
  min-height: 92px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  padding: 14px;
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  color: var(--pl-ink);
  box-shadow: var(--pl-shadow-soft);
  transform: translateX(-50%);
  transition: top 260ms ease, opacity 260ms ease, transform 260ms ease, border-color 260ms ease, background-color 260ms ease;
}

.loading-report-sheet:nth-child(1) {
  top: 0;
  opacity: 0.63;
  transform: translateX(-50%) scale(0.91);
}

.loading-report-sheet:nth-child(2) {
  top: 66px;
  opacity: 0.77;
  transform: translateX(-50%) scale(0.95);
}

.loading-report-sheet:nth-child(3) {
  top: 139px;
  z-index: 2;
}

.loading-report-sheet:nth-child(4) {
  top: 232px;
  opacity: 0.48;
  transform: translateX(-50%) scale(0.94);
}

.loading-report-sheet.is-current {
  z-index: 3;
  border-color: rgba(75, 130, 215, 0.55);
  background: var(--pl-surface-blue);
  opacity: 1;
  transform: translateX(-50%) scale(1);
  box-shadow: 0 18px 36px rgba(46, 96, 170, 0.15);
}

.loading-report-sheet.is-complete {
  border-color: rgba(71, 168, 122, 0.25);
}

.loading-report-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pl-gold-soft);
  color: var(--pl-gold);
  font-size: 13px;
  font-weight: 900;
}

.loading-report-sheet > span:nth-child(2) {
  min-width: 0;
}

.loading-report-sheet small {
  display: block;
  margin-bottom: 3px;
  color: var(--pl-muted);
  font-size: 9px;
}

.loading-report-sheet strong {
  display: block;
  color: var(--pl-ink);
  font-size: 13px;
}

.loading-report-sheet > b {
  color: var(--pl-faint);
  font-size: 9px;
}

.loading-report-sheet.is-current > b {
  color: var(--pl-blue-strong);
}

.loading-report-sheet.is-complete > b {
  color: var(--pl-green);
}

.loading-panel {
  display: grid;
  gap: 10px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pl-ink);
  box-shadow: none;
}

.loading-panel header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.loading-panel header strong {
  color: var(--pl-ink);
  font-size: 12px;
  font-weight: 900;
}

.loading-panel header b {
  color: var(--pl-blue-strong);
  font-size: 16px;
}

.loading-bar {
  height: 7px;
  background: #d6e0ec;
}

.loading-bar i {
  background: var(--pl-blue);
  box-shadow: none;
}

.loading-panel p {
  color: var(--pl-ink-soft);
  font-size: 10px;
}

.loading-auto-note {
  margin: 22px 0 0;
  color: var(--pl-muted);
  font-size: 9px;
  text-align: center;
}

/* Shared app bars and navigation */
.report-appbar,
.report-appbar.light {
  position: sticky;
  top: 0;
  z-index: 30;
  min-height: 57px;
  margin: 0 -20px 18px;
  padding: max(9px, env(safe-area-inset-top)) 20px 9px;
  border-bottom: 1px solid rgba(117, 138, 166, 0.17);
  background: rgba(255, 255, 255, 0.94);
  color: var(--pl-ink);
  backdrop-filter: blur(14px);
}

.report-appbar strong {
  color: var(--pl-ink);
  font-size: 15px;
  font-weight: 900;
}

.icon-button {
  min-width: 0;
  color: var(--pl-ink-soft);
}

.back-button,
.share-button {
  width: auto;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border-radius: 0;
  color: var(--pl-ink-soft);
  font-size: 11px;
}

.back-button svg,
.share-button svg {
  width: 18px;
  height: 18px;
}

.appbar-actions {
  justify-self: end;
}

.report-root,
.detail-root,
.light-surface {
  background: transparent !important;
  color: var(--pl-ink);
}

.report-root,
.detail-root {
  padding-bottom: 12px;
}

.bottom-nav {
  position: fixed;
  z-index: 40;
  left: 50%;
  right: auto;
  bottom: 0;
  width: min(450px, 100%);
  min-height: 70px;
  padding: 7px 4px max(7px, env(safe-area-inset-bottom));
  border-top: 1px solid var(--pl-line);
  background: rgba(255, 255, 255, 0.96);
  color: var(--pl-muted);
  box-shadow: 0 -8px 26px rgba(39, 65, 98, 0.05);
  transform: translateX(-50%);
  backdrop-filter: blur(14px);
}

body.is-report-view .bottom-nav,
body.is-detail-view .bottom-nav {
  border-top: 1px solid var(--pl-line) !important;
  background: rgba(255, 255, 255, 0.96) !important;
  box-shadow: 0 -8px 26px rgba(39, 65, 98, 0.05) !important;
}

.bottom-nav button {
  min-width: 0;
  color: var(--pl-muted);
  font-size: 9px;
  font-weight: 700;
}

.bottom-nav button svg {
  width: 22px;
  height: 22px;
  stroke-width: 2;
}

.bottom-nav button.is-active {
  color: var(--pl-blue-strong);
}

.bottom-nav button.is-active::before {
  background: var(--pl-blue);
}

.bottom-nav-label {
  line-height: 1.05;
}

/* Result home */
.report-personality-dashboard {
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  margin: 0 0 15px;
  padding: 0 0 14px;
  border: 0;
  border-bottom: 1px solid var(--pl-line);
  border-radius: 0;
  background: transparent;
  color: var(--pl-ink);
  box-shadow: none;
}

.report-personality-copy {
  min-width: 0;
}

.report-personality-type-label {
  color: var(--pl-muted);
  font-size: 10px;
  font-weight: 700;
}

.report-personality-copy h2 {
  margin: 3px 0 0;
  color: var(--pl-ink);
  font-size: 18px;
  line-height: 1.25;
}

body.is-report-view .report-personality-copy h2 {
  color: var(--pl-ink) !important;
}

.report-personality-copy p {
  margin: 5px 0 0;
  color: var(--pl-ink-soft);
  font-size: 10px;
  line-height: 1.45;
}

body.is-report-view .report-personality-copy p {
  color: var(--pl-ink-soft) !important;
}

.report-personality-detail-link {
  min-width: auto;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pl-gold);
  font-size: 10px;
  font-weight: 900;
}

.report-personality-detail-link i {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid currentColor;
  border-right: 1.5px solid currentColor;
  transform: rotate(45deg);
}

.report-dashboard-head,
.report-content-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 10px;
}

.report-dashboard-head h3,
.report-content-head h3 {
  margin: 0;
  color: var(--pl-ink);
  font-size: 16px;
}

body.is-report-view .report-analysis-menu .report-dashboard-head h3,
body.is-report-view .report-content-head h3 {
  color: var(--pl-ink) !important;
}

.report-analysis-menu {
  margin: 20px 0 0;
}

.report-analysis-menu-toggle {
  min-height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--pl-gold);
  font-size: 10px;
  font-weight: 900;
}

.report-analysis-menu-chevron {
  color: currentColor;
}

.report-primary-menu-grid,
.report-primary-menu-more-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.report-primary-menu-card {
  min-width: 0;
  min-height: 74px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 7px;
  padding: 9px 3px;
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: rgba(255, 255, 255, 0.78);
  color: var(--pl-ink-soft);
  box-shadow: none;
}

.report-primary-menu-card:hover,
.report-primary-menu-card:focus-visible {
  border-color: rgba(75, 130, 215, 0.42);
  background: var(--pl-surface);
}

.report-category-icon,
.report-primary-menu-card .has-report-icon {
  width: 27px;
  height: 27px;
  color: var(--pl-gold);
}

.report-primary-menu-card strong {
  max-width: 100%;
  color: var(--pl-ink-soft);
  font-size: 10px;
  line-height: 1.25;
  text-align: center;
}

.report-primary-menu-more {
  margin-top: 8px;
}

.report-content-board,
.personality-related-content {
  margin: 23px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.report-content-feature {
  min-height: 92px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 13px;
  padding: 14px 16px;
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  color: var(--pl-ink);
  box-shadow: var(--pl-shadow-soft);
}

.report-content-topic-icon {
  width: 38px;
  height: 38px;
  color: var(--pl-gold);
}

.report-content-feature-meta {
  color: var(--pl-muted);
  font-size: 10px;
}

.report-content-feature-copy strong {
  color: var(--pl-ink);
  font-size: 15px;
}

.report-content-new-badge {
  border-color: var(--pl-gold);
  color: var(--pl-gold);
}

/* Daily fortune: vertical spectrum */
.daily-fortune-board {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.daily-fortune-panel {
  overflow: hidden;
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  color: var(--pl-ink);
  box-shadow: var(--pl-shadow);
}

.daily-fortune-head {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px 9px;
  border: 0;
}

.daily-fortune-head strong {
  color: var(--pl-ink);
  font-size: 19px;
}

body.is-report-view .daily-fortune-head strong {
  color: var(--pl-ink) !important;
}

.daily-fortune-head small {
  display: block;
  margin-top: 3px;
  color: var(--pl-muted);
  font-size: 9px;
}

body.is-report-view .daily-fortune-head small {
  color: var(--pl-muted) !important;
}

.daily-fortune-calendar-mark {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--pl-line);
  border-radius: 50%;
  background: var(--pl-surface);
  color: var(--pl-gold);
}

.daily-fortune-calendar-icon {
  width: 16px;
  height: 16px;
}

.daily-score-banner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  min-height: 126px;
  padding: 19px 20px;
  background: var(--pl-surface-blue);
}

.daily-score-number {
  width: 92px;
  height: 92px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(62, 112, 188, 0.28);
  border-radius: 50%;
  background: var(--pl-surface);
  color: var(--daily-score-ink, var(--pl-blue-strong));
  box-shadow: 0 8px 20px rgba(69, 113, 177, 0.12);
}

.daily-score-number strong {
  font-size: 38px;
  line-height: 1;
}

.daily-score-number small {
  margin-top: 4px;
  color: var(--pl-muted);
  font-size: 9px;
}

.daily-score-copy span {
  color: var(--pl-muted);
  font-size: 9px;
}

.daily-score-copy strong {
  display: block;
  margin: 5px 0 8px;
  color: var(--pl-ink);
  font-size: 19px;
}

.daily-score-copy em {
  display: inline-block;
  padding: 4px 10px;
  border: 1px solid color-mix(in srgb, var(--daily-score-color, var(--pl-blue)) 30%, transparent);
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--daily-score-ink, var(--pl-blue-strong));
  font-size: 9px;
  font-style: normal;
  font-weight: 900;
}

.daily-spectrum {
  padding: 18px 15px 14px;
}

.daily-spectrum-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 13px;
}

.daily-spectrum-head strong {
  color: var(--pl-ink);
  font-size: 12px;
}

.daily-spectrum-head span {
  color: var(--pl-muted);
  font-size: 8px;
}

.daily-spectrum-bars {
  height: 170px;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: end;
  gap: 6px;
  padding: 6px 1px 0;
  border-bottom: 1px solid var(--pl-line);
  background:
    linear-gradient(var(--pl-line), var(--pl-line)) 0 33% / 100% 1px no-repeat,
    linear-gradient(var(--pl-line), var(--pl-line)) 0 66% / 100% 1px no-repeat;
}

.daily-spectrum-column {
  min-width: 0;
  height: 100%;
  display: grid;
  grid-template-rows: 18px 1fr 35px;
  align-items: end;
  justify-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--daily-score-color, var(--pl-blue));
}

.daily-spectrum-column b {
  color: var(--daily-score-ink, var(--pl-blue-strong));
  font-size: 10px;
}

.daily-spectrum-column i {
  width: 21px;
  height: var(--daily-height, 75%);
  align-self: end;
  border-radius: 5px 5px 0 0;
  background: var(--daily-score-color, var(--pl-blue));
  opacity: 0.9;
  transition: height 360ms cubic-bezier(0.22, 0.61, 0.36, 1), filter 180ms ease;
}

.daily-spectrum-column:hover i,
.daily-spectrum-column:focus-visible i {
  filter: brightness(1.08);
}

.daily-spectrum-column span {
  color: var(--pl-ink-soft);
  font-size: 8px;
  line-height: 1.2;
  text-align: center;
}

.daily-spectrum-footer {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 0;
  border-top: 1px solid var(--pl-line);
  background: #fbfcfe;
  color: var(--pl-ink-soft);
  font-size: 10px;
}

.daily-spectrum-footer svg {
  width: 15px;
  height: 15px;
}

.daily-fortune-modal-backdrop,
.share-sheet-backdrop {
  background: rgba(28, 43, 65, 0.35);
}

body.is-report-view .daily-fortune-panel,
body.is-report-view .daily-fortune-panel span,
body.is-report-view .daily-fortune-panel strong,
body.is-report-view .daily-fortune-panel small {
  text-shadow: none !important;
}

.daily-fortune-modal-dialog,
.share-sheet-panel {
  border: 1px solid var(--pl-line-strong);
  background: var(--pl-surface);
  color: var(--pl-ink);
  box-shadow: 0 24px 70px rgba(27, 48, 75, 0.2);
}

.daily-fortune-modal-head,
.share-sheet-header {
  border-bottom-color: var(--pl-line);
}

.daily-fortune-modal-head strong,
.daily-fortune-modal-title-row h3,
.share-sheet-header h2,
.share-sheet-option-copy strong {
  color: var(--pl-ink);
}

.daily-fortune-modal-targets,
.daily-fortune-modal-summary,
.share-sheet-option-copy small {
  color: var(--pl-ink-soft);
}

.share-sheet-option {
  border-color: var(--pl-line);
  background: #fbfcfe;
  color: var(--pl-ink);
}

.share-sheet-option-icon {
  border-color: var(--pl-line);
  background: var(--pl-surface-blue);
  color: var(--pl-blue-strong);
}

/* Shared detail surfaces */
.light-surface {
  display: grid;
  gap: 18px;
  padding: 0 !important;
}

.paper-card,
.dark-card,
.domain-reading-guide,
.structure-reading-guide,
.structure-focus-card,
.gyeokguk-focus-card,
.contextual-focus-card,
.element-focus-card,
.temperature-focus-card {
  border: 1px solid var(--pl-line-strong) !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

.paper-card {
  padding: 16px;
}

.paper-card h1,
.paper-card h2,
.paper-card h3,
.paper-card strong,
.dark-card h1,
.dark-card h2,
.dark-card h3,
.dark-card strong {
  color: var(--pl-ink);
}

.paper-card p,
.dark-card p,
.paper-card small,
.dark-card small {
  color: var(--pl-ink-soft);
}

.domain-detail-head,
.annual-detail-head,
.daily-fortune-detail-head {
  margin: 0;
  padding: 7px 0 17px;
  border: 0;
  border-bottom: 1px solid var(--pl-line);
  border-radius: 0;
  background: transparent;
  color: var(--pl-ink);
  box-shadow: none;
}

.domain-detail-head h2,
.annual-detail-head h2,
.daily-fortune-detail-head h2 {
  color: var(--pl-ink);
  font-size: 24px;
}

.domain-detail-head > span,
.annual-detail-head > span,
.annual-detail-head p,
.domain-detail-head p,
.annual-detail-intro {
  color: var(--pl-muted);
}

.domain-score,
.annual-score {
  min-width: 56px;
  min-height: 56px;
  display: grid;
  place-items: center;
  align-content: center;
  border: 1px solid var(--pl-line-strong);
  border-radius: 50%;
  background: var(--pl-surface);
  color: var(--pl-blue-strong);
  box-shadow: none;
}

.domain-score strong,
.annual-score strong {
  color: var(--pl-blue-strong);
  font-size: 21px;
}

.domain-score span,
.annual-score span,
.annual-score-status {
  color: var(--pl-muted);
  font-size: 8px;
}

/* Radar */
.domain-radar-section {
  margin: 0;
  padding: 20px 8px 16px;
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-soft);
}

.report-personality-radar {
  color: var(--pl-ink);
}

.report-radar-grid polygon,
.report-radar-grid line {
  fill: none;
  stroke: #cbd7e5;
}

.report-radar-area {
  fill: rgba(75, 130, 215, 0.2);
}

.report-radar-stroke {
  fill: none;
  stroke: #6c9fe5;
}

.report-radar-point {
  fill: #6c9fe5;
  stroke: var(--pl-surface);
}

.report-radar-label {
  color: var(--pl-ink-soft);
  text-shadow: none;
}

.report-radar-grade-bg {
  border-color: var(--pl-line-strong);
  background: var(--pl-surface-blue);
  box-shadow: none;
}

.report-radar-grade {
  color: var(--pl-blue-strong);
}

.report-radar-caption.metric-grade-c-minus .report-radar-grade-bg,
.report-radar-caption.metric-grade-d-plus .report-radar-grade-bg,
.report-radar-caption.metric-grade-d .report-radar-grade-bg,
.report-radar-caption.metric-grade-d-minus .report-radar-grade-bg {
  border-color: rgba(224, 123, 79, 0.42);
  background: #fff1e9;
}

.report-radar-caption.metric-grade-c-minus .report-radar-grade,
.report-radar-caption.metric-grade-d-plus .report-radar-grade,
.report-radar-caption.metric-grade-d .report-radar-grade,
.report-radar-caption.metric-grade-d-minus .report-radar-grade {
  color: #bd6037;
}

/* Metric list */
.domain-metric-overview {
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--pl-ink);
  box-shadow: none;
}

.domain-metric-overview-head {
  margin-bottom: 7px;
  padding: 0;
  border: 0;
}

.domain-metric-overview-head strong {
  color: var(--pl-ink);
  font-size: 18px;
}

.domain-metric-overview-head span {
  color: var(--pl-muted);
  font-size: 10px;
}

.domain-metric-overview-list,
.domain-metric-overview-rest-panel {
  overflow: hidden;
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-soft);
}

.domain-metric-overview-item {
  border-bottom: 1px solid var(--pl-line);
  background: transparent;
  color: var(--pl-ink);
}

.domain-metric-overview-item:last-child {
  border-bottom: 0;
}

.domain-metric-overview-row {
  min-height: 58px;
  grid-template-columns: 34px minmax(0, 102px) minmax(68px, 1fr) 42px 16px;
  gap: 8px;
  padding: 8px 12px;
}

.domain-metric-overview-icon {
  width: 31px;
  height: 31px;
  border-color: var(--pl-line);
  background: #f7f9fc;
  color: var(--pl-blue-strong);
}

.domain-metric-overview-row strong {
  color: var(--pl-ink);
  font-size: 12px;
}

.metric-bar,
.domain-metric-overview-bar {
  background: #e3eaf2;
}

.metric-bar i,
.domain-metric-overview-bar i {
  box-shadow: none;
}

.metric-level-badge,
.metric-grade-value {
  min-width: 38px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 6px;
  background: var(--pl-surface-blue);
  color: var(--pl-blue-strong);
  box-shadow: none;
}

.metric-grade-d-plus .metric-level-badge,
.metric-grade-d .metric-level-badge,
.metric-grade-d-minus .metric-level-badge,
.metric-grade-d-plus.metric-level-badge,
.metric-grade-d.metric-level-badge,
.metric-grade-d-minus.metric-level-badge {
  background: #fff1e9;
  color: #bd6037;
}

.domain-metric-overview-explanation {
  padding: 13px 16px 16px 54px;
  border-top: 1px solid var(--pl-line);
  background: #f7faff;
  color: var(--pl-ink-soft);
}

.domain-metric-overview-explanation p {
  color: var(--pl-ink-soft);
  line-height: 1.78;
}

.domain-metric-overview-rest-toggle,
.domain-metric-overview-rest-close {
  color: var(--pl-ink-soft);
}

.domain-metric-overview-rest-toggle {
  margin: 7px 0 0;
}

.domain-metric-overview-rest-close {
  min-height: 45px;
  border-top-color: var(--pl-line);
  background: #fbfcfe;
}

.domain-metric-overview-chevron {
  color: var(--pl-muted);
}

.personality-related-content {
  padding-top: 12px;
  border-top: 1px solid var(--pl-line);
}

/* Annual pages */
.annual-detail {
  display: grid;
  gap: 17px;
}

.annual-metric-overview,
.annual-group-overview {
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-soft);
}

.annual-group-overview-head,
.annual-group-head {
  border-bottom-color: var(--pl-line);
  background: transparent;
  color: var(--pl-ink);
}

.annual-group-overview-head strong,
.annual-group-head strong {
  color: var(--pl-ink);
}

.annual-group-overview-head span,
.annual-group-head span {
  color: var(--pl-muted);
}

.annual-group-overview-list,
.annual-group-list {
  background: transparent;
}

.annual-metric-group,
.annual-group-overview-list > * {
  border-color: var(--pl-line);
  background: transparent;
  color: var(--pl-ink);
}

.annual-group-body {
  border-top-color: var(--pl-line);
  background: #f8fafd;
}

.annual-group-chevron {
  color: var(--pl-muted);
}

/* Timing */
.timing-decade-board,
.timing-year-board {
  overflow: hidden;
  padding: 0;
}

.timing-decade-board > h2,
.timing-year-board > h2 {
  margin: 0;
  padding: 17px 16px;
  border-bottom: 1px solid var(--pl-line);
  color: var(--pl-ink);
}

.timing-decade-row {
  border-bottom: 1px solid var(--pl-line);
  background: var(--pl-surface);
}

.timing-decade-row:last-child {
  border-bottom: 0;
}

.timing-decade-row > strong {
  color: var(--pl-ink);
}

.timing-decade-columns {
  border-color: var(--pl-line);
}

.timing-decade-cell {
  border-color: var(--pl-line);
  background: #fbfcfe;
}

.timing-decade-cell.is-good strong,
.timing-decade-cell.is-good span {
  color: var(--pl-blue-strong);
}

.timing-decade-cell.is-caution strong,
.timing-decade-cell.is-caution span {
  color: #bd6037;
}

.timing-year-pills b,
.timing-decade-cell.is-good b {
  border-color: rgba(75, 130, 215, 0.25);
  background: var(--pl-surface-blue);
  color: var(--pl-blue-strong);
}

.timing-decade-cell.is-caution b,
.is-caution .timing-year-pills b {
  border-color: rgba(224, 123, 79, 0.28);
  background: #fff1e9;
  color: #bd6037;
}

/* Manse and evidence */
.contextual-palja-basis,
.manse-basis-card {
  border-color: var(--pl-line-strong);
  background: var(--pl-surface);
  color: var(--pl-ink);
  box-shadow: var(--pl-shadow-soft);
}

.manse-basis-head {
  border-bottom-color: var(--pl-line);
}

.manse-basis-head h2 {
  color: var(--pl-ink);
}

.manse-pillars,
.manse-cell,
.manse-row,
.manse-pillar-head {
  border-color: var(--pl-line);
}

.manse-cell,
.manse-row {
  background: #fbfcfe;
  color: var(--pl-ink);
}

.manse-row-label,
.manse-god,
.manse-hidden-chip {
  color: var(--pl-ink-soft);
}

.manse-hidden-chip {
  border-color: var(--pl-line);
  background: var(--pl-surface);
}

.contextual-evidence-section {
  color: var(--pl-ink);
}

.contextual-evidence-section-head {
  border-bottom-color: var(--pl-line);
}

.contextual-evidence-section-head h2,
.contextual-evidence-summary-title,
.contextual-evidence-title-line strong {
  color: var(--pl-ink);
}

.contextual-evidence-group {
  overflow: hidden;
  border: 1px solid var(--pl-line-strong);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: none;
}

.contextual-evidence-group + .contextual-evidence-group {
  margin-top: 8px;
}

.contextual-evidence-summary-title {
  background: transparent;
}

.contextual-evidence-summary-icon {
  border-color: var(--pl-line);
  background: var(--pl-surface-blue);
  color: var(--pl-blue-strong);
}

.contextual-evidence-group-body {
  border-top-color: var(--pl-line);
  background: #f8fafd;
}

.contextual-evidence-card {
  border-color: var(--pl-line);
  background: var(--pl-surface);
  color: var(--pl-ink);
}

.contextual-evidence-card p,
.contextual-origin-detail {
  color: var(--pl-ink-soft);
}

.contextual-origin-badge,
.contextual-keyword-group span,
.tag-row span {
  border-color: var(--pl-line);
  background: #f6f8fb;
  color: var(--pl-ink-soft);
}

.contextual-origin-badge.is-natal {
  border-color: rgba(75, 130, 215, 0.28);
  background: var(--pl-surface-blue);
  color: var(--pl-blue-strong);
}

.contextual-origin-badge.is-annual {
  border-color: rgba(197, 137, 56, 0.3);
  background: var(--pl-gold-soft);
  color: #996921;
}

/* Structural analysis cards */
.structure-focus-head,
.gyeokguk-focus-head,
.contextual-focus-head,
.element-focus-head,
.temperature-focus-head {
  border-bottom-color: var(--pl-line);
}

.structure-focus-seal,
.gyeokguk-focus-seal,
.contextual-focus-seal,
.element-focus-seal,
.temperature-focus-seal {
  border-color: var(--pl-line);
  background: var(--pl-surface-blue);
  color: var(--pl-blue-strong);
}

.structure-focus-grid article,
.gyeokguk-focus-grid article,
.contextual-focus-grid article,
.element-focus-grid article,
.temperature-focus-grid article,
.topic-card,
.contract-action-list article {
  border-color: var(--pl-line);
  background: #f8fafd;
  color: var(--pl-ink);
}

.structure-focus-grid article span,
.gyeokguk-focus-grid article span,
.contextual-focus-grid article span,
.element-focus-grid article span,
.temperature-focus-grid article span,
.topic-card em {
  color: var(--pl-muted);
}

.structure-focus-grid article p,
.gyeokguk-focus-grid article p,
.contextual-focus-grid article p,
.element-focus-grid article p,
.temperature-focus-grid article p,
.topic-card p,
.contract-action-list article p {
  color: var(--pl-ink-soft);
}

.domain-reading-head,
.structure-reading-guide .domain-reading-head {
  border-bottom-color: var(--pl-line);
}

.domain-reading-head strong,
.structure-reading-guide .domain-reading-head strong {
  color: var(--pl-ink);
}

.domain-reading-head span,
.structure-reading-guide .domain-reading-head span {
  color: var(--pl-muted);
}

.domain-reading-path button,
.structure-reading-path button {
  border-color: var(--pl-line);
  background: #f8fafd;
  color: var(--pl-ink-soft);
}

.domain-reading-path button.is-detail,
.structure-reading-path button.is-detail {
  border-color: rgba(75, 130, 215, 0.3);
  background: var(--pl-surface-blue);
  color: var(--pl-blue-strong);
}

/* Miscellaneous detail content */
.metric-expand,
.concept-explanation,
.analysis-detail-unit,
.contract-summary,
.factor-category,
.factor-block,
.signal-card {
  border-color: var(--pl-line) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
}

.metric-expand summary,
.concept-explanation summary {
  color: var(--pl-ink);
}

.metric-expand p,
.concept-explanation p,
.analysis-detail-unit p,
.contract-summary p,
.factor-category p,
.factor-block p,
.signal-card p {
  color: var(--pl-ink-soft);
}

.toast {
  border-color: var(--pl-line-strong);
  background: var(--pl-ink);
  color: #fff;
  box-shadow: var(--pl-shadow);
}

@media (min-width: 720px) {
  .site-stage {
    margin-block: 20px;
    min-height: calc(100vh - 40px);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 20px 70px rgba(31, 53, 82, 0.16);
  }

  .bottom-nav {
    bottom: 20px;
    border-radius: 0 0 10px 10px;
  }
}

@media (max-width: 380px) {
  .screen-report,
  .screen-detail {
    padding-inline: 15px;
  }

  .report-appbar,
  .report-appbar.light {
    margin-inline: -15px;
    padding-inline: 15px;
  }

  .report-primary-menu-grid,
  .report-primary-menu-more-grid {
    gap: 6px;
  }

  .report-primary-menu-card {
    min-height: 70px;
  }

  .daily-score-banner {
    gap: 13px;
    padding-inline: 15px;
  }

  .daily-score-number {
    width: 82px;
    height: 82px;
  }

  .daily-spectrum-bars {
    gap: 4px;
  }

  .daily-spectrum-column i {
    width: 18px;
  }

  .domain-metric-overview-row {
    grid-template-columns: 31px minmax(0, 88px) minmax(55px, 1fr) 39px 14px;
    gap: 6px;
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .loading-report-sheet,
  .daily-spectrum-column i {
    transition: none;
  }
}

/*
 * Final light-theme guard.
 * The legacy stylesheet contains view-scoped dark declarations added over
 * several releases. Keep this layer last so every routed screen shares the
 * same product-light palette without touching report data or calculations.
 */
body.is-report-view,
body.is-detail-view {
  background: #dfe7f0 !important;
  color: var(--pl-ink) !important;
}

body.is-report-view .site-stage,
body.is-detail-view .site-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.76), transparent 190px),
    var(--pl-canvas) !important;
  color: var(--pl-ink) !important;
  box-shadow: 0 0 0 1px rgba(44, 75, 112, 0.08) !important;
}

body.is-report-view .site-stage::before,
body.is-report-view .site-stage::after,
body.is-detail-view .site-stage::before,
body.is-detail-view .site-stage::after {
  display: none !important;
  content: none !important;
}

body.is-report-view .report-appbar,
body.is-detail-view .report-appbar,
body.is-detail-view .report-appbar.light {
  min-height: 57px !important;
  margin: 0 -20px 18px !important;
  padding: max(9px, env(safe-area-inset-top)) 20px 9px !important;
  border-bottom: 1px solid rgba(117, 138, 166, 0.17) !important;
  background: rgba(255, 255, 255, 0.95) !important;
  color: var(--pl-ink) !important;
  box-shadow: none !important;
  backdrop-filter: blur(14px);
}

body.is-report-view .report-appbar strong,
body.is-detail-view .report-appbar strong,
body.is-report-view .back-button,
body.is-detail-view .back-button,
body.is-report-view .share-button,
body.is-detail-view .share-button,
body.is-report-view .back-button span,
body.is-detail-view .back-button span,
body.is-report-view .share-button-label,
body.is-detail-view .share-button-label,
body.is-report-view .icon-button,
body.is-detail-view .icon-button {
  color: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

body.is-report-view .report-appbar strong,
body.is-detail-view .report-appbar strong {
  color: var(--pl-ink) !important;
}

body.is-report-view .bottom-nav button,
body.is-detail-view .bottom-nav button {
  color: var(--pl-muted) !important;
  text-shadow: none !important;
}

body.is-report-view .bottom-nav button.is-active,
body.is-detail-view .bottom-nav button.is-active {
  color: var(--pl-blue-strong) !important;
}

body.is-report-view .bottom-nav button.is-active::before,
body.is-detail-view .bottom-nav button.is-active::before {
  background: var(--pl-blue) !important;
}

body.is-detail-view .light-surface {
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 0 calc(86px + env(safe-area-inset-bottom)) !important;
  background: transparent !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .detail-root {
  --ui-gold: var(--pl-gold);
  --ui-gold-bright: var(--pl-gold);
  --ui-line: var(--pl-line);
  --ui-text: var(--pl-ink);
  --ui-text-body: var(--pl-ink-soft);
  --ui-text-muted: var(--pl-muted);
  gap: 18px !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .domain-detail-head,
body.is-detail-view .domain-detail-head.metric-great,
body.is-detail-view .domain-detail-head.metric-good,
body.is-detail-view .domain-detail-head.metric-normal,
body.is-detail-view .domain-detail-head.metric-caution,
body.is-detail-view .domain-detail-head.metric-risk,
body.is-detail-view .annual-detail,
body.is-detail-view .annual-detail.metric-great,
body.is-detail-view .annual-detail.metric-good,
body.is-detail-view .annual-detail.metric-normal,
body.is-detail-view .annual-detail.metric-caution,
body.is-detail-view .annual-detail.metric-risk,
body.is-detail-view .timing-decade-board {
  border: 0 !important;
  border-bottom: 1px solid var(--pl-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--pl-ink) !important;
  box-shadow: none !important;
}

body.is-detail-view .domain-detail-head {
  padding: 7px 0 17px !important;
}

body.is-detail-view .personality-domain-intro {
  padding-inline: 0 !important;
}

body.is-detail-view .personality-domain-intro > div:first-child > span,
body.is-detail-view .domain-detail-head > span,
body.is-detail-view .annual-detail-intro > div:first-child > span {
  color: var(--pl-gold) !important;
}

body.is-detail-view .personality-domain-intro h2,
body.is-detail-view .domain-title-row h2,
body.is-detail-view .annual-detail-head h2,
body.is-detail-view .annual-detail-intro h2,
body.is-detail-view .timing-decade-board > h2,
body.is-detail-view .contextual-palja-basis h2,
body.is-detail-view .contextual-evidence-section-head h2,
body.is-detail-view .domain-landing-head h2,
body.is-detail-view .paper-card h2 {
  color: var(--pl-ink) !important;
  text-shadow: none !important;
}

body.is-detail-view .personality-domain-intro p,
body.is-detail-view .domain-title-row p,
body.is-detail-view .annual-detail-head p,
body.is-detail-view .annual-detail-intro p,
body.is-detail-view .timing-decade-board > p,
body.is-detail-view .contextual-palja-basis p,
body.is-detail-view .contextual-evidence-section-head p,
body.is-detail-view .domain-landing-head p,
body.is-detail-view .paper-card > p {
  color: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

body.is-detail-view .personality-domain-intro .domain-score,
body.is-detail-view .domain-score,
body.is-detail-view .annual-detail-intro .domain-score {
  border-color: var(--pl-line-strong) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-blue-strong) !important;
  box-shadow: none !important;
}

body.is-detail-view .domain-score strong,
body.is-detail-view .domain-score span {
  color: inherit !important;
  text-shadow: none !important;
}

body.is-detail-view .domain-score .metric-grade-value {
  border: 1px solid rgba(75, 130, 215, 0.28) !important;
  background: var(--pl-surface-blue-strong) !important;
  color: var(--pl-blue-strong) !important;
  box-shadow: none !important;
}

body.is-detail-view .personality-domain-detail > .domain-radar-section,
body.is-detail-view .topic-domain-detail > .domain-radar-section {
  border: 1px solid var(--pl-line-strong) !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .report-personality-radar .report-radar-caption,
body.is-detail-view .report-personality-radar .report-radar-label {
  color: var(--pl-ink-soft) !important;
  fill: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-personality-radar .report-radar-grid polygon,
body.is-detail-view .report-personality-radar .report-radar-grid line {
  stroke: #cbd7e5 !important;
}

body.is-detail-view .personality-domain-detail .report-radar-area,
body.is-detail-view .topic-domain-detail .report-radar-area {
  fill: rgba(75, 130, 215, 0.2) !important;
}

body.is-detail-view .personality-domain-detail .report-radar-stroke,
body.is-detail-view .topic-domain-detail .report-radar-stroke {
  stroke: #6c9fe5 !important;
}

body.is-detail-view .personality-domain-detail .report-radar-point,
body.is-detail-view .topic-domain-detail .report-radar-point {
  fill: #6c9fe5 !important;
  stroke: #ffffff !important;
}

body.is-detail-view .report-personality-radar .report-radar-grade-bg {
  border-color: var(--pl-line-strong) !important;
  background: var(--pl-surface-blue) !important;
  fill: var(--pl-surface-blue) !important;
  stroke: var(--pl-line-strong) !important;
  box-shadow: none !important;
}

body.is-detail-view .report-personality-radar .report-radar-grade {
  color: var(--pl-blue-strong) !important;
  fill: var(--pl-blue-strong) !important;
}

body.is-detail-view .report-radar-caption.metric-grade-c-minus .report-radar-grade-bg,
body.is-detail-view .report-radar-caption.metric-grade-d-plus .report-radar-grade-bg,
body.is-detail-view .report-radar-caption.metric-grade-d .report-radar-grade-bg,
body.is-detail-view .report-radar-caption.metric-grade-d-minus .report-radar-grade-bg {
  background: #fff1e9 !important;
  fill: #fff1e9 !important;
  stroke: rgba(224, 123, 79, 0.42) !important;
}

body.is-detail-view .report-radar-caption.metric-grade-c-minus .report-radar-grade,
body.is-detail-view .report-radar-caption.metric-grade-d-plus .report-radar-grade,
body.is-detail-view .report-radar-caption.metric-grade-d .report-radar-grade,
body.is-detail-view .report-radar-caption.metric-grade-d-minus .report-radar-grade {
  color: #bd6037 !important;
  fill: #bd6037 !important;
}

body.is-detail-view .domain-metric-overview,
body.is-detail-view .annual-metric-overview,
body.is-detail-view .annual-group-overview {
  gap: 0 !important;
  margin-top: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--pl-ink) !important;
  box-shadow: none !important;
}

body.is-detail-view .domain-metric-overview-list,
body.is-detail-view .domain-metric-overview-rest-panel,
body.is-detail-view .annual-metric-overview .domain-metric-overview-list {
  border: 1px solid var(--pl-line-strong) !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .domain-metric-overview-head strong,
body.is-detail-view .annual-metric-overview strong,
body.is-detail-view .annual-group-overview strong,
body.is-detail-view .personality-related-content h3,
body.is-detail-view .personality-related-content button span {
  color: var(--pl-ink) !important;
  text-shadow: none !important;
}

body.is-detail-view .domain-metric-overview-head span,
body.is-detail-view .annual-metric-overview .domain-metric-overview-head span {
  color: var(--pl-muted) !important;
}

body.is-detail-view .domain-metric-overview-item,
body.is-detail-view .domain-metric-overview-row,
body.is-detail-view .domain-metric-overview-row.is-long-label,
body.is-detail-view .annual-detail .domain-metric-overview-row,
body.is-detail-view .annual-detail .domain-metric-overview-row.is-long-label {
  border-bottom-color: var(--pl-line) !important;
  background: transparent !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .domain-metric-overview-row > span:not(.domain-metric-overview-icon),
body.is-detail-view .annual-detail .domain-metric-overview-row > span:not(.domain-metric-overview-icon) {
  color: var(--pl-ink) !important;
  text-shadow: none !important;
}

body.is-detail-view .domain-metric-overview-icon {
  border-color: var(--pl-line) !important;
  background: #f7f9fc !important;
  color: var(--pl-blue-strong) !important;
}

body.is-detail-view .metric-level-badge,
body.is-detail-view .metric-grade-value {
  border: 1px solid rgba(75, 130, 215, 0.26) !important;
  background: var(--pl-surface-blue) !important;
  color: var(--pl-blue-strong) !important;
  text-shadow: none !important;
}

body.is-detail-view .metric-grade-a-plus {
  --grade-bg: #dceafe;
  --grade-ink: #245cae;
  --grade-border: #adc7eb;
}

body.is-detail-view .metric-grade-a {
  --grade-bg: #e3eefc;
  --grade-ink: #2d68b9;
  --grade-border: #b8cdea;
}

body.is-detail-view .metric-grade-a-minus {
  --grade-bg: #e9f1fb;
  --grade-ink: #376eaf;
  --grade-border: #c1d2e8;
}

body.is-detail-view .metric-grade-b-plus,
body.is-detail-view .metric-grade-b,
body.is-detail-view .metric-grade-b-minus {
  --grade-bg: #edf5ff;
  --grade-ink: #4274aa;
  --grade-border: #c8d8e9;
}

body.is-detail-view .metric-grade-c-plus,
body.is-detail-view .metric-grade-c,
body.is-detail-view .metric-grade-c-minus {
  --grade-bg: #f0f3f6;
  --grade-ink: #667485;
  --grade-border: #d6dce4;
}

body.is-detail-view .metric-grade-d-plus,
body.is-detail-view .metric-grade-d,
body.is-detail-view .metric-grade-d-minus {
  --grade-bg: #fff1e9;
  --grade-ink: #bd6037;
  --grade-border: rgba(224, 123, 79, 0.34);
}

body.is-detail-view .metric-level-badge.metric-grade-c-plus,
body.is-detail-view .metric-level-badge.metric-grade-c,
body.is-detail-view .metric-level-badge.metric-grade-c-minus,
body.is-detail-view .metric-grade-value.metric-grade-c-plus,
body.is-detail-view .metric-grade-value.metric-grade-c,
body.is-detail-view .metric-grade-value.metric-grade-c-minus {
  border-color: #d6dce4 !important;
  background: #f0f3f6 !important;
  color: #667485 !important;
}

body.is-detail-view .metric-level-badge.metric-grade-d-plus,
body.is-detail-view .metric-level-badge.metric-grade-d,
body.is-detail-view .metric-level-badge.metric-grade-d-minus,
body.is-detail-view .metric-grade-value.metric-grade-d-plus,
body.is-detail-view .metric-grade-value.metric-grade-d,
body.is-detail-view .metric-grade-value.metric-grade-d-minus {
  border-color: rgba(224, 123, 79, 0.34) !important;
  background: #fff1e9 !important;
  color: #bd6037 !important;
}

body.is-detail-view .metric-normal .domain-metric-overview-icon {
  border-color: var(--pl-line) !important;
  background: #f7f9fc !important;
  color: #788696 !important;
}

body.is-detail-view .metric-caution .domain-metric-overview-icon,
body.is-detail-view .metric-risk .domain-metric-overview-icon {
  border-color: rgba(224, 123, 79, 0.3) !important;
  background: #fff5ee !important;
  color: #bd6037 !important;
}

body.is-detail-view .domain-metric-overview-explanation,
body.is-detail-view .annual-detail .domain-metric-overview-explanation {
  border-top-color: var(--pl-line) !important;
  background: #f7faff !important;
  color: var(--pl-ink-soft) !important;
}

body.is-detail-view .domain-metric-overview-explanation p,
body.is-detail-view .annual-detail .domain-metric-overview-explanation p,
body.is-detail-view .domain-metric-overview-explanation .has-edge-emphasis strong,
body.is-detail-view .metric-card .has-edge-emphasis strong {
  color: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

body.is-detail-view .domain-metric-overview-explanation .has-edge-emphasis strong,
body.is-detail-view .metric-card .has-edge-emphasis strong {
  color: var(--pl-ink) !important;
}

body.is-detail-view .domain-metric-overview-rest-toggle,
body.is-detail-view .domain-metric-overview-rest-close {
  border-color: var(--pl-line) !important;
  background: #fbfcfe !important;
  color: var(--pl-ink-soft) !important;
}

body.is-detail-view .personality-related-content {
  border-top-color: var(--pl-line) !important;
}

body.is-detail-view .personality-related-content button {
  border-color: var(--pl-line-strong) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

/* Annual overview and groups */
body.is-detail-view .annual-group-list {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--pl-line-strong) !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .annual-metric-group,
body.is-detail-view .annual-metric-group[open] {
  border: 0 !important;
  border-bottom: 1px solid var(--pl-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--pl-ink) !important;
  box-shadow: none !important;
}

body.is-detail-view .annual-metric-group:last-child {
  border-bottom: 0 !important;
}

body.is-detail-view .annual-group-head {
  min-height: 58px !important;
  padding: 11px 13px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .annual-group-head > strong {
  color: var(--pl-ink) !important;
  text-shadow: none !important;
}

body.is-detail-view .annual-group-head > span,
body.is-detail-view .annual-group-head > span em,
body.is-detail-view .annual-group-head .annual-score-status,
body.is-detail-view .annual-group-chevron {
  color: var(--pl-muted) !important;
  text-shadow: none !important;
}

body.is-detail-view .annual-group-body {
  border-top: 1px solid var(--pl-line) !important;
  background: #f8fafd !important;
}

body.is-detail-view .annual-group-body .annual-group-overview {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

/* Timing */
body.is-detail-view .timing-decade-board {
  padding: 4px 0 0 !important;
}

body.is-detail-view .timing-decade-list {
  display: grid;
  gap: 10px !important;
}

body.is-detail-view .timing-decade-row {
  overflow: hidden;
  border: 1px solid var(--pl-line-strong) !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .timing-decade-row > strong {
  display: block;
  padding: 11px 13px 9px;
  border-bottom: 1px solid var(--pl-line);
  color: var(--pl-ink) !important;
  font-size: 13px;
  text-shadow: none !important;
}

body.is-detail-view .timing-decade-columns {
  gap: 8px;
  padding: 10px;
}

body.is-detail-view .timing-decade-cell,
body.is-detail-view .detail-root .timing-decade-cell.is-good,
body.is-detail-view .detail-root .timing-decade-cell.is-caution {
  min-height: 70px;
  padding: 10px;
  border: 1px solid var(--pl-line) !important;
  border-radius: 6px !important;
  background: #f8fafd !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .detail-root .timing-decade-cell.is-good {
  border-color: rgba(75, 130, 215, 0.25) !important;
  background: #edf5ff !important;
}

body.is-detail-view .detail-root .timing-decade-cell.is-caution {
  border-color: rgba(224, 123, 79, 0.24) !important;
  background: #fff5ee !important;
}

body.is-detail-view .detail-root .timing-decade-cell.is-good > b,
body.is-detail-view .detail-root .timing-decade-cell.is-good > em {
  color: var(--pl-blue-strong) !important;
}

body.is-detail-view .detail-root .timing-decade-cell.is-caution > b,
body.is-detail-view .detail-root .timing-decade-cell.is-caution > em {
  color: #bd6037 !important;
}

body.is-detail-view .timing-year-pills span,
body.is-detail-view .detail-root .timing-decade-cell.is-good .timing-year-pills span,
body.is-detail-view .detail-root .timing-decade-cell.is-caution .timing-year-pills span {
  border-color: var(--pl-line-strong) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

/* Palja and evidence */
body.is-detail-view .contextual-evidence-section,
body.is-detail-view .contextual-palja-basis.manse-basis-card {
  border: 1px solid var(--pl-line-strong) !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .contextual-evidence-groups {
  gap: 0 !important;
  overflow: hidden;
  border: 1px solid var(--pl-line-strong) !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
}

body.is-detail-view .contextual-evidence-group,
body.is-detail-view .contextual-evidence-group.is-collapsible,
body.is-detail-view .contextual-evidence-group.is-secondary,
body.is-detail-view .contextual-evidence-group[open] {
  border: 0 !important;
  border-bottom: 1px solid var(--pl-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--pl-ink) !important;
  box-shadow: none !important;
}

body.is-detail-view .contextual-evidence-group:last-child {
  border-bottom: 0 !important;
}

body.is-detail-view .contextual-evidence-group > summary {
  min-height: 56px !important;
  padding: 10px 12px !important;
  border: 0 !important;
  background: transparent !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .contextual-evidence-group > summary strong,
body.is-detail-view .contextual-evidence-group > summary span {
  color: var(--pl-ink) !important;
  text-shadow: none !important;
}

body.is-detail-view .contextual-evidence-group > summary small,
body.is-detail-view .contextual-evidence-group > summary em {
  color: var(--pl-muted) !important;
}

body.is-detail-view .contextual-evidence-summary-icon {
  border-color: var(--pl-line-strong) !important;
  background: var(--pl-gold-soft) !important;
  color: var(--pl-gold) !important;
}

body.is-detail-view .contextual-evidence-group-body,
body.is-detail-view .contextual-evidence-group.is-secondary .contextual-evidence-stack {
  border-top: 1px solid var(--pl-line) !important;
  background: #f8fafd !important;
}

body.is-detail-view .contextual-evidence-card {
  border-color: var(--pl-line) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .contextual-evidence-card strong,
body.is-detail-view .contextual-evidence-card h3 {
  color: var(--pl-ink) !important;
}

body.is-detail-view .contextual-evidence-card p,
body.is-detail-view .contextual-origin-detail,
body.is-detail-view .contextual-keyword-group {
  color: var(--pl-ink-soft) !important;
}

body.is-detail-view .detail-root .contextual-origin-legend small {
  color: var(--pl-muted) !important;
}

body.is-detail-view .detail-root .contextual-origin-group h3 {
  color: var(--pl-ink) !important;
}

body.is-detail-view .detail-root .contextual-origin-group h3 span {
  color: var(--pl-muted) !important;
}

body.is-detail-view .detail-root .contextual-origin-detail span {
  color: var(--pl-ink-soft) !important;
}

body.is-detail-view .detail-root .contextual-origin-detail b {
  color: var(--pl-gold) !important;
}

body.is-detail-view .detail-root .contextual-origin-detail.is-annual b {
  color: var(--pl-blue-strong) !important;
}

body.is-detail-view .detail-root .contextual-origin-badge.is-natal {
  border-color: rgba(140, 92, 31, 0.3) !important;
  background: var(--pl-gold-soft) !important;
  color: var(--pl-gold) !important;
}

body.is-detail-view .detail-root .contextual-origin-badge.is-annual {
  border-color: rgba(46, 100, 170, 0.28) !important;
  background: var(--pl-blue-soft) !important;
  color: var(--pl-blue-strong) !important;
}

body.is-detail-view .detail-root .contextual-evidence-card > header > em {
  color: var(--pl-muted) !important;
}

body.is-detail-view .contextual-keyword-group {
  border: 1px solid var(--pl-line) !important;
  background: var(--pl-surface) !important;
}

body.is-detail-view .contextual-keyword-group b {
  color: #9a6a28 !important;
}

body.is-detail-view .contextual-keyword-group span,
body.is-detail-view .contextual-keyword-group em {
  border-color: var(--pl-line) !important;
  background: #f6f8fb !important;
  color: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

body.is-detail-view .manse-row-label {
  border-color: var(--pl-line) !important;
  background: var(--pl-gold-soft) !important;
  color: #9a6a28 !important;
}

body.is-detail-view .manse-pillar-head b {
  color: var(--pl-ink-soft) !important;
}

body.is-detail-view .manse-pillar-head em {
  color: #a67531 !important;
}

body.is-detail-view .manse-god {
  background: #f8fafd !important;
  color: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

body.is-detail-view .manse-hidden-chip {
  border-color: var(--pl-line) !important;
  background: #f8fafd !important;
}

body.is-detail-view .manse-hidden-chip em {
  color: var(--pl-muted) !important;
}

/* Light topic content detail */
body.is-detail-view .report-content-topic-detail {
  display: grid;
  gap: 12px;
  color: var(--pl-ink) !important;
}

body.is-detail-view .report-content-topic-hero,
body.is-detail-view .report-content-personal-result,
body.is-detail-view .report-content-topic-metrics,
body.is-detail-view .report-content-related-button {
  border: 1px solid var(--pl-line-strong) !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .report-content-topic-hero {
  padding: 18px 16px 17px !important;
}

body.is-detail-view .report-content-topic-hero > span {
  color: var(--pl-gold) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-topic-hero h2 {
  margin-top: 6px !important;
  color: var(--pl-ink) !important;
  font-family: inherit !important;
  font-size: clamp(23px, 7vw, 28px) !important;
  line-height: 1.32 !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-topic-hero p {
  color: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-personal-result {
  overflow: hidden;
}

body.is-detail-view .report-content-personal-result > header {
  padding: 16px !important;
  border-bottom: 1px solid var(--pl-line) !important;
  background: #f8fafd !important;
}

body.is-detail-view .report-content-personal-result > header small {
  color: var(--pl-muted) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-personal-result > header b {
  color: #9a6a28 !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-personal-result h3 {
  gap: 4px !important;
  margin-top: 10px !important;
}

body.is-detail-view .report-content-personal-result h3 > span {
  color: var(--pl-ink-soft) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-personal-result h3 > strong {
  color: var(--pl-ink) !important;
  font-family: inherit !important;
  font-size: clamp(21px, 6.4vw, 25px) !important;
  letter-spacing: 0 !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-personal-copy {
  gap: 17px !important;
  padding: 17px 16px 19px !important;
  background: var(--pl-surface) !important;
}

body.is-detail-view .report-content-personal-copy p {
  color: var(--pl-ink-soft) !important;
  font-size: 14px !important;
  line-height: 1.85 !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-personal-copy p.has-edge-emphasis strong {
  color: var(--pl-ink) !important;
}

body.is-detail-view .report-content-topic-metrics {
  padding: 15px !important;
}

body.is-detail-view .report-content-topic-metrics h3 {
  color: var(--pl-ink) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-topic-metric {
  border: 1px solid var(--pl-line) !important;
  background: #f8fafd !important;
  color: var(--grade-ink, var(--pl-blue-strong)) !important;
  box-shadow: none !important;
}

body.is-detail-view .report-content-topic-metric header strong {
  color: var(--pl-ink) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-topic-metric header b {
  border-color: var(--grade-border, var(--pl-line-strong)) !important;
  background: var(--grade-bg, #e9f1fb) !important;
  color: var(--grade-ink, var(--pl-blue-strong)) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-topic-bar {
  background: #e1e8f0 !important;
}

body.is-detail-view .report-content-topic-bar i {
  background: var(--grade-ink, currentColor) !important;
  box-shadow: none !important;
}

body.is-detail-view .report-content-related-button {
  min-height: 64px !important;
  color: var(--pl-gold) !important;
}

body.is-detail-view .report-content-related-button small {
  color: var(--pl-muted) !important;
  text-shadow: none !important;
}

body.is-detail-view .report-content-related-button strong {
  color: var(--pl-ink) !important;
  text-shadow: none !important;
}

@media (max-width: 380px) {
  body.is-report-view .report-appbar,
  body.is-detail-view .report-appbar,
  body.is-detail-view .report-appbar.light {
    margin-inline: -15px !important;
    padding-inline: 15px !important;
  }
}

/*
 * Product light readability pass v1
 * This is the final presentation layer. Keep it after every legacy rule so
 * the light product shell remains stable without changing report data.
 */
:root {
  --pl-ink-soft: #354964;
  --pl-muted: #62738a;
  --pl-faint: #8795a8;
  --pl-line: #ced9e6;
  --pl-line-strong: #bfcddd;
}

/* Input and loading */
.input-progress span {
  color: var(--pl-muted) !important;
  font-size: 11px !important;
  font-weight: 700;
}

.screen-home .eyebrow,
.loading-intro > span {
  font-size: 12px !important;
}

.input-card h2 {
  font-size: 15px !important;
}

.v2-form .field > span,
.v2-form .field > label {
  font-size: 13px !important;
}

.v2-form .field input,
.v2-form .field select {
  font-size: 15px !important;
}

.v2-form .segmented span {
  font-size: 14px !important;
}

.gold-button {
  font-size: 15px !important;
}

.input-trust-note {
  color: var(--pl-muted) !important;
  font-size: 11.5px !important;
  line-height: 1.7 !important;
}

.input-trust-note a {
  color: #81571d !important;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-color: rgba(129, 87, 29, 0.35);
  text-underline-offset: 2px;
}

.blog-entry-button {
  color: var(--pl-ink-soft) !important;
  font-size: 11.5px !important;
}

.loading-intro p {
  color: var(--pl-muted) !important;
  font-size: 13px !important;
  line-height: 1.55;
}

.loading-report-sheet small {
  font-size: 11px !important;
}

.loading-report-sheet strong {
  font-size: 14px !important;
}

.loading-report-sheet > b {
  font-size: 11px !important;
}

.loading-panel header strong {
  font-size: 13px !important;
}

.loading-panel p {
  font-size: 12px !important;
  line-height: 1.55;
}

.loading-auto-note {
  color: var(--pl-muted) !important;
  font-size: 11.5px !important;
}

/* Common navigation */
body.is-report-view .report-appbar strong,
body.is-detail-view .report-appbar strong {
  font-size: 16px !important;
}

body.is-report-view .back-button,
body.is-report-view .share-button,
body.is-detail-view .back-button,
body.is-detail-view .share-button {
  color: var(--pl-ink-soft) !important;
  font-size: 13px !important;
}

body.is-report-view .bottom-nav button,
body.is-detail-view .bottom-nav button {
  color: var(--pl-muted) !important;
  font-size: 11.5px !important;
  line-height: 1.15 !important;
}

body.is-report-view .bottom-nav button.is-active,
body.is-detail-view .bottom-nav button.is-active {
  color: var(--pl-blue-strong) !important;
}

/* Result home */
body.is-report-view .report-personality-type-label {
  color: var(--pl-muted) !important;
  font-size: 12px !important;
}

body.is-report-view .report-personality-copy h2 {
  font-size: 21px !important;
}

body.is-report-view .report-personality-copy p {
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

body.is-report-view .report-personality-detail-link {
  color: #a56c20 !important;
  font-size: 12.5px !important;
}

body.is-report-view .report-analysis-menu .report-dashboard-head h3,
body.is-report-view .report-content-head h3 {
  font-size: 18px !important;
}

body.is-report-view .report-analysis-menu .report-analysis-menu-toggle {
  color: #a56c20 !important;
  font-size: 12px !important;
}

body.is-report-view .report-analysis-menu .report-primary-menu-card,
body.is-report-view .report-analysis-menu .report-primary-menu-more-card,
body.is-report-view .report-primary-menu-card,
body.is-report-view .report-primary-menu-more-card {
  border: 1px solid var(--pl-line) !important;
  background: rgba(255, 255, 255, 0.9) !important;
  color: var(--pl-ink-soft) !important;
  box-shadow: none !important;
}

body.is-report-view .report-analysis-menu .report-primary-menu-card:hover,
body.is-report-view .report-analysis-menu .report-primary-menu-card:focus-visible,
body.is-report-view .report-analysis-menu .report-primary-menu-more-card:hover,
body.is-report-view .report-analysis-menu .report-primary-menu-more-card:focus-visible {
  border-color: rgba(75, 130, 215, 0.46) !important;
  background: var(--pl-surface) !important;
}

body.is-report-view .report-primary-menu-card > span.has-report-icon,
body.is-report-view .report-analysis-menu .report-primary-menu-more-card > span.has-report-icon {
  border-color: rgba(197, 137, 56, 0.27) !important;
  background: var(--pl-gold-soft) !important;
  color: #ad7325 !important;
}

body.is-report-view .report-primary-menu-card strong,
body.is-report-view .report-analysis-menu .report-primary-menu-more-card strong {
  color: var(--pl-ink-soft) !important;
  font-size: 12px !important;
  line-height: 1.28 !important;
  text-shadow: none !important;
}

body.is-report-view .report-content-feature {
  border: 1px solid var(--pl-line-strong) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-report-view .report-content-feature:hover,
body.is-report-view .report-content-feature:focus-visible {
  border-color: rgba(75, 130, 215, 0.46) !important;
  background: #fbfdff !important;
}

body.is-report-view .report-content-topic-icon.has-report-icon {
  border-color: rgba(197, 137, 56, 0.28) !important;
  background: var(--pl-gold-soft) !important;
  color: #ad7325 !important;
}

body.is-report-view .report-content-feature-copy small,
body.is-report-view .report-content-feature-meta {
  color: var(--pl-muted) !important;
  font-size: 11.5px !important;
  text-shadow: none !important;
}

body.is-report-view .report-content-feature-copy strong {
  color: var(--pl-ink) !important;
  font-size: 16px !important;
  text-shadow: none !important;
}

/* Daily fortune */
body.is-report-view .daily-fortune-panel {
  border-color: var(--pl-line-strong) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: var(--pl-shadow) !important;
}

body.is-report-view .daily-fortune-head strong {
  font-size: 19px !important;
}

body.is-report-view .daily-fortune-head small {
  color: var(--pl-muted) !important;
  font-size: 11.5px !important;
}

body.is-report-view .daily-fortune-calendar-mark {
  color: var(--pl-ink-soft) !important;
}

body.is-report-view .daily-fortune-arc > span small,
body.is-report-view .daily-fortune-gauge-caption,
body.is-report-view .daily-fortune-gauge-card > small {
  color: var(--pl-muted) !important;
  font-size: 11px !important;
}

body.is-report-view .daily-fortune-status {
  font-size: 11px !important;
}

body.is-report-view .daily-fortune-bars {
  border-color: var(--pl-line) !important;
}

body.is-report-view .daily-fortune-bar-row:hover {
  background: rgba(75, 130, 215, 0.07) !important;
}

body.is-report-view .daily-fortune-bar-row > .daily-fortune-preview-label,
body.is-report-view .daily-fortune-more-row > .daily-fortune-preview-label {
  color: var(--pl-ink-soft) !important;
  font-size: 11.5px !important;
}

body.is-report-view .daily-fortune-bar-row > b,
body.is-report-view .daily-fortune-more-row > b {
  font-size: 12.5px !important;
}

body.is-report-view .daily-fortune-board .daily-fortune-bar-row .metric-bar,
body.is-report-view .daily-fortune-board .daily-fortune-more-row .metric-bar {
  background: #dce5ef !important;
}

body.is-report-view .daily-fortune-detail-link {
  color: var(--pl-ink-soft) !important;
  font-size: 12px !important;
}

body.is-report-view .daily-fortune-spectrum-hint {
  color: var(--pl-muted) !important;
  font-size: 10.5px !important;
}

body.is-report-view .daily-fortune-spectrum-label {
  color: var(--pl-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.3 !important;
}

body.is-report-view .daily-score-number small,
body.is-report-view .daily-score-copy span,
body.is-report-view .daily-score-copy em {
  font-size: 11px !important;
}

body.is-report-view .daily-spectrum-head span {
  color: var(--pl-muted) !important;
  font-size: 10.5px !important;
}

body.is-report-view .daily-spectrum-column b {
  font-size: 11px !important;
}

body.is-report-view .daily-spectrum-column span {
  color: var(--pl-ink-soft) !important;
  font-size: 10.5px !important;
  line-height: 1.28 !important;
}

body.is-report-view .daily-spectrum-footer {
  color: var(--pl-ink-soft) !important;
  font-size: 11.5px !important;
}

/* Light daily explanation dialog */
.daily-fortune-modal-backdrop {
  background: rgba(31, 46, 68, 0.38) !important;
  backdrop-filter: blur(4px) !important;
}

.daily-fortune-modal-dialog {
  border-color: var(--pl-line-strong) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: 0 24px 70px rgba(33, 57, 88, 0.22) !important;
}

.daily-fortune-modal-head {
  border-bottom-color: var(--pl-line) !important;
}

.daily-fortune-modal-head > span {
  color: #a56c20 !important;
  font-size: 11.5px !important;
}

.daily-fortune-modal-close {
  color: var(--pl-muted) !important;
}

.daily-fortune-modal-close:hover,
.daily-fortune-modal-close:focus-visible {
  background: var(--pl-surface-blue) !important;
  color: var(--pl-ink) !important;
}

.daily-fortune-modal-title-row h3 {
  color: var(--pl-ink) !important;
}

.daily-fortune-modal-targets {
  color: var(--pl-muted) !important;
  font-size: 12.5px !important;
}

.daily-fortune-modal-summary {
  border-top-color: var(--pl-line) !important;
  color: var(--pl-ink-soft) !important;
}

/* Detail headers and overall grades */
body.is-detail-view .domain-detail-head > span,
body.is-detail-view .annual-detail-head > span,
body.is-detail-view .annual-detail-head p,
body.is-detail-view .domain-detail-head p,
body.is-detail-view .annual-detail-intro {
  color: var(--pl-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.55 !important;
}

body.is-detail-view .personality-domain-intro .domain-score > span,
body.is-detail-view .annual-detail-intro .domain-score > span,
body.is-detail-view .domain-score > span,
body.is-detail-view .annual-score > span {
  color: var(--pl-muted) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
}

body.is-detail-view .personality-domain-intro .domain-score strong.metric-grade-value,
body.is-detail-view .annual-detail-intro .domain-score strong.metric-grade-value,
body.is-detail-view .domain-score strong.metric-grade-value,
body.is-detail-view .annual-score strong.metric-grade-value {
  width: 54px !important;
  height: 54px !important;
  min-width: 54px !important;
  max-width: 54px !important;
  min-height: 54px !important;
  max-height: 54px !important;
  border: 1px solid rgba(75, 130, 215, 0.45) !important;
  border-radius: 50% !important;
  background: var(--pl-surface-blue-strong) !important;
  color: #2459a6 !important;
  font-size: 23px !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

/* Detail radar */
body.is-detail-view .report-personality-radar .report-radar-label,
body.is-detail-view .personality-domain-detail .report-radar-label,
body.is-detail-view .topic-domain-detail .report-radar-label {
  color: #2f425e !important;
  font-size: 12.8px !important;
  font-weight: 750 !important;
  line-height: 1.22 !important;
  text-shadow: none !important;
}

body.is-detail-view .report-personality-radar .report-radar-grade,
body.is-detail-view .personality-domain-detail .report-radar-grade,
body.is-detail-view .topic-domain-detail .report-radar-grade {
  font-size: 12.3px !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

body.is-detail-view .report-personality-radar .report-radar-grade-bg,
body.is-detail-view .personality-domain-detail .report-radar-grade-bg,
body.is-detail-view .topic-domain-detail .report-radar-grade-bg {
  border-color: rgba(75, 130, 215, 0.35) !important;
  background: #e8f1fd !important;
  box-shadow: none !important;
}

/* Native and annual metric lists */
body.is-detail-view .domain-metric-overview-head strong,
body.is-detail-view .annual-metric-overview-head strong {
  font-size: 18px !important;
}

body.is-detail-view .domain-metric-overview-head span,
body.is-detail-view .annual-metric-overview-head span {
  color: var(--pl-muted) !important;
  font-size: 11.5px !important;
}

body.is-detail-view .domain-metric-overview-row strong,
body.is-detail-view .metric-card > header strong,
body.is-detail-view .annual-group-body .metric-card > header strong {
  color: var(--pl-ink) !important;
  font-size: 13px !important;
  line-height: 1.35 !important;
  text-shadow: none !important;
}

body.is-detail-view .domain-metric-overview-row .metric-level-badge,
body.is-detail-view .metric-card > header .metric-grade-value,
body.is-detail-view .annual-group-body .metric-card > header .metric-grade-value {
  font-size: 12px !important;
}

body.is-detail-view .domain-metric-overview-explanation p,
body.is-detail-view .domain-metric-overview-explanation strong,
body.is-detail-view .metric-card p,
body.is-detail-view .annual-group-body .metric-card p,
body.is-detail-view .metric-detail-disclosure > .metric-grid .metric-card p {
  color: var(--pl-ink-soft) !important;
  font-size: 13px !important;
  line-height: 1.76 !important;
  text-shadow: none !important;
}

body.is-detail-view .domain-metric-overview-explanation p strong,
body.is-detail-view .metric-card p strong,
body.is-detail-view .annual-group-body .metric-card p strong {
  color: var(--pl-ink) !important;
}

body.is-detail-view .domain-metric-overview-rest-toggle,
body.is-detail-view .domain-metric-overview-rest-close {
  color: var(--pl-ink-soft) !important;
  font-size: 13px !important;
}

body.is-detail-view .annual-group-overview-head strong,
body.is-detail-view .annual-group-head > strong {
  color: var(--pl-ink) !important;
  font-size: 14px !important;
  text-shadow: none !important;
}

body.is-detail-view .annual-group-overview-head span,
body.is-detail-view .annual-group-head > span,
body.is-detail-view .annual-group-head > span em,
body.is-detail-view .annual-group-head .annual-score-status {
  color: var(--pl-muted) !important;
  font-size: 11.5px !important;
  text-shadow: none !important;
}

/* Timing */
body.is-detail-view .timing-decade-row > strong,
body.is-detail-view .timing-decade-cell > b,
body.is-detail-view .timing-decade-cell > em,
body.is-detail-view .timing-year-pills span {
  font-size: 12.5px !important;
}

body.is-detail-view .timing-decade-board > p,
body.is-detail-view .timing-year-board > p {
  color: var(--pl-muted) !important;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}

/* Manse and evidence */
body.is-detail-view .manse-row-label,
body.is-detail-view .manse-pillar-head em {
  font-size: 11.5px !important;
}

body.is-detail-view .manse-element-badge {
  font-size: 11px !important;
  font-weight: 850 !important;
  text-shadow: none !important;
}

body.is-detail-view .manse-element-badge.is-wood {
  color: #286956 !important;
}

body.is-detail-view .manse-element-badge.is-fire {
  color: #a64f3f !important;
}

body.is-detail-view .manse-element-badge.is-earth {
  color: #79581f !important;
}

body.is-detail-view .manse-element-badge.is-metal {
  color: #555d68 !important;
}

body.is-detail-view .manse-element-badge.is-water {
  color: #2d527e !important;
}

body.is-detail-view .manse-hidden-chip em {
  color: var(--pl-muted) !important;
  font-size: 10.5px !important;
}

body.is-detail-view .contextual-evidence-group > summary strong {
  color: var(--pl-ink) !important;
  font-size: 13.5px !important;
}

body.is-detail-view .contextual-evidence-group > summary small,
body.is-detail-view .contextual-evidence-group > summary em {
  color: var(--pl-muted) !important;
  font-size: 11.5px !important;
}

body.is-detail-view .contextual-evidence-summary-icon {
  border-color: rgba(197, 137, 56, 0.32) !important;
  background: var(--pl-gold-soft) !important;
  color: #a56c20 !important;
}

body.is-detail-view .contextual-evidence-card p,
body.is-detail-view .contextual-origin-detail {
  color: var(--pl-ink-soft) !important;
  font-size: 13px !important;
  line-height: 1.72 !important;
}

/* Topic content detail */
body.is-detail-view .report-content-topic-hero > span,
body.is-detail-view .report-content-personal-result > header small,
body.is-detail-view .report-content-related-button small {
  font-size: 11.5px !important;
}

body.is-report-view .report-content-new-badge,
body.is-detail-view .personality-related-content em,
body.is-detail-view .report-content-related-button em {
  font-size: 10px !important;
}

body.is-report-view .bottom-nav .bottom-nav-label > span,
body.is-detail-view .bottom-nav .bottom-nav-label > span {
  font-size: 11px !important;
}

body.is-detail-view .report-content-personal-result > header b,
body.is-detail-view .report-content-topic-metric header b {
  font-size: 12px !important;
}

/* Share sheet */
.share-sheet-backdrop {
  background: rgba(31, 46, 68, 0.38) !important;
  backdrop-filter: blur(4px) !important;
}

.share-sheet-panel {
  border-color: var(--pl-line-strong) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
  box-shadow: 0 -18px 48px rgba(33, 57, 88, 0.18) !important;
}

.share-sheet-header {
  border-bottom-color: var(--pl-line) !important;
}

.share-sheet-header h2,
.share-sheet-option-copy strong {
  color: var(--pl-ink) !important;
}

.share-sheet-option-copy small {
  color: var(--pl-muted) !important;
  font-size: 12px !important;
}

.share-sheet-option {
  border-color: var(--pl-line) !important;
  background: #f9fbfd !important;
  color: var(--pl-ink) !important;
}

.share-sheet-option-icon {
  border-color: rgba(197, 137, 56, 0.3) !important;
  background: var(--pl-gold-soft) !important;
  color: #a56c20 !important;
}

@media (max-width: 380px) {
  body.is-report-view .screen-report,
  body.is-detail-view .screen-detail {
    padding-inline: 16px !important;
  }

  body.is-report-view .report-appbar,
  body.is-detail-view .report-appbar,
  body.is-detail-view .report-appbar.light {
    margin-inline: -16px !important;
    padding-inline: 16px !important;
  }

  body.is-report-view .report-primary-menu-card strong,
  body.is-report-view .report-analysis-menu .report-primary-menu-more-card strong {
    font-size: 11.5px !important;
  }

  body.is-report-view .daily-fortune-bar-row,
  body.is-report-view .daily-fortune-more-row {
    grid-template-columns: 17px 68px minmax(0, 1fr) 28px !important;
    gap: 6px !important;
  }

  body.is-report-view .daily-fortune-bar-row > .daily-fortune-preview-label,
  body.is-report-view .daily-fortune-more-row > .daily-fortune-preview-label {
    font-size: 11px !important;
  }

  body.is-detail-view .report-personality-radar .report-radar-label,
  body.is-detail-view .personality-domain-detail .report-radar-label,
  body.is-detail-view .topic-domain-detail .report-radar-label {
    font-size: 12px !important;
  }

  body.is-detail-view .domain-metric-overview-row {
    grid-template-columns: 32px minmax(0, 94px) minmax(56px, 1fr) 40px 14px !important;
    gap: 6px !important;
    padding-inline: 10px !important;
  }

  body.is-detail-view .domain-metric-overview-explanation {
    padding-left: 48px !important;
  }
}

/*
 * Product light color system v2
 * Keep all report data untouched. This layer only normalizes semantic color
 * roles after the legacy dark-theme rules and earlier light presentation pass.
 */
:root {
  --pl-canvas-edge: #dfe8f1;
  --pl-canvas: #edf3f8;
  --pl-surface: #ffffff;
  --pl-surface-soft: #f7f9fc;
  --pl-surface-blue: #edf4fd;
  --pl-surface-blue-strong: #dfeafa;
  --pl-ink: #17263f;
  --pl-ink-soft: #344963;
  --pl-muted: #5b6d84;
  --pl-faint: #7e8da1;
  --pl-line: #d0dbe7;
  --pl-line-strong: #bdccdc;
  --pl-blue: #4f83c7;
  --pl-blue-strong: #2e64aa;
  --pl-blue-soft: #e6effa;
  --pl-green: #3a8063;
  --pl-orange: #ad5e37;
  --pl-gold: #8c5c1f;
  --pl-gold-icon: #b87b2d;
  --pl-gold-soft: #f8eddc;
  --pl-state-strong: #3f75b4;
  --pl-state-steady: #3a8063;
  --pl-state-caution: #ad5e37;

  /* Neutralize dark-theme tokens that still reach late-rendered components. */
  --product-gold: var(--pl-gold-icon);
  --product-gold-bright: var(--pl-gold);
  --product-gold-soft: rgba(184, 123, 45, 0.68);
  --product-line: var(--pl-line);
  --product-line-soft: rgba(96, 115, 139, 0.12);
  --product-surface: var(--pl-surface);
  --product-surface-deep: var(--pl-surface-soft);
  --product-surface-soft: rgba(247, 249, 252, 0.92);
  --product-text: var(--pl-ink);
  --product-copy: var(--pl-ink-soft);
  --product-muted: var(--pl-muted);
}

html,
body {
  background: var(--pl-canvas-edge) !important;
}

.site-stage,
.screen-home,
.screen-loading,
body.is-report-view .screen-report,
body.is-detail-view .screen-detail {
  color: var(--pl-ink) !important;
}

.site-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 190px),
    var(--pl-canvas) !important;
}

body.is-report-view .report-root {
  --report-reference-gold: var(--pl-gold-icon);
  --report-reference-gold-bright: var(--pl-gold);
  --report-reference-gold-border: rgba(184, 123, 45, 0.28);
  --report-reference-canvas: var(--pl-canvas);
  --report-reference-stage: var(--pl-canvas);
  --report-reference-surface: var(--pl-surface);
  --report-reference-surface-raised: var(--pl-surface-soft);
  --report-reference-text: var(--pl-ink);
  --report-reference-body: var(--pl-ink-soft);
  --report-reference-muted: var(--pl-muted);
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline-color: rgba(46, 100, 170, 0.5);
}

/* Common text hierarchy */
.input-card h2,
.v2-form .field > span,
.v2-form .field > label,
.loading-report-sheet strong,
.loading-panel header strong,
body.is-report-view .report-personality-copy h2,
body.is-report-view .daily-fortune-head strong,
body.is-report-view .report-dashboard-head h3,
body.is-report-view .report-content-head h3,
body.is-detail-view .domain-detail-head h2,
body.is-detail-view .annual-detail-head h2,
body.is-detail-view .domain-metric-overview-head strong,
body.is-detail-view .annual-metric-overview-head strong,
body.is-detail-view .annual-group-overview-head strong,
body.is-detail-view .annual-group-head > strong,
body.is-detail-view .timing-decade-board > h2,
body.is-detail-view .timing-year-board > h2,
body.is-detail-view .contextual-evidence-group > summary strong,
body.is-detail-view .contextual-evidence-card h3,
body.is-detail-view .contextual-evidence-card strong,
body.is-detail-view .report-content-topic-hero h2,
body.is-detail-view .report-content-personal-result > header b,
.daily-fortune-modal-title-row h3,
.share-sheet-header h2,
.share-sheet-option-copy strong {
  color: var(--pl-ink) !important;
}

.loading-intro p,
.loading-auto-note,
.input-trust-note,
body.is-report-view .report-personality-type-label,
body.is-report-view .daily-fortune-head small,
body.is-report-view .daily-fortune-spectrum-hint,
body.is-report-view .daily-fortune-spectrum-label,
body.is-detail-view .domain-detail-head > span,
body.is-detail-view .annual-detail-head > span,
body.is-detail-view .annual-detail-head p,
body.is-detail-view .domain-detail-head p,
body.is-detail-view .annual-detail-intro,
body.is-detail-view .domain-metric-overview-head span,
body.is-detail-view .annual-metric-overview-head span,
body.is-detail-view .annual-group-overview-head span,
body.is-detail-view .annual-group-head > span,
body.is-detail-view .contextual-evidence-group > summary small,
body.is-detail-view .contextual-evidence-group > summary em,
.daily-fortune-modal-targets,
.share-sheet-option-copy small {
  color: var(--pl-muted) !important;
}

.loading-panel p,
body.is-report-view .report-personality-copy p,
body.is-report-view .report-primary-menu-card strong,
body.is-report-view .daily-fortune-bar-row > .daily-fortune-preview-label,
body.is-report-view .daily-fortune-more-row > .daily-fortune-preview-label,
body.is-detail-view .domain-metric-overview-explanation p,
body.is-detail-view .metric-card p,
body.is-detail-view .annual-group-body .metric-card p,
body.is-detail-view .contextual-evidence-card p,
body.is-detail-view .contextual-origin-detail,
body.is-detail-view .contextual-keyword-group,
body.is-detail-view .report-content-topic-hero p,
body.is-detail-view .report-content-personal-result p,
.daily-fortune-modal-summary {
  color: var(--pl-ink-soft) !important;
}

/* Gold is dark enough for small text; icons use the livelier companion tone. */
.input-trust-note a,
body.is-report-view .report-personality-detail-link,
body.is-report-view .report-analysis-menu .report-analysis-menu-toggle,
body.is-detail-view .report-content-topic-hero > span,
body.is-detail-view .report-content-personal-result > header small,
body.is-detail-view .contextual-keyword-group b,
body.is-detail-view .manse-row-label,
body.is-detail-view .manse-pillar-head em,
.daily-fortune-modal-head > span {
  color: var(--pl-gold) !important;
}

.screen-home .eyebrow,
.loading-intro > span {
  color: var(--pl-blue-strong) !important;
}

body.is-report-view .report-primary-menu-card > span.has-report-icon,
body.is-report-view .report-analysis-menu .report-primary-menu-more-card > span.has-report-icon,
body.is-report-view .report-content-topic-icon.has-report-icon,
body.is-detail-view .contextual-evidence-summary-icon,
.share-sheet-option-icon,
.daily-fortune-calendar-mark {
  border-color: rgba(184, 123, 45, 0.28) !important;
  background: var(--pl-gold-soft) !important;
  color: var(--pl-gold-icon) !important;
}

body.is-report-view .report-content-new-badge,
body.is-detail-view .personality-related-content em,
body.is-detail-view .report-content-related-button em {
  border-color: rgba(154, 103, 37, 0.48) !important;
  background: var(--pl-gold-soft) !important;
  color: var(--pl-gold) !important;
}

/* Consistent surface and divider family */
.input-card,
.v2-form,
.loading-report-sheet,
.loading-panel,
body.is-report-view .daily-fortune-panel,
body.is-report-view .report-content-feature,
body.is-detail-view .domain-metric-overview-list,
body.is-detail-view .domain-metric-overview-rest-panel,
body.is-detail-view .annual-metric-overview,
body.is-detail-view .annual-group-overview,
body.is-detail-view .timing-decade-board,
body.is-detail-view .timing-year-board,
body.is-detail-view .contextual-palja-basis,
body.is-detail-view .manse-basis-card,
body.is-detail-view .contextual-evidence-group,
body.is-detail-view .report-content-topic-hero,
body.is-detail-view .report-content-personal-result,
body.is-detail-view .report-content-topic-metrics,
body.is-detail-view .report-content-related-button,
.daily-fortune-modal-dialog,
.share-sheet-panel {
  border-color: var(--pl-line-strong) !important;
  background-color: var(--pl-surface) !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .domain-metric-overview-explanation,
body.is-detail-view .annual-detail .domain-metric-overview-explanation,
body.is-detail-view .annual-group-body,
body.is-detail-view .contextual-evidence-group-body,
body.is-detail-view .contextual-evidence-group.is-secondary .contextual-evidence-stack,
body.is-detail-view .report-content-personal-result > header,
.share-sheet-option {
  background: var(--pl-surface-soft) !important;
}

/* One grade system for badges, bars, radar labels, and annual summaries. */
body .metric-grade-a-plus {
  --grade-bg: #dbeaff !important;
  --grade-ink: #245b9f !important;
  --grade-border: #a8c5eb !important;
  --grade-start: #4f86c9 !important;
  --grade-end: #75a6dc !important;
}

body .metric-grade-a {
  --grade-bg: #e1edfb !important;
  --grade-ink: #2b63a7 !important;
  --grade-border: #b2cae9 !important;
  --grade-start: #5b8fcd !important;
  --grade-end: #83afe0 !important;
}

body .metric-grade-a-minus {
  --grade-bg: #e7f0fb !important;
  --grade-ink: #3269a8 !important;
  --grade-border: #bccfe6 !important;
  --grade-start: #6798d1 !important;
  --grade-end: #8bb5df !important;
}

body .metric-grade-b-plus {
  --grade-bg: #ebf3fc !important;
  --grade-ink: #386ea5 !important;
  --grade-border: #c4d5e7 !important;
  --grade-start: #75a3d2 !important;
  --grade-end: #97b9dc !important;
}

body .metric-grade-b,
body .metric-grade-b-minus {
  --grade-bg: #edf5ff !important;
  --grade-ink: #35699f !important;
  --grade-border: #c9d8e8 !important;
  --grade-start: #7ba5ca !important;
  --grade-end: #9bbbd7 !important;
}

body .metric-grade-c-plus {
  --grade-bg: #f1f4f7 !important;
  --grade-ink: #596879 !important;
  --grade-border: #d3dbe4 !important;
  --grade-start: #929eaa !important;
  --grade-end: #aab4be !important;
}

body .metric-grade-c {
  --grade-bg: #f3f5f7 !important;
  --grade-ink: #5f6d7b !important;
  --grade-border: #d8dee4 !important;
  --grade-start: #9ba5ae !important;
  --grade-end: #b1b9c1 !important;
}

body .metric-grade-c-minus {
  --grade-bg: #fff2e9 !important;
  --grade-ink: #9f5a35 !important;
  --grade-border: #e9c7b2 !important;
  --grade-start: #c7845b !important;
  --grade-end: #dba17d !important;
}

body .metric-grade-d-plus {
  --grade-bg: #ffede3 !important;
  --grade-ink: #a6532f !important;
  --grade-border: #e8bea7 !important;
  --grade-start: #bd734b !important;
  --grade-end: #d4936d !important;
}

body .metric-grade-d {
  --grade-bg: #ffeadf !important;
  --grade-ink: #9c4c2c !important;
  --grade-border: #e3b39a !important;
  --grade-start: #b66a42 !important;
  --grade-end: #ce8961 !important;
}

body .metric-grade-d-minus {
  --grade-bg: #ffe7dc !important;
  --grade-ink: #934629 !important;
  --grade-border: #dda98f !important;
  --grade-start: #ae613c !important;
  --grade-end: #c77e57 !important;
}

body.is-report-view .metric-level-badge[class*="metric-grade-"],
body.is-report-view .metric-grade-value[class*="metric-grade-"],
body.is-detail-view .metric-level-badge[class*="metric-grade-"],
body.is-detail-view .metric-grade-value[class*="metric-grade-"] {
  border-color: var(--grade-border) !important;
  background: var(--grade-bg) !important;
  color: var(--grade-ink) !important;
}

body .metric-bar[class*="metric-grade-"] {
  background: #e2e9f1 !important;
}

body .metric-bar[class*="metric-grade-"] i,
body .domain-metric-overview-bar[class*="metric-grade-"] i {
  background: var(--grade-start) !important;
  box-shadow: none !important;
}

body .report-radar-caption[class*="metric-grade-"] .report-radar-grade-bg {
  border-color: var(--grade-border) !important;
  background: var(--grade-bg) !important;
  fill: var(--grade-bg) !important;
  stroke: var(--grade-border) !important;
}

body .report-radar-caption[class*="metric-grade-"] .report-radar-grade {
  color: var(--grade-ink) !important;
  fill: var(--grade-ink) !important;
}

body.is-detail-view .report-radar-caption[class*="metric-grade-"] .report-radar-grade-bg {
  border-color: var(--grade-border) !important;
  background: var(--grade-bg) !important;
  fill: var(--grade-bg) !important;
  stroke: var(--grade-border) !important;
}

body.is-detail-view .report-radar-caption[class*="metric-grade-"] .report-radar-grade {
  color: var(--grade-ink) !important;
  fill: var(--grade-ink) !important;
}

body.is-detail-view .report-personality-radar .report-radar-label,
body.is-detail-view .personality-domain-detail .report-radar-label,
body.is-detail-view .topic-domain-detail .report-radar-label {
  color: var(--pl-ink-soft) !important;
  fill: var(--pl-ink-soft) !important;
}

body.is-detail-view .report-personality-radar .report-radar-grid polygon,
body.is-detail-view .report-personality-radar .report-radar-grid line,
body.is-detail-view .personality-domain-detail .report-radar-grid polygon,
body.is-detail-view .personality-domain-detail .report-radar-grid line,
body.is-detail-view .topic-domain-detail .report-radar-grid polygon,
body.is-detail-view .topic-domain-detail .report-radar-grid line {
  stroke: var(--pl-line-strong) !important;
}

body.is-detail-view .personality-domain-detail .report-radar-area,
body.is-detail-view .topic-domain-detail .report-radar-area {
  fill: rgba(79, 131, 199, 0.18) !important;
}

body.is-detail-view .personality-domain-detail .report-radar-stroke,
body.is-detail-view .topic-domain-detail .report-radar-stroke {
  stroke: #6f9fd3 !important;
}

body.is-detail-view .personality-domain-detail .report-radar-point,
body.is-detail-view .topic-domain-detail .report-radar-point {
  fill: #6f9fd3 !important;
  stroke: var(--pl-surface) !important;
}

/* Daily fortune keeps the established three-band meaning everywhere. */
.daily-score-strong {
  --daily-score-color: #5688c6 !important;
  --daily-score-ink: var(--pl-state-strong) !important;
}

.daily-score-steady {
  --daily-score-color: #5f9d82 !important;
  --daily-score-ink: var(--pl-state-steady) !important;
}

.daily-score-caution {
  --daily-score-color: #c77a4d !important;
  --daily-score-ink: var(--pl-state-caution) !important;
}

body.is-report-view .daily-fortune-board .daily-fortune-bar-row .metric-bar,
body.is-report-view .daily-fortune-board .daily-fortune-more-row .metric-bar {
  background: #dfe7f0 !important;
}

body.is-report-view .daily-score-banner {
  background: var(--pl-surface-blue) !important;
}

body.is-report-view .daily-spectrum-footer,
body.is-detail-view .domain-metric-overview-rest-close {
  background: var(--pl-surface-soft) !important;
  color: var(--pl-ink-soft) !important;
}

/* Timing preserves meaning with calm blue and warm orange, not alarm red. */
body.is-detail-view .timing-decade-cell.is-good {
  border-color: #c7d8eb !important;
  background: var(--pl-surface-blue) !important;
}

body.is-detail-view .timing-decade-cell.is-good strong,
body.is-detail-view .timing-decade-cell.is-good span,
body.is-detail-view .timing-decade-cell.is-good b,
body.is-detail-view .timing-year-pills b {
  color: var(--pl-blue-strong) !important;
}

body.is-detail-view .timing-decade-cell.is-caution {
  border-color: #ead0c0 !important;
  background: #fff3eb !important;
}

body.is-detail-view .timing-decade-cell.is-caution strong,
body.is-detail-view .timing-decade-cell.is-caution span,
body.is-detail-view .timing-decade-cell.is-caution b,
body.is-detail-view .is-caution .timing-year-pills b {
  color: var(--pl-orange) !important;
}

body.is-detail-view .detail-root .timing-decade-cell.is-caution > b,
body.is-detail-view .detail-root .timing-decade-cell.is-caution > em {
  border-color: #e8bea7 !important;
  background: #ffede3 !important;
  color: #a6532f !important;
}

/* Five-element colors remain distinct because they carry information. */
body.is-detail-view .manse-element-badge.is-wood {
  color: #286956 !important;
}

body.is-detail-view .manse-element-badge.is-fire {
  color: #9f4f41 !important;
}

body.is-detail-view .manse-element-badge.is-earth {
  color: #765722 !important;
}

body.is-detail-view .manse-element-badge.is-metal {
  color: #52606d !important;
}

body.is-detail-view .manse-element-badge.is-water {
  color: #315d8b !important;
}

body.is-detail-view .manse-token {
  text-shadow: none !important;
}

body.is-detail-view .manse-token.is-wood,
body.is-detail-view .manse-hidden-chip.is-wood b {
  color: #286956 !important;
}

body.is-detail-view .manse-token.is-fire,
body.is-detail-view .manse-hidden-chip.is-fire b {
  color: #9f4f41 !important;
}

body.is-detail-view .manse-token.is-earth,
body.is-detail-view .manse-hidden-chip.is-earth b {
  color: #765722 !important;
}

body.is-detail-view .manse-token.is-metal,
body.is-detail-view .manse-hidden-chip.is-metal b {
  color: #52606d !important;
}

body.is-detail-view .manse-token.is-water,
body.is-detail-view .manse-hidden-chip.is-water b {
  color: #315d8b !important;
}

/*
 * UI completion audit v1
 * Final visual hierarchy for the light product shell. This layer only changes
 * presentation: report values, grades, descriptions, and engine data stay intact.
 */
:root {
  --pl-canvas-edge: #dfe7ef;
  --pl-canvas: #eef3f7;
  --pl-surface: #ffffff;
  --pl-surface-soft: #f8fafc;
  --pl-surface-blue: #edf4fb;
  --pl-surface-blue-strong: #e0ebf8;
  --pl-ink: #1b2a40;
  --pl-ink-soft: #42546b;
  --pl-muted: #586b81;
  --pl-faint: #7f8da0;
  --pl-line: #d5dfe8;
  --pl-line-strong: #c6d2de;
  --pl-blue: #4f82bf;
  --pl-blue-strong: #2e64aa;
  --pl-green: #36785e;
  --pl-orange: #a95b35;
  --pl-gold: #875a21;
  --pl-gold-icon: #b4772c;
  --pl-gold-soft: #f8eddd;
  --pl-shadow: 0 12px 30px rgba(41, 65, 93, 0.08);
  --pl-shadow-soft: 0 7px 20px rgba(41, 65, 93, 0.055);
}

html,
body {
  background: var(--pl-canvas-edge) !important;
}

.site-stage {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.68), transparent 184px),
    var(--pl-canvas) !important;
}

/* Input screen */
.input-card {
  border-color: var(--pl-line) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

.v2-form .field input,
.v2-form .field select {
  border-color: var(--pl-line) !important;
  background: #fafcfe !important;
  color: var(--pl-ink) !important;
}

.v2-form .segmented {
  border-color: var(--pl-line) !important;
  background: #f4f7fa !important;
}

.v2-form .segmented span {
  color: var(--pl-muted) !important;
}

.v2-form .segmented input:checked + span {
  border-color: #b9cee5 !important;
  background: var(--pl-surface-blue) !important;
  color: var(--pl-blue-strong) !important;
  box-shadow: 0 3px 10px rgba(46, 100, 170, 0.08) !important;
}

.gold-button {
  min-height: 52px !important;
  border: 1px solid rgba(46, 100, 170, 0.45) !important;
  background: linear-gradient(135deg, #3f73b2, #5b8bc5) !important;
  color: #ffffff !important;
  box-shadow: 0 11px 24px rgba(46, 100, 170, 0.2) !important;
}

.gold-button:hover,
.gold-button:focus-visible {
  background: linear-gradient(135deg, #386aa6, #5180bb) !important;
}

.input-trust-note,
.blog-entry-button {
  color: var(--pl-muted) !important;
}

/* Loading screen */
.loading-report-sheet {
  border-color: var(--pl-line) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

.loading-report-sheet:nth-child(1) {
  opacity: 0.72;
}

.loading-report-sheet:nth-child(2) {
  opacity: 0.84;
}

.loading-report-sheet:nth-child(4) {
  opacity: 0.66;
}

.loading-report-icon {
  border: 1px solid rgba(180, 119, 44, 0.22);
  background: var(--pl-gold-soft) !important;
  color: var(--pl-gold) !important;
}

.loading-report-sheet > b {
  color: var(--pl-muted) !important;
}

.loading-bar {
  background: #dce5ee !important;
}

/* App bar and bottom navigation */
body.is-report-view .report-appbar,
body.is-detail-view .report-appbar,
body.is-detail-view .report-appbar.light {
  min-height: 58px !important;
  margin-bottom: 17px !important;
  border-bottom-color: rgba(95, 113, 135, 0.2) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}

body.is-report-view .report-appbar strong,
body.is-detail-view .report-appbar strong {
  color: var(--pl-ink) !important;
  font-size: 15.5px !important;
}

body.is-report-view .back-button,
body.is-detail-view .back-button,
body.is-report-view .share-button,
body.is-detail-view .share-button {
  min-height: 40px !important;
  color: var(--pl-ink-soft) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
}

body.is-report-view .back-button svg,
body.is-detail-view .back-button svg,
body.is-report-view .share-button svg,
body.is-detail-view .share-button svg {
  width: 19px !important;
  height: 19px !important;
}

body.is-report-view .bottom-nav,
body.is-detail-view .bottom-nav {
  min-height: 72px !important;
  border-radius: 0 !important;
  border-top-color: var(--pl-line) !important;
  background: rgba(255, 255, 255, 0.97) !important;
  box-shadow: 0 -8px 24px rgba(39, 61, 88, 0.055) !important;
}

body.is-report-view .bottom-nav button,
body.is-detail-view .bottom-nav button {
  min-height: 54px !important;
  color: var(--pl-muted) !important;
  font-size: 10.5px !important;
  line-height: 1.12 !important;
}

body.is-report-view .bottom-nav button svg,
body.is-detail-view .bottom-nav button svg {
  width: 23px !important;
  height: 23px !important;
  stroke-width: 2 !important;
}

body.is-report-view .bottom-nav button.is-active,
body.is-detail-view .bottom-nav button.is-active {
  color: var(--pl-blue-strong) !important;
}

/* Result home */
body.is-report-view .report-personality-dashboard {
  min-height: 126px !important;
  grid-template-columns: minmax(0, 1fr) 36px !important;
  align-items: center !important;
  gap: 14px !important;
  padding: 17px !important;
  border: 1px solid #c9d8e7 !important;
  border-radius: 8px !important;
  background: #e4eef8 !important;
  box-shadow: 0 5px 14px rgba(52, 80, 111, 0.045) !important;
}

body.is-report-view .report-personality-type-label {
  color: var(--pl-gold) !important;
  font-size: 11px !important;
}

body.is-report-view .report-personality-copy h2 {
  font-size: 19px !important;
  line-height: 1.28 !important;
}

body.is-report-view .report-personality-copy p {
  display: -webkit-box !important;
  max-width: 100% !important;
  margin-top: 5px !important;
  overflow: hidden !important;
  color: var(--pl-ink-soft) !important;
  font-size: 11.5px !important;
  line-height: 1.48 !important;
  white-space: normal !important;
  text-overflow: clip !important;
  -webkit-box-orient: vertical !important;
  -webkit-line-clamp: 2 !important;
}

body.is-report-view .report-personality-detail-link {
  min-height: 28px !important;
  margin-top: 8px !important;
  color: var(--pl-gold) !important;
  font-size: 11.5px !important;
}

body.is-report-view .report-personality-type-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border: 1px solid #c9d9e8;
  border-radius: 50%;
  color: var(--pl-blue);
}

body.is-report-view .report-personality-type-icon-svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

/*
 * Loading frame cleanup v1
 * Keep the four report stages inside one quiet surface. Progress state is
 * expressed by the row background and status text rather than stacked borders.
 */
.screen-loading .loading-report-stack {
  position: relative;
  width: min(100%, 286px);
  height: auto;
  display: grid;
  gap: 0;
  margin: 34px auto 18px;
  overflow: hidden;
  border: 1px solid #d3dee8;
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 6px 18px rgba(41, 65, 93, 0.045);
  animation: loadingGroupEnter 420ms cubic-bezier(0.22, 0.72, 0.22, 1) both;
}

.screen-loading .loading-report-sheet,
.screen-loading .loading-report-sheet:nth-child(1),
.screen-loading .loading-report-sheet:nth-child(2),
.screen-loading .loading-report-sheet:nth-child(3),
.screen-loading .loading-report-sheet:nth-child(4) {
  position: relative;
  top: auto !important;
  left: auto;
  z-index: 1;
  width: 100%;
  min-height: 68px;
  padding: 11px 12px;
  border: 0 !important;
  border-radius: 0;
  background: #ffffff !important;
  box-shadow: none !important;
  opacity: 1 !important;
  overflow: hidden;
  transform: none !important;
  transition: background-color 220ms ease, color 220ms ease;
}

.screen-loading .loading-report-sheet + .loading-report-sheet {
  border-top: 1px solid #e1e8ef !important;
}

.screen-loading .loading-report-sheet.is-current {
  z-index: 2;
  background: #f0f6fc !important;
}

.screen-loading .loading-report-sheet::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(
    105deg,
    transparent 12%,
    rgba(90, 139, 190, 0.04) 37%,
    rgba(90, 139, 190, 0.13) 50%,
    rgba(90, 139, 190, 0.04) 63%,
    transparent 88%
  );
  transform: translateX(-118%);
}

.screen-loading .loading-report-sheet > * {
  position: relative;
  z-index: 1;
}

.screen-loading .loading-report-sheet.is-current::after {
  opacity: 1;
  animation: loadingCurrentSweep 2.2s ease-in-out infinite;
}

.screen-loading .loading-report-sheet.is-current .loading-report-icon {
  animation: loadingIconBreath 1.65s ease-in-out infinite;
}

.screen-loading .loading-report-sheet.is-complete {
  background: #ffffff !important;
}

.screen-loading .loading-report-sheet.is-complete .loading-report-icon {
  animation: loadingCompleteSettle 320ms cubic-bezier(0.2, 0.78, 0.2, 1) both;
}

.screen-loading .loading-panel {
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.screen-loading .loading-bar i {
  box-shadow: 0 0 8px rgba(79, 130, 191, 0.3) !important;
  animation: loadingProgressGlow 1.8s ease-in-out infinite;
}

@keyframes loadingGroupEnter {
  from {
    opacity: 0;
    transform: translateY(8px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes loadingCurrentSweep {
  0%,
  16% {
    transform: translateX(-118%);
  }

  72%,
  100% {
    transform: translateX(118%);
  }
}

@keyframes loadingIconBreath {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(79, 130, 191, 0);
    transform: scale(1);
  }

  50% {
    box-shadow: 0 0 0 5px rgba(79, 130, 191, 0.09);
    transform: scale(1.035);
  }
}

@keyframes loadingCompleteSettle {
  from {
    box-shadow: 0 0 0 6px rgba(54, 120, 94, 0.09);
    transform: scale(1.09);
  }

  to {
    box-shadow: 0 0 0 0 rgba(54, 120, 94, 0);
    transform: scale(1);
  }
}

@keyframes loadingProgressGlow {
  0%,
  100% {
    filter: brightness(1);
    box-shadow: 0 0 5px rgba(79, 130, 191, 0.18);
  }

  50% {
    filter: brightness(1.06);
    box-shadow: 0 0 9px rgba(79, 130, 191, 0.34);
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-loading .loading-report-stack,
  .screen-loading .loading-report-sheet.is-current::after,
  .screen-loading .loading-report-sheet.is-current .loading-report-icon,
  .screen-loading .loading-report-sheet.is-complete .loading-report-icon,
  .screen-loading .loading-bar i {
    animation: none !important;
  }
}

body.is-report-view .daily-fortune-panel {
  border-color: var(--pl-line) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-report-view .daily-fortune-head strong {
  color: var(--pl-ink) !important;
  font-size: 19px !important;
}

body.is-report-view .daily-fortune-head small {
  color: var(--pl-muted) !important;
  font-size: 10.5px !important;
}

body.is-report-view .daily-fortune-calendar-mark {
  border-color: rgba(180, 119, 44, 0.25) !important;
  background: var(--pl-gold-soft) !important;
  color: var(--pl-gold-icon) !important;
}

body.is-report-view .daily-score-number {
  border-color: #c4d6e9 !important;
  box-shadow: 0 7px 18px rgba(46, 100, 170, 0.1) !important;
}

body.is-report-view .daily-spectrum-head strong {
  color: var(--pl-ink) !important;
  font-size: 12.5px !important;
}

body.is-report-view .daily-spectrum-head span {
  color: var(--pl-muted) !important;
  font-size: 9.5px !important;
}

body.is-report-view .daily-spectrum-column b {
  font-size: 10.5px !important;
}

body.is-report-view .daily-spectrum-column span {
  color: var(--pl-ink-soft) !important;
  font-size: 9.5px !important;
}

body.is-report-view .daily-spectrum-footer {
  min-height: 46px !important;
  color: var(--pl-ink-soft) !important;
  font-size: 11.5px !important;
}

body.is-report-view .report-dashboard-head h3,
body.is-report-view .report-content-head h3 {
  color: var(--pl-ink) !important;
  font-size: 17px !important;
}

body.is-report-view .report-analysis-menu .report-dashboard-head h3,
body.is-report-view .report-content-board .report-content-head h3 {
  font-family: inherit !important;
  font-size: 18px !important;
  font-weight: 760 !important;
  line-height: 1.3 !important;
  letter-spacing: 0 !important;
}

body.is-report-view .report-analysis-menu-toggle {
  min-height: 40px !important;
  color: var(--pl-gold) !important;
  font-size: 11.5px !important;
}

body.is-report-view .report-primary-menu-grid,
body.is-report-view .report-primary-menu-more-grid {
  gap: 7px !important;
}

body.is-report-view .report-primary-menu-card {
  min-height: 79px !important;
  border-color: var(--pl-line) !important;
  background: rgba(255, 255, 255, 0.86) !important;
}

body.is-report-view .report-primary-menu-card:hover,
body.is-report-view .report-primary-menu-card:focus-visible {
  border-color: #b8cce2 !important;
  background: var(--pl-surface-blue) !important;
}

body.is-report-view .report-primary-menu-card .has-report-icon,
body.is-report-view .report-category-icon {
  width: 29px !important;
  height: 29px !important;
  color: var(--pl-gold-icon) !important;
}

body.is-report-view .report-primary-menu-card strong {
  color: var(--pl-ink-soft) !important;
  font-size: 11.5px !important;
  line-height: 1.28 !important;
}

body.is-report-view .report-content-feature {
  border-color: var(--pl-line) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-report-view .report-content-feature-meta,
body.is-report-view .report-content-feature-copy small {
  color: var(--pl-muted) !important;
  font-size: 11px !important;
}

body.is-report-view .report-content-feature-copy strong {
  color: var(--pl-ink) !important;
  font-size: 15.5px !important;
}

/* Detail screens */
body.is-detail-view .detail-root {
  gap: 20px !important;
  padding-bottom: 100px !important;
}

body.is-detail-view .domain-detail-head,
body.is-detail-view .annual-detail {
  border-bottom-color: var(--pl-line) !important;
}

body.is-detail-view .personality-domain-intro .domain-score,
body.is-detail-view .domain-score,
body.is-detail-view .annual-detail-intro .domain-score,
body.is-detail-view .annual-score {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-detail-view .personality-domain-intro > div:first-child > span,
body.is-detail-view .domain-detail-head > span,
body.is-detail-view .annual-detail-intro > div:first-child > span {
  color: var(--pl-gold) !important;
  font-size: 11.5px !important;
}

body.is-detail-view .personality-domain-intro h2,
body.is-detail-view .domain-title-row h2,
body.is-detail-view .annual-detail-head h2,
body.is-detail-view .annual-detail-intro h2 {
  color: var(--pl-ink) !important;
}

body.is-detail-view .personality-domain-detail > .domain-radar-section,
body.is-detail-view .topic-domain-detail > .domain-radar-section {
  border-color: var(--pl-line) !important;
  background: var(--pl-surface) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .report-personality-radar .report-radar-label,
body.is-detail-view .personality-domain-detail .report-radar-label,
body.is-detail-view .topic-domain-detail .report-radar-label {
  color: #34475e !important;
  fill: #34475e !important;
}

body.is-detail-view .report-personality-radar .report-radar-grid polygon,
body.is-detail-view .report-personality-radar .report-radar-grid line,
body.is-detail-view .personality-domain-detail .report-radar-grid polygon,
body.is-detail-view .personality-domain-detail .report-radar-grid line,
body.is-detail-view .topic-domain-detail .report-radar-grid polygon,
body.is-detail-view .topic-domain-detail .report-radar-grid line {
  stroke: #d0dae4 !important;
}

body.is-detail-view .domain-metric-overview-list,
body.is-detail-view .domain-metric-overview-rest-panel,
body.is-detail-view .annual-metric-overview,
body.is-detail-view .annual-group-overview,
body.is-detail-view .annual-group-list {
  border-color: var(--pl-line) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .domain-metric-overview-item > summary,
body.is-detail-view .domain-metric-overview-row,
body.is-detail-view .annual-group-head {
  color: var(--pl-ink) !important;
}

body.is-detail-view .domain-metric-overview-item[open] > summary,
body.is-detail-view .annual-metric-group[open] > .annual-group-head {
  background: #f8fbfe !important;
}

body.is-detail-view .domain-metric-overview-icon {
  border-color: var(--pl-line) !important;
  background: #f8fafc !important;
}

body.is-detail-view .domain-metric-overview-explanation,
body.is-detail-view .annual-detail .domain-metric-overview-explanation,
body.is-detail-view .annual-group-body {
  border-top-color: var(--pl-line) !important;
  background: var(--pl-surface-soft) !important;
}

body.is-detail-view .domain-metric-overview-explanation p,
body.is-detail-view .annual-group-body .metric-card p,
body.is-detail-view .metric-card p {
  color: var(--pl-ink-soft) !important;
}

body.is-detail-view .domain-metric-overview-rest-toggle,
body.is-detail-view .domain-metric-overview-rest-close {
  min-height: 44px !important;
  border-color: var(--pl-line) !important;
  background: #fbfcfe !important;
  color: var(--pl-ink-soft) !important;
}

/* Annual groups */
body.is-detail-view .annual-group-head {
  min-height: 58px !important;
}

body.is-detail-view .annual-group-overview-head span,
body.is-detail-view .annual-group-head > span,
body.is-detail-view .annual-group-head > span em,
body.is-detail-view .annual-group-head .annual-score-status {
  color: var(--pl-muted) !important;
}

/* Timing */
body.is-detail-view .timing-decade-board {
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

body.is-detail-view .timing-decade-board > h2 {
  color: var(--pl-ink) !important;
  font-size: 22px !important;
}

body.is-detail-view .timing-decade-row {
  border-color: var(--pl-line) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .timing-decade-row > strong {
  border-bottom-color: var(--pl-line) !important;
  color: var(--pl-ink) !important;
}

body.is-detail-view .detail-root .timing-decade-cell.is-good {
  border-color: #c9dbea !important;
  background: #edf5fc !important;
}

body.is-detail-view .detail-root .timing-decade-cell.is-caution {
  border-color: #ead1c2 !important;
  background: #fff4ec !important;
}

body.is-detail-view .timing-year-pills span,
body.is-detail-view .detail-root .timing-decade-cell.is-good .timing-year-pills span,
body.is-detail-view .detail-root .timing-decade-cell.is-caution .timing-year-pills span {
  border-color: var(--pl-line) !important;
  background: var(--pl-surface) !important;
  color: var(--pl-ink-soft) !important;
}

/* Manse and evidence */
body.is-detail-view .contextual-palja-basis.manse-basis-card,
body.is-detail-view .contextual-evidence-section,
body.is-detail-view .contextual-evidence-groups {
  border-color: var(--pl-line) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .manse-pillars {
  border-color: var(--pl-line-strong) !important;
}

body.is-detail-view .manse-row,
body.is-detail-view .manse-cell,
body.is-detail-view .manse-pillar-head {
  border-color: var(--pl-line) !important;
}

body.is-detail-view .manse-row {
  background: var(--pl-surface) !important;
}

body.is-detail-view .manse-row-head,
body.is-detail-view .manse-row-god {
  background: var(--pl-surface-soft) !important;
}

body.is-detail-view .manse-row-label {
  border-color: var(--pl-line) !important;
  background: var(--pl-gold-soft) !important;
  color: var(--pl-gold) !important;
}

body.is-detail-view .manse-pillar-head b,
body.is-detail-view .manse-god,
body.is-detail-view .manse-hidden-chip em {
  color: var(--pl-ink-soft) !important;
}

body.is-detail-view .contextual-evidence-group > summary {
  color: var(--pl-ink) !important;
}

body.is-detail-view .contextual-evidence-group[open] > summary {
  background: #f8fbfe !important;
}

body.is-detail-view .contextual-evidence-group-body,
body.is-detail-view .contextual-evidence-group.is-secondary .contextual-evidence-stack {
  background: var(--pl-surface-soft) !important;
}

/* Topic content */
body.is-detail-view .report-content-topic-hero,
body.is-detail-view .report-content-personal-result,
body.is-detail-view .report-content-topic-metrics,
body.is-detail-view .report-content-related-button {
  border-color: var(--pl-line) !important;
  box-shadow: var(--pl-shadow-soft) !important;
}

body.is-detail-view .report-content-personal-copy p {
  color: var(--pl-ink-soft) !important;
  font-size: 13.5px !important;
  line-height: 1.78 !important;
}

/* Modal and share sheet */
.daily-fortune-modal-dialog,
.share-sheet-panel {
  border-color: var(--pl-line) !important;
  box-shadow: 0 18px 48px rgba(35, 55, 80, 0.18) !important;
}

.daily-fortune-modal-close,
.share-sheet-close {
  color: var(--pl-ink-soft) !important;
}

.daily-fortune-modal-close {
  margin-right: 0 !important;
}

.daily-fortune-modal-close svg,
.share-sheet-close svg {
  stroke: currentColor !important;
}

.daily-fortune-modal-close:hover,
.daily-fortune-modal-close:focus-visible,
.share-sheet-close:hover,
.share-sheet-close:focus-visible {
  background: var(--pl-surface-blue) !important;
  color: var(--pl-blue-strong) !important;
}

.share-sheet-option {
  border-color: var(--pl-line) !important;
  background: #fafcfe !important;
}

.share-sheet-option:hover,
.share-sheet-option:focus-visible {
  border-color: #b9cde2 !important;
  background: var(--pl-surface-blue) !important;
}

.share-sheet-chevron {
  color: var(--pl-muted) !important;
}

@media (max-width: 380px) {
  body.is-report-view .report-personality-copy h2 {
    font-size: 18px !important;
  }

  body.is-report-view .report-personality-copy p {
    font-size: 11px !important;
  }

  body.is-report-view .report-primary-menu-card strong,
  body.is-report-view .report-analysis-menu .report-primary-menu-more-card strong {
    font-size: 10.5px !important;
  }

  body.is-report-view .daily-spectrum-column span {
    font-size: 9px !important;
  }

  body.is-detail-view .report-personality-radar .report-radar-label,
  body.is-detail-view .personality-domain-detail .report-radar-label,
  body.is-detail-view .topic-domain-detail .report-radar-label {
    font-size: 11.6px !important;
  }
}

/*
 * Interaction and border harmony audit v2
 * Keeps the product shell visually quiet while preserving all report data.
 */
body.is-report-view .daily-fortune-board {
  border: 0 !important;
  border-radius: 8px !important;
  box-shadow: none !important;
}

body.is-report-view .daily-fortune-panel,
body.is-report-view .report-content-feature,
body.is-detail-view .daily-fortune-modal-dialog,
body.is-detail-view .share-sheet-panel {
  border-radius: 8px !important;
}

body.is-detail-view
  .domain-metric-overview-rest-toggle[aria-expanded="true"] {
  min-height: 0 !important;
  max-height: 0 !important;
  margin-top: 0 !important;
  padding-top: 0 !important;
  padding-bottom: 0 !important;
  border-width: 0 !important;
  pointer-events: none;
}

body.is-detail-view
  .domain-metric-overview-rest-toggle[aria-expanded="true"]
  + .domain-metric-overview-rest-panel {
  margin-top: 0 !important;
}

body.is-daily-fortune-modal-open .screen-report.is-active {
  z-index: 80 !important;
}

body.is-daily-fortune-modal-open .bottom-nav {
  pointer-events: none;
}

body.is-detail-view .annual-group-body,
body.is-detail-view .contextual-evidence-group-body,
body.is-detail-view
  .contextual-evidence-group.is-secondary
  .contextual-evidence-stack {
  background: #fafcfe !important;
}

body.is-detail-view .contextual-keyword-group {
  border-color: #dde5ed !important;
  background: #ffffff !important;
}

.v2-form .segmented label {
  position: relative;
  cursor: pointer;
}

.v2-form .segmented input {
  width: 1px !important;
  height: 1px !important;
  min-height: 1px !important;
  max-height: 1px !important;
  margin: 0 !important;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.v2-form {
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.input-trust-note a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
}

/* Keep the native birth-time menu in the same light palette as the input form. */
.v2-form .field select {
  color-scheme: light;
  accent-color: var(--pl-blue);
}

.v2-form .field select option {
  background: var(--pl-surface);
  color: var(--pl-ink);
}

.v2-form .field select option:disabled {
  color: var(--pl-faint);
}

.v2-form .field select option:checked {
  background: var(--pl-surface-blue);
  color: var(--pl-blue-strong);
}

/*
 * Reading rhythm audit v1
 * Preserve every explanation while giving Korean copy consistent paragraph
 * spacing, natural wrapping, and a clear definition-to-interpretation rhythm.
 */
body.is-report-view .report-personality-copy p,
body.is-detail-view .domain-metric-overview-explanation p,
body.is-detail-view .metric-card p,
body.is-detail-view .contextual-evidence-card p,
body.is-detail-view .contextual-origin-detail,
body.is-detail-view .report-content-topic-hero p,
body.is-detail-view .report-content-personal-copy p,
.daily-fortune-modal-targets,
.daily-fortune-modal-summary,
.loading-panel p,
.loading-auto-note,
.input-trust-note {
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}

body.is-report-view .report-personality-copy p {
  max-width: 34em;
  margin: 7px 0 0;
  line-height: 1.68 !important;
}

body.is-detail-view .domain-metric-overview-explanation,
body.is-detail-view
  .annual-detail
  .domain-metric-overview-explanation {
  padding: 14px 16px 17px !important;
}

body.is-detail-view .domain-metric-overview-explanation p {
  margin: 0 !important;
  line-height: 1.82 !important;
}

body.is-detail-view .domain-metric-overview-explanation p + p {
  margin-top: 10px !important;
  padding-top: 10px;
  border-top: 1px solid rgba(197, 210, 225, 0.7);
}

body.is-detail-view
  .domain-metric-overview-explanation
  .metric-action-copy
  > strong,
body.is-detail-view
  .report-content-personal-copy
  .has-edge-emphasis
  > strong {
  display: block;
  color: var(--pl-ink) !important;
  line-height: 1.72;
}

body.is-detail-view
  .domain-metric-overview-explanation
  .metric-action-copy
  > strong:first-child,
body.is-detail-view
  .report-content-personal-copy
  .has-edge-emphasis
  > strong:first-child {
  margin-bottom: 4px;
}

body.is-detail-view
  .domain-metric-overview-explanation
  .metric-action-copy
  > strong:last-child:not(:first-child),
body.is-detail-view
  .report-content-personal-copy
  .has-edge-emphasis
  > strong:last-child:not(:first-child) {
  margin-top: 4px;
}

body.is-detail-view .contextual-evidence-card > p {
  margin: 0 !important;
  line-height: 1.76 !important;
}

body.is-detail-view .contextual-evidence-card > p + p {
  margin-top: 8px !important;
}

body.is-detail-view .contextual-origin-detail {
  line-height: 1.62 !important;
}

body.is-detail-view .report-content-topic-hero p {
  margin: 8px 0 0 !important;
  line-height: 1.72 !important;
}

body.is-detail-view .report-content-personal-copy p {
  margin: 0 !important;
  line-height: 1.88 !important;
}

body.is-detail-view .report-content-personal-copy p + p {
  margin-top: 15px !important;
}

.daily-fortune-modal-targets {
  margin: 7px 0 0 !important;
  line-height: 1.65 !important;
}

.daily-fortune-modal-summary {
  margin: 14px 0 0 !important;
  padding-top: 14px !important;
  line-height: 1.76 !important;
}

.loading-panel p {
  line-height: 1.72 !important;
}

.loading-auto-note {
  line-height: 1.62 !important;
}

.input-trust-note {
  line-height: 1.64 !important;
}

/*
 * Daily fortune disclosure v1
 * Each row carries its own affordance, so no visible usage instructions are
 * needed. The native details structure also shares the global smooth motion.
 */
body.is-report-view .daily-spectrum {
  padding: 15px 15px 10px !important;
}

body.is-report-view .daily-spectrum-head {
  margin: 0 0 5px !important;
  padding: 0 2px !important;
}

body.is-report-view .daily-spectrum-head strong {
  color: var(--pl-ink) !important;
  font-size: 13px !important;
  font-weight: 750 !important;
  letter-spacing: 0 !important;
}

body.is-report-view .daily-fortune-list {
  overflow: visible !important;
  border: 0 !important;
  border-top: 1px solid var(--pl-line) !important;
  border-radius: 0 !important;
  background: transparent !important;
}

body.is-report-view .daily-fortune-disclosure {
  border-bottom: 1px solid var(--pl-line);
  background: transparent;
}

body.is-report-view .daily-fortune-disclosure > summary {
  display: grid;
  grid-template-columns: 27px minmax(0, 1fr) 30px 15px;
  gap: 9px;
  min-height: 55px;
  margin: 0;
  padding: 8px 2px;
  align-items: center;
  border-radius: 7px;
  color: var(--pl-ink);
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition:
    background-color 160ms ease,
    transform 160ms ease;
}

body.is-report-view .daily-fortune-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.is-report-view .daily-fortune-disclosure > summary::marker {
  content: "";
}

body.is-report-view .daily-fortune-disclosure > summary:hover,
body.is-report-view .daily-fortune-disclosure > summary:focus-visible,
body.is-report-view .daily-fortune-disclosure[open] > summary {
  background: rgba(88, 137, 196, 0.065);
}

body.is-report-view .daily-fortune-disclosure > summary:focus-visible {
  outline: 2px solid rgba(72, 121, 181, 0.42);
  outline-offset: 2px;
}

body.is-report-view .daily-fortune-disclosure > summary:active {
  transform: translateY(1px);
}

body.is-report-view .daily-fortune-row-icon {
  display: inline-flex;
  width: 27px;
  height: 27px;
  align-items: center;
  justify-content: center;
  border: 1px solid color-mix(in srgb, var(--daily-score-color) 42%, white);
  border-radius: 50%;
  color: var(--daily-score-ink) !important;
  background: color-mix(in srgb, var(--daily-score-color) 8%, white);
}

body.is-report-view .daily-fortune-row-icon svg {
  width: 16px !important;
  height: 16px !important;
  color: inherit !important;
}

body.is-report-view .daily-fortune-row-main {
  display: grid;
  min-width: 0;
  gap: 6px;
}

body.is-report-view .daily-fortune-row-meta {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

body.is-report-view .daily-fortune-row-meta strong {
  min-width: 0;
  color: var(--pl-ink) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  line-height: 1.25;
  letter-spacing: 0 !important;
  overflow-wrap: normal;
  word-break: keep-all;
}

body.is-report-view .daily-fortune-row-meta em {
  flex: 0 0 auto;
  padding: 2px 6px;
  border: 1px solid color-mix(in srgb, var(--daily-score-color) 34%, white);
  border-radius: 999px;
  color: var(--daily-score-ink) !important;
  background: color-mix(in srgb, var(--daily-score-color) 8%, white);
  font-size: 9.5px !important;
  font-style: normal;
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: 0 !important;
}

body.is-report-view .daily-fortune-row-bar.metric-bar {
  width: 100% !important;
  height: 6px !important;
  min-width: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e3e9f0 !important;
  box-shadow: inset 0 1px 2px rgba(29, 47, 67, 0.08) !important;
}

body.is-report-view .daily-fortune-row-bar.metric-bar > i {
  height: 100% !important;
  border-radius: inherit !important;
  background: var(--daily-score-color) !important;
  box-shadow: 0 0 7px color-mix(in srgb, var(--daily-score-color) 34%, transparent) !important;
}

body.is-report-view .daily-fortune-row-score {
  color: var(--daily-score-ink) !important;
  font-size: 14px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 800 !important;
  line-height: 1;
  text-align: right;
}

/* Keep the first-result daily labels and scores legible on the white panel. */
body.is-report-view .daily-fortune-board .daily-fortune-row-meta strong {
  color: #14243a !important;
  font-weight: 800 !important;
}

/* Present the daily headline as one balanced thought without splitting Korean words. */
body.is-report-view .daily-fortune-board .daily-score-banner {
  gap: 12px !important;
  padding-inline: 14px !important;
}

body.is-report-view .daily-fortune-board .daily-score-copy {
  min-width: 0;
}

body.is-report-view .daily-fortune-board .daily-score-copy strong {
  font-size: 17px !important;
  line-height: 1.42 !important;
  letter-spacing: 0;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

body.is-report-view .daily-fortune-board .daily-score-strong {
  --daily-score-ink: #2f67aa !important;
}

body.is-report-view .daily-fortune-board .daily-score-steady,
body.is-report-view .daily-fortune-board .daily-score-neutral {
  --daily-score-ink: #2f735a !important;
}

body.is-report-view .daily-fortune-board .daily-score-caution {
  --daily-score-ink: #9b512f !important;
}

body.is-report-view .daily-fortune-row-chevron {
  width: 15px !important;
  height: 15px !important;
  color: var(--pl-muted) !important;
  transform: rotate(90deg);
  transform-origin: center;
  transition: transform 210ms ease;
}

body.is-report-view .daily-fortune-disclosure[open] > summary .daily-fortune-row-chevron {
  transform: rotate(-90deg);
}

body.is-report-view .daily-fortune-row-detail {
  padding: 2px 2px 15px 36px;
  color: var(--pl-copy);
  text-align: left;
  word-break: keep-all;
  overflow-wrap: break-word;
  line-break: strict;
  text-wrap: pretty;
}

body.is-report-view .daily-fortune-row-targets {
  margin: 0 0 7px !important;
  color: var(--daily-score-ink) !important;
  font-size: 11px !important;
  font-weight: 700;
  line-height: 1.55 !important;
}

body.is-report-view .daily-fortune-row-summary {
  margin: 0 !important;
  color: var(--pl-copy) !important;
  font-size: 12.5px !important;
  line-height: 1.72 !important;
}

@media (max-width: 360px) {
  body.is-report-view .daily-fortune-disclosure > summary {
    grid-template-columns: 25px minmax(0, 1fr) 27px 14px;
    gap: 7px;
  }

  body.is-report-view .daily-fortune-row-icon {
    width: 25px;
    height: 25px;
  }

  body.is-report-view .daily-fortune-row-meta strong {
    font-size: 12px !important;
  }

  body.is-report-view .daily-fortune-row-detail {
    padding-left: 32px;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.is-report-view .daily-fortune-disclosure > summary,
  body.is-report-view .daily-fortune-row-chevron {
    transition: none !important;
  }
}

/*
 * Icon alignment guard.
 * The legacy header rule targets every direct span and otherwise leaves the
 * calendar frame on a flex baseline instead of at its visual center.
 */
body.is-report-view .daily-fortune-head > .daily-fortune-calendar-mark {
  display: grid !important;
  align-items: center !important;
  justify-content: center !important;
  justify-items: center !important;
  gap: 0 !important;
}

body.is-report-view .daily-fortune-calendar-mark > .daily-fortune-calendar-icon,
body.is-report-view .daily-fortune-row-icon > .report-category-icon,
body.is-report-view .report-primary-menu-card > .has-report-icon > .report-category-icon,
body.is-report-view .report-content-topic-icon > .report-category-icon,
body.is-detail-view .domain-metric-overview-icon > svg,
.share-sheet-option-icon > svg {
  display: block !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  justify-self: center !important;
  margin: 0 !important;
}

/*
 * Detail header without an aggregate grade.
 * Keep the full width for the title after removing the former grade column.
 */
body.is-detail-view .personality-domain-intro,
body.is-detail-view .topic-domain-intro,
body.is-detail-view .annual-detail-head,
body.is-detail-view .domain-title-row {
  grid-template-columns: minmax(0, 1fr) !important;
}

/*
 * Intro screen v1
 * Explain the service before requesting birth information, without turning the
 * first visit into a long marketing page.
 */
.screen-intro {
  min-height: 100vh;
  min-height: 100dvh;
  grid-template-rows: 57px minmax(0, 1fr) auto;
  align-content: stretch;
  padding:
    0
    22px
    max(24px, env(safe-area-inset-bottom));
  background: var(--pl-canvas);
  color: var(--pl-ink);
}

.screen-intro.is-active {
  display: grid;
}

.intro-appbar {
  height: 57px;
  display: grid;
  place-items: center;
  margin: 0 -22px;
  border-bottom: 1px solid rgba(117, 138, 166, 0.17);
  background: rgba(255, 255, 255, 0.78);
}

.intro-appbar strong {
  color: var(--pl-ink);
  font-size: 15px;
  font-weight: 900;
}

.intro-content {
  width: min(100%, 360px);
  display: flex;
  flex-direction: column;
  align-self: center;
  justify-self: center;
  align-items: center;
  padding: 34px 0 26px;
  text-align: center;
}

.intro-brand-mark {
  width: 88px;
  height: 88px;
  margin-bottom: 22px;
  border-radius: 8px;
  box-shadow: 0 14px 28px rgba(27, 55, 91, 0.14);
}

.intro-brand-mark img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
}

.intro-eyebrow {
  margin: 0 0 8px;
  color: var(--pl-blue-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.4;
}

.intro-content h1 {
  margin: 0;
  color: var(--pl-ink);
  font-size: 29px;
  font-weight: 900;
  line-height: 1.32;
  word-break: keep-all;
}

.intro-description {
  max-width: 324px;
  margin: 14px 0 0;
  color: var(--pl-ink-soft);
  font-size: 13.5px;
  line-height: 1.75;
  text-align: center;
  word-break: keep-all;
  overflow-wrap: break-word;
}

.intro-scope {
  width: 100%;
  margin-top: 27px;
  padding: 4px 15px;
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-soft);
}

.saved-profile-card {
  width: 100%;
  margin-top: 27px;
  overflow: hidden;
  border: 1px solid var(--pl-line);
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: var(--pl-shadow-soft);
  text-align: left;
}

.saved-profile-card-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 15px;
  border-bottom: 1px solid rgba(215, 224, 235, 0.82);
}

.saved-profile-card-header > div {
  min-width: 0;
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.saved-profile-card-header h2 {
  margin: 0;
  color: var(--pl-ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.3;
}

.saved-profile-card-header span {
  color: var(--pl-muted);
  font-size: 9.5px;
  font-weight: 700;
  line-height: 1.3;
}

.saved-profile-manage-button {
  flex: 0 0 auto;
  min-height: 34px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: var(--pl-blue-strong);
  font-size: 11.5px;
  font-weight: 800;
  cursor: pointer;
}

.saved-profile-list {
  max-height: 128px;
  overflow: hidden;
  transition: max-height 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.saved-profile-card.is-expanded .saved-profile-list {
  max-height: 640px;
}

.saved-profile-row {
  width: 100%;
  min-height: 64px;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto 14px;
  gap: 10px;
  align-items: center;
  padding: 9px 15px;
  border: 0;
  background: transparent;
  color: var(--pl-ink);
  text-align: left;
  cursor: pointer;
  transition: background-color 150ms ease;
}

.saved-profile-row + .saved-profile-row {
  border-top: 1px solid rgba(215, 224, 235, 0.76);
}

.saved-profile-row:hover,
.saved-profile-row:focus-visible {
  background: #f7faff;
}

.saved-profile-mark {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #c4d8ee;
  border-radius: 50%;
  background: #edf5fd;
  color: var(--pl-blue-strong);
  font-size: 12px;
  font-weight: 900;
}

.saved-profile-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.saved-profile-copy strong {
  overflow: hidden;
  color: var(--pl-ink);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.saved-profile-copy small {
  color: var(--pl-muted);
  font-size: 10px;
  line-height: 1.35;
}

.saved-profile-recent {
  padding: 3px 6px;
  border-radius: 999px;
  background: #e7f1fc;
  color: var(--pl-blue-strong);
  font-size: 8.5px;
  font-weight: 900;
  line-height: 1.3;
}

.saved-profile-row-chevron {
  width: 8px;
  height: 8px;
  border-top: 1.5px solid #8496ab;
  border-right: 1.5px solid #8496ab;
  transform: rotate(45deg);
}

.saved-profile-expand {
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: 0;
  border-top: 1px solid rgba(215, 224, 235, 0.82);
  background: #fbfcfe;
  color: #566b84;
  font-size: 10.5px;
  font-weight: 800;
  cursor: pointer;
}

.saved-profile-expand svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transform: rotate(90deg);
  transition: transform 220ms ease;
}

.saved-profile-card.is-expanded .saved-profile-expand svg {
  transform: rotate(-90deg);
}

.intro-scope-item {
  min-height: 62px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  text-align: left;
}

.intro-scope-item + .intro-scope-item {
  border-top: 1px solid rgba(215, 224, 235, 0.8);
}

.intro-scope-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid #c9d9eb;
  border-radius: 50%;
  background: #f5f9fd;
  color: var(--pl-blue-strong);
}

.intro-scope-icon svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-scope-item > span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.intro-scope-item strong {
  color: var(--pl-ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}

.intro-scope-item small {
  color: var(--pl-muted);
  font-size: 10.5px;
  line-height: 1.45;
  word-break: keep-all;
}

.intro-actions {
  width: min(100%, 360px);
  display: grid;
  justify-self: center;
  gap: 11px;
}

.intro-primary-button {
  width: 100%;
  min-height: 54px;
  display: grid;
  grid-template-columns: 1fr 20px;
  gap: 8px;
  align-items: center;
  padding: 0 16px 0 36px;
  border: 0;
  border-radius: var(--pl-radius);
  background: var(--pl-blue-strong);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(47, 103, 191, 0.2);
  transition:
    background-color 160ms ease,
    transform 160ms ease,
    box-shadow 160ms ease;
}

.intro-primary-button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.intro-primary-button:hover,
.intro-primary-button:focus-visible {
  background: #285dab;
  box-shadow: 0 14px 28px rgba(47, 103, 191, 0.25);
}

.intro-primary-button:active {
  transform: translateY(1px);
}

.intro-trust-note {
  margin: 0;
  color: var(--pl-muted);
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
}

.intro-trust-note span,
.intro-trust-note a {
  display: block;
}

.intro-trust-note a {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  color: #66778e;
  text-decoration: underline;
  text-decoration-color: #b7c2cf;
  text-underline-offset: 3px;
}

.screen-intro.is-active .intro-brand-mark,
.screen-intro.is-active .intro-eyebrow,
.screen-intro.is-active .intro-content h1,
.screen-intro.is-active .intro-description,
.screen-intro.is-active .intro-scope,
.screen-intro.is-active .intro-actions {
  animation: introContentIn 420ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.screen-intro.is-active .intro-eyebrow {
  animation-delay: 35ms;
}

.screen-intro.is-active .intro-content h1 {
  animation-delay: 55ms;
}

.screen-intro.is-active .intro-description {
  animation-delay: 75ms;
}

.screen-intro.is-active .intro-scope {
  animation-delay: 95ms;
}

.screen-intro.is-active .intro-actions {
  animation-delay: 115ms;
}

@keyframes introContentIn {
  from {
    opacity: 0.76;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 380px) {
  .screen-intro {
    padding-right: 18px;
    padding-left: 18px;
  }

  .intro-appbar {
    margin-right: -18px;
    margin-left: -18px;
  }

  .intro-content {
    padding-top: 26px;
    padding-bottom: 20px;
  }

  .intro-brand-mark {
    width: 78px;
    height: 78px;
    margin-bottom: 17px;
  }

  .intro-content h1 {
    font-size: 26px;
  }

  .intro-description {
    font-size: 12.5px;
  }

  .intro-scope {
    margin-top: 21px;
  }

  .intro-scope-item {
    min-height: 57px;
  }
}

@media (max-height: 700px) {
  .intro-content {
    padding-top: 20px;
    padding-bottom: 18px;
  }

  .intro-brand-mark {
    width: 70px;
    height: 70px;
    margin-bottom: 14px;
  }

  .intro-content h1 {
    font-size: 25px;
  }

  .intro-description {
    margin-top: 9px;
    line-height: 1.6;
  }

  .intro-scope {
    margin-top: 18px;
  }

  .intro-scope-item {
    min-height: 53px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .screen-intro.is-active .intro-brand-mark,
  .screen-intro.is-active .intro-eyebrow,
  .screen-intro.is-active .intro-content h1,
  .screen-intro.is-active .intro-description,
  .screen-intro.is-active .intro-scope,
  .screen-intro.is-active .intro-actions {
    animation: none;
  }

  .intro-primary-button {
    transition: none;
  }
}

/*
 * Birth wheel input v1
 * Keep the API payload unchanged while replacing free-form date entry and the
 * branch select with a deliberate wheel picker and exact numeric time input.
 */
.screen-home {
  padding: 0 22px 28px !important;
  background: #eef3f9 !important;
}

.screen-home.is-active {
  display: grid;
  align-content: start;
  gap: 0;
}

.input-appbar {
  position: relative;
  height: 57px;
  display: grid;
  place-items: center;
  margin: 0 -22px !important;
  border-bottom: 1px solid #d9e1eb !important;
  background: rgba(255, 255, 255, 0.88) !important;
}

.input-appbar strong {
  color: var(--pl-ink) !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.input-page-back {
  position: absolute;
  left: 17px;
  top: 50%;
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 0 5px 0 0;
  border: 0;
  background: transparent;
  color: #52657e;
  font-size: 12px;
  font-weight: 650;
  transform: translateY(-50%);
  cursor: pointer;
}

.input-page-back svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.input-page-back:hover,
.input-page-back:focus-visible {
  color: var(--pl-blue-strong);
}

.home-hero {
  padding: 25px 0 17px !important;
}

.input-progress {
  margin-bottom: 16px !important;
  gap: 5px !important;
}

.input-progress i {
  width: 38px !important;
  height: 3px !important;
  border-radius: 99px !important;
  background: #cfd9e5 !important;
}

.input-progress i.is-active {
  background: #4d80d3 !important;
}

.input-progress span {
  color: #7788a0 !important;
  font-size: 9px !important;
  font-variant-numeric: tabular-nums;
}

.screen-home .eyebrow {
  margin: 0 0 6px !important;
  color: #336fc8 !important;
  font-size: 11px !important;
  font-weight: 800 !important;
}

.screen-home .home-hero .eyebrow::after,
.screen-home .v2-form::before,
.screen-home .v2-form h2::before {
  content: none !important;
  display: none !important;
}

.home-hero h1 {
  display: block !important;
  color: #102440 !important;
  font-size: 25px !important;
  font-weight: 900 !important;
  line-height: 1.28 !important;
  word-break: keep-all;
}

.home-hero h1 > span {
  display: block !important;
  color: #102440 !important;
  font-size: 25px !important;
  line-height: 1.28 !important;
  white-space: nowrap;
}

.v2-form {
  gap: 12px !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.input-identity-card {
  display: grid;
  gap: 14px;
  padding: 18px 15px 16px;
  border: 1px solid #cfdae7;
  border-radius: var(--pl-radius);
  background: var(--pl-surface);
  box-shadow: 0 7px 18px rgba(36, 66, 104, 0.05);
}

.input-identity-card h2 {
  margin: 0;
  color: #162a45;
  font-size: 13px;
  font-weight: 850;
}

.input-identity-editor {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
}

.input-identity-editor .field {
  margin: 0 !important;
}

.input-card {
  padding: 18px 15px !important;
  border: 1px solid #cfdae7 !important;
  border-radius: var(--pl-radius) !important;
  background: var(--pl-surface) !important;
  box-shadow: 0 7px 18px rgba(36, 66, 104, 0.05) !important;
}

.input-card h2 {
  margin: 0 !important;
  padding: 0 !important;
  color: #162a45 !important;
  font-size: 13px !important;
  font-weight: 850 !important;
}

.input-birth-wheel-card {
  gap: 10px !important;
  padding-bottom: 13px !important;
}

.birth-wheel-picker {
  position: relative;
  height: 144px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  overflow: hidden;
}

.birth-wheel-picker::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 48px;
  right: 0;
  left: 0;
  height: 48px;
  border-top: 1px solid #a9c8f7;
  border-bottom: 1px solid #a9c8f7;
  background: #edf4ff;
  pointer-events: none;
}

.birth-wheel-column {
  position: relative;
  z-index: 1;
  height: 144px;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 48px 0;
  scroll-padding-block: 48px;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  scrollbar-width: none;
  outline: none;
  -webkit-overflow-scrolling: touch;
}

.birth-wheel-column::-webkit-scrollbar {
  display: none;
}

.birth-wheel-column:focus-visible {
  border-radius: 5px;
  box-shadow: inset 0 0 0 2px rgba(64, 117, 194, 0.34);
}

.birth-wheel-option {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 4px;
  border: 0;
  background: transparent;
  color: #7c8fa8;
  scroll-snap-align: center;
  cursor: pointer;
  opacity: 0.7;
  transition:
    color 150ms ease,
    opacity 150ms ease,
    transform 150ms ease;
}

.birth-wheel-option strong {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  font-weight: 500;
  line-height: 1;
}

.birth-wheel-option small {
  color: inherit;
  font-size: 9px;
  line-height: 1;
}

.birth-wheel-option.is-selected {
  color: #102440;
  opacity: 1;
  transform: scale(1.04);
}

.birth-wheel-option.is-selected strong {
  font-size: 19px;
  font-weight: 900;
}

.birth-wheel-option.is-selected small {
  color: #526985;
  font-size: 9px;
  font-weight: 700;
}

.birth-wheel-option.is-placeholder.is-selected strong {
  color: #6e8199;
  font-size: 14px;
  font-weight: 750;
}

.input-time-card {
  gap: 0 !important;
  padding-bottom: 14px !important;
  transition:
    border-color 220ms ease,
    background-color 220ms ease;
}

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

.input-card-title-badges {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.input-card-title-badges > span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid #d5e0ec;
  border-radius: 999px;
  color: #536b87;
  background: #fbfdff;
  font-size: 9px;
  font-weight: 700;
}

.input-card-title-badges > span:last-child {
  color: #315f9f;
  border-color: #c9d9ed;
  background: #f3f7fd;
}

.birth-time-stage {
  min-height: 92px;
  display: grid;
  place-items: center;
  margin-top: 4px;
}

.birth-time-known,
.birth-time-unknown-state {
  grid-area: 1 / 1;
  transition:
    opacity 230ms cubic-bezier(0.22, 1, 0.36, 1),
    transform 230ms cubic-bezier(0.22, 1, 0.36, 1);
}

.birth-time-known {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.birth-time-known label {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}

.birth-time-known input {
  width: 55px;
  height: 48px;
  padding: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid transparent !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #326dc5 !important;
  font-size: 31px !important;
  font-variant-numeric: tabular-nums;
  font-weight: 900 !important;
  line-height: 1 !important;
  text-align: center;
  box-shadow: none !important;
  outline: none;
}

.birth-time-known input::placeholder {
  color: #b7c4d5 !important;
  opacity: 1;
}

.birth-time-known input:focus {
  border-bottom-color: #72a1e6 !important;
}

.birth-time-known input[aria-invalid="true"] {
  border-bottom-color: #d58355 !important;
  color: #b96036 !important;
}

.birth-time-known label > span {
  color: #687c95;
  font-size: 9px;
  font-weight: 700;
}

.birth-time-known > b {
  color: #5d8fd8;
  font-size: 27px;
  font-weight: 700;
  transform: translateY(-2px);
}

.birth-time-unknown-state {
  display: flex;
  align-items: center;
  gap: 11px;
  opacity: 0;
  transform: translateY(9px) scale(0.97);
  pointer-events: none;
}

.birth-time-unknown-icon {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #c8d9ec;
  border-radius: 50%;
  background: #f3f7fc;
  color: #527ead;
}

.birth-time-unknown-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.birth-time-unknown-state > span:last-child {
  display: grid;
  gap: 4px;
  text-align: left;
}

.birth-time-unknown-state strong {
  color: #294563;
  font-size: 12px;
  font-weight: 850;
}

.birth-time-unknown-state small {
  color: #74869b;
  font-size: 9.5px;
}

.input-time-card.is-time-unknown {
  border-color: #c2d3e6 !important;
  background: #fbfdff !important;
}

.input-time-card.is-time-unknown .birth-time-known {
  opacity: 0;
  transform: translateY(-9px) scale(0.97);
  pointer-events: none;
}

.input-time-card.is-time-unknown .birth-time-unknown-state {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.input-time-card.is-time-unknown .birth-time-unknown-icon {
  animation: unknownTimeReveal 360ms cubic-bezier(0.22, 1, 0.36, 1);
}

.birth-time-divider {
  height: 1px;
  margin-bottom: 10px;
  background: #dce4ed;
}

.birth-time-unknown-toggle {
  min-height: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #526882;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
}

.birth-time-unknown-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
}

.birth-time-switch {
  position: relative;
  width: 37px;
  height: 21px;
  flex: 0 0 auto;
  border-radius: 99px;
  background: #c7d3e2;
  box-shadow: inset 0 1px 2px rgba(31, 54, 82, 0.12);
  transition:
    background-color 210ms ease,
    box-shadow 210ms ease;
}

.birth-time-switch i {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 2px 5px rgba(38, 60, 86, 0.22);
  transition: transform 230ms cubic-bezier(0.22, 1, 0.36, 1);
}

.birth-time-unknown-toggle input:focus-visible + .birth-time-switch {
  outline: 2px solid rgba(47, 103, 191, 0.45);
  outline-offset: 2px;
}

.birth-time-unknown-toggle input:checked + .birth-time-switch {
  background: #4f82ce;
  box-shadow: inset 0 1px 2px rgba(25, 67, 126, 0.2);
}

.birth-time-unknown-toggle input:checked + .birth-time-switch i {
  transform: translateX(16px);
}

.v2-form .gold-button {
  min-height: 51px !important;
  margin-top: 5px !important;
  border-radius: var(--pl-radius) !important;
  background: #336fc8 !important;
  color: #fff !important;
  font-size: 14px !important;
  font-weight: 900 !important;
  box-shadow: 0 11px 23px rgba(47, 103, 191, 0.2) !important;
}

.v2-form .input-trust-note {
  color: #7a8798 !important;
  font-size: 9px !important;
  line-height: 1.55 !important;
  text-align: center !important;
}

.v2-form .input-trust-note a {
  color: #9a7138 !important;
}

.v2-form .blog-entry-button {
  min-height: 30px !important;
  margin-top: -4px !important;
  color: #8b98a8 !important;
  font-size: 9px !important;
}

@keyframes unknownTimeReveal {
  0% {
    opacity: 0.58;
    transform: rotate(-14deg) scale(0.9);
  }

  100% {
    opacity: 1;
    transform: rotate(0) scale(1);
  }
}

@media (max-width: 380px) {
  .screen-home {
    padding-right: 18px !important;
    padding-left: 18px !important;
  }

  .input-appbar {
    margin-right: -18px !important;
    margin-left: -18px !important;
  }

  .home-hero {
    padding-top: 22px !important;
  }

  .home-hero h1 {
    font-size: 25px !important;
  }

  .input-card {
    padding-right: 13px !important;
    padding-left: 13px !important;
  }

  .birth-wheel-option.is-selected strong {
    font-size: 18px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .birth-wheel-option,
  .birth-time-known,
  .birth-time-unknown-state,
  .birth-time-switch,
  .birth-time-switch i,
  .input-time-card {
    transition: none !important;
  }

  .input-time-card.is-time-unknown .birth-time-unknown-icon {
    animation: none;
  }
}

/*
 * Timing life flow v1.
 * The timing engine payload is unchanged; this layer only reorganizes its
 * decade groups into one continuous, comparable life-flow surface.
 */
body.is-detail-view .timing-life-page {
  display: grid;
  gap: 24px;
  padding: 27px 0 18px;
  color: var(--pl-ink);
}

body.is-detail-view .timing-life-intro {
  display: grid;
  gap: 7px;
  padding: 0 7px;
}

body.is-detail-view .timing-life-intro > span {
  color: var(--pl-blue-strong);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

body.is-detail-view .timing-life-intro h2 {
  margin: 0;
  color: #102341;
  font-size: 27px;
  font-weight: 900;
  line-height: 1.22;
}

body.is-detail-view .timing-life-intro p {
  margin: 0;
  color: #52627a;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.65;
}

body.is-detail-view .timing-life-overview {
  position: relative;
  min-height: 89px;
  padding: 11px 8px 34px;
}

body.is-detail-view .timing-life-overview-labels,
body.is-detail-view .timing-life-overview-track {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

body.is-detail-view .timing-life-overview-labels span {
  min-width: 24px;
  color: #243751;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.25;
  text-align: center;
}

body.is-detail-view .timing-life-overview-track {
  position: relative;
  margin: 10px 5px 0;
}

body.is-detail-view .timing-life-overview-track::before {
  position: absolute;
  top: 50%;
  right: 5px;
  left: 5px;
  height: 1px;
  background: #cbd5e1;
  content: "";
  transform: translateY(-50%);
}

body.is-detail-view .timing-life-overview-track i {
  position: relative;
  z-index: 1;
  width: 11px;
  height: 11px;
  border: 1px solid #bcc8d7;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px var(--pl-canvas);
}

body.is-detail-view .timing-life-overview-track i.is-current {
  border-color: #236fd0;
  background: #236fd0;
  box-shadow:
    0 0 0 3px var(--pl-canvas),
    0 0 0 5px rgba(35, 111, 208, 0.2);
}

body.is-detail-view .timing-life-current-label {
  position: absolute;
  top: 59px;
  left: calc((100% / var(--timing-segments)) * var(--timing-current-index));
  width: max-content;
  max-width: 112px;
  color: #2367bd;
  font-size: 10.5px;
  font-weight: 850;
  line-height: 1.25;
  transform: translateX(-38%);
}

body.is-detail-view .timing-life-board {
  overflow: hidden;
  border: 1px solid #d4dee9;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(36, 66, 104, 0.055);
}

body.is-detail-view .timing-life-head,
body.is-detail-view .timing-life-row {
  display: grid;
  grid-template-columns: 94px minmax(0, 1fr) minmax(0, 1fr);
}

body.is-detail-view .timing-life-head {
  min-height: 54px;
  border-bottom: 1px solid #d7e0ea;
}

body.is-detail-view .timing-life-head > strong {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 11px 8px;
  color: #213651;
  font-size: 11.5px;
  font-weight: 850;
  line-height: 1.3;
  text-align: center;
}

body.is-detail-view .timing-life-head > strong + strong {
  border-left: 1px solid #e1e8f0;
}

body.is-detail-view .timing-life-head > strong.is-good {
  background: #f4f8fe;
  color: #1f63bd;
}

body.is-detail-view .timing-life-head > strong.is-good i {
  color: #2d73cc;
  font-size: 15px;
  font-style: normal;
  line-height: 1;
}

body.is-detail-view .timing-life-head > strong.is-caution {
  background: #fff9f5;
  color: #a94722;
}

body.is-detail-view .timing-life-head > strong.is-caution i {
  position: relative;
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border: 1.5px solid #b95b32;
  border-radius: 2px;
  color: transparent;
  font-size: 0;
  transform: rotate(45deg);
}

body.is-detail-view .timing-life-head > strong.is-caution i::after {
  position: absolute;
  inset: -1px;
  display: grid;
  place-items: center;
  color: #a94722;
  content: "!";
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
  transform: rotate(-45deg);
}

body.is-detail-view .timing-life-row {
  min-height: 82px;
  border-bottom: 1px solid #e0e7ef;
}

body.is-detail-view .timing-life-row:last-child {
  border-bottom: 0;
}

body.is-detail-view .timing-life-age,
body.is-detail-view .timing-life-value {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 0;
  padding: 17px 12px;
}

body.is-detail-view .timing-life-age {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 6px;
  border-right: 1px solid #d6dfe9;
  background: #fff;
}

body.is-detail-view .timing-life-age::before {
  position: absolute;
  top: 0;
  right: -1px;
  bottom: 0;
  width: 1px;
  background: #cfd9e5;
  content: "";
}

body.is-detail-view .timing-life-age > strong {
  color: #172b46;
  font-size: 12.5px;
  font-weight: 850;
  line-height: 1.25;
}

body.is-detail-view .timing-life-age > span {
  padding: 3px 7px;
  border-radius: 4px;
  background: #dfeafd;
  color: #2365ba;
  font-size: 9.5px;
  font-weight: 850;
  line-height: 1.2;
}

body.is-detail-view .timing-life-node {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: -7px;
  width: 13px;
  height: 13px;
  border: 3px solid #fff;
  border-radius: 50%;
  background: #aebccd;
  box-shadow: 0 0 0 1px #c9d4e1;
  transform: translateY(-50%);
}

body.is-detail-view .timing-life-value {
  justify-content: center;
  padding-right: 7px;
  padding-left: 7px;
  border-left: 1px solid #edf1f5;
}

body.is-detail-view .timing-life-value.is-good {
  background: #f8fbff;
}

body.is-detail-view .timing-life-value.is-caution {
  background: #fffaf7;
}

body.is-detail-view .timing-life-row.is-current .timing-life-age {
  background: #f0f5fd;
}

body.is-detail-view .timing-life-row.is-current .timing-life-value.is-good {
  background: #edf5ff;
}

body.is-detail-view .timing-life-row.is-current .timing-life-value.is-caution {
  background: #fff4ec;
}

body.is-detail-view .timing-life-row.is-current .timing-life-node {
  background: #236fd0;
  box-shadow:
    0 0 0 1px #236fd0,
    0 0 0 4px rgba(35, 111, 208, 0.12);
}

body.is-detail-view .timing-life-year-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 5px;
}

body.is-detail-view .timing-life-year-list > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 29px;
  padding: 5px 6px;
  border: 1px solid;
  border-radius: 5px;
  background: #fff;
  font-size: 10.5px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

body.is-detail-view .timing-life-year-list > span > i {
  width: 5px;
  height: 5px;
  flex: 0 0 auto;
  border-radius: 50%;
}

body.is-detail-view .timing-life-year-list.is-good > span {
  border-color: #8bb5ed;
  background: #f7faff;
  color: #1f61ba;
}

body.is-detail-view .timing-life-year-list.is-good > span > i {
  background: #2f73cc;
}

body.is-detail-view .timing-life-year-list.is-caution > span {
  border-color: #d88a61;
  background: #fff6f0;
  color: #a94722;
}

body.is-detail-view .timing-life-year-list.is-caution > span > i {
  background: #c96639;
}

body.is-detail-view .timing-life-empty {
  color: #8a97a8;
  font-size: 10.5px;
  font-style: normal;
  font-weight: 650;
  line-height: 1.45;
  text-align: center;
}

@media (max-width: 380px) {
  body.is-detail-view .timing-life-page {
    gap: 20px;
    padding-top: 23px;
  }

  body.is-detail-view .timing-life-intro h2 {
    font-size: 24px;
  }

  body.is-detail-view .timing-life-intro p {
    font-size: 12px;
  }

  body.is-detail-view .timing-life-head,
  body.is-detail-view .timing-life-row {
    grid-template-columns: 78px minmax(0, 1fr) minmax(0, 1fr);
  }

  body.is-detail-view .timing-life-head > strong {
    gap: 5px;
    padding-inline: 5px;
    font-size: 10.5px;
  }

  body.is-detail-view .timing-life-age,
  body.is-detail-view .timing-life-value {
    padding: 14px 7px;
  }

  body.is-detail-view .timing-life-age > strong {
    font-size: 11.5px;
  }

  body.is-detail-view .timing-life-year-list {
    gap: 5px;
  }

  body.is-detail-view .timing-life-year-list > span {
    min-height: 27px;
    padding: 4px 6px;
    font-size: 10.5px;
  }
}

/*
 * Internal brand continuity v1
 * Keep the new product identity concise in navigation while preserving the
 * editorial lineage of 사주명리 공간 : 이현 as quiet supporting information.
 */
.internal-brand-lockup {
  max-width: calc(100% - 112px);
  overflow: hidden;
  color: var(--pl-ink) !important;
  font-size: 13px !important;
  font-weight: 800 !important;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.intro-appbar .internal-brand-lockup {
  max-width: calc(100% - 36px);
}

.brand-continuity-note {
  color: #748197;
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.6;
  text-align: center;
  text-decoration: none;
  word-break: keep-all;
  overflow-wrap: break-word;
  transition: color 150ms ease;
}

.brand-continuity-note:hover,
.brand-continuity-note:focus-visible {
  color: #4d607a;
  text-decoration: underline;
  text-decoration-color: rgba(77, 96, 122, 0.34);
  text-underline-offset: 3px;
}

.intro-brand-continuity {
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  margin-top: -2px;
}

.v2-form .blog-entry-button {
  width: auto;
  max-width: 100%;
  min-height: 30px;
  margin-top: 13px;
  padding: 5px 8px;
  border: 0;
  background: transparent;
  color: #748197 !important;
  font-size: 10.5px !important;
  font-weight: 600;
}

.v2-form .blog-entry-button:hover,
.v2-form .blog-entry-button:focus-visible {
  border: 0;
  background: transparent;
  color: #4d607a !important;
}

.report-brand-continuity {
  display: flex;
  justify-content: center;
  padding: 2px 8px 10px;
}

body.is-report-view .report-brand-continuity .brand-continuity-note {
  color: #748197;
}

body.is-report-view .report-brand-continuity .brand-continuity-note:hover,
body.is-report-view .report-brand-continuity .brand-continuity-note:focus-visible {
  color: #4d607a;
}

@media (max-width: 350px) {
  .input-appbar .internal-brand-lockup {
    max-width: calc(100% - 104px);
    font-size: 12px !important;
  }

  .brand-continuity-note {
    font-size: 10px;
  }
}

/* Input mode, result disclosure, and page transition refinements. */
.input-identity-card {
  gap: 0 !important;
  padding-top: 14px !important;
}

.birth-input-title-row {
  min-height: 29px;
}

.birth-input-mode-toggle {
  min-height: 29px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 10px;
  border: 1px solid #cbd9e9;
  border-radius: 6px;
  background: #f8fbff;
  color: #396ba9;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, color 160ms ease;
}

.birth-input-mode-toggle:hover,
.birth-input-mode-toggle:focus-visible,
.birth-input-mode-toggle[aria-expanded="true"] {
  border-color: #9ebbe0;
  background: #edf4ff;
  color: #245d9f;
}

.birth-direct-entry {
  min-height: 144px;
  display: none;
  grid-template-columns: minmax(0, 1.45fr) repeat(2, minmax(0, 0.8fr));
  align-items: center;
  gap: 8px;
  padding: 25px 4px 20px;
}

.input-birth-wheel-card.is-direct-entry .birth-wheel-picker {
  display: none;
}

.input-birth-wheel-card.is-direct-entry .birth-direct-entry {
  display: grid;
  animation: birthDirectEntryIn 220ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.birth-direct-entry label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.birth-direct-entry label > span {
  color: #60748d;
  font-size: 9px;
  font-weight: 750;
  text-align: center;
}

.birth-direct-entry input {
  width: 100%;
  min-width: 0;
  height: 51px;
  padding: 0 5px;
  border: 1px solid #cedaea;
  border-radius: 7px;
  background: #f8fbff;
  color: #102440;
  font-size: 19px;
  font-variant-numeric: tabular-nums;
  font-weight: 850;
  text-align: center;
  outline: none;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}

.birth-direct-entry input::placeholder {
  color: #9eacbd;
  font-weight: 600;
}

.birth-direct-entry input:focus {
  border-color: #74a2df;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(75, 130, 215, 0.12);
}

.birth-direct-entry input[aria-invalid="true"] {
  border-color: #d88a61;
  background: #fff9f5;
  color: #a85531;
}

@keyframes birthDirectEntryIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

body.is-report-view .daily-spectrum-disclosure {
  overflow: hidden;
  border-top: 1px solid var(--pl-line);
  background: #fff;
}

body.is-report-view .daily-spectrum-disclosure > summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 16px;
  color: #40516d;
  cursor: pointer;
  list-style: none;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 160ms ease, color 160ms ease;
}

body.is-report-view .daily-spectrum-disclosure > summary::-webkit-details-marker {
  display: none;
}

body.is-report-view .daily-spectrum-disclosure > summary::marker {
  content: "";
}

body.is-report-view .daily-spectrum-disclosure > summary:hover,
body.is-report-view .daily-spectrum-disclosure > summary:focus-visible,
body.is-report-view .daily-spectrum-disclosure[open] > summary {
  background: #f6f9fd;
  color: #285f9f;
}

body.is-report-view .daily-spectrum-disclosure > summary strong {
  color: inherit !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}

.daily-spectrum-disclosure-arrow {
  width: 14px;
  height: 16px;
  display: grid;
  place-items: center;
  color: inherit !important;
}

.daily-spectrum-disclosure-arrow i {
  grid-area: 1 / 1;
  color: inherit;
  font-size: 9px;
  font-style: normal;
  line-height: 1;
}

.daily-spectrum-disclosure-arrow .is-expanded,
.daily-spectrum-disclosure[open] .daily-spectrum-disclosure-arrow .is-collapsed {
  display: none;
}

.daily-spectrum-disclosure[open] .daily-spectrum-disclosure-arrow .is-expanded {
  display: block;
}

body.is-report-view .daily-spectrum-disclosure .daily-spectrum {
  padding-top: 13px !important;
}

.page-transition-loader[hidden] {
  display: none !important;
}

.page-transition-loader {
  position: fixed;
  z-index: 200;
  top: 0;
  bottom: 0;
  left: 50%;
  width: min(450px, 100vw);
  display: grid;
  place-items: center;
  padding: max(24px, env(safe-area-inset-top)) 24px max(24px, env(safe-area-inset-bottom));
  background: rgba(238, 243, 249, 0.985);
  opacity: 0;
  pointer-events: auto;
  transform: translateX(-50%);
  transition: opacity 180ms ease;
}

.page-transition-loader.is-visible {
  opacity: 1;
}

.page-transition-loader-inner {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #263c5b;
}

.page-transition-brand-mark {
  width: 88px;
  height: 88px;
  display: grid;
  place-items: center;
  overflow: visible;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 13px 30px rgba(44, 77, 119, 0.12);
  animation: pageTransitionBrandFloat 960ms cubic-bezier(0.22, 1, 0.36, 1) infinite alternate;
}

.page-transition-brand-mark img {
  width: 76px;
  height: 76px;
  display: block;
  object-fit: contain;
  clip-path: inset(-8px);
}

.page-transition-loader-inner > strong {
  color: #344d6d;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
}

.page-transition-dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.page-transition-dots i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #6d93c5;
  animation: pageTransitionDot 900ms ease-in-out infinite;
}

.page-transition-dots i:nth-child(2) {
  animation-delay: 130ms;
}

.page-transition-dots i:nth-child(3) {
  animation-delay: 260ms;
}

body.is-page-transitioning {
  overflow: hidden;
}

@keyframes pageTransitionBrandFloat {
  from {
    transform: translateY(2px) scale(0.99);
  }
  to {
    transform: translateY(-3px) scale(1);
  }
}

@keyframes pageTransitionDot {
  0%, 100% {
    opacity: 0.34;
    transform: translateY(0);
  }
  50% {
    opacity: 1;
    transform: translateY(-2px);
  }
}

@media (max-width: 350px) {
  .birth-direct-entry {
    gap: 6px;
    padding-right: 0;
    padding-left: 0;
  }

  .birth-direct-entry input {
    font-size: 17px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .input-birth-wheel-card.is-direct-entry .birth-direct-entry,
  .page-transition-brand-mark,
  .page-transition-dots i {
    animation: none !important;
  }

  .page-transition-loader,
  body.is-report-view .daily-spectrum-disclosure > summary {
    transition: none !important;
  }
}
