:root {
  --ink: #17212b;
  --muted: #657386;
  --line: #d8dfd8;
  --paper: #f7f4ea;
  --panel: #fffdf7;
  --green: #1f7a5c;
  --teal: #1f6f7a;
  --red: #b65444;
  --gold: #b1842b;
  --shadow: 0 18px 54px rgba(33, 38, 43, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family:
    Inter, "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background:
    linear-gradient(90deg, rgba(31, 122, 92, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(0deg, rgba(31, 122, 92, 0.06) 0 1px, transparent 1px 100%),
    var(--paper);
  background-size: 32px 32px;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  cursor: pointer;
}

.app-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  padding: 28px 22px;
  color: #eff8f2;
  background: #14251f;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 34px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: #11221d;
  font-weight: 800;
  background: #c7df78;
  border-radius: 8px;
}

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

.brand span {
  margin-top: 3px;
  color: #aebdb6;
  font-size: 13px;
}

.nav-list {
  display: grid;
  gap: 8px;
}

.nav-list a {
  padding: 12px 13px;
  color: #d7e5df;
  text-decoration: none;
  border-radius: 8px;
}

.nav-list a:hover,
.nav-list a.active {
  color: #0f1d18;
  background: #c7df78;
}

.compliance-note {
  position: absolute;
  right: 22px;
  bottom: 24px;
  left: 22px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
}

.compliance-note p {
  margin: 8px 0 0;
  color: #c7d5cf;
  font-size: 13px;
  line-height: 1.6;
}

main {
  width: min(100%, 1480px);
  margin: 0 auto;
  padding: 24px;
}

.hero-panel {
  display: grid;
  grid-template-columns: minmax(320px, 0.86fr) minmax(300px, 1fr);
  min-height: 430px;
  overflow: hidden;
  background: #10251f;
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.hero-copy {
  z-index: 1;
  align-self: center;
  padding: 54px;
  color: white;
}

.eyebrow,
.section-heading p {
  margin: 0 0 10px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-copy .eyebrow {
  color: #c7df78;
}

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

h1 {
  max-width: 720px;
  margin-bottom: 18px;
  line-height: 1.08;
  letter-spacing: 0;
}

.hero-title-main,
.hero-title-sub {
  display: block;
}

.hero-title-main {
  font-size: clamp(44px, 6vw, 76px);
  font-weight: 900;
}

.hero-title-sub {
  margin-top: 10px;
  color: #c7df78;
  font-size: clamp(22px, 2.6vw, 34px);
  font-weight: 800;
}

.hero-text {
  max-width: 590px;
  margin-bottom: 0;
  color: #d7e3dd;
  font-size: 18px;
  line-height: 1.8;
}

.orbit-visual {
  position: relative;
  min-height: 430px;
}

.orbit-status {
  position: absolute;
  top: 34px;
  right: 34px;
  z-index: 1;
  display: grid;
  gap: 6px;
  max-width: 220px;
  color: white;
  text-align: right;
}

.orbit-status strong {
  font-size: 18px;
  font-weight: 900;
}

.orbit-status span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.5;
}

#birthCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.workspace-grid,
.two-column {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.mvp-flow {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.panel {
  padding: 24px;
  background: rgba(255, 253, 247, 0.95);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(38, 44, 42, 0.07);
}

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

.section-heading h2 {
  margin: 0;
  font-size: 24px;
}

.profile-form,
.record-form {
  display: grid;
  gap: 14px;
}

.profile-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.focus-field {
  grid-column: 1 / -1;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.focus-field legend {
  margin-bottom: 10px;
  color: #334154;
  font-size: 13px;
  font-weight: 700;
}

.focus-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.focus-chip-group label {
  display: inline-flex;
  gap: 0;
  align-items: center;
  color: #284136;
  font-size: 13px;
  font-weight: 800;
}

.focus-chip-group input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.focus-chip-group span {
  padding: 10px 13px;
  background: #f7faf2;
  border: 1px solid #cddbc8;
  border-radius: 999px;
  transition:
    color 0.18s ease,
    background 0.18s ease,
    border-color 0.18s ease;
}

.focus-chip-group input:checked + span {
  color: #10251f;
  background: #c7df78;
  border-color: #b5d65b;
}

.focus-chip-group input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.16);
}

label {
  display: grid;
  gap: 8px;
  color: #334154;
  font-size: 13px;
  font-weight: 700;
}

.form-hint {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  background: #eef5e8;
  border: 1px solid #dce8d2;
  border-radius: 8px;
}

.calendar-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  color: #526375;
  font-size: 13px;
  line-height: 1.6;
  background: #fff8e5;
  border: 1px solid #e9d59b;
  border-radius: 8px;
}

.date-range-note,
.section-note,
.education-status-note {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  color: #526375;
  font-size: 13px;
  line-height: 1.6;
  background: #edf7f6;
  border: 1px solid #cbe0dc;
  border-radius: 8px;
}

.lunar-picker[hidden],
label[hidden] {
  display: none;
}

.lunar-picker {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #f7faf2;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

input,
select,
textarea {
  min-width: 0;
  padding: 0 12px;
  color: var(--ink);
  background: #ffffff;
  border: 1px solid #cdd6cd;
  border-radius: 8px;
  outline: none;
}

input,
select {
  height: 44px;
}

textarea {
  min-height: 112px;
  padding-top: 12px;
  line-height: 1.6;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(31, 122, 92, 0.13);
}

.profile-form button,
.record-form button,
.pricing-grid button,
.ghost-button {
  height: 44px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  background: var(--green);
  border-radius: 8px;
}

.profile-form button {
  grid-column: 1 / -1;
}

.save-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 14px;
  background: #ffffff;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.save-panel span,
.contact-copy span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 800;
}

.save-panel p,
.contact-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.api-status {
  margin-top: 8px !important;
  color: var(--green) !important;
  font-weight: 800;
}

.identity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.identity-strip div,
.insight-grid article,
.pricing-grid article {
  padding: 16px;
  background: #f3f7ed;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.identity-strip span,
.insight-grid span,
.pricing-grid span,
.share-card span {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.identity-strip strong {
  color: var(--teal);
  font-size: 32px;
}

.chart-block {
  margin: 18px 0;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #e1e5dc;
  border-radius: 8px;
}

.chart-title {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.compact-title {
  margin-bottom: 12px;
}

.chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.mini-chart {
  min-width: 0;
  padding: 14px;
  background: #f9fbf6;
  border: 1px solid #e0e8d8;
  border-radius: 8px;
}

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

.distribution-list {
  display: grid;
  gap: 10px;
}

.distribution-row {
  display: grid;
  grid-template-columns: 76px minmax(80px, 1fr) 42px;
  gap: 10px;
  align-items: center;
  color: #334154;
  font-size: 13px;
}

.distribution-track {
  height: 10px;
  overflow: hidden;
  background: #e4eadf;
  border-radius: 999px;
}

.distribution-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--green));
  border-radius: 999px;
}

.year-tag-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.year-tag-card {
  padding: 10px;
  background: color-mix(in srgb, #b65444 var(--intensity), #f2f8ee);
  border-radius: 8px;
}

.year-tag-card strong,
.year-tag-card span,
.year-tag-card small {
  display: block;
}

.year-tag-card strong {
  margin-bottom: 5px;
  color: #10251f;
}

.year-tag-card span,
.year-tag-card small {
  color: #334154;
  font-size: 12px;
}

.year-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.year-cloud span {
  display: inline-flex;
  gap: 6px;
  align-items: baseline;
  padding: 8px 12px;
  color: #fff;
  font-weight: 900;
  background: var(--teal);
  border-radius: 999px;
}

.year-cloud small {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.82;
}

.cohort-lock,
.empty-state {
  margin-top: 18px;
  padding: 18px;
  background: #fff8e5;
  border: 1px solid #e9d59b;
  border-radius: 8px;
}

.cohort-lock[hidden],
.cohort-data[hidden] {
  display: none;
}

.cohort-lock strong,
.empty-state strong {
  display: block;
  margin-bottom: 8px;
  color: #14251f;
}

.cohort-lock p,
.empty-state p {
  margin-bottom: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.cohort-lock a {
  color: var(--green);
  font-weight: 800;
}

.bars {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  align-items: end;
  gap: 10px;
  height: 190px;
}

.bar {
  position: relative;
  min-height: 18px;
  background: linear-gradient(180deg, #1f6f7a, #1f7a5c);
  border-radius: 8px 8px 0 0;
}

.bar::after {
  position: absolute;
  right: 0;
  bottom: -24px;
  left: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  text-align: center;
  content: attr(data-label);
}

.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.insight-grid strong {
  display: block;
  margin-bottom: 7px;
  color: var(--red);
  font-size: 20px;
}

.insight-grid p,
.pricing-grid p,
.microcopy {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.record-form {
  grid-template-columns: 100px 130px minmax(180px, 1fr) 78px;
}

.education-profile {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding: 14px;
  background: #f7faf2;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.subsection-heading {
  grid-column: 1 / -1;
}

.subsection-heading span {
  display: block;
  margin-bottom: 6px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.subsection-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.year-input-group {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) minmax(150px, 0.85fr);
  gap: 8px;
}

.timeline {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.timeline-item {
  display: grid;
  grid-template-columns: 78px 92px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 14px;
  background: #fff;
  border: 1px solid #e0e5dc;
  border-radius: 8px;
}

.timeline-item em {
  align-self: center;
  padding: 5px 9px;
  color: var(--green);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  background: #e5f0df;
  border-radius: 999px;
}

.timeline-item strong {
  color: var(--teal);
}

.timeline-item span {
  padding: 5px 9px;
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
  background: var(--gold);
  border-radius: 999px;
}

.timeline-item p {
  margin-bottom: 0;
  color: #334154;
  line-height: 1.6;
}

.generate-feedback-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-top: 16px;
  padding: 16px;
  background: #fffdf7;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.generate-feedback-panel strong {
  display: block;
  margin-bottom: 6px;
  color: #14251f;
}

.generate-feedback-panel p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

.generate-feedback-panel button {
  min-width: 220px;
  height: 44px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  background: var(--green);
  border-radius: 8px;
}

.generate-feedback-panel button:disabled {
  color: #7d8a7f;
  cursor: not-allowed;
  background: #dfe7da;
}

.instant-report-panel {
  margin-top: 0;
}

.instant-report-panel[hidden],
.share-panel[hidden],
.pricing-panel[hidden] {
  display: none;
}

.report-empty {
  padding: 20px;
  background: #fff8e5;
  border: 1px solid #e9d59b;
  border-radius: 8px;
}

.report-empty strong {
  display: block;
  margin-bottom: 8px;
}

.report-empty p {
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.65;
}

.report-body[hidden],
.report-empty[hidden] {
  display: none;
}

.report-body {
  display: grid;
  gap: 14px;
}

.report-hero-card {
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(199, 223, 120, 0.28), transparent 30%),
    linear-gradient(135deg, #14251f, #1f6f7a 54%, #1f7a5c);
  border-radius: 8px;
}

.report-hero-card span {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 5px 9px;
  color: #d9eec7;
  font-size: 12px;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
}

.report-hero-card h3 {
  margin-bottom: 10px;
  font-size: 26px;
  line-height: 1.25;
}

.report-hero-card p {
  max-width: 760px;
  color: #eef6f0;
  font-size: 18px;
  line-height: 1.75;
}

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

.report-kpis div {
  padding: 12px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
}

.report-kpis small,
.report-kpis strong {
  display: block;
}

.report-kpis small {
  color: #d7e5df;
  font-size: 12px;
  font-weight: 700;
}

.report-kpis strong {
  margin-top: 6px;
  color: #c7df78;
  font-size: 18px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.report-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.report-grid article {
  padding: 16px;
  background: #f7faf2;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.report-grid article:nth-child(2) {
  background: #fffdf7;
}

.report-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.report-grid p {
  margin-bottom: 0;
  color: #334154;
  line-height: 1.65;
}

.report-source-note {
  margin: 6px 0 12px;
  padding: 0;
  color: rgba(38, 68, 56, 0.72);
  background: transparent;
  border: 0;
  font-size: 13px;
  line-height: 1.55;
}

.report-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.report-module {
  padding: 18px;
  background: #f7faf2;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.report-module:nth-child(2n) {
  background: #fffdf7;
}

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

.report-module span {
  display: block;
  margin-bottom: 8px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.report-module h4 {
  margin-bottom: 10px;
  color: #182923;
  font-size: 18px;
  line-height: 1.35;
}

.report-module p,
.report-module li {
  color: #334154;
  line-height: 1.65;
}

.report-module p:last-child {
  margin-bottom: 0;
}

.report-note {
  color: var(--muted) !important;
  font-size: 14px;
}

.report-stat-list,
.report-update-list {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
  padding-left: 18px;
}

.report-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 12px;
}

.report-keywords b {
  padding: 8px 10px;
  color: #173126;
  font-size: 13px;
  background: #e5f0df;
  border: 1px solid #d0dfc4;
  border-radius: 999px;
}

.report-paragraph {
  display: block;
  margin-bottom: 10px;
}

.report-paragraph + .report-paragraph {
  margin-top: 10px;
}

.bazi-basic-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 0 0 12px;
}

.bazi-basic-grid div {
  padding: 10px;
  background: #ffffff;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.bazi-basic-grid small,
.bazi-basic-grid strong {
  display: block;
}

.bazi-basic-grid small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.bazi-basic-grid strong {
  margin-top: 4px;
  color: #173126;
  font-size: 18px;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.ghost-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  color: var(--green);
  font-weight: 800;
  text-decoration: none;
  background: #e5f0df;
  border-radius: 8px;
}

.share-card {
  display: flex;
  min-height: 340px;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 18% 16%, rgba(199, 223, 120, 0.34), transparent 34%),
    radial-gradient(circle at 86% 78%, rgba(255, 253, 247, 0.16), transparent 32%),
    linear-gradient(145deg, #10251f, #1f6f7a 56%, #1f7a5c);
  border-radius: 8px;
}

.share-privacy-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
}

.share-privacy-controls .checkbox-label {
  width: auto;
  min-width: min(100%, 220px);
}

.share-card span {
  display: inline-flex;
  width: fit-content;
  padding: 6px 10px;
  color: #d9eec7;
  font-size: 13px;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 999px;
}

.share-card small {
  display: block;
  margin-top: 18px;
  color: #c7df78;
  font-size: 15px;
  font-weight: 900;
}

.share-card h3 {
  max-width: 520px;
  margin: 12px 0 14px;
  font-size: 30px;
  line-height: 1.2;
}

.share-card .share-birth-meta {
  margin: -4px 0 14px;
  color: rgba(238, 246, 240, 0.86);
  font-size: 15px;
  font-weight: 800;
  line-height: 1.45;
}

.share-card p {
  margin-bottom: auto;
  color: #eef6f0;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.75;
}

.share-reference-counts {
  display: grid;
  gap: 8px;
  margin: 18px 0 4px;
}

.share-reference-counts b {
  display: block;
  padding: 8px 10px;
  color: #f8fbf7;
  font-size: 15px;
  line-height: 1.4;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
}

.share-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}

.share-tags b {
  padding: 8px 10px;
  color: #12241e;
  font-size: 12px;
  background: rgba(255, 255, 255, 0.82);
  border-radius: 999px;
}

.share-privacy {
  margin: 18px 0 0 !important;
  color: rgba(238, 246, 240, 0.82) !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  line-height: 1.55 !important;
}

.ghost-button {
  width: 100%;
  margin-top: 14px;
  color: var(--green);
  background: #e5f0df;
}

.ghost-button.compact {
  width: auto;
  min-width: 112px;
  margin-top: 0;
}

.pricing-panel {
  margin-top: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.pricing-grid .premium-offer {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 18px;
  align-items: center;
  background: #fff8e5;
  border-color: #e9d59b;
}

.premium-offer span,
.premium-offer h3,
.premium-offer p {
  grid-column: 1;
}

.premium-offer strong,
.premium-offer button {
  grid-column: 2;
}

.premium-offer strong {
  margin-top: 0;
  text-align: right;
}

.pricing-grid h3 {
  margin-bottom: 10px;
  font-size: 21px;
}

.pricing-grid strong {
  display: block;
  margin-top: 14px;
  color: var(--red);
  font-size: 24px;
}

.pricing-grid button {
  width: 100%;
  margin-top: 16px;
}

.pricing-grid .featured {
  color: #fff;
  background: #14251f;
  border-color: #14251f;
}

.pricing-grid .featured p,
.pricing-grid .featured span {
  color: #d6e1db;
}

.pricing-grid .featured strong {
  color: #c7df78;
}

.premium-report-panel {
  display: grid;
  gap: 16px;
  margin-top: 18px;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.premium-report-panel[hidden],
.premium-afterpay[hidden] {
  display: none;
}

.premium-notice {
  padding: 16px;
  background: #f7faf2;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.premium-notice span,
.premium-afterpay span {
  display: block;
  margin-bottom: 7px;
  color: var(--green);
  font-size: 12px;
  font-weight: 900;
}

.premium-notice h3,
.premium-afterpay h3 {
  margin-bottom: 8px;
}

.premium-notice p,
.premium-afterpay p {
  margin-bottom: 8px;
  color: var(--muted);
  line-height: 1.7;
}

.premium-report-form,
.premium-afterpay {
  display: grid;
  gap: 14px;
}

.premium-report-form button,
.premium-actions button {
  min-height: 44px;
  padding: 0 16px;
  color: #fff;
  font-weight: 800;
  background: var(--green);
  border-radius: 8px;
}

.premium-afterpay {
  padding: 16px;
  background: #fff8e5;
  border: 1px solid #e9d59b;
  border-radius: 8px;
}

.premium-afterpay b {
  color: var(--red);
}

.premium-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(280px, 1fr);
  gap: 18px;
  margin-top: 0;
  padding: 18px;
  background: #fff;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

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

.contact-copy h3 {
  margin-bottom: 8px;
  font-size: 22px;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
}

.contact-form button {
  grid-column: 1 / -1;
  height: 44px;
  color: #fff;
  font-weight: 800;
  background: var(--green);
  border-radius: 8px;
}

.checkbox-label {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 600;
  line-height: 1.55;
}

.checkbox-label input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  padding: 0;
}

.validation-log {
  min-height: 22px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
}

.system-panel {
  margin-top: 18px;
}

.system-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.system-grid article {
  padding: 16px;
  background: #f3f7ed;
  border: 1px solid #dce6d0;
  border-radius: 8px;
}

.system-grid span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.system-grid strong {
  display: block;
  margin-bottom: 10px;
  color: var(--teal);
  font-size: 18px;
}

.system-grid p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .nav-list {
    grid-template-columns: repeat(5, minmax(0, 1fr));
  }

  .compliance-note {
    position: static;
    margin-top: 20px;
  }

  .hero-panel,
  .workspace-grid,
  .two-column,
  .pricing-grid,
  .contact-panel,
  .generate-feedback-panel,
  .system-grid,
  .report-grid,
  .report-module-grid {
    grid-template-columns: 1fr;
  }

  .generate-feedback-panel button {
    width: 100%;
    min-width: 0;
  }

  .contact-form {
    grid-template-columns: 1fr;
  }

  .pricing-grid .premium-offer {
    grid-template-columns: 1fr;
  }

  .premium-offer span,
  .premium-offer h3,
  .premium-offer p,
  .premium-offer strong,
  .premium-offer button {
    grid-column: 1;
  }

  .premium-offer strong {
    text-align: left;
  }

  .orbit-visual {
    min-height: 320px;
  }

  .orbit-status {
    top: 22px;
    right: 22px;
    max-width: 180px;
  }
}

@media (max-width: 680px) {
  main {
    padding: 14px;
  }

  .sidebar {
    padding: 18px 14px;
  }

  .nav-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nav-list a {
    text-align: center;
  }

  .hero-copy {
    padding: 30px 22px;
  }

  h1 {
    font-size: 34px;
  }

  .profile-form,
  .identity-strip,
  .insight-grid,
  .record-form,
  .save-panel,
  .chart-grid,
  .education-profile,
  .year-input-group,
  .lunar-picker {
    grid-template-columns: 1fr;
  }

  .wide-chart {
    grid-column: auto;
  }

  .year-tag-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .report-kpis {
    grid-template-columns: 1fr;
  }

  .report-actions .ghost-button,
  .report-actions .ghost-link {
    width: 100%;
  }

  .ghost-button.compact {
    width: 100%;
  }

  .timeline-item {
    grid-template-columns: 1fr;
  }
}
