:root {
  color: #0f172a;
  background: #f8fafc;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(100%, 760px);
  margin: 0 auto;
  padding: 18px 16px 40px;
}

.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
  padding: 22px 4px 10px;
}

.eyebrow {
  margin: 0 0 8px;
  color: #8799b5;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  color: #0b3672;
  font-size: 30px;
  font-weight: 800;
  line-height: 1.15;
}

.subcopy {
  margin-top: 8px;
  color: #58729a;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.6;
}

.hero-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  flex: 0 0 auto;
  border-radius: 20px;
  background: radial-gradient(circle at 30% 28%, #155fa9 0%, #073a78 58%, #052b5f 100%);
  color: #f1bd39;
  font-size: 30px;
  box-shadow: 0 18px 34px rgba(0, 58, 124, 0.2);
}

.card {
  border: 1px solid #dce7f4;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 18px 60px rgba(13, 49, 92, 0.08);
}

.form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 18px;
}

.field {
  display: grid;
  gap: 7px;
}

.place-field {
  position: relative;
}

.wide {
  grid-column: 1 / -1;
}

.field span {
  color: #58729a;
  font-size: 12px;
  font-weight: 800;
}

.field input {
  width: 100%;
  min-width: 0;
  height: 46px;
  border: 1px solid #d5e1ef;
  border-radius: 14px;
  outline: none;
  background: #fbfdff;
  color: #0b3672;
  padding: 0 14px;
  font-weight: 700;
}

.field input:focus {
  border-color: #0b4f9f;
  box-shadow: 0 0 0 4px #d8e8ff;
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  overflow: hidden;
  border: 1px solid #d5e1ef;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(13, 49, 92, 0.12);
}

.suggestions[hidden] {
  display: none;
}

.suggestion,
.suggestion-empty {
  width: 100%;
  border-top: 1px solid #eef3f9;
  padding: 12px 14px;
  text-align: left;
}

.suggestion:first-child,
.suggestion-empty:first-child {
  border-top: 0;
}

.suggestion:hover {
  background: #f5f9ff;
}

.suggestion strong,
.suggestion span {
  display: block;
}

.suggestion strong {
  color: #0b3672;
  font-size: 13px;
  font-weight: 850;
}

.suggestion span,
.suggestion-empty {
  color: #7890b2;
  font-size: 12px;
  font-weight: 750;
}

.settings {
  grid-column: 1 / -1;
  display: grid;
  gap: 14px;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: #f8fbff;
  padding: 16px;
}

.settings strong {
  color: #0b3672;
  font-size: 15px;
}

.settings p {
  margin-top: 4px;
  color: #7890b2;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.6;
}

.grid {
  display: grid;
  gap: 12px;
}

.two {
  grid-template-columns: 1fr 1fr;
}

.primary {
  grid-column: 1 / -1;
  min-height: 54px;
  border: 0;
  border-radius: 18px;
  background: linear-gradient(180deg, #07579f 0%, #003a7c 100%);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 14px 28px rgba(0, 64, 128, 0.2);
}

.primary:disabled {
  opacity: 0.6;
}

.status {
  margin-top: 16px;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: #f8fbff;
  padding: 14px 16px;
  color: #58729a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
}

.result {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

.result[hidden],
.status[hidden] {
  display: none;
}

.result-card {
  padding: 18px;
}

.wheel-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.wheel-card iframe {
  width: 100%;
  min-height: 520px;
  border: 1px solid #dce7f4;
  border-radius: 18px;
  background: #f8fbff;
}

.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border: 1px solid #d5e1ef;
  border-radius: 14px;
  background: #eef6ff;
  color: #0b4f9f;
  padding: 0 14px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 850;
}

.login-card {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.auth-card {
  gap: 18px;
}

.auth-intro {
  display: grid;
  gap: 6px;
}

.auth-intro p,
.auth-footer {
  color: #58729a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
}

.auth-actions {
  display: grid;
  gap: 12px;
}

.password-login-form {
  display: grid;
  gap: 12px;
}

.auth-primary {
  width: 100%;
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #8799b5;
  font-size: 12px;
  font-weight: 900;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #eef3f9;
}

.auth-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 7px;
  border-top: 1px solid #eef3f9;
  padding-top: 4px;
  text-align: center;
}

.auth-footer a {
  color: #0b4f9f;
  font-weight: 900;
  text-decoration: none;
}

.signup-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.signup-form .field {
  min-width: 0;
}

.optional-title {
  grid-column: 1 / -1;
  color: #8799b5;
  font-size: 12px;
  font-weight: 900;
}

.provider {
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  text-decoration: none;
  font-weight: 900;
}

.provider.naver {
  background: #03c75a;
  color: #fff;
}

.provider.kakao {
  background: #fee500;
  color: #191600;
}

.provider.join,
.provider.ghost {
  border: 1px solid #d5e1ef;
  background: #fff;
  color: #0b4f9f;
}

.login-message {
  color: #e11d48;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.6;
  text-align: center;
}

.admin-panel {
  display: grid;
  gap: 16px;
}

.admin-panel[hidden] {
  display: none;
}

.result-head,
.section-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

h2 {
  color: #0b3672;
  font-size: 17px;
  word-break: break-all;
}

h3 {
  color: #0b3672;
  font-size: 17px;
  font-weight: 850;
}

.pill,
.section-title button {
  border: 1px solid #d5e1ef;
  border-radius: 999px;
  background: #eef6ff;
  color: #0b4f9f;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 850;
}

.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 16px;
}

.metrics div {
  border: 1px solid #dce7f4;
  border-radius: 16px;
  background: #f8fbff;
  padding: 12px 8px;
  text-align: center;
}

.metrics span {
  display: block;
  color: #0b3672;
  font-size: 20px;
  font-weight: 900;
}

.metrics small {
  color: #7890b2;
  font-size: 11px;
  font-weight: 800;
}

.section-title {
  padding: 18px 18px 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 18px 18px;
}

.chips span {
  border-radius: 999px;
  background: #eef6ff;
  color: #0b4f9f;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 850;
}

.position-list {
  display: grid;
  gap: 9px;
  padding: 16px 18px 18px;
}

.position-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid #eef3f9;
  border-radius: 15px;
  padding: 12px;
}

.position-row strong {
  color: #0b3672;
}

.position-row span {
  color: #58729a;
  font-size: 13px;
  font-weight: 750;
}

@media (max-width: 520px) {
  .shell {
    padding-inline: 14px;
  }

  .form,
  .signup-form,
  .two,
  .metrics {
    grid-template-columns: 1fr;
  }

  .wheel-card iframe {
    min-height: 430px;
  }
}
:root {
  color: #071d3b;
  background: #fbfaf7;
  font-family: Pretendard, "Noto Sans KR", "Apple SD Gothic Neo", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-width: 320px;
  background: #fbfaf7;
}

button,
input,
textarea {
  font: inherit;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.chart-page {
  min-height: 100vh;
  color: #071d3b;
}

.site-header {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 28px 40px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 25px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  background: #062a57;
  color: #d7a331;
  font-family: system-ui, sans-serif;
  font-size: 15px;
}

.nav-links {
  display: flex;
  gap: 26px;
  color: #52647d;
  font-size: 13px;
  font-weight: 800;
}

.hero-copy {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px 40px 42px;
}

.eyebrow {
  margin: 0 0 24px;
  color: #b78922;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.hero-copy h1 {
  max-width: 850px;
  color: #071d3b;
  font-size: 64px;
  font-weight: 750;
  line-height: 1.15;
  letter-spacing: 0;
}

.quote-by {
  margin-top: 18px;
  color: #6d7f98;
  font-size: 14px;
  font-weight: 800;
}

.hero-text {
  max-width: 720px;
  margin-top: 36px;
  color: #40536d;
  font-size: 19px;
  font-weight: 650;
  line-height: 1.9;
}

.chart-layout {
  width: min(100%, 1480px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(560px, 1fr) minmax(440px, 0.62fr);
  gap: 40px;
  padding: 0 40px 112px;
}

.wheel-column {
  min-width: 0;
}

.wheel-embed {
  position: sticky;
  top: 28px;
  width: min(100%, 820px);
  aspect-ratio: 1;
  margin: 0 auto;
}

.wheel-embed iframe,
.wheel-embed svg {
  width: 100%;
  height: 100%;
  border: 0;
  background: transparent;
}

.wheel-placeholder {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 999px;
  color: #9aa8ba;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: 0.16em;
}

.chart-side {
  padding-top: 12px;
}

.sentence-form {
  color: #4b5f78;
  font-size: 19px;
  font-weight: 650;
  line-height: 2.25;
}

.sentence-line input,
.issue-field textarea {
  border: 0;
  border-bottom: 1px dashed #9aa8ba;
  border-radius: 0;
  outline: none;
  background: transparent;
  color: #071d3b;
  font-weight: 800;
}

.sentence-line input {
  width: 178px;
  padding: 0 8px 4px;
  text-align: center;
}

.sentence-line input[name="birth_time_local"] {
  width: 148px;
}

.sentence-line input[name="birth_place_name"],
.sentence-line input[name="email"] {
  width: 260px;
}

.sentence-line input::placeholder,
.issue-field textarea::placeholder {
  color: #aeb7c3;
}

.sentence-line input:focus,
.issue-field textarea:focus {
  border-bottom-color: #b78922;
}

.place-wrap {
  position: relative;
  display: inline-block;
}

.required-mark {
  display: inline-block;
  margin: 0 4px;
  color: #b78922;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
  vertical-align: 0.25em;
}

.hidden-location-fields {
  display: none;
}

.suggestions {
  position: absolute;
  z-index: 20;
  top: calc(100% + 8px);
  left: 0;
  display: block;
  width: 330px;
  border: 1px solid #071d3b;
  background: #fbfaf7;
  box-shadow: 7px 7px 0 rgba(7, 29, 59, 0.1);
}

.suggestions[hidden] {
  display: none;
}

.suggestion,
.suggestion-empty {
  display: block;
  width: 100%;
  border: 0;
  border-top: 1px solid #d7dde7;
  background: transparent;
  padding: 12px 14px;
  text-align: left;
}

.suggestion:first-child,
.suggestion-empty:first-child {
  border-top: 0;
}

.suggestion:hover {
  background: #fff;
}

.suggestion strong,
.suggestion span {
  display: block;
}

.suggestion strong {
  color: #071d3b;
  font-size: 13px;
  font-weight: 850;
}

.suggestion span,
.suggestion-empty {
  color: #6d7f98;
  font-size: 12px;
  font-weight: 750;
}

.issue-field {
  display: block;
  margin-top: 32px;
}

.issue-field span {
  display: block;
  margin-bottom: 8px;
  color: #9aa8ba;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.6;
}

.issue-field textarea {
  display: block;
  width: 100%;
  resize: none;
  padding: 8px 4px;
  color: #4b5f78;
  font-size: 15px;
  font-weight: 650;
  line-height: 1.8;
}

.consent-line {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 28px;
  color: #5d6f86;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.7;
  cursor: pointer;
}

.consent-line input {
  width: 16px;
  height: 16px;
  margin-top: 4px;
  flex: 0 0 auto;
  accent-color: #071d3b;
}

.primary {
  margin-top: 32px;
  min-height: 54px;
  border: 0;
  background: #071d3b;
  color: #fff;
  padding: 0 40px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.primary:disabled {
  cursor: not-allowed;
  background: #c8ced7;
  color: rgba(255, 255, 255, 0.8);
}

.status {
  margin-top: 20px;
  color: #6d7f98;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.7;
}

.status[hidden],
.result[hidden] {
  display: none;
}

.status.is-error {
  color: #b42318;
}

.result {
  margin-top: 56px;
}

.detail-section,
.reading-section {
  border-top: 1px solid #d9dee7;
  padding-top: 28px;
  margin-top: 56px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-head .eyebrow,
.reading-section .eyebrow {
  margin-bottom: 0;
}

.section-head span {
  color: #6d7f98;
  font-size: 12px;
  font-weight: 850;
}

.detail-list {
  font-size: 14px;
}

.detail-list div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #e1e5ec;
  padding: 12px 0;
}

.detail-list span {
  color: #6d7f98;
  font-weight: 750;
}

.detail-list strong {
  color: #071d3b;
  text-align: right;
}

.reading-section h2 {
  margin-top: 12px;
  color: #071d3b;
  font-size: 25px;
  line-height: 1.25;
}

.reading-list {
  margin-top: 30px;
  display: grid;
  gap: 36px;
}

.reading-item {
  border-top: 1px solid #e1e5ec;
  padding-top: 28px;
}

.reading-item:first-child {
  border-top: 0;
  padding-top: 0;
}

.reading-head {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 18px;
}

.reading-glyph {
  color: #071d3b;
  font-size: 30px;
  line-height: 1;
}

.reading-head p {
  color: #b78922;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.reading-head h3 {
  margin-top: 8px;
  color: #071d3b;
  font-size: 20px;
  line-height: 1.35;
}

.reading-text {
  white-space: pre-line;
  color: #4d6078;
  font-size: 15px;
  font-weight: 650;
  line-height: 2;
}

.admin-panel {
  margin-top: 40px;
}

.admin-panel[hidden] {
  display: none;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chips span {
  border: 1px solid #d7dde7;
  padding: 6px 8px;
  color: #52647d;
  font-size: 11px;
  font-weight: 800;
}

#copySignals {
  border: 0;
  background: transparent;
  color: #071d3b;
  font-weight: 900;
}

.shell,
.hero,
.card,
.form,
.field,
.settings,
.grid,
.two,
.result-card,
.wheel-card,
.metrics,
.position-list,
.auth-shell,
.auth-card,
.auth-form {
  /* Legacy static pages keep their own markup; this stylesheet now prioritizes the public chart page. */
}

@media (max-width: 900px) {
  .site-header {
    padding: 24px 24px;
  }

  .nav-links {
    display: none;
  }

  .hero-copy {
    padding: 18px 24px 34px;
  }

  .hero-copy h1 {
    font-size: 42px;
  }

  .chart-layout {
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 0 24px 84px;
  }

  .wheel-column {
    order: 1;
  }

  .chart-side {
    order: 2;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 20px 24px;
  }

  .brand {
    font-size: 22px;
  }

  .hero-copy h1 {
    font-size: 34px;
  }

  .hero-text {
    font-size: 16px;
    line-height: 1.8;
  }

  .sentence-form {
    font-size: 27px;
    line-height: 2.05;
  }

  .sentence-line input {
    width: min(100%, 260px);
    max-width: 100%;
  }

  .sentence-line input[name="birth_time_local"] {
    width: 170px;
  }

  .sentence-line input[name="birth_place_name"],
  .sentence-line input[name="email"] {
    width: 270px;
  }

  .suggestions {
    width: min(330px, calc(100vw - 48px));
  }

  .wheel-embed {
    width: min(100vw - 32px, 560px);
  }
}
