:root{font-family:'DM Sans',Arial,sans-serif;color:#312d2a;background:#f8f5f0;font-size:16px}*{box-sizing:border-box}body{margin:0}main{max-width:1510px;margin:auto;padding:0 36px}header{height:92px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #e7ded4}.brand{font-size:18px;letter-spacing:.18em;font-weight:700;display:flex;align-items:center;gap:14px}.brand em{font-style:normal;color:#ae8f67}.sun{font-size:30px;color:#b99c75;font-weight:400}.header-note,.eyebrow{font-size:12px;letter-spacing:.16em;color:#a8937c;text-transform:uppercase}.tabs{display:flex;gap:6px;margin:26px 0 24px;border-bottom:1px solid #e7ded4;overflow:auto}.tabs button{border:0;background:none;color:#8b8077;padding:15px 25px 18px;font:600 15px 'DM Sans';white-space:nowrap;cursor:pointer}.tabs button.active{color:#493c34;box-shadow:inset 0 -2px #b39572}.workspace{display:grid;grid-template-columns:minmax(280px,310px) minmax(0,1fr);gap:24px;align-items:start}.panel,.results{background:#fffcf8;border:1px solid #ece5dc;border-radius:15px;box-shadow:0 10px 45px #6c51430a}.panel{padding:32px 27px}.panel h1{font:400 31px 'Playfair Display',Georgia,serif;margin:16px 0 32px;line-height:1.22}.field{margin:0 0 21px}.field label{display:block;font-weight:600;font-size:13px;margin-bottom:9px}.field input,.field select{width:100%;background:#fff;border:1px solid #e3d9cb;border-radius:7px;padding:13px 13px;color:#3a302b;font:500 16px 'DM Sans';outline:none}.field input:focus,.field select:focus{border-color:#ab886b;box-shadow:0 0 0 3px #c9a98632}.hint{font-size:12px;color:#a19489;margin:5px 0 0}.primary{width:100%;border:0;background:#987858;color:white;border-radius:7px;padding:15px;font:600 15px 'DM Sans';cursor:pointer}.primary:hover{background:#826448}.reset{display:block;margin:15px auto 0;border:0;background:none;color:#89715c;font:500 13px 'DM Sans';cursor:pointer}.privacy{color:#9e948b;font-size:12px;line-height:1.55;margin:27px 0 0}.results{padding:26px;min-height:640px}.empty{min-height:565px;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#ac9a88}.empty span{font-size:64px;color:#c4ae94}.empty h2{font:400 28px 'Playfair Display';color:#756858;margin:18px 0 0}.empty p{font-size:14px}.result-head{display:flex;align-items:center;justify-content:space-between;gap:15px;flex-wrap:wrap;border-bottom:1px solid #efe9e2;padding:3px 3px 20px}.result-head h2{font:400 27px 'Playfair Display';margin:0}.result-head p{margin:5px 0 0;color:#9c8c7c;font-size:13px}.toggle{display:flex;gap:8px;align-items:center;font-size:13px;color:#73665d;cursor:pointer}.chart-wrap{overflow:auto;max-width:100%;touch-action:pan-x pan-y}.chart{width:100%;min-width:610px;max-width:850px;display:block;margin:5px auto}.chart line,.chart polygon{fill:none;stroke:#cbb9a6;stroke-width:1.2}.chart .secondary{stroke:#e1d5c7}.chart .dotted{stroke-dasharray:4 5;stroke:#b59475}.chart .node circle{fill:#fdf9f3;stroke:#aa917a;stroke-width:1.4}.chart .node.primary circle{fill:#a17c61;stroke:#a17c61}.chart .node.center circle{fill:#f0dcb9;stroke:#a57f5d;stroke-width:2}.chart .node text{font:600 17px 'DM Sans';text-anchor:middle;dominant-baseline:central;fill:#514039}.chart .node.primary text{fill:white}.chart .age text{font:11px 'DM Sans';fill:#81746a;text-anchor:middle}.chart .age .value{font-weight:700;fill:#9b775a}.chart .age line{stroke:#d2c1b2}.key{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:#918273;padding:0 10px 15px}.key i{display:inline-block;width:10px;height:10px;border-radius:50%;background:#a17c61;margin-right:6px}.key i.inner{background:#fdf9f3;border:1px solid #aa917a}.blocks{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.block{background:#faf6f0;border:1px solid #eee5da;border-radius:9px;padding:18px 20px}.block h3{font:500 18px 'Playfair Display';margin:0 0 11px}.numbers{display:flex;flex-wrap:wrap;align-items:center;gap:8px}.pill{min-width:34px;height:34px;display:inline-flex;align-items:center;justify-content:center;background:#eaddcf;color:#614c3b;border-radius:50%;font-weight:700;font-size:14px}.separator{color:#b8aaa0}.small-label{font-size:12px;color:#8d7e72;margin:6px 0}.wide{grid-column:1/-1}.health{width:100%;border-collapse:collapse;font-size:13px;text-align:center}.health td,.health th{padding:9px 4px;border-bottom:1px solid #e9dfd3}.health td:first-child,.health th:first-child{text-align:left}.health .chakra{display:inline-block;width:8px;height:8px;border-radius:50%;margin-right:8px}.disclosure{width:100%;text-align:left;padding:17px 2px;border:0;background:none;color:#5c4b3f;font:600 14px 'DM Sans';cursor:pointer}.notice{padding:17px 19px;background:#f9f3e9;color:#725e4d;border-left:2px solid #b79672;border-radius:3px;font-size:14px;line-height:1.6}.months{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}.month{padding:13px;background:#faf6f0;border:1px solid #eee5da;border-radius:7px}.month b{font-size:14px}.month small{display:block;color:#988b7d;margin-top:5px}.error{color:#9e4c43;font-size:13px;margin:10px 0}footer{display:flex;justify-content:space-between;color:#aa9b8b;font-size:12px;padding:35px 0}@media(max-width:850px){main{padding:0 15px}header{height:72px}.header-note{display:none}.workspace{grid-template-columns:1fr;gap:14px}.panel{padding:24px}.panel h1{margin-bottom:23px}.results{padding:15px;min-height:490px}.empty{min-height:460px}.blocks{grid-template-columns:1fr}.months{grid-template-columns:repeat(2,1fr)}.chart{margin-left:0}.tabs{margin:15px 0}.tabs button{padding:14px 15px}}
.chart .outer-ring{fill:#faf5ee;stroke:#d9c7af;stroke-width:1.4}.chart .inner-ring{fill:none;stroke:#ebe0d1;stroke-width:1}.year-chart-wrap{max-width:690px;margin:18px auto 25px;padding:14px;border-radius:20px;background:linear-gradient(130deg,#e4eeee,#f5e9df)}.year-chart{display:block;width:100%;max-height:690px}.year-chart .year-wash{fill:#ffffff9c}.year-chart polygon,.year-chart line{fill:none;stroke:#bca478;stroke-width:2}.year-chart .node circle{fill:#fffcf8;stroke:#bca478;stroke-width:2}.year-chart .node text{font:600 23px Georgia,serif;fill:#594438;text-anchor:middle;dominant-baseline:central}.year-chart .year-node circle{r:35}.year-chart .year-center circle{r:44;fill:#d2886e;stroke:#d9a185}.year-chart .year-center text{fill:#fff}.year-meta{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin:20px 0;color:#735f4c;font-size:14px}.year-meta span:last-child{color:#958574}@media(max-width:850px){.year-chart-wrap{padding:4px;margin:14px auto}.year-meta{line-height:1.5}}

.year-chart .year-node circle{r:43}.year-chart .year-center circle{r:52}.year-chart .node text{font-size:27px}

.empty-mark{width:96px;height:96px;fill:none;stroke:#c7ab8c;stroke-width:1.5}.empty-mark .empty-core{fill:#c7ab8c;stroke:none}.year-chart .year-node circle{r:44}.year-chart .year-center circle{r:54}
/* The diagram starts at the actual available width; zoom grows it inside a scrollable frame. */
#matrixChart{width:100%;overflow:auto;overscroll-behavior-inline:contain}#matrixChart .chart{min-width:0;max-width:none;width:100%;height:auto;aspect-ratio:1;display:block;margin:0}.chart-tools{display:flex;justify-content:space-between;align-items:center;gap:10px;margin:14px 0 5px}.zoom-controls{display:flex;align-items:center;gap:8px;color:#796856;font-size:13px}.zoom-controls button,.pdf-button{border:1px solid #d8c7b3;background:#fffaf4;color:#705742;border-radius:7px;padding:8px 12px;font:600 14px Arial,sans-serif;cursor:pointer}.zoom-controls button{font-size:20px;min-width:38px;padding:3px 8px}.chart .decade{font:600 12px Arial,sans-serif;fill:#5c4d41;text-anchor:middle;dominant-baseline:middle}.chart .primary-A circle,.chart .primary-B circle{fill:#824985;stroke:#824985}.chart .primary-C circle,.chart .primary-D circle{fill:#bf6d63;stroke:#bf6d63}.chart .inner-A circle,.chart .inner-B circle{fill:#719ac0;stroke:#719ac0}.chart .inner-C circle,.chart .inner-D circle{fill:#d1a47d;stroke:#d1a47d}.chart .inner-A text,.chart .inner-B text,.chart .inner-C text,.chart .inner-D text{fill:white}.chart .center circle{fill:#f1d478}.chart .center text{font-size:22px}.chart .primary-A text,.chart .primary-B text,.chart .primary-C text,.chart .primary-D text{fill:white}@media(max-width:850px){.results{padding:12px}.chart-tools{margin:10px 0}.chart .age text{font-size:10px}}@media print{@page{size:A4 portrait;margin:12mm}body{background:white}main{max-width:none;padding:0}header,.tabs,.panel,.chart-tools,.blocks,.key,.disclosure,#extra,footer,.toggle{display:none!important}.workspace{display:block}.results{border:0;box-shadow:none;padding:0;min-height:0}.result-head{border:0;padding:0 0 12px}.chart-wrap{overflow:visible!important}.chart{width:100%!important;max-width:185mm!important;margin:auto!important;page-break-inside:avoid}}
#matrixChart{touch-action:pan-y;max-height:85vh}#matrixChart .chart{aspect-ratio:1}.pinch-hint{font-size:13px;color:#8e7c69}.chart .father-line{stroke:#6778a6;stroke-width:2}.chart .mother-line{stroke:#c7796e;stroke-width:2}.chart .line-label{font:10px Arial,sans-serif;text-anchor:middle;fill:#665954}.chart .comfort-label{font:10px Arial,sans-serif;text-anchor:middle;fill:#816e55}.chart .symbol{font:27px Arial,sans-serif;text-anchor:middle}.chart .heart-symbol{fill:#dc6c62}.chart .money-symbol{fill:#91bb78}.chart .age-tick{fill:#9b8b7b;stroke:none}.chart .node.outer-A circle,.chart .node.outer-B circle{fill:#4675b4;stroke:#4675b4}.chart .node.outer-A text,.chart .node.outer-B text{fill:white}.chart .heart-A circle,.chart .heart-B circle{fill:#82b77c;stroke:#82b77c}.chart .heart-A text,.chart .heart-B text{fill:white}.chart .channel-money circle,.chart .channel-love circle,.chart .channel-balance circle{fill:#fffdf9;stroke:#9d8372}.chart .primary-F circle,.chart .primary-G circle,.chart .primary-H circle,.chart .primary-I circle{fill:#fffdf9;stroke:#60554c}.chart .primary-F text,.chart .primary-G text,.chart .primary-H text,.chart .primary-I text{fill:#2e2925}.chart .primary-A circle,.chart .primary-B circle,.chart .primary-C circle,.chart .primary-D circle{r:28}.chart .primary-A text,.chart .primary-B text,.chart .primary-C text,.chart .primary-D text{font-size:21px}.chart .center circle{r:27}.chart .center text{font-size:22px}@media print{#matrixChart{max-height:none!important;touch-action:auto}.pinch-hint{display:none}}

.destiny-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;grid-column:1/-1}.destiny{padding:22px;background:#fffdf9;border:1px solid #eadfd5;border-radius:14px}.destiny h3{font:400 22px Georgia,serif;margin:0 0 12px}.destiny p{line-height:1.5;color:#675d55;margin:0 0 15px}.destiny .pill{margin:5px}.destiny-result{margin-left:12px}.decode-button{display:block;margin:18px auto 24px;padding:13px 28px;background:#e8d6d0;border:0;border-radius:30px;color:#70534b;font-size:15px;font-weight:600;opacity:.8;cursor:default}@media(max-width:600px){.destiny-grid{grid-template-columns:1fr}}@media print{.decode-button{display:none!important}}

.age-summary{display:grid;grid-template-columns:minmax(115px,1fr) 2fr;gap:12px;margin:12px 0 22px;padding:18px;background:#faf5ee;border:1px solid #e9d9ca;border-radius:12px}.age-summary[hidden]{display:none}.age-summary-label{display:block;color:#947b67;font-size:13px;margin-bottom:8px}.age-summary strong{font:500 25px Georgia,serif}.age-summary p{margin:5px 0;font-size:14px}.result-head .toggle{white-space:nowrap}@media(max-width:600px){.result-head{align-items:center}.result-head h2{font-size:21px}.result-head .toggle{font-size:11px}.age-summary{grid-template-columns:1fr;gap:10px}}@media print{.age-summary{display:none!important}}

/* Personal matrix styling based on the selected reference. */
.chart{background:#fff}.chart line,.chart polygon,.chart .outer-ring{stroke:#14213b;stroke-width:1.6}.chart .outer-ring{fill:#fff}.chart .secondary{stroke:#14213b;stroke-width:1.5}.chart .channel-guide{stroke:#c7cbd1;stroke-width:1;stroke-dasharray:9 10}.chart .father-line{stroke:#6176dc;stroke-width:2}.chart .mother-line{stroke:#e35b7e;stroke-width:2}.chart .node circle{fill:#f9f7f4;stroke:#14213b;stroke-width:1.6}.chart .node text{fill:#14213b;font-family:Arial,sans-serif}.chart .primary-A circle,.chart .primary-B circle{r:30;fill:#9250e2;stroke:#9250e2}.chart .primary-C circle,.chart .primary-D circle{r:30;fill:#ff4146;stroke:#ff4146}.chart .primary-A text,.chart .primary-B text,.chart .primary-C text,.chart .primary-D text{fill:#fff;font-size:23px}.chart .primary-F circle,.chart .primary-G circle,.chart .primary-H circle,.chart .primary-I circle{r:27;fill:#f9f7f4;stroke:#14213b}.chart .primary-F text,.chart .primary-G text,.chart .primary-H text,.chart .primary-I text{fill:#14213b;font-size:20px}.chart .outer-A circle,.chart .outer-B circle{fill:#287bea;stroke:#287bea}.chart .outer-A text,.chart .outer-B text{fill:#fff}.chart .inner-A circle,.chart .inner-B circle{fill:#32a9eb;stroke:#32a9eb}.chart .inner-A text,.chart .inner-B text{fill:#fff}.chart .heart-A circle,.chart .heart-B circle{fill:#7ad62b;stroke:#7ad62b}.chart .heart-A text,.chart .heart-B text{fill:#fff}.chart .outer-C circle,.chart .inner-C circle,.chart .outer-D circle,.chart .inner-D circle{fill:#ffad45;stroke:#ffad45}.chart .outer-C text,.chart .inner-C text,.chart .outer-D text,.chart .inner-D text{fill:#fff}.chart .center circle{r:29;fill:#ffe019;stroke:#ffe019}.chart .center text{fill:#fff;font-size:23px}.chart .gender-symbol{font:34px Arial,sans-serif;text-anchor:middle;dominant-baseline:middle}.chart .father-symbol{fill:#6176dc}.chart .mother-symbol{fill:#e35b7e}.chart .heart-symbol{fill:#ef5577;font-size:25px}.chart .money-symbol{fill:#73c94c;font-size:25px}.chart .decade{fill:#14213b;font-size:14px;font-weight:700}.chart .age .value{fill:#14213b;font-size:11px}.chart .age text:not(.value){fill:#4b5361;font-size:7px}.chart .age-tick{fill:#14213b}.chart .channel-balance circle,.chart .channel-money circle,.chart .channel-love circle{fill:#f9f7f4;stroke:#14213b}
