@font-face{font-family:Onest;src:url('/assets/fonts/onest.ttf') format('truetype');font-display:swap}
:root{font-family:Onest,Arial,sans-serif;color:#483044;background:#f9f1f2;font-synthesis:none}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:radial-gradient(ellipse 75% 380px at 82% 0%,#f5d5e2 0%,transparent 95%),linear-gradient(180deg,#fff9f8 0,#f8eff0 620px,#fbf7f5 100%);min-width:300px}
button,input{font:inherit}button{cursor:pointer}a{color:inherit;text-decoration:none}[hidden]{display:none!important}button:disabled{opacity:.6;cursor:default}
:focus-visible{outline:3px solid #aa6e93;outline-offset:3px}.skip-link{position:absolute;left:16px;top:-120px;z-index:10;background:white;padding:12px}.skip-link:focus{top:10px}
.matrix-header{max-width:1220px;margin:0 auto;padding:22px clamp(20px,4vw,52px);display:flex;align-items:center;justify-content:space-between;gap:20px;min-height:78px}
.matrix-brand{display:flex;align-items:center;gap:12px;letter-spacing:.16em;font-weight:650;font-size:14px}.matrix-brand img{object-fit:contain}.matrix-header nav{display:flex;gap:28px;font-size:13px;color:#6e5666}.matrix-header a:hover,.matrix-footer a:hover{color:#a5678b}
main{max-width:1150px;margin:0 auto;padding:0 clamp(18px,4vw,52px) 85px}
.intro-shell{position:relative;text-align:center;max-width:780px;margin:40px auto 40px}.eyebrow{letter-spacing:.21em;color:#987187;font-size:10px;font-weight:700;line-height:1.6}
h1,h2,h3,h4,p{margin:0}h1{font-size:clamp(38px,6vw,72px);line-height:1.08;letter-spacing:-.055em;font-weight:500;margin:14px 0 22px}h1 em{font-weight:350;color:#a67b91;font-style:normal}
h2{font-size:clamp(25px,3.3vw,38px);font-weight:520;line-height:1.2;letter-spacing:-.045em}
h3{font-size:clamp(19px,2.3vw,25px);font-weight:550;letter-spacing:-.02em}
.intro-text{font-size:clamp(14px,1.55vw,16px);line-height:1.85;color:#775e6c;max-width:670px;margin:auto}
.form-shell,.report-shell,.method-shell{border:1px solid rgba(145,100,123,.15);box-shadow:0 20px 65px rgba(87,45,69,.06);background:rgba(255,255,255,.76);border-radius:28px;padding:clamp(22px,4vw,42px);backdrop-filter:blur(15px)}
.section-top{display:flex;justify-content:space-between;align-items:flex-end;gap:20px}.section-top h2{margin-top:4px}.matrix-tabs{border:1px solid #e4cbd7;border-radius:100px;padding:4px;display:flex;gap:3px;background:#f9f0f3}
.matrix-tab{border:0;border-radius:100px;background:transparent;color:#705464;padding:12px 17px;font-size:13px;transition:background .2s,color .2s}
.matrix-tab.active{background:#603a51;color:#fff;box-shadow:0 4px 14px rgba(88,45,65,.17)}
.person-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr));gap:20px;margin:30px 0 18px}
.person{padding:22px;border:1px solid #eedfe5;border-radius:17px;min-width:0;background:linear-gradient(180deg,#fff,#fff8fa);display:grid;gap:9px}
.person legend{font-size:14px;color:#51394a;font-weight:650;padding:0 7px}.person-count{font-size:11px;color:#b2889d;margin-right:7px}
.person label{font-size:12px;font-weight:600;margin-top:6px}.optional{font-size:11px;font-weight:400;color:#9c8c93}.person input{width:100%;min-width:0;min-height:44px;padding:11px 12px;background:white;border:1px solid #dfccd6;border-radius:10px;color:#44303f;font-size:14px;color-scheme:light}
.person input:focus{border-color:#aa718b}.form-bottom{display:flex;justify-content:space-between;align-items:center;gap:16px}.privacy-note{font-size:12px;color:#8a7481;line-height:1.65;max-width:400px}
.form-actions{display:flex;align-items:center;gap:13px;flex-shrink:0}.text-action{border:0;background:none;color:#755069;font-size:13px;padding:12px 4px;text-decoration:underline;text-decoration-color:#c9a8ba;text-underline-offset:4px}
.primary-action{border:1px solid #603a51;border-radius:999px;background:#603a51;color:white;min-height:46px;padding:11px 22px;font-size:13px;display:flex;align-items:center;gap:14px;justify-content:center}
.primary-action:hover{background:#794e69}.form-error{color:#a43853;background:#fff0f1;padding:12px;border-radius:9px;font-size:13px;margin-top:14px}
.report-shell{margin-top:22px;background:#fffdfc;scroll-margin-top:16px}.report-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;padding-bottom:20px;border-bottom:1px solid #f0e4e8}.report-actions{display:flex;gap:8px;flex-wrap:wrap}
.report-actions button{border:1px solid #e5cdd8;background:#fff6fa;color:#684457;border-radius:999px;font-size:12px;padding:9px 15px}
.report-actions button:hover{border-color:#b68aa1}.save-status{font-size:12px;color:#6d5d69;margin-top:12px}
.report-intro{padding:32px 0 20px;display:grid;gap:10px}.report-intro p{color:#796773;line-height:1.75;max-width:760px;font-size:14px}.report-intro .report-badge{color:#94697e;font-size:11px;letter-spacing:.11em}
.matrix-visual{display:grid;grid-template-columns:minmax(260px,.9fr) minmax(0,1.1fr);gap:clamp(15px,4vw,48px);align-items:center;margin:22px 0 35px;background:linear-gradient(125deg,#fdf5f7,#fffbf8);border:1px solid #f2e0e8;padding:clamp(15px,2.2vw,26px);border-radius:19px}
.matrix-wheel{max-width:480px;width:100%;height:auto;display:block;margin:auto}.matrix-node{cursor:pointer}.matrix-node:focus{outline:none}.matrix-node:focus circle,.matrix-node:hover circle{stroke:#a05a8c;stroke-width:3}
.matrix-wheel text{font-family:Onest,Arial,sans-serif}.matrix-wheel .wheel-hint{font-size:11px;fill:#956f85}
.matrix-glance{display:grid;gap:13px}.glance-name{font-size:12px;color:#8b6d7f;letter-spacing:.08em}.glance-center{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid #ebdce1}
.glance-num{font-size:58px;line-height:1;color:#674056;font-weight:500;letter-spacing:-.07em}.glance-center strong{display:block;font-size:20px;font-weight:560}.glance-center small{color:#96788a;font-size:12px}
.glance-point{display:flex;gap:12px;align-items:center;font-size:13px}.glance-point span{width:23px;color:#9c6684;font-weight:750}.glance-point strong{font-weight:530}
.glance-explain{font-size:12px;line-height:1.7;color:#947a88}
.report-section{padding:32px 0 6px;border-top:1px solid #efdee5}.report-section>p{font-size:14px;line-height:1.8;color:#806775;margin:8px 0 20px;max-width:900px}
.report-section h2{margin-bottom:7px}
.info-card{border:1px solid #eedfe5;border-radius:16px;padding:clamp(18px,2.5vw,25px);background:#fff;margin:12px 0}.info-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:18px;margin-bottom:12px}
.info-card .position{font-size:11px;text-transform:uppercase;letter-spacing:.12em;color:#996c83;margin-bottom:5px}
.info-card .arcana-mark{display:inline-flex;align-items:center;justify-content:center;min-width:46px;height:46px;border-radius:50%;background:#f4e9ee;color:#70465e;font-size:22px;font-weight:600}
.info-card .lead{font-size:15px;line-height:1.75;margin-bottom:15px;color:#5c4054}
.info-card p{line-height:1.78;font-size:13px;color:#725b68}
.pair-insight{background:#f7ecf0;border:1px solid #ead4de;border-radius:15px;padding:22px;margin:18px 0}.pair-insight p{font-size:14px;line-height:1.8;color:#60485a;margin:6px 0}
.interpretation-details{padding:15px 0 0;border-top:1px solid #f1e7ea}.interpretation-details summary,.method-more summary{font-size:13px;font-weight:650;color:#73455e;cursor:pointer;padding:3px 0}
.interpretation-details .detail-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:13px;margin-top:15px}
.detail-item{background:#fdf8fa;padding:13px;border-radius:10px}.detail-item b{font-size:12px;color:#5d4654;display:block;margin-bottom:5px}.detail-item p{font-size:12px}
.channel-track{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0}
.channel-step{background:#f9f2f6;border:1px solid #eddee6;border-radius:15px;padding:15px;min-width:0}.channel-step .step-index{font-size:11px;color:#98778a}.channel-step .step-value{font-size:33px;font-weight:520;line-height:1.35;color:#774962}.channel-step strong{display:block;font-size:13px}.channel-step p{font-size:12px;line-height:1.7;margin-top:9px;color:#6f5a66}
.lineage-grid,.comparison-grid,.purpose-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:15px}
.lineage-card{background:#fff;border:1px solid #efdee7;border-radius:14px;padding:16px}.lineage-card h3{font-size:14px}.lineage-card span{color:#9b6580;font-size:22px;font-weight:550}.lineage-card p{font-size:12px;line-height:1.75;margin-top:8px;color:#76616b}
.comparison-grid .info-card{margin:0}.comparison-grid .info-card header{min-height:43px}.comparison-grid .info-card h3{font-size:18px}
.purpose-grid .lineage-card{background:#faf5f7}
.recommendations{margin:0;padding-left:22px}.recommendations li{margin:11px 0;color:#6b5161;line-height:1.75;font-size:13px}
.bottom-note{margin-top:24px;font-size:12px;color:#8a7882;line-height:1.8}
.method-shell{margin-top:42px}.method-shell h2{margin:7px 0 24px}.method-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}
.method-grid>div{padding:18px;background:#fff;border:1px solid #efe0e6;border-radius:14px}.method-grid strong{font-size:13px;color:#674b5d}.method-grid p,.method-more p{margin-top:11px;color:#85717d;font-size:12px;line-height:1.85}
.method-more{margin-top:22px}.method-more p{font-size:13px}.matrix-footer{border-top:1px solid #e7d6dc;max-width:1150px;margin:0 auto;display:flex;justify-content:space-between;gap:18px;padding:26px clamp(18px,4vw,52px) 40px;color:#957e8b;font-size:12px}.matrix-footer a{font-weight:700;letter-spacing:.15em;color:#6e4c60}
@media(max-width:760px){.intro-shell{margin:16px auto 25px}.section-top{align-items:flex-start;flex-direction:column}.matrix-tabs{width:100%}.matrix-tab{flex:1;font-size:12px;padding:11px 6px}.form-bottom{align-items:stretch;flex-direction:column}.form-actions{justify-content:space-between}.matrix-visual{grid-template-columns:1fr}.matrix-wheel{max-width:370px}.method-grid{grid-template-columns:1fr}.method-shell{margin-top:24px}}
@media(max-width:520px){.matrix-header{padding:17px 18px}.matrix-header nav{gap:13px;font-size:11px}.matrix-brand{font-size:12px;letter-spacing:.09em;gap:7px}.matrix-brand img{width:23px;height:23px}.report-tools{align-items:flex-start;flex-direction:column}.form-actions{flex-direction:column-reverse;align-items:stretch}.text-action{text-align:center}.channel-track{gap:6px}.channel-step{padding:10px 9px}.channel-step .step-value{font-size:26px}.channel-step strong{font-size:11px}.channel-step p{font-size:11px}.lineage-grid,.comparison-grid,.purpose-grid,.interpretation-details .detail-grid{grid-template-columns:1fr}.matrix-footer{flex-direction:column}.intro-text{font-size:13px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}
@media print{body{background:white!important;color:black}.matrix-header,.form-shell,.report-tools,.method-shell,.matrix-footer,.skip-link{display:none!important}main{padding:0;max-width:none}.intro-shell{display:none}.report-shell{margin:0;padding:0;box-shadow:none;border:0}.report-section,.info-card{break-inside:avoid;page-break-inside:avoid}.interpretation-details>summary{display:none}.interpretation-details .detail-grid{display:grid!important}.interpretation-details{display:block!important}.matrix-visual{break-inside:avoid}}

/* Traditional multicolor accents stay readable on the blush canvas. */
.energy-legend{display:flex;flex-wrap:wrap;gap:7px 10px;margin-top:3px}.energy-tag{display:inline-flex;align-items:center;gap:6px;font-size:10px;color:#725b69;background:#fff9fc;border:1px solid #efdee5;border-radius:100px;padding:6px 9px}.energy-tag i{display:block;flex:none;width:10px;height:10px;border-radius:50%;box-shadow:0 0 0 1px rgba(80,35,60,.12)}
.matrix-wheel .matrix-node{transition:filter .2s}.matrix-wheel .matrix-node:hover{filter:drop-shadow(0 1px 5px rgba(100,47,82,.22))}

/* Approved light-beige matrix treatment; preserve the distinct energy colors. */
.matrix-visual{background:linear-gradient(135deg,#f8f0e4,#fffaf1)!important;border-color:#e4d5bc!important}.matrix-wheel{background:radial-gradient(circle at 50% 45%,#fffaf0 0%,#f6ebd9 80%);border-radius:18px;padding:6px}.matrix-glance .glance-center{border-color:#e5d7c4}.energy-tag{background:#fff9ef;border-color:#e6d8c3}.matrix-wheel .matrix-node:focus circle,.matrix-wheel .matrix-node:hover circle{stroke:#997549;stroke-width:3}

/* Chakra health map — approved warm neutral visual language */
.chakra-section{margin:30px 0;padding:clamp(16px,3vw,32px);background:#fffaf2;border:1px solid #dfc9a7;border-radius:22px;color:#513d35}
.chakra-section h2{font-size:clamp(23px,3vw,34px);margin:0 0 12px}
.chakra-table-wrap{overflow-x:auto;margin:20px 0}
.chakra-table{width:100%;border-collapse:collapse;min-width:570px;font-size:13px}
.chakra-table th,.chakra-table td{text-align:left;padding:13px 10px;border-bottom:1px solid #e8d9c5}
.chakra-table thead th{background:#f2e5d1;color:#684d38}
.chakra-table tbody tr:last-child{background:#f4e9d9;font-weight:700}
.chakra-detail{border-bottom:1px solid #e9dac6;padding:13px 0}
.chakra-detail summary{cursor:pointer;font-weight:700;color:#694d3e}
.chakra-detail h3{font-size:15px;margin:15px 0 5px}
.chakra-detail p{line-height:1.75}

/* Mobile diagram overflow correction — 2026-10-29 */
.matrix-visual{min-width:0;max-width:100%;box-sizing:border-box;grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.matrix-visual>*{min-width:0;max-width:100%}
.matrix-wheel{width:100%;height:auto;min-width:0;box-sizing:border-box}
.matrix-glance{min-width:0;overflow-wrap:anywhere}
.energy-legend{display:flex;flex-wrap:wrap;align-items:center;gap:8px;max-width:100%;min-width:0}
.energy-tag{display:inline-flex;flex:0 0 auto;white-space:nowrap;max-width:100%}
@media(max-width:900px){
 .matrix-visual{display:flex!important;flex-direction:column;align-items:stretch;padding:clamp(12px,4vw,22px)!important;gap:18px}
 .matrix-wheel{display:block;width:100%;max-width:460px;margin-inline:auto}
 .matrix-glance{width:100%;max-width:100%}
 .energy-legend{gap:7px}
 .energy-tag{font-size:11px;padding:6px 9px}
}
@media(max-width:520px){
 .matrix-visual{padding:12px!important;border-radius:20px}
 .matrix-wheel{padding:0!important}
 .matrix-glance .glance-center{max-width:100%}
 .energy-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:7px}
 .energy-tag{min-width:0;white-space:normal;overflow-wrap:break-word;line-height:1.3}
}

/* Gender controls match the approved date and name inputs. */
.person select{width:100%;min-width:0;min-height:44px;padding:11px 12px;background:#fff;border:1px solid #dfccd6;border-radius:10px;color:#44303f;font:inherit;font-size:14px;color-scheme:light}
.person select:focus{border-color:#aa718b}

/* Gender selector: inset, full-width sculpted control, aligned with text fields. */
.person select#person-gender,
.person select#partner-gender{
 box-sizing:border-box;
 display:block;
 width:100%;
 max-width:100%;
 min-width:0;
 height:48px;
 min-height:48px;
 margin:0;
 padding:0 46px 0 16px;
 border:1px solid #cdb7b5;
 border-radius:13px;
 appearance:none;
 -webkit-appearance:none;
 background-color:#f7eae7;
 background-image:
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23734c5c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"),
  linear-gradient(180deg,#efe1df 0%,#f8edeb 47%,#fff8f4 100%);
 background-position:right 16px center,center;
 background-repeat:no-repeat;
 background-size:19px 19px,100% 100%;
 box-shadow:inset 0 3px 8px rgba(81,38,54,.14),inset 0 1px 3px rgba(81,38,54,.08),0 1px 0 rgba(255,255,255,.95);
 color:#553544;
 font:inherit;
 font-size:14px;
 font-weight:600;
 line-height:normal;
 cursor:pointer;
 transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
.person select#person-gender:hover,
.person select#partner-gender:hover{border-color:#b78f98;background-color:#f2e1de}
.person select#person-gender:focus-visible,
.person select#partner-gender:focus-visible{outline:2px solid #935d78;outline-offset:2px;box-shadow:inset 0 3px 8px rgba(81,38,54,.14),0 0 0 4px rgba(147,93,120,.12)}
.person select#person-gender option,
.person select#partner-gender option{color:#553544;background:#fff9f6}
