:root{--navy:#54243e;--ink:#40383e;--paper:#f8f6f0;--muted:#7c727a;--line:#e7dfd6;--gold:#b68c48;--action:#3f6658;--action-hover:#315347;--action-line:#bdcfc4;--action-soft:#f0f5ef}
.site-header{height:auto;min-height:148px;padding:24px 4.5%;gap:24px;background:linear-gradient(120deg,#fffcf7,#f7f3ed);border-bottom:1px solid #dfd3c2}
.lu-brand{display:flex;gap:22px;min-width:0;letter-spacing:0;color:var(--navy)}
.lu-mark{display:block;width:96px;height:96px;object-fit:contain;flex-shrink:0}
.lu-wordmark{display:block;min-width:0}.lu-brand-name{display:block;font:600 36px/1.35 Georgia,'Microsoft JhengHei',serif;letter-spacing:2px}
.lu-brand small{font-size:17px;line-height:1.6;letter-spacing:2px;color:var(--action);margin-top:8px}
.brand-partner{display:flex;align-items:center;gap:12px;flex-shrink:0}.brand-partner>span{font-size:12px;letter-spacing:1px;color:#8d806f}.brand-partner .culture-logo{height:34px;max-width:150px}
.declaration{background:linear-gradient(115deg,#54243e,#653b51);box-shadow:0 8px 28px #54243e0b}.declaration .eyebrow{color:#e4c887}.declaration>span:last-child{color:#f0e8ed}
.page-tabs{border-color:#ded3c3}.panel,.reading{box-shadow:0 4px 18px #54243e04}.panel.selected{border-color:#bc9c64}.reading{border-top-color:var(--action)}
textarea{background:#faf8f4;border-color:#e9e1d7}textarea::placeholder{color:#968c91}.reading-note{background:#f5f0f3;border-left-color:#a77d93}.reading-empty .empty-symbol{background:#f7f1f4;color:#9b7e8e;border-color:#e1d1d9}
.status{background:#f4eff2;color:#86717e}.position-label{color:#897e85}.coffee-button:disabled{color:#8b7782}
@media(max-width:860px){.site-header{padding:20px 3%}.lu-brand-name{font-size:32px}.lu-mark{width:84px;height:84px}.brand-partner>span{display:none}}
@media(max-width:540px){.site-header{padding:18px;gap:12px;flex-wrap:wrap;min-height:0}.lu-brand{gap:14px}.lu-mark{width:66px;height:66px}.lu-brand-name{font-size:29px;letter-spacing:1px}.lu-brand small{font-size:14px;letter-spacing:.5px;margin-top:4px;white-space:nowrap}.brand-partner{width:100%;justify-content:flex-end;padding-top:4px;border-top:1px solid #e9e0d4}.brand-partner>span{display:block;font-size:11px}.brand-partner .culture-logo{height:24px;max-width:110px}}

.declaration p{color:#fff8e9}
/* 命盤棋子沿用象棋命盤的字型、圓形與緊密排列，配合 LU 配色。 */
.chess,.snapshot-piece,.chart-pick,.pick-glyph,.chart-full-piece span,.chart-cell span{font-family:'Chess Hand',serif;font-synthesis:none;text-shadow:none}
.chart-bank{position:relative;top:auto;grid-template-columns:repeat(8,minmax(0,1fr));gap:4px;max-width:400px;padding:12px 8px;background:#fffcf6}
.chart-bank:not(.manual-bank) .chart-pick{width:100%;max-width:38px;aspect-ratio:1;min-width:0;min-height:0;height:auto;padding:0;display:grid;place-items:center;font-size:24px;line-height:1;border:1px solid #bcb5ab;border-radius:50%}
.chart-bank .chart-pick.covered{background:radial-gradient(circle at 35% 25%,#fffdf4,#e4eadd,#cbd7c8);color:#526b56;border:3px double #9caa8b}
.chart-bank .chart-pick:disabled{opacity:.25}
.chart-bank.manual-bank{grid-template-columns:repeat(7,minmax(0,46px));gap:4px}
.chart-bank.manual-bank{position:sticky;top:80px;z-index:12;background:#fffdf8;box-shadow:0 6px 18px #513a501c,inset 0 1px #fffef8}
@media(max-width:1080px){.chart-bank.manual-bank{top:70px}}
.manual-bank .chart-pick{border:0;background:transparent;box-shadow:none;min-height:56px;padding:0;gap:3px}
.manual-bank .pick-glyph{display:grid;place-items:center;width:30px;height:30px;font-size:24px;line-height:1;border:1px solid #bcb5ab;border-radius:50%;background:#fffdf8}
.manual-bank .pick-count{font:11px/1.3 sans-serif}
.chart-layout.chart-full-board,.snapshot-board.chart-preview.chart-full-board{--piece:30px;display:grid;grid-template-columns:repeat(3,var(--piece)) minmax(82px,110px);grid-template-rows:repeat(17,var(--piece));gap:6px 4px;justify-content:center;max-width:300px;padding:14px 10px 20px}
.chart-full-board .chart-full-piece{display:grid;place-items:center;width:var(--piece);height:var(--piece);min-width:0;min-height:0;border:1px solid #bcb5ab;background:#fffdf8;box-shadow:none}
.chart-full-board .chart-full-piece>span{font-size:calc(var(--piece)*.74);line-height:1;text-align:center}
.chart-full-board .chart-full-piece small{position:absolute;bottom:-5px;right:-5px;margin:0;font:8px/1 sans-serif;color:var(--muted);background:#fffdf8;pointer-events:none}
.chart-full-board .chart-full-piece.red{border-color:#bcb5ab;color:var(--red)}
.chart-full-board .chart-full-piece.black{border-color:#bcb5ab;color:#40383e}
.chart-full-board .chart-full-piece.chosen{outline:2px solid var(--gold);outline-offset:1px;background:#fff6df}
.chart-full-board .chart-full-label{font-size:12px;line-height:1.5;border:0;padding-left:10px}
.chart-layout.chart-expanded{--piece:46px;max-width:360px;gap:8px 5px}
.auto-chart-float #auto-chart-board.chart-full-board{--piece:30px;gap:4px}
.auto-chart-float .chart-full-piece small{display:none}
@media(max-width:540px){.chart-bank{gap:3px;padding:10px 6px}.chart-bank:not(.manual-bank) .chart-pick{font-size:22px}.chart-bank.manual-bank{grid-template-columns:repeat(7,minmax(0,1fr))}.chart-layout.chart-expanded{--piece:40px}.chart-full-board .chart-full-label{font-size:11px;padding-left:8px}}

.manual-bank .pick-glyph{font-family:'Chess Hand',serif}
/* 首頁分流與盤面保存。 */
.entry-choices{max-width:1050px;margin:44px auto 36px}.entry-heading{margin-bottom:24px}.entry-heading .eyebrow{color:var(--gold);margin-bottom:10px;display:block}.entry-heading h1{font-size:26px;line-height:1.6;color:var(--navy);margin:0 0 8px}.entry-heading p{color:var(--muted);font-size:15px;line-height:1.8;margin:0}.entry-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:22px}.entry-card{display:flex;flex-direction:column;align-items:flex-start;position:relative;padding:30px;border:1px solid #d9dfd1;border-radius:18px;background:linear-gradient(145deg,#fffef8,#f1f5ed);box-shadow:0 8px 28px #3f665806}.entry-chart{background:linear-gradient(145deg,#fffdf8,#f4edf1);border-color:#dfd2d7}.entry-symbol{font-size:28px;color:var(--gold);line-height:1.4;margin-bottom:18px}.entry-kicker{font-size:12px;letter-spacing:2px;color:var(--action);margin-bottom:10px}.entry-chart .entry-kicker{color:var(--navy)}.entry-card h2{font-size:23px;line-height:1.6;color:var(--ink);margin:0 0 12px;letter-spacing:.5px}.entry-card p{font-size:15px;line-height:1.9;color:#746b70;margin:0 0 26px;max-width:35em}.entry-card button{width:100%;margin-top:auto;display:flex;justify-content:space-between;align-items:center;gap:16px;border:1px solid var(--action);border-radius:9px;background:var(--action);color:#fff;padding:14px 18px;min-height:50px;font-size:16px;text-align:left}.entry-chart button{background:var(--navy);border-color:var(--navy)}
#divination-view,#chart-view{scroll-margin-top:22px;outline:none}.panel-record{display:block;width:100%;margin-top:14px;padding:10px 12px;border:1px solid var(--action-line);border-radius:8px;background:var(--action-soft);color:var(--action);font-size:14px}.record-save-card{max-width:780px;margin:28px auto;padding:28px;border:1px solid #d4ddce;border-radius:16px;background:linear-gradient(135deg,#fbfcf5,#f1f5ed);box-shadow:0 6px 24px #3f665807}.record-save-card .eyebrow{display:block;color:#8a724d;font-size:11px;letter-spacing:1.5px;margin-bottom:8px}.record-save-card h2,.reading .record-save-card h2{font-size:23px;line-height:1.6;margin:0 0 12px;color:var(--navy)}.record-save-card>p{font-size:15px;line-height:1.9;margin:0 0 20px;color:#6e7068}.record-actions{display:grid;gap:10px}.record-actions button{min-height:50px;width:100%;font-size:16px;line-height:1.6;padding:13px 18px;border-radius:9px;white-space:normal;letter-spacing:.2px}.record-actions .record-line{background:var(--action);color:#fff;border:1px solid var(--action);box-shadow:0 4px 12px #3f665812}.record-actions .record-download{background:#fffdf7;color:var(--action);border:1px solid #b9c8b3}.record-consult{border-top:1px solid #dce2d5;margin-top:24px;padding-top:18px;display:flex;flex-wrap:wrap;align-items:center;gap:8px 18px}.record-consult>span{font-size:13px;color:var(--muted)}.record-consult button,.reading-dialog .record-consult .consult-button{position:static;background:transparent;color:var(--navy);border:0;border-bottom:1px solid #c5b1bb;border-radius:0;width:auto;box-shadow:none;margin:0;padding:8px 0;font-size:14px;min-height:40px}.record-save-card .record-feedback{font-size:14px;line-height:1.8;margin:12px 0 0;color:var(--action);overflow-wrap:anywhere}.record-feedback:empty{display:none}.record-fallback textarea{min-height:140px;font-size:15px;line-height:1.7;background:#fff;margin:10px 0}.record-fallback p{font-size:14px;line-height:1.8;color:var(--ink);margin:18px 0 10px}.record-line-fallback{display:inline-block;margin-top:14px;font-size:15px;text-decoration:underline;line-height:1.8}.record-toast{position:fixed;z-index:1000;bottom:24px;left:50%;transform:translateX(-50%);width:max-content;max-width:calc(100vw - 32px);padding:16px 22px;border:1px solid #d1dbc9;border-radius:12px;background:#f7faf2;color:#354f40;font-size:15px;line-height:1.7;box-shadow:0 10px 35px #24382a26}.record-toast:popover-open{display:block}
.is-preparing{position:relative;isolation:isolate}.panel.is-preparing:before{content:'';position:absolute;z-index:-1;inset:10%;border-radius:50%;background:radial-gradient(ellipse,#d2dfba99,#eddbbb66 45%,transparent 73%);animation:prepare-breathe 3.2s ease-in-out infinite;pointer-events:none}#offline-status.is-preparing{padding:14px 20px;max-width:500px;border-radius:12px;background:linear-gradient(110deg,#f5eddc,#e8efdf,#f5eddc);background-size:200% 200%;animation:prepare-breathe 3.2s ease-in-out infinite} .status[data-status=loading]{background:#edf2e5;color:#58714e}@keyframes prepare-breathe{0%,100%{opacity:.5;filter:blur(0)}50%{opacity:1;filter:blur(.5px)}}
@media(max-width:650px){.entry-grid{grid-template-columns:1fr;gap:16px}.entry-choices{margin:30px auto}.entry-heading h1{font-size:23px}.entry-card{padding:24px}.entry-card h2{font-size:21px}.entry-symbol{margin-bottom:12px}.entry-card p{margin-bottom:20px}.record-save-card{padding:22px;margin:22px auto}.reading-dialog .record-save-card{padding:19px}.record-save-card h2,.reading .record-save-card h2{font-size:21px}.record-actions button{font-size:15px}.record-consult{gap:4px;flex-direction:column;align-items:flex-start}.record-toast{bottom:16px;font-size:14px}.entry-card button{font-size:15px}}
@media(prefers-reduced-motion:reduce){.panel.is-preparing:before,#offline-status.is-preparing{animation:none}}
.chart-consult{max-width:780px;margin:20px auto 30px;background:transparent;border:0;border-top:1px solid var(--line);border-radius:0;padding:24px 6px;box-shadow:none}.chart-consult h2{font-size:18px;line-height:1.7;color:var(--navy)}.chart-consult .service-price{font-size:20px}.chart-consult p{font-size:14px;color:var(--muted)}.chart-consult button:not(#chart-services-button){background:transparent;color:var(--navy);border:1px solid #c9b8c1;box-shadow:none;font-size:14px;padding:10px 14px}.chart-consult #chart-services-button{font-size:14px}
.clearing-overview .panel-record{margin-top:4px;padding:5px 2px;font-size:11px;min-height:30px;flex-shrink:0}
.board-privacy-note{grid-column:1/-1;display:block;width:100%;max-width:1050px;margin:0 auto -8px;font-size:13px;line-height:1.7;color:var(--muted);text-align:left;white-space:normal}.clearing-overview .board-privacy-note{font-size:12px;margin:0 auto;flex-shrink:0;text-align:center}

.clearing-overview .workspace{grid-template-rows:24px 44px minmax(0,1fr)}
/* 以原圖呈現品牌標題，所有尺寸保持完整比例。 */
.site-header.image-header{display:flex;flex-direction:column;align-items:stretch;gap:6px;min-height:0;padding:16px max(16px,calc((100vw - 1390px)/2));background:#faf7f0;border-bottom:1px solid #e6dccb}.image-header .lu-brand{display:block;width:50%;max-width:695px;margin:0 auto}.lu-header-image{display:block;width:100%;height:auto;max-width:1390px;margin:auto;object-fit:contain}.image-header .brand-partner{width:100%;justify-content:flex-end;padding:0 18px 3px;border:0;gap:10px}.image-header .brand-partner>span{display:block;font-size:11px}.image-header .brand-partner .culture-logo{height:25px;max-width:115px}
.entry-card-heading{display:flex;align-items:center;gap:14px;width:100%;margin-bottom:14px}.entry-card-heading .entry-symbol{flex-shrink:0;font-size:28px;line-height:1;margin:0}.entry-card-heading h2{margin:0;min-width:0;line-height:1.6}.entry-heading{margin-bottom:24px}#snapshot-line-fallback{display:inline-block;margin-top:12px;line-height:1.8;text-decoration:underline;font-size:15px}
@media(max-width:650px){.site-header.image-header{padding:8px 6px 10px;gap:3px}.image-header .brand-partner{padding:0 12px}.image-header .brand-partner .culture-logo{height:20px;max-width:96px}.image-header .brand-partner>span{font-size:10px}.entry-card-heading{gap:10px}.entry-card-heading .entry-symbol{font-size:24px}.entry-card-heading h2{font-size:clamp(17px,4.6vw,21px)}}
.record-fallback img{display:block;width:100%;max-width:320px;height:auto;margin:16px auto;border:1px solid var(--line);border-radius:10px}.record-fallback button{padding:12px 18px;border:1px solid var(--action-line);border-radius:8px;background:var(--action-soft);color:var(--action)}.entry-card-heading{margin-bottom:24px}
/* 種子練習以格局分卡，讓說明與可行的小步驟一起閱讀。 */
.seed-guidance,#chart-seed-guidance{font-size:16px;line-height:1.75;overflow-wrap:anywhere}.seed-guidance{margin-top:28px}.seed-guidance .seed-guidance-heading,#chart-seed-guidance>h2{color:var(--navy);font-size:22px;line-height:1.5;margin:0 0 12px}.seed-guidance-intro{color:#68636a;margin:0 0 22px;font-size:16px;line-height:1.75}.seed-guidance-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.seed-guidance-card{min-width:0;padding:24px;border:1px solid #d7e0d2;border-radius:14px;background:linear-gradient(145deg,#fffef9,#f4f7f0)}.seed-guidance .seed-guidance-pattern{font-size:19px;line-height:1.55;margin:0 0 14px;color:var(--navy)}.seed-guidance-tags{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.seed-guidance-tag{display:inline-block;max-width:100%;padding:4px 12px;border:1px solid #c6d6c7;border-radius:18px;background:#eaf1e7;color:#345747;font-size:16px;line-height:1.6;white-space:normal;overflow-wrap:anywhere}.seed-guidance .seed-guidance-description{font-size:16px;line-height:1.75;margin:0 0 16px;color:var(--ink)}.seed-guidance-actions{padding-left:24px;margin:0;font-size:16px;line-height:1.75;color:#384d40}.seed-guidance-actions li+li{margin-top:10px}.seed-guidance-conditional{margin-top:20px;padding-top:16px;border-top:1px solid #dfe2d9;color:#706772}.seed-guidance .seed-guidance-conditional-title{font-size:16px;margin:0 0 8px;color:var(--navy)}.seed-guidance .seed-guidance-conditional-item{font-size:16px;line-height:1.75;margin:6px 0 0}.seed-guidance-conditional-item strong{font-weight:600;color:#695163}.seed-guidance-empty{font-size:16px;line-height:1.75;color:#746b72;margin:12px 0}#chart-seed-guidance{max-width:1000px;margin:32px auto;padding:28px;border:1px solid #dfd5dc;border-radius:16px;background:#fcfaf9}.chart-seed-guidance-group{margin-top:14px;border:1px solid #ded7dc;border-radius:12px;background:#fffdf9;overflow:hidden}.chart-seed-guidance-group>summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px;cursor:pointer;color:var(--navy);font-size:17px;line-height:1.7;list-style:none}.chart-seed-guidance-group>summary::-webkit-details-marker{display:none}.chart-seed-guidance-group>summary:after{content:'＋';flex-shrink:0;color:var(--action)}.chart-seed-guidance-group[open]>summary:after{content:'−'}.chart-seed-guidance-group>summary strong{flex:1;min-width:0}.chart-seed-guidance-group>summary>span{font-size:16px;color:var(--action);flex-shrink:0}.chart-seed-guidance-group>.seed-guidance{margin:0;padding:0 20px 20px}.chart-seed-guidance-group>summary:focus-visible{outline:2px solid var(--action);outline-offset:-4px}
@media(max-width:650px){.seed-guidance-cards{grid-template-columns:1fr;gap:14px}.seed-guidance-card{padding:20px}.seed-guidance .seed-guidance-heading,#chart-seed-guidance>h2{font-size:21px}#chart-seed-guidance{padding:22px 16px;margin:24px auto}.chart-seed-guidance-group>summary{padding:16px 14px;gap:8px}.chart-seed-guidance-group>.seed-guidance{padding:0 12px 14px}.seed-guidance .seed-guidance-pattern{font-size:18px}}
.grounding-practice>summary{cursor:pointer;color:var(--action);font-size:18px;font-weight:600;line-height:1.6}.grounding-practice ol{padding-left:26px;margin:20px 0 8px}.grounding-practice li{padding-left:6px;font-size:16px;line-height:1.8}.grounding-practice li+li{margin-top:16px}.grounding-practice li strong,.grounding-practice li span{display:block}.grounding-practice li strong{color:var(--navy);margin-bottom:3px}.grounding-sources{margin-top:22px;padding-top:16px;border-top:1px solid #dfe3d9}.grounding-sources>summary{font-size:16px;color:#695363;cursor:pointer}.grounding-source-links{display:flex;flex-wrap:wrap;gap:10px 22px;margin-top:14px}.grounding-source-links a{font-size:16px;color:var(--action);text-decoration:underline;text-underline-offset:3px}.grounding-practice summary:focus-visible{outline:2px solid var(--action);outline-offset:5px}@media(max-width:650px){.grounding-practice>summary{font-size:17px}.grounding-practice ol{padding-left:22px}}
.declaration>span:not(.eyebrow){color:#f0e8ed}
.seed-guidance-cards{grid-template-columns:repeat(auto-fit,minmax(min(100%,290px),1fr))}.seed-guidance .seed-guidance-seed-label,.seed-guidance .seed-guidance-action-title{font-size:16px;line-height:1.6;font-weight:600;letter-spacing:0;margin:0 0 8px;color:#3f6658}
/* 陽光與外圈以九秒同調呼吸，宣告與操作內容保持靜止。 */
.declaration:before{animation:lu-sun-breathe 9s ease-in-out infinite;transform-origin:center;will-change:transform,opacity}.declaration:after{animation:lu-sun-halo-breathe 9s ease-in-out infinite;transform-origin:center;will-change:transform,opacity}
@keyframes lu-sun-breathe{0%,100%{opacity:var(--sun-breath-low,.48);transform:scale(.82)}50%{opacity:var(--sun-breath-high,.92);transform:scale(1.14)}}
@keyframes lu-sun-halo-breathe{0%,100%{opacity:.35;transform:scale(.94)}50%{opacity:.8;transform:scale(1.05)}}
@media(max-width:540px){.declaration{--sun-breath-low:.3;--sun-breath-high:.62}}
@media(prefers-reduced-motion:reduce){.declaration:before,.declaration:after{animation:none;transform:none;will-change:auto}}
.healing-intro{--healing-copy-size:13px;gap:10px;padding:12px 16px;margin-bottom:14px}.healing-intro-mark{display:grid;place-items:center;flex-shrink:0;width:22px;height:22px;margin-top:1px;line-height:1}.healing-intro-mark svg{display:block;width:22px;height:22px}.healing-intro h2{font-size:15px;line-height:1.45;margin-bottom:1px}.healing-intro summary{display:block;font-size:var(--healing-copy-size);padding:2px 0;min-height:24px;line-height:1.5}.healing-intro summary:after{content:' ＋'}.healing-intro details[open] summary:after{content:' －'}.healing-intro .healing-details-copy{gap:6px;margin-top:2px}.healing-intro .healing-details-copy p{font-size:var(--healing-copy-size);line-height:1.55}
.entry-map-icon{display:block;width:1em;height:1em}.chart-profile{grid-template-columns:minmax(0,1fr)}.chart-female-placement{justify-content:center;width:fit-content;max-width:100%;margin:12px auto 8px;font-size:14px;line-height:1.6;color:var(--action)}
@media(max-width:540px){.healing-intro{padding:12px 14px}.healing-intro-mark{left:14px;top:12px}.healing-intro h2{padding-left:28px;font-size:15px;line-height:1.45;margin-bottom:1px}}
.board-privacy-note.operation-status-note{display:flex;align-items:flex-start;gap:10px;font-size:15px;line-height:1.8;margin:0 auto;text-align:left}.operation-status-mark{flex-shrink:0;color:var(--gold);font-size:24px;line-height:1.3}.operation-status-note #offline-status{display:block;flex:1;min-width:0;font:inherit;color:inherit;white-space:normal}.operation-status-note #offline-status.is-preparing{padding:0;max-width:none;border-radius:0;background:transparent;animation:none}.clearing-overview .workspace{grid-template-rows:auto 44px minmax(0,1fr)}.clearing-overview .operation-status-note{font-size:12px;line-height:1.5;gap:6px;margin:0 auto}.clearing-overview .operation-status-mark{font-size:18px}
#panels textarea::placeholder{font-size:13px;line-height:1.5}.clearing-overview #panels textarea::placeholder{font-size:12px}
@media(max-width:650px){.clearing-overview #panels textarea{min-height:68px;height:68px;max-height:68px;line-height:1.5}.clearing-overview #panels .board-button{container-type:size}.clearing-overview #panels .board{width:min(100%,240px,100cqh)}}
.seed-guidance-actions{list-style:none;padding-left:0}
.seed-guidance .seed-guidance-board-note{margin:0 0 8px;color:var(--muted);font-size:13px;line-height:1.6}
.seed-practice-focus{font-size:inherit;line-height:inherit;margin-bottom:16px;color:var(--ink)}.seed-practice-focus-title{margin:0 0 4px;font:inherit;font-weight:600;color:var(--action)}.seed-practice-focus-list{list-style:none;margin:0;padding:0}.seed-practice-focus-list>li+li{margin-top:4px}.seed-practice-focus-list+.seed-practice-focus-title{margin-top:8px}
.chart-seed-guidance-retry{min-height:44px;padding:10px 16px;border:1px solid var(--action-line);border-radius:8px;background:var(--action-soft);color:var(--action);font-size:16px}
/* 與象棋命盤同一棋面：內附字型、細圈與置中留白，保留 LU 配色。 */
.chess,.snapshot-piece,.pick-glyph,.chart-full-piece,.chart-full-piece>span,.chart-pick.covered{font-family:'Chess Hand',serif;font-weight:400;font-synthesis:none;line-height:1;letter-spacing:0;text-shadow:none}
.chess,.snapshot-piece{display:flex;align-items:center;justify-content:center;padding:0;border:1px solid #bcb5ab;background:#fffdf8;width:var(--chess-size);height:var(--chess-size);font-size:calc(var(--chess-size)*.594)}
.chess{--chess-size:48px}.snapshot-piece{--chess-size:50px}
.chess:not(.empty),.snapshot-piece{background:#fffdf8;box-shadow:none}
.chess.red,.snapshot-piece.red{border-color:#bcb5ab;background:#fffdf8}.chess.black,.snapshot-piece.black{color:var(--ink)}
.saved-board-preview .snapshot-piece{--chess-size:40px;width:var(--chess-size);height:var(--chess-size);font-size:calc(var(--chess-size)*.594)}
.saved-chart-preview{container-type:inline-size}.saved-chart-preview .snapshot-piece{width:100%;height:auto;font-size:calc((100cqw - 28px)*.07425)}
.chart-full-board .chart-full-piece{padding:0;display:flex;align-items:center;justify-content:center;border:1px solid #bcb5ab;font-size:calc(var(--piece)*.594);line-height:1;letter-spacing:0}
.chart-full-board .chart-full-piece>span{display:block;font:inherit;font-family:'Chess Hand',serif;line-height:1;text-align:center}
#chart-layout.chart-full-board{--piece:40px;gap:8px 3px;padding:5px 4px 12px}
#chart-layout.chart-expanded{--piece:50px;gap:7px 3px;max-width:360px}#chart-layout.chart-expanded .chart-full-piece{font-size:30.36px}
#snapshot-board.chart-full-board{--piece:34px;gap:2px}#snapshot-board .chart-full-piece{font-size:19.5px}
.auto-chart-float #auto-chart-board.chart-full-board{--piece:30px;gap:2px}#auto-chart-board .chart-full-piece{font-size:17.82px}
.manual-bank .chart-pick{display:grid;grid-template-rows:40px 18px;justify-items:center;align-items:center;align-content:start;gap:0;min-height:58px;height:58px}
.manual-bank .pick-glyph{display:flex;align-items:center;justify-content:center;width:38px;height:38px;padding:0;font-size:24px;line-height:1}
.manual-bank .chart-pick.black{grid-row:1}.manual-bank .chart-pick.red{grid-row:2}
.chart-bank:not(.manual-bank) .chart-pick{width:38px;height:38px;max-width:100%;font-size:20px;line-height:1}
.clearing-overview .board{--chess-size:clamp(27px,26cqw,48px)}
.clearing-overview .chess{--chess-size:clamp(27px,26cqw,48px);width:var(--chess-size);height:var(--chess-size);font-size:calc(var(--chess-size)*.594);border-width:1px}
.clearing-overview .pos-1{left:calc(50% - var(--chess-size) - 2px)}.clearing-overview .pos-2{left:calc(50% + var(--chess-size) + 2px)}
.clearing-overview .pos-3{top:calc(50% - var(--chess-size) - 2px)}.clearing-overview .pos-4{top:calc(50% + var(--chess-size) + 2px)}
@media(max-width:600px){#chart-layout.chart-expanded{--piece:46px;gap:6px 3px}#chart-layout.chart-expanded .chart-full-piece{font-size:27.72px}.manual-bank .chart-pick{grid-template-rows:32px 18px;min-height:50px;height:50px}.manual-bank .pick-glyph{width:30px;height:30px;font-size:20px}.chart-bank:not(.manual-bank) .chart-pick{width:30px;height:30px;font-size:17px}}
/* 矮螢幕可捲動四格，保留棋面留白與按鈕空間。 */
@media(max-width:650px) and (max-height:700px){.clearing-overview .workspace .panels{grid-template-rows:repeat(2,minmax(300px,1fr));overflow-y:auto}}
/* 命盤頁以同一閱讀寬度對齊主要區塊。 */
#chart-view{width:100%;max-width:1000px;margin-inline:auto}
#chart-view>:is(.birthday-section,.chart-help,#chart-seed-guidance,#chart-save,.chart-consult){width:100%;max-width:none;margin:28px 0;padding:28px;border-radius:16px}
#chart-view>.chart-consult{border:1px solid var(--line);background:#fffdf8}
#chart-save .record-actions{grid-template-columns:1fr;gap:12px}
@media(max-width:650px){#chart-view>:is(.birthday-section,.chart-help,#chart-seed-guidance,#chart-save,.chart-consult){margin:24px 0;padding:20px}#chart-seed-guidance .chart-seed-guidance-group>.seed-guidance{padding:0 8px 12px}#chart-seed-guidance .seed-guidance-card{padding:16px}#chart-save .record-actions{grid-template-columns:1fr}#chart-view>.chart-consult button{width:100%;margin-right:0}}
.entry-card-heading h2 a{color:inherit;text-decoration:none}
#divination-view>:is(.workspace-heading,.healing-intro){width:100%;max-width:1050px;margin-inline:auto}#divination-view .workspace{scroll-margin-top:16px}
.workspace-heading p .clearing-guide-link{display:inline-flex;align-items:center;gap:6px;color:var(--action);font-family:inherit;font-size:inherit;font-weight:400;line-height:inherit;letter-spacing:inherit;text-decoration:underline;text-underline-offset:4px;vertical-align:middle;white-space:nowrap}.clearing-guide-mark{display:block;flex-shrink:0;width:18px;height:18px}.clearing-guide-arrow{flex-shrink:0;font-size:14px;color:inherit}.workspace-heading p .clearing-guide-link:hover{color:var(--action-hover)}.workspace-heading p .clearing-guide-link:focus-visible{outline:2px solid #aa8d59;outline-offset:4px;border-radius:2px}
#panels{outline:none}
.chart-entry-note{margin:20px 0 10px;color:var(--muted);font-size:14px;line-height:1.7}
.chart-profile{display:grid;grid-template-columns:minmax(220px,1fr) minmax(220px,1fr);align-items:center;gap:20px 32px;padding:24px 28px;margin:20px 0 28px;border:1px solid #d8dccc;border-radius:16px;background:linear-gradient(115deg,#fffdf7,#f1f5ed)}
.chart-name-label{display:grid;gap:10px;color:var(--navy);font-size:16px;font-weight:600}.chart-name-label input{width:100%;min-height:48px;padding:12px 14px;border:1px solid #c6d0be;border-radius:9px;background:#fffefb;color:var(--ink);font-family:inherit;font-size:16px;font-weight:400;line-height:1.5}.chart-name-label input::placeholder{font-size:14px;color:#8c8387}.chart-name-label input:focus-visible{outline:2px solid var(--action);outline-offset:3px}.chart-profile .chart-female-option{margin:0;font-size:15px;line-height:1.8;color:var(--action);cursor:pointer}.chart-profile .chart-female-option input{width:20px;height:20px;flex-shrink:0;accent-color:var(--action)}
/* 以局別、分類色帶及緊湊清單呈現層次，建議緊接在所屬項目下方。 */
#chart-view>#chart-seed-guidance{padding:20px}.chart-seed-guidance-group{margin-top:10px;border-radius:10px}.chart-seed-guidance-group+.chart-seed-guidance-group{margin-top:22px}.chart-seed-guidance-group>summary{padding:12px 16px;font-size:18px;line-height:1.5}.chart-seed-guidance-group[open]>summary{background:#f4eef1;border-bottom:1px solid #e5dce0}.chart-seed-guidance-group>summary>span{font-size:14px}
.chart-cleaning-category{padding:0 16px 10px}.chart-cleaning-category>h3{margin:14px 0 0;padding:7px 10px;border-left:3px solid #90a58a;border-radius:0 5px 5px 0;background:#eef2e9;font-size:14px;font-weight:600;line-height:1.5;letter-spacing:.3px;color:var(--action)}.chart-cleaning-item{min-width:0;padding:12px 10px;margin:0;border:0;border-bottom:1px solid #e9e5dc;border-radius:0;background:transparent}.chart-cleaning-item:last-child{border-bottom:0}.chart-cleaning-item>.chart-cleaning-item-text{margin:0;color:var(--ink);font-size:16px;font-weight:600;line-height:1.65}.chart-cleaning-item>.checklist-item-note{margin:5px 0 0;font-size:13px;color:var(--muted);line-height:1.65}.chart-cleaning-item .checklist-relations{display:flex;flex-wrap:wrap;gap:4px;margin-top:6px}.chart-cleaning-item .checklist-relations>span{padding:2px 7px;border-radius:4px;font-size:12px;background:#f3eee7;color:#806747}
.chart-cleaning-practices{margin-top:7px;padding:0;border:0;border-radius:6px;background:#f5f7f1}.chart-cleaning-practices>summary{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px;min-height:36px;padding:6px 9px;list-style:none;cursor:pointer;color:var(--action);font-size:13px;font-weight:500;line-height:1.5}.chart-cleaning-practices>summary::-webkit-details-marker{display:none}.chart-cleaning-practices>summary:before{content:'＋';font-size:16px;font-weight:400;flex-shrink:0}.chart-cleaning-practices[open]>summary:before{content:'−'}.chart-cleaning-practices>summary:focus-visible{outline:2px solid var(--action);outline-offset:2px}.chart-cleaning-seed-names{max-width:100%;margin-left:3px;padding:2px 8px;border:1px solid #dce5d5;border-radius:12px;background:#fffefa;font-size:12px;font-weight:400;color:#66745e;line-height:1.5}
.chart-cleaning-practices>.seed-guidance{margin:0;padding:0 12px 12px}.chart-cleaning-practices .seed-guidance-cards{grid-template-columns:1fr;gap:10px}.chart-cleaning-practices .seed-guidance-card{padding:10px 0 0;border:0;border-top:1px solid #dfe6d7;border-radius:0;background:transparent;box-shadow:none}.chart-cleaning-practices .seed-guidance .seed-guidance-pattern{font-size:15px;margin:0 0 8px;color:var(--action)}.chart-cleaning-practices .seed-guidance .seed-guidance-description{font-size:14px;line-height:1.7;margin-bottom:10px}.chart-cleaning-practices .seed-guidance-tags{gap:5px;margin-bottom:10px}.chart-cleaning-practices .seed-guidance-tag{font-size:13px;padding:2px 9px}.chart-cleaning-practices .seed-guidance .seed-guidance-action-title,.chart-cleaning-practices .seed-guidance .seed-guidance-seed-label,.chart-cleaning-practices .seed-guidance-actions,.chart-cleaning-practices .seed-guidance .seed-guidance-conditional-title,.chart-cleaning-practices .seed-guidance .seed-guidance-conditional-item{font-size:14px;line-height:1.7}.chart-cleaning-practices .seed-guidance .seed-guidance-action-title,.chart-cleaning-practices .seed-guidance .seed-guidance-seed-label{margin-bottom:5px}.chart-cleaning-practices .seed-guidance-actions li+li{margin-top:5px}.chart-cleaning-practices .seed-guidance-conditional{margin-top:12px;padding-top:10px}
@media(max-width:650px){.chart-profile{grid-template-columns:1fr;gap:20px;padding:20px;margin:20px 0 24px}#chart-view>#chart-seed-guidance{padding:14px}.chart-seed-guidance-group>summary{padding:12px;font-size:17px}.chart-cleaning-category{padding:0 10px 8px}.chart-cleaning-category>h3{margin-top:10px;font-size:13px}.chart-cleaning-item{padding:10px 3px}.chart-cleaning-item>.chart-cleaning-item-text{font-size:15px}#chart-seed-guidance .chart-cleaning-practices .seed-guidance-card{padding:9px 0 0}.chart-cleaning-seed-names{flex-basis:auto;margin-left:0}.chart-cleaning-practices>summary{min-height:40px;gap:5px 7px}}
.role-explanation-toggle{display:inline;padding:0 1px;border:0;border-radius:0;background:transparent;color:var(--action);font:inherit;font-weight:600;text-decoration:underline;text-underline-offset:4px}
.role-explanation{margin-top:2px;padding:10px 14px;border:1px solid #d7dfd2;border-radius:10px;background:#fffdf8}
.role-explanation-figure{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px 18px;margin:6px 0 0}
.role-explanation-figure img{display:block;width:100px;height:auto;max-width:100%;flex-shrink:0}
.role-explanation-positions{display:grid;gap:5px;min-width:0;color:var(--action);font-size:14px;line-height:1.5}
.healing-intro>div{flex:1}.healing-details-text{display:grid;align-content:start;gap:6px;min-width:0}
.workspace>.workspace-view-tools{grid-column:1/-1;justify-content:flex-end;width:100%;max-width:1050px;margin:0 auto}.clearing-overview .workspace>.workspace-view-tools{display:none}
@media(min-width:960px){.healing-intro .healing-details-copy:has(>.role-explanation:not([hidden])){grid-template-columns:minmax(0,1fr) minmax(300px,420px);column-gap:24px;align-items:start}.healing-details-copy>.role-explanation{margin:0}}
@media(max-width:540px){.role-explanation{padding:10px 12px}.role-explanation-figure{gap:8px 12px}.role-explanation-figure img{width:92px;height:auto}.role-explanation-positions{gap:4px;font-size:13px}}

/* 首頁先呈現品牌、宣告與兩個入口，展開練習時可繼續往下閱讀。 */
.site-header.image-header.lu-code-header{position:relative;display:block;padding:18px clamp(16px,3.4vw,64px) 0;background:transparent;border:0}
.lu-code-header .lu-brand{position:relative;isolation:isolate;display:flex;align-items:center;justify-content:flex-start;gap:32px;width:100%;max-width:none;min-height:clamp(180px,26svh,230px);margin:0;padding:20px clamp(24px,5vw,72px);border:1px solid #cbb894;border-radius:20px;background:#fcf7ec url('assets/lu-paths.svg') center/cover no-repeat;box-shadow:0 12px 30px #60452b10,inset 0 0 0 5px #fffdf5,inset 0 0 0 6px #d6c6a754;overflow:hidden}
.lu-code-header .lu-brand:before{content:'';position:absolute;inset:0;z-index:-1;background:url('assets/lu-paper.svg');pointer-events:none}
.lu-code-header .home-brand-mark{display:block;width:164px;height:164px;object-fit:contain;flex-shrink:0;filter:drop-shadow(0 3px 3px #583b2412)}
.home-brand-divider{display:block;align-self:center;width:1px;height:104px;background:linear-gradient(transparent,#b79a63aa,transparent);flex-shrink:0}
.home-brand-copy{display:flex;flex-direction:column;gap:12px;min-width:0}
.home-brand-title{font:600 clamp(44px,4.8vw,66px)/1.15 Georgia,'PMingLiU','Songti TC',serif;letter-spacing:3px;color:#4d2038;text-shadow:0 1px #fffdf8}
.home-brand-slogan{font:400 clamp(18px,1.8vw,25px)/1.5 'PMingLiU','Songti TC',serif;letter-spacing:2px;color:#3d5b4c;white-space:nowrap}
.home-brand-slogan>span{display:inline;white-space:nowrap}
.home-header .brand-partner{position:absolute;bottom:13px;right:max(38px,calc(3.4vw + 22px));width:auto;padding:0;gap:8px}
.home-header .brand-partner>span{font-size:10px;letter-spacing:1px;color:#8b795f}
.home-header .brand-partner .culture-logo{height:22px;max-width:105px}
.home-main{max-width:1340px;padding:22px clamp(16px,3.4vw,52px) 0}
.home-main>.declaration{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,320px);column-gap:24px;row-gap:4px;align-items:center;padding:22px 26px;border:1px solid #714b60;border-radius:16px;box-shadow:0 8px 24px #54243e09}
.home-main>.declaration>.eyebrow{grid-column:1;font-size:12px;line-height:1.5;letter-spacing:1.5px}
.home-main>.declaration>p{grid-column:1;font-size:26px;line-height:1.5;letter-spacing:1px;margin:2px 0 4px}
.home-main>.declaration>span:not(.eyebrow){grid-column:1;font-size:15px;line-height:1.7}
.home-main>.entry-choices{max-width:none;margin:20px 0 12px}
.home-main .entry-heading{display:flex;flex-wrap:wrap;align-items:baseline;gap:6px 14px;margin-bottom:14px}
.home-main .entry-heading .eyebrow{margin:0;font-size:12px;line-height:1.6;letter-spacing:1px}
.home-main .entry-heading h1{margin:0;font-size:23px;line-height:1.5;letter-spacing:.5px}
.home-main .entry-heading h1,.home-main .entry-card-heading h2,.home-main .entry-card button{white-space:nowrap}
.home-main .entry-grid{gap:16px}
.home-main .entry-card{min-height:190px;padding:24px 18px;border-radius:18px;border-color:#d5d9c8;isolation:isolate;overflow:hidden;background-image:url('assets/lu-paper.svg'),linear-gradient(135deg,#fffef7,#eff3e9);box-shadow:0 7px 20px #48342508,inset 0 0 0 4px #fffdf688}
.home-main .entry-card:before{content:'';position:absolute;width:240px;height:240px;top:-104px;right:-46px;border:1px solid #b69b6747;border-radius:50%;box-shadow:0 0 0 20px #b69b670b,0 0 0 44px #b69b6707;pointer-events:none;z-index:-1}
.home-main .entry-card:after{content:'';position:absolute;inset:0;background:url('assets/lu-paths.svg') center/100% 100% no-repeat;opacity:.8;pointer-events:none;z-index:-1}
.home-main .entry-chart{border-color:#ded0d2;background-image:url('assets/lu-paper.svg'),linear-gradient(135deg,#fffdf6,#f1e8ed)}
.home-main .entry-chart:before{width:180px;height:180px;top:-90px;right:24px;border-radius:24px;transform:rotate(38deg);border-color:#b69b6738;box-shadow:0 0 0 18px #b69b6709,0 0 0 36px #b69b6706}
.home-main .entry-card-heading{gap:10px;margin-bottom:14px}
.home-main .entry-card-heading h2{font-size:21px;line-height:1.5;letter-spacing:0}
.home-main .entry-title-part{display:inline-block;white-space:nowrap}
.home-main .entry-card-heading .entry-symbol{display:grid;place-items:center;flex-shrink:0;width:34px;height:34px;border:1px solid #c4a76e55;border-radius:50%;background:#fffaf0;font-size:24px}
.home-main .entry-card button{width:100%;min-height:48px;padding:11px 16px;font-size:16px;line-height:1.5;border-radius:10px}
.home-main .entry-card:not(.entry-chart) button{background:linear-gradient(120deg,#406957,#315448);border-color:#365b4c;box-shadow:inset 0 1px #ffffff1a,0 3px 8px #31544812}
.home-main .entry-chart button{background:linear-gradient(120deg,#62354b,#4e243b);border-color:#54283e;box-shadow:inset 0 1px #ffffff1a,0 3px 8px #54283e12}
.home-main>footer{padding:14px 0;font-size:12px}
@media(min-width:701px) and (max-height:700px){
  .site-header.image-header.lu-code-header{padding-top:10px}
  .lu-code-header .lu-brand{min-height:124px;padding:10px 24px;gap:22px}
  .lu-code-header .home-brand-mark{width:92px;height:92px}
  .home-brand-divider{height:70px}
  .home-brand-copy{gap:8px}
  .home-brand-title{font-size:44px}
  .home-brand-slogan{font-size:18px}
  .home-header .brand-partner{bottom:10px}
  .home-header .brand-partner .culture-logo{height:18px;max-width:88px}
  .home-main{padding-top:12px}
  .home-main>.declaration{padding:16px 20px}
  .home-main>.declaration>p{font-size:23px}
  .home-main>.entry-choices{margin-top:14px}
  .home-main .entry-heading{margin-bottom:10px}
  .home-main .entry-card{padding:16px 16px}
  .home-main .entry-card-heading{margin-bottom:10px}
}
@media(max-width:700px){
  .site-header.image-header.lu-code-header{padding:12px 16px 0}
  .lu-code-header .lu-brand{width:100%;max-width:none;min-height:148px;padding:16px;gap:14px;border-radius:15px}
  .lu-code-header .home-brand-mark{width:96px;height:96px}
  .home-brand-divider{height:74px}
  .home-brand-copy{gap:10px}
  .home-brand-title{font-size:42px;letter-spacing:1px;white-space:nowrap}
  .home-brand-slogan{font-size:16px;letter-spacing:.7px;line-height:1.5}
  .home-header .brand-partner{width:auto;bottom:12px;right:34px;gap:7px}
  .home-header .brand-partner>span{font-size:10px}
  .home-header .brand-partner .culture-logo{height:18px;max-width:88px}
  .home-main{padding:14px 16px 0}
  .home-main>.declaration{grid-template-columns:1fr;gap:4px;padding:18px 20px;border-radius:14px}
  .home-main>.declaration>p{font-size:22px;line-height:1.5;margin:2px 0 4px}
  .home-main>.declaration>span:not(.eyebrow){font-size:14px;line-height:1.65}
  .home-main>.entry-choices{margin:16px 0 8px}
  .home-main .entry-heading{gap:3px 10px;margin-bottom:12px}
  .home-main .entry-heading h1{font-size:20px}
  .home-main .entry-grid{grid-template-columns:1fr;gap:12px}
  .home-main .entry-card{display:flex;flex-direction:column;align-items:stretch;gap:10px;min-height:148px;padding:16px;border-radius:15px}
  .home-main .entry-card-heading{gap:8px;margin:0}
  .home-main .entry-card-heading h2{font-size:18px;line-height:1.55}
  .home-main .entry-card-heading .entry-symbol{font-size:20px;width:28px;height:28px}
  .home-main .entry-card button{margin:0;margin-top:auto;padding:10px 12px;font-size:15px;min-height:48px;justify-content:center;text-align:center}
  .home-main .entry-card button>span{display:none}
}
@media(max-width:360px){
  .lu-code-header .lu-brand{width:100%;min-height:124px;padding:12px;gap:10px}
  .lu-code-header .home-brand-mark{width:76px;height:76px}
  .home-brand-divider{height:64px}
  .home-brand-title{font-size:36px}
  .home-brand-slogan{font-size:14px;letter-spacing:.3px}
  .site-header.image-header.lu-code-header{padding:10px 12px 0}
  .home-header .brand-partner{right:28px;bottom:10px}
  .home-main{padding:12px 12px 0}
  .home-main>.declaration{padding:14px 16px}
  .home-main>.declaration>p{font-size:20px}
  .home-main>.entry-choices{margin-top:12px}
  .home-main .entry-grid{gap:8px}
  .home-main .entry-card{min-height:140px;padding:12px;gap:6px}
  .home-main .entry-card-heading h2{font-size:17px}
  .home-main .entry-card-heading .entry-symbol{font-size:18px;width:24px;height:24px}
}
@media(min-width:361px) and (max-width:700px) and (max-height:700px){
  .lu-code-header .lu-brand{min-height:140px}
  .home-main>.declaration{padding:16px 18px}
  .home-main>.entry-choices{margin-top:12px}
  .home-main .entry-card{min-height:140px}
}
@media(min-width:540px) and (max-height:500px){
  .site-header.image-header.lu-code-header{padding:8px 18px 0}
  .lu-code-header .lu-brand{width:100%;max-width:none;min-height:82px;padding:6px 18px;gap:16px}
  .lu-code-header .home-brand-mark{width:60px;height:60px}
  .home-brand-divider{height:52px}
  .home-brand-title{font-size:32px;line-height:1.1}
  .home-brand-copy{gap:4px}
  .home-brand-slogan{font-size:14px;line-height:1.35}
  .home-header .brand-partner{right:34px;bottom:8px}
  .home-header .brand-partner .culture-logo{height:15px;max-width:76px}
  .home-main:has(>#divination-view[hidden]):has(>#chart-view[hidden]){display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);align-items:start;gap:10px 16px;padding-top:8px}
  .home-main>.declaration{grid-template-columns:1fr;gap:4px;padding:14px 16px}
  .home-main>.declaration>p{font-size:20px;line-height:1.45}
  .home-main>.declaration>span:not(.eyebrow){font-size:14px}
  .home-main>.entry-choices{margin:0}
  .home-main .entry-heading{margin-bottom:8px;gap:2px 10px}
  .home-main .entry-heading h1{font-size:20px}
  .home-main .entry-grid{grid-template-columns:1fr;gap:6px}
  .home-main .entry-card{display:flex;flex-direction:column;align-items:stretch;gap:4px;min-height:110px;padding:7px 12px}
  .home-main .entry-card-heading{margin:0;gap:8px}
  .home-main .entry-card-heading h2{font-size:17px}
  .home-main .entry-card-heading .entry-symbol{font-size:18px;width:24px;height:24px}
  .home-main .entry-card button{margin:0;margin-top:auto;min-height:44px;padding:8px 10px;font-size:15px;text-align:center;justify-content:center}
  .home-main .entry-card button>span{display:none}
  .home-main>footer{grid-column:1/-1;padding:4px 0 10px}
}

/* 咖啡心意沿用暖紙色與墨綠，以選項卡片承接支持按鈕。 */
.coffee-direct .coffee-button{max-width:calc(100% - 10px);min-width:0;min-height:46px;padding:13px 24px;border-color:#bda77a;background:linear-gradient(130deg,#fffcf1,#f0e5cf);color:#735739;box-shadow:inset 0 1px #fffdf7,0 4px 12px #7258350a;font-size:15px;line-height:1.6;letter-spacing:1px;transform-origin:center;animation:coffee-support-breathe 4.8s ease-in-out infinite}
.coffee-direct .coffee-button:is(:hover,:focus,:active){animation-play-state:paused}
@keyframes coffee-support-breathe{0%,100%{transform:scale(.985);opacity:.9}50%{transform:scale(1.015);opacity:1}}
@media(max-width:360px){.coffee-direct .coffee-button{padding:12px 16px;letter-spacing:.9px}}
@media(prefers-reduced-motion:reduce){.coffee-direct .coffee-button{animation:none;transform:none;opacity:1}}
.coffee-dialog{position:relative;width:min(860px,calc(100vw - 32px));max-height:calc(100svh - 32px);overflow:auto;margin:auto;padding:32px 30px 24px;border:1px solid #c8b38e;border-radius:20px;color:var(--ink);background:#faf6eb url('assets/lu-paper.svg');box-shadow:0 24px 80px #2e1e2940,inset 0 0 0 5px #fffdf5}
.coffee-dialog::backdrop{background:#30242b99;backdrop-filter:blur(5px)}
.coffee-dialog-heading{text-align:center;padding:0 38px}.coffee-heading-icon{display:block;margin:0 auto 8px;color:#a5844c;width:44px;height:44px}
.coffee-dialog-eyebrow{display:block;margin:0;font-size:11px;line-height:1.7;letter-spacing:1.5px;color:#9c7b43}
.coffee-dialog h2{margin:8px 0 12px;font:600 28px/1.5 'PMingLiU','Songti TC',serif;letter-spacing:1px;color:var(--navy)}
.coffee-dialog-intro{max-width:none;margin:0 auto 30px;text-align:center;font-size:14px;line-height:1.6;color:#746e6c;white-space:nowrap}.coffee-intro-compact{display:none}
.coffee-close{position:absolute;top:18px;right:18px;display:grid;place-items:center;width:44px;height:44px;padding:0;border:1px solid #dfd3bc;border-radius:50%;background:#fffdf7;color:#756450;font:26px/1 sans-serif}
.coffee-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px}
.coffee-option{position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;min-width:0;min-height:172px;padding:26px 12px 20px;border:1px solid #d9dfcf;border-radius:14px;background:linear-gradient(145deg,#fffef8,#f0f4eb);color:#3f584a;text-decoration:none;box-shadow:0 4px 12px #3f665806;transition:border-color .18s,box-shadow .18s,transform .18s}
.coffee-option-kind{font-size:13px;line-height:1.6;letter-spacing:1px;color:#7d8774}.coffee-option-title{font-size:18px;line-height:1.6;font-weight:600;letter-spacing:.5px}.coffee-option-price{display:block;margin-top:5px;font:500 30px/1.3 Georgia,serif;color:#9a763b}.coffee-option-price>span{margin-right:5px;font-size:17px}
.coffee-option .coffee-option-custom{font-family:inherit;font-size:18px;line-height:1.6;letter-spacing:.5px}
.coffee-option.is-recommended{border:2px solid #c2a36c;background:linear-gradient(145deg,#476f5f,#315347);color:#fffdf5;box-shadow:0 6px 18px #31534720}.coffee-option.is-recommended .coffee-option-kind{color:#dfdfcd}.coffee-option.is-recommended .coffee-option-price{color:#f1d5a0}
.coffee-recommended{position:absolute;top:-13px;left:50%;transform:translateX(-50%);padding:3px 18px;border:1px solid #cfb27a;border-radius:20px;background:#dfc38c;color:#493d2c;font-size:12px;line-height:1.7;letter-spacing:1px;white-space:nowrap}
.coffee-option:hover{border-color:#ab8a50;box-shadow:0 7px 20px #70573718;transform:translateY(-2px)}
.coffee-option:focus-visible{outline:3px solid #b58e4f;outline-offset:3px}
.coffee-payment-note{display:block;margin-top:20px;text-align:center;font-size:12px;line-height:1.8;color:#8a7b69}
.coffee-direct a.coffee-button{display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
.coffee-checkout-link{display:flex;align-items:center;justify-content:space-between;gap:24px;width:min(100%,360px);min-height:52px;margin:26px auto 8px;padding:14px 22px;border:1px solid #b89a67;border-radius:11px;background:linear-gradient(120deg,#f1e2bf,#dfc38e);color:#60482e;font:500 16px/1.5 'Microsoft JhengHei','PingFang TC',sans-serif;letter-spacing:.4px;text-decoration:none;box-shadow:inset 0 1px #fff9e8,0 4px 14px #72583512}
.coffee-checkout-link:hover{background:linear-gradient(120deg,#ecd9b1,#d7b577);border-color:#a38350}
.coffee-checkout-link:focus-visible{outline:2px solid #a5844c;outline-offset:4px}
/* 原始收款圖完整顯示；發票說明可共用於贊助頁及諮詢視窗。 */
.coffee-payment-layout{display:grid;grid-template-columns:minmax(220px,.95fr) minmax(0,1.05fr);align-items:start;gap:22px}
.coffee-payment-qr{min-width:0;margin:0;padding:14px;border:1px solid #ded2bb;border-radius:16px;background:#fffefb;text-align:center;box-shadow:0 4px 16px #79654a08}
.coffee-payment-qr>a:first-child{display:block;width:100%;max-width:320px;margin-inline:auto}.coffee-payment-qr img{display:block;width:100%;height:auto;max-height:none;object-fit:contain;filter:none;border-radius:0}
.coffee-payment-qr figcaption{margin:12px 0 8px;font-size:14px;line-height:1.65;color:#766957}.coffee-qr-download{display:inline-block;padding:6px 0;color:#713d50;font-family:inherit;font-size:14px;font-weight:500;line-height:1.6;text-underline-offset:4px}.coffee-payment-qr a:focus-visible{outline:2px solid #aa8d59;outline-offset:4px;border-radius:3px}
.invoice-notice{min-width:0;margin:18px 0;padding:22px;border:1px solid #d8bb85;border-left:4px solid #71374e;border-radius:14px;background:linear-gradient(130deg,#fff9eb,#f5e9d4);color:#65534d;text-align:left;box-shadow:0 4px 16px #71374e08}
.invoice-notice>h3{margin:0 0 12px;color:#71374e;font-family:inherit;font-size:19px;font-weight:600;line-height:1.5;letter-spacing:.4px}.invoice-notice>p{margin:12px 0;color:#65534d;font-family:inherit;font-size:16px;font-weight:400;line-height:1.8;letter-spacing:0;white-space:normal;overflow-wrap:break-word}.invoice-notice>.invoice-notice-lead{color:#71374e;font-weight:600}.invoice-charity-code{color:inherit;font-weight:700;white-space:nowrap}
.invoice-line-link{display:inline-flex;align-items:center;justify-content:center;gap:10px;max-width:100%;min-height:44px;margin-top:6px;padding:10px 15px;border:1px solid #71374e;border-radius:9px;background:#71374e;color:#fffaf1;font-family:inherit;font-size:16px;font-weight:500;line-height:1.5;text-align:center;text-decoration:none;white-space:normal}.invoice-line-link>span{flex-shrink:0}.invoice-line-link:hover{background:#5d2b3f;border-color:#5d2b3f}.invoice-line-link:focus-visible{outline:2px solid #a48348;outline-offset:4px}.coffee-payment-layout>.invoice-notice{margin:0}
@media(max-width:650px){.coffee-payment-layout{grid-template-columns:minmax(0,1fr);gap:18px}.coffee-payment-qr{padding:12px;border-radius:13px}.invoice-notice{padding:18px 16px;border-radius:12px}.invoice-notice>h3{font-size:18px}.invoice-line-link{width:100%}}
@media(max-width:600px){
  .coffee-dialog{padding:24px 18px 20px;border-radius:18px}.coffee-dialog-heading{padding:0 18px}.coffee-heading-icon{width:36px;height:36px;margin-bottom:6px}
  .coffee-dialog h2{font-size:23px;margin:6px 0 10px;letter-spacing:0}
  .coffee-dialog-intro{margin-bottom:24px;font-size:14px;line-height:1.8}
  .coffee-close{top:10px;right:10px;width:36px;height:36px;font-size:23px}
  .coffee-options{grid-template-columns:1fr;gap:18px}
  .coffee-option{display:grid;grid-template-columns:minmax(0,1fr) auto;grid-template-rows:auto auto;column-gap:12px;row-gap:3px;align-items:center;justify-content:normal;min-height:94px;padding:16px 20px;text-align:left}.coffee-option-kind{grid-column:1;grid-row:1;font-size:12px}.coffee-option-title{grid-column:1;grid-row:2;font-size:17px}.coffee-option-price{grid-column:2;grid-row:1/span 2;margin:0;font-size:27px}.coffee-option-price>span{font-size:14px;margin-right:3px}
  .coffee-recommended{top:-11px;font-size:11px;padding:2px 14px}
  .coffee-payment-note{margin-top:16px}
}
@media(prefers-reduced-motion:reduce){.coffee-option{transition:none}.coffee-option:hover{transform:none}}
@media(max-width:900px){.coffee-intro-full{display:none}.coffee-intro-compact{display:inline}}@media(max-width:600px){.coffee-dialog-intro{font-size:13px;line-height:1.6}}
/* 解讀內文與種子建議使用一致字體，縮短同一組內容的段落距離。 */
.reading-dialog #reading-content,.reading-dialog .seed-guidance{font-family:'Microsoft JhengHei','PingFang TC',system-ui,sans-serif;line-height:1.65;letter-spacing:0}.reading-dialog .seed-guidance :is(h3,h4,p,li,strong,span){font-family:inherit;letter-spacing:0}.reading-dialog .structure-notes p{font-size:15px;line-height:1.65;margin:6px 0}.reading-dialog .structure-notes strong{font-weight:600}.reading-dialog .interpretation-next{margin-top:14px;padding:10px 14px}.reading-dialog .interpretation-next p{margin:4px 0 0;font-size:14px;line-height:1.65}.reading-dialog .seed-guidance{margin-top:18px}.reading-dialog .seed-guidance .seed-guidance-heading{font-size:20px;line-height:1.5;margin:0 0 10px}.reading-dialog .seed-guidance-cards{gap:12px}.reading-dialog .seed-guidance-card{padding:18px;border-radius:10px}.reading-dialog .seed-guidance .seed-guidance-pattern{font-size:17px;line-height:1.5;margin:0 0 10px}.reading-dialog .seed-guidance .seed-guidance-seed-label,.reading-dialog .seed-guidance .seed-guidance-action-title{font-size:15px;line-height:1.6;margin:0 0 5px}.reading-dialog .seed-guidance-tags{gap:6px;margin-bottom:10px}.reading-dialog .seed-guidance-tag{font-size:14px;line-height:1.5;padding:3px 10px}.reading-dialog .seed-guidance .seed-guidance-description{font-size:15px;line-height:1.65;margin:0 0 10px}.reading-dialog .seed-guidance-actions{font-size:15px;line-height:1.65}.reading-dialog .seed-guidance-actions li+li{margin-top:6px}.reading-dialog .seed-guidance-conditional{margin-top:12px;padding-top:10px}.reading-dialog .seed-guidance .seed-guidance-conditional-title{font-size:14px;line-height:1.6;margin:0 0 5px}.reading-dialog .seed-guidance .seed-guidance-conditional-item{font-size:14px;line-height:1.65;margin:4px 0 0}
.reading-dialog #reading-content>h3{margin:18px 0 9px;font-size:18px;line-height:1.5;color:var(--navy)}.reading-dialog .reading-pattern{margin:8px 0;padding:10px 12px;border-left:3px solid #b1c4a9;border-radius:0 7px 7px 0;background:#f5f8f0}.reading-dialog .reading-pattern>h4{margin:0 0 4px;font:600 16px/1.5 'Microsoft JhengHei','PingFang TC',system-ui,sans-serif;color:var(--navy)}.reading-dialog .structure-notes .reading-pattern>p{margin:0;font-size:15px;line-height:1.65;color:var(--ink)}
.record-actions .record-download{background:var(--action);border-color:var(--action);color:#fffdf6;font-weight:600;box-shadow:0 4px 12px #31534720}.record-actions .record-download:hover:not(:disabled){background:var(--action-hover);border-color:var(--action-hover)}
footer{flex-wrap:wrap;gap:6px 20px}.contact-email{overflow-wrap:anywhere;text-underline-offset:3px}.consult-contact .contact-email{display:block;width:fit-content;max-width:100%;margin-top:10px;padding:6px 0;border:0;border-radius:0;background:transparent;color:var(--action);font-size:14px;text-decoration:underline}.consult-contact .contact-email:hover{background:transparent}.home-main>footer .contact-email{font-size:12px;color:var(--muted)}
/* 短標題、操作名稱與種子詞彙保持完整，窄螢幕釋出更多閱讀寬度。 */
.reading-dialog :is(.seed-guidance-heading,.seed-guidance-seed-label,.seed-guidance-action-title),.record-actions .record-download,.record-save-card h2,.chart-seed-guidance-group>summary strong,.chart-cleaning-practices>summary>span:first-of-type,.chart-cleaning-seed-name,.checklist-relations>span,.coffee-option-title,.coffee-option-price,.coffee-dialog h2{white-space:nowrap}.chart-cleaning-seed-name{display:inline-block}.seed-guidance-tag{white-space:nowrap;overflow-wrap:normal}.reading-dialog .seed-guidance-pattern{word-break:keep-all;overflow-wrap:normal}
@media(max-width:600px){.reading-dialog{width:calc(100vw - 16px);max-width:none;max-height:calc(100svh - 16px);padding:14px 12px}.reading-dialog .record-save-card{padding:14px;margin:16px 0}.reading-dialog .record-save-card>p{font-size:14px;line-height:1.65}.reading-dialog .seed-guidance-card{padding:14px}.reading-dialog .seed-guidance .seed-guidance-pattern{font-size:15px}.reading-dialog .record-actions button{padding:12px 10px;font-size:14px}.reading-dialog .record-save-card h2{font-size:20px}.reading-dialog .record-consult{margin-top:16px;padding-top:12px}.coffee-dialog-heading{padding:0}.coffee-dialog h2{font-size:clamp(20px,6vw,23px)}}
.consult-dialog .consult-services{gap:10px;margin:16px 0}.consult-dialog .consult-services article{padding:14px 16px;border-color:#e4dfd4;border-radius:9px;background:#fffefa}.consult-dialog .consult-services .service-tag{font-size:11px;line-height:1.5;color:#8a7b65}.consult-dialog .consult-services h3{margin:5px 0;font-size:17px;line-height:1.5;color:var(--navy)}.consult-dialog .consult-services p{margin:0;font-size:14px;line-height:1.65;color:#6c666b}.consult-dialog .consult-services .service-price{margin:6px 0 10px;font-size:19px!important;line-height:1.35;font-weight:500;color:#60715d!important}.consult-dialog .consult-services .service-price span{font-size:11px;color:#8b8585;margin-left:5px}
/* 諮詢標題與五顆卦象在小螢幕維持清楚、完整的置中排列。 */
.consult-dialog .consult-top{gap:16px;margin-bottom:10px}.consult-dialog .consult-top #consult-title{margin:0;color:var(--navy);font-family:inherit;font-size:26px;font-weight:600;line-height:1.4;letter-spacing:1px;white-space:nowrap}.consult-dialog .consult-close{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;padding:0;line-height:1}.consult-dialog .consult-lead{margin:8px 0 14px;font-size:14px;line-height:1.7}.consult-dialog .consult-snapshot{min-width:0;padding:16px;margin:16px 0}.consult-dialog .consult-snapshot h3{margin:0 0 6px;font-size:18px;line-height:1.5}.consult-dialog .consult-snapshot p{margin:8px 0;font-size:14px;line-height:1.65}.consult-dialog #snapshot-meta{font-size:12px;color:var(--muted)}.consult-dialog .snapshot-actions{gap:8px;margin-top:10px}.consult-dialog .snapshot-actions button{min-height:44px;max-width:100%;padding:10px 14px;font-size:14px;line-height:1.5;white-space:nowrap}
#snapshot-board:not(.chart-preview){--snapshot-piece-size:clamp(32px,10vw,42px);--snapshot-gap:clamp(2px,.7vw,4px);display:grid;grid-template-columns:repeat(3,var(--snapshot-piece-size));grid-template-rows:repeat(3,var(--snapshot-piece-size));gap:var(--snapshot-gap);align-items:center;justify-items:center;width:max-content;max-width:100%;height:auto;max-height:none;margin:12px auto;padding:0;border:0;border-radius:0;background:transparent;overflow:visible}
#snapshot-board:not(.chart-preview)>.snapshot-piece{--chess-size:var(--snapshot-piece-size);position:static;inset:auto;transform:none;display:flex;align-items:center;justify-content:center;width:var(--chess-size);height:var(--chess-size);padding:0;border:1px solid #bcb5ab;border-radius:50%;background:#fffdf8;font-family:'Chess Hand',serif;font-size:calc(var(--chess-size)*.594);font-weight:400;line-height:1;letter-spacing:0;box-shadow:none}
#snapshot-board:not(.chart-preview)>.snapshot-pos-0{grid-column:2;grid-row:2}#snapshot-board:not(.chart-preview)>.snapshot-pos-1{grid-column:1;grid-row:2}#snapshot-board:not(.chart-preview)>.snapshot-pos-2{grid-column:3;grid-row:2}#snapshot-board:not(.chart-preview)>.snapshot-pos-3{grid-column:2;grid-row:1}#snapshot-board:not(.chart-preview)>.snapshot-pos-4{grid-column:2;grid-row:3}
#snapshot-birthday{white-space:pre-line;font-size:14px;line-height:1.6;color:#526b5b}
@media(max-width:650px){.consult-dialog{padding:18px 16px}.consult-dialog .consult-top{gap:12px;margin-bottom:8px}.consult-dialog .consult-top #consult-title{font-size:22px}.consult-dialog .consult-snapshot{padding:14px;margin:14px 0}.consult-dialog .consult-snapshot h3{font-size:17px}.consult-dialog .snapshot-actions button{width:100%}}
/* 頁尾以置中品牌搭配單列聯絡資訊，維持一致的閱讀軸線。 */
.home-main>.site-footer{display:flex;flex-direction:column;align-items:center;gap:10px;margin-top:12px;padding:18px 0 20px;border-top:1px solid #d9cfbc;color:var(--muted)}
.site-footer .footer-partner{display:flex;align-items:center;justify-content:center;gap:10px;white-space:nowrap}.footer-partner-name{font:600 20px/1.15 Georgia,'PMingLiU','Songti TC',serif;letter-spacing:1px;color:#4d2038}.footer-partner-cross{font-size:12px;line-height:1;color:var(--gold)}.footer-culture-logo{display:block;width:auto;height:24px;max-width:120px;object-fit:contain}
.footer-links{display:flex;align-items:center;justify-content:center;gap:16px;max-width:100%}.site-footer .footer-email{display:inline-flex;align-items:center;gap:7px;min-width:0;text-decoration:none}.site-footer .footer-mail-icon{display:grid;place-items:center;flex-shrink:0;color:#a48b60}.footer-mail-icon svg{display:block;width:16px;height:16px}.site-footer .footer-email-address{font-size:13px;line-height:1.5;letter-spacing:0;color:var(--action);white-space:nowrap}.site-footer .footer-terms{display:inline-flex;align-items:center;gap:4px;flex-shrink:0;margin:0;padding:3px 0 3px 16px;border-left:1px solid #d9cfbc;font-size:12px;line-height:1.5;color:var(--muted);white-space:nowrap;text-decoration:none}.site-footer .footer-terms>span{font-size:12px;color:var(--gold)}.site-footer :is(.footer-email:hover .footer-email-address,.footer-terms:hover){text-decoration:underline;text-underline-offset:3px}.site-footer a:focus-visible{outline:2px solid var(--action);outline-offset:4px;border-radius:3px}
@media(max-width:360px){.home-main>.site-footer{gap:8px;padding:16px 0}.footer-links{gap:10px}.site-footer .footer-email{gap:5px}.site-footer .footer-email-address{font-size:12px}.site-footer .footer-terms{padding-left:10px;font-size:11px;gap:2px}.footer-partner-name{font-size:19px}.footer-culture-logo{height:22px;max-width:110px}}

.chart-profile{grid-template-columns:minmax(0,1fr)}.clearing-overview .workspace{grid-template-rows:44px minmax(0,1fr)}.clearing-overview .operation-status-note{display:none}.clearing-overview #panels textarea::placeholder{color:transparent}
.birthday-results{gap:10px;margin-top:12px}.birthday-results>div{min-height:0;padding:10px 12px;border-radius:9px}.birthday-results>div>strong{display:block;font-size:13px;font-weight:600;line-height:1.5}.birthday-results>div>p{margin:4px 0 0;font-size:20px;line-height:1.35;white-space:nowrap}.birthday-results .birthday-stage{margin:2px 0 0;font-size:13px;line-height:1.5}

/* 每局依資源、失衡模式與練習方向分層，保留清楚但緊湊的閱讀節奏。 */
.chart-analysis-layer{padding:14px 16px}.chart-analysis-layer+.chart-analysis-layer{border-top:1px solid #e9e3da}.chart-analysis-layer>.chart-analysis-layer-title{display:flex;align-items:center;gap:8px;margin:0 0 9px;font-size:16px;line-height:1.5;font-weight:600;color:#4d2038}.chart-analysis-layer-title:before{content:'';display:block;width:4px;height:16px;border-radius:2px;background:#b69b67;flex-shrink:0}
.chart-analysis-strengths{background:linear-gradient(110deg,#f1f5eb99,#fffdf900)}.chart-analysis-strengths>.chart-analysis-layer-title{color:#3e6453}.chart-analysis-strengths>.chart-analysis-layer-title:before{background:#8ba17d}.chart-strengths{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 14px}.chart-strength{min-width:0;padding:9px 11px;border:1px solid #dce5d5;border-radius:7px;background:#ffffff8c}.chart-strength>h4{margin:0 0 3px;color:#3d5b4c;font-size:15px;font-weight:600;line-height:1.5}.chart-strength>p{margin:0;font-size:14px;line-height:1.65;color:#505952}.chart-analysis-empty{margin:0;font-size:14px;line-height:1.65;color:#7a7275}
.chart-analysis-patterns .chart-cleaning-category{padding:0}.chart-analysis-patterns .chart-cleaning-category+.chart-cleaning-category{margin-top:10px}.chart-analysis-patterns .chart-cleaning-category>h4{margin:0;padding:5px 8px;border-left:2px solid #c2adb7;background:#f4eff1;color:#7c5c6c;font-size:13px;font-weight:500;line-height:1.5}.chart-analysis-patterns .chart-cleaning-item{padding:8px 2px}.chart-analysis-patterns .chart-cleaning-item>.chart-cleaning-item-text{font-size:15px;line-height:1.6;font-weight:400}.chart-analysis-patterns .checklist-item-note{margin-top:4px;font-size:13px;line-height:1.6}
.chart-analysis-patterns .chart-cleaning-item>.chart-cleaning-item-text{font-weight:600;color:#55424c}.chart-analysis-patterns .chart-cleaning-practices{margin-top:7px}.chart-analysis-patterns .chart-cleaning-seed-names{border:0;padding:0;background:transparent}.chart-health-items{margin:7px 0 0;padding-left:20px;color:#70656b;font-size:14px;line-height:1.65}.chart-health-items>li+li{margin-top:4px}.chart-health-items .checklist-item-note{margin-bottom:0}
.chart-cleaning-practices-brief{display:flex;align-items:baseline;flex-wrap:wrap;gap:4px 8px;padding:8px 10px;color:var(--action);font-size:13px;line-height:1.65}.chart-cleaning-practices-brief>span:first-child{flex-shrink:0;font-weight:500;white-space:nowrap}.chart-cleaning-practices-brief .seed-guidance-empty{margin:0;color:var(--muted);font-size:12px}
.chart-cleaning-practices-brief>.seed-practice-focus{flex:1 0 100%;min-width:0;margin:2px 0 0}
.chart-analysis-adjustments>.chart-analysis-layer-title{color:#3e6453}.chart-analysis-adjustments>.chart-analysis-layer-title:before{background:#6d8b76}.chart-adjustment-item{padding:8px 0;border-bottom:1px solid #e9e5dc}.chart-adjustment-item:first-of-type{padding-top:0}.chart-adjustment-item:last-child{padding-bottom:0;border-bottom:0}.chart-adjustment-source{margin:0;font-size:14px;line-height:1.6;color:#685861}.chart-adjustment-item .chart-cleaning-practices{margin-top:5px}.chart-adjustment-item .chart-cleaning-practices>summary{padding:7px 9px;font-size:13px;line-height:1.5}.chart-adjustment-item .chart-cleaning-seed-names{border:0;padding:0;background:transparent;color:#647c60}.chart-adjustment-item .chart-cleaning-practices>.seed-guidance{padding:0 10px 10px}.chart-analysis-note{margin:14px 0 0;padding:10px 12px;border-left:2px solid #c4ac7e;background:#f5f0e7;color:#7a6c5c;font-size:13px;line-height:1.65}
@media(max-width:650px){.chart-analysis-layer{padding:12px}.chart-analysis-layer>.chart-analysis-layer-title{font-size:15px;margin-bottom:8px}.chart-strengths{grid-template-columns:1fr;gap:7px}.chart-strength{padding:8px 10px}.chart-analysis-patterns .chart-cleaning-item>.chart-cleaning-item-text{font-size:14px}.chart-adjustment-source{font-size:13px}.chart-adjustment-item .chart-cleaning-practices>summary{min-height:40px}.chart-analysis-note{padding:9px 10px;font-size:12px}}
/* 排盤提醒用香檳金與暖棕色，和淺色操作區拉開層次。 */
#chart-view>#chart-help.chart-help-soft{display:flex;align-items:center;gap:13px;margin:18px 0;padding:18px 20px;border:1px solid #ccb07c;border-left:3px solid #b58d51;border-radius:18px;background:radial-gradient(ellipse at 100% 0,#fffaf080,transparent 64%),linear-gradient(120deg,#fbefd1,#f1e1c0);box-shadow:0 3px 14px #9a73380a,inset 0 1px 0 #fffdf5}.chart-help-soft .chart-help-icon{display:grid;place-items:center;flex-shrink:0;width:32px;height:32px;border:1px solid #c4a36f80;border-radius:50%;background:#fffaf0b3;color:#94703d}.chart-help-icon svg{display:block;width:20px;height:20px}.chart-help-soft>p{min-width:0;margin:0;color:#71542d;font-size:15px;font-weight:400;line-height:1.75;letter-spacing:.15px}
@media(max-width:650px){#chart-view>#chart-help.chart-help-soft{gap:10px;margin:16px 0;padding:15px 16px;border-radius:16px}.chart-help-soft .chart-help-icon{width:28px;height:28px}.chart-help-icon svg{width:18px;height:18px}.chart-help-soft>p{font-size:14px;line-height:1.75}}
/* 四格操作鈕收斂高度，盤面依實際剩餘空間等比縮放，與按鈕保留間距。 */
.clearing-introduction-link{display:inline-block;margin-left:4px;color:var(--action);white-space:nowrap;text-underline-offset:3px}.clearing-introduction-link:focus-visible{outline:2px solid var(--action);outline-offset:3px;border-radius:2px}
.clearing-overview .workspace{grid-template-rows:34px minmax(0,1fr);gap:8px;padding:10px;padding-bottom:max(10px,env(safe-area-inset-bottom))}.clearing-overview .clearing-overview-bar{height:34px;min-height:0;gap:8px}.clearing-overview .clearing-overview-bar strong{font-size:14px;line-height:1.3;white-space:nowrap}.clearing-overview .clearing-overview-bar button{height:32px;min-height:32px;padding:4px 8px;font-size:14px;line-height:1.25;white-space:nowrap}
.clearing-overview .workspace .panels{grid-template-columns:repeat(2,minmax(0,1fr));grid-template-rows:repeat(2,minmax(0,1fr));gap:8px;min-height:0;overflow:visible}.clearing-overview #panels .panel{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:24px 30px minmax(0,1fr) 32px;grid-template-areas:'heading' 'topic' 'board' 'actions';gap:5px;min-height:0;padding:8px 10px}.clearing-overview #panels .panel-top{grid-area:heading;min-height:0;height:24px;max-height:24px;margin:0;gap:4px;flex-wrap:nowrap}.clearing-overview #panels .panel-select{padding:0;min-height:0;gap:4px;font-size:14px;line-height:1.25;white-space:nowrap}.clearing-overview #panels .panel-number{font-size:14px;line-height:1}.clearing-overview #panels .status{flex-shrink:0;padding:2px 4px;font-size:11px;line-height:1.25;white-space:nowrap}
.clearing-overview #panels textarea{grid-area:topic;width:100%;min-width:0;height:30px;min-height:30px;max-height:30px;margin:0;padding:4px 6px;font-size:14px;line-height:1.25;resize:none;white-space:pre;overflow-wrap:normal;word-break:normal;overflow-x:auto;overflow-y:hidden;scrollbar-width:none}.clearing-overview #panels textarea::-webkit-scrollbar{display:none}
.clearing-overview #panels .board-button{grid-area:board;container-type:size;display:flex;align-items:center;justify-content:center;width:100%;height:100%;min-width:0;min-height:0;margin:0;padding:0;align-self:stretch}.clearing-overview #panels .board{--chess-size:min(58px,26cqw);container-type:inline-size;width:min(100cqw,100cqh,320px);height:auto;max-width:100%;max-height:100%;min-width:0;min-height:0;aspect-ratio:1;flex:none;margin:0 auto}.clearing-overview #panels .chess{--chess-size:min(58px,26cqw)}.clearing-overview #panels .mantra-wheel{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain}.clearing-overview #panels .panel-metrics{display:none}.clearing-overview #panels .panel-actions{grid-area:actions;grid-template-columns:minmax(0,.8fr) minmax(0,1.3fr) minmax(0,.7fr);gap:4px;min-width:0;height:32px;min-height:32px;margin:0}.clearing-overview #panels .panel-actions button{min-width:0;min-height:32px;height:32px;padding:4px 6px;font-size:13px;line-height:1.25;white-space:nowrap}
@media(max-width:420px){.clearing-overview .workspace{gap:6px;padding:8px;padding-bottom:max(8px,env(safe-area-inset-bottom))}.clearing-overview .workspace .panels{gap:6px}.clearing-overview #panels .panel{padding:8px 6px}.clearing-overview #panels .status{padding:2px 3px;font-size:10px}.clearing-overview #panels .panel-actions button{padding:4px 2px;font-size:12px}}
@media(max-height:520px){.clearing-overview .workspace{grid-template-rows:32px minmax(0,1fr);gap:6px;padding:6px;padding-bottom:max(6px,env(safe-area-inset-bottom))}.clearing-overview .clearing-overview-bar{height:32px}.clearing-overview .workspace .panels{gap:6px}.clearing-overview #panels .panel{grid-template-rows:20px 26px minmax(0,1fr) 32px;gap:4px;padding:6px}.clearing-overview #panels .panel-top{height:20px;max-height:20px}.clearing-overview #panels .panel-select{font-size:12px}.clearing-overview #panels textarea{height:26px;min-height:26px;max-height:26px;font-size:12px}.clearing-overview #panels .status{padding:2px 3px;font-size:10px}}
/* 單卦紀錄以盤面與操作並列，完整命盤仍沿用原本的直式預覽。 */
.consult-dialog .consult-snapshot.single-snapshot{display:grid;grid-template-columns:auto minmax(0,1fr);grid-template-areas:'board meta' 'board actions';align-items:center;gap:8px 24px;width:fit-content;max-width:min(640px,100%);margin:14px auto;padding:14px 20px}.consult-dialog .single-snapshot:has(>#snapshot-topic:not([hidden])){grid-template-areas:'board meta' 'board topic' 'board actions'}.consult-dialog .single-snapshot>p{min-width:0;margin:0}.single-snapshot>#snapshot-board:not(.chart-preview){grid-area:board;align-self:center;justify-self:center;margin:0}.single-snapshot>#snapshot-meta{grid-area:meta;align-self:end;line-height:1.5}.single-snapshot>#snapshot-topic{grid-area:topic;overflow-wrap:anywhere;line-height:1.6}.consult-dialog .single-snapshot>.snapshot-actions{grid-area:actions;align-self:start;justify-content:flex-start;gap:0;min-width:0;margin:0}.single-snapshot>.snapshot-actions button{width:auto;min-height:44px}.single-snapshot>:is(#snapshot-feedback,#snapshot-copy-fallback,#snapshot-line-fallback){grid-column:1/-1;grid-row:auto;min-width:0;max-width:100%;margin:4px 0 0;overflow-wrap:anywhere}.single-snapshot>#snapshot-feedback:empty{display:none}
@media(max-width:520px){.consult-dialog .consult-snapshot.single-snapshot{grid-template-columns:minmax(0,1fr);grid-template-areas:'board' 'meta' 'actions';gap:6px;width:100%;max-width:none;margin:12px 0;padding:12px;text-align:center}.consult-dialog .single-snapshot:has(>#snapshot-topic:not([hidden])){grid-template-areas:'board' 'meta' 'topic' 'actions'}.single-snapshot>#snapshot-meta{align-self:center;font-size:12px}.single-snapshot>#snapshot-topic{font-size:14px;line-height:1.55}.consult-dialog .single-snapshot>.snapshot-actions{align-self:center;justify-self:center;width:min(100%,240px);margin-top:3px}.single-snapshot>.snapshot-actions button{width:100%;min-height:44px;padding:10px 12px}.single-snapshot>:is(#snapshot-feedback,#snapshot-copy-fallback,#snapshot-line-fallback){text-align:left;margin-top:4px}}
/* 完成印記覆蓋整個輪面，文字隨印記尺寸縮放，窄小四格也不溢出。 */
.completion-seal,.clearing-overview .completion-seal{inset:0;width:100%;height:auto;max-width:100%;aspect-ratio:1;margin:auto;border-radius:50%;container-type:inline-size}.completion-seal>span,.clearing-overview .completion-seal>span{max-width:100%;font-size:min(44px,19cqw);line-height:1.1;letter-spacing:.04em;white-space:nowrap;flex-shrink:0;text-align:center}.completion-seal>small,.clearing-overview .completion-seal>small{max-width:100%;margin-top:min(10px,5cqw);font-size:min(20px,9.5cqw);line-height:1.25;letter-spacing:0;white-space:nowrap;flex-shrink:0;text-align:center}
/* 完成時三束煙花錯開循環，僅在圓內以位移與透明度綻放。 */
.completion-seal>span,.completion-seal>small{position:relative;z-index:1}
.completion-like{position:relative;z-index:1;display:block;width:min(44px,18cqw);height:min(44px,18cqw);margin:0 0 min(10px,4cqw);flex-shrink:0}
.completion-fireworks{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;contain:paint;z-index:0}.completion-firework{position:absolute;left:var(--burst-x);top:var(--burst-y);color:#cca15b}.completion-firework:nth-child(2){color:#bf91a6}.completion-firework:nth-child(3){color:#94ad91}
.completion-firework>i{position:absolute;left:-1px;top:-3px;width:clamp(1.5px,1cqw,3px);height:clamp(5px,3.5cqw,11px);border-radius:50%;background:currentColor;opacity:0;animation:completion-firework-spark 4.2s var(--burst-delay) cubic-bezier(.15,.5,.35,1) infinite}.completion-firework:after{content:'';position:absolute;left:0;top:0;width:36cqw;height:36cqw;border:1px solid currentColor;border-radius:50%;opacity:0;animation:completion-firework-ring 4.2s var(--burst-delay) ease-out infinite}
@keyframes completion-firework-spark{0%,8%{opacity:0;transform:rotate(var(--spark-angle)) translateY(0) scale(.3)}15%{opacity:.9;transform:rotate(var(--spark-angle)) translateY(-8cqw) scale(1)}38%{opacity:.75;transform:rotate(var(--spark-angle)) translateY(-18cqw) scale(.85)}72%,100%{opacity:0;transform:rotate(var(--spark-angle)) translateY(-22cqw) scale(.35)}}
@keyframes completion-firework-ring{0%,10%{opacity:0;transform:translate(-50%,-50%) scale(.1)}18%{opacity:.22}65%,100%{opacity:0;transform:translate(-50%,-50%) scale(1.2)}}
@media(prefers-reduced-motion:reduce){.completion-fireworks{display:none}}
/* 已存命盤先預覽核對，再載回排盤；還原入口保留在同一處。 */
.chart-import-tools{display:flex;align-items:center;justify-content:flex-end;flex-wrap:wrap;gap:8px}.chart-import-tools button,#choose-chart-pdf{min-height:42px;padding:9px 14px;border:1px solid var(--action-line);border-radius:8px;background:var(--action-soft);color:var(--action);font:inherit;font-size:14px;white-space:nowrap}.chart-import-tools #restore-chart-import{border-color:transparent;background:transparent;font-size:13px;text-decoration:underline;text-underline-offset:3px}.chart-import-feedback{margin:0 0 12px;font-size:14px;line-height:1.6;color:var(--action)}.chart-import-feedback:empty{display:none}
.chart-import-dialog{width:min(700px,calc(100vw - 24px));max-height:88svh;padding:22px;border:1px solid #d8cfbf;border-radius:18px;background:#fffdf8;color:var(--ink);overflow:auto;box-shadow:0 20px 70px #30252e33}.chart-import-dialog::backdrop{background:#30252e80}.chart-import-heading{display:flex;align-items:center;justify-content:space-between;gap:16px}.chart-import-heading h2{margin:0;font-size:23px;color:var(--navy)}.chart-import-heading button{display:grid;place-items:center;flex-shrink:0;width:36px;height:36px;border:0;border-radius:50%;background:#f3eee5;color:#806c50;font-size:24px}.chart-import-lead{margin:10px 0 18px;color:var(--muted);font-size:14px;line-height:1.65}.chart-import-sources{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:12px}.chart-import-sources>section{min-width:0;padding:14px;border:1px solid #e3dfd2;border-radius:10px;background:#fafbf5}.chart-import-dialog h3{margin:0 0 10px;font-size:16px;line-height:1.5;color:var(--action)}.chart-saved-records{max-height:180px;overflow:auto;display:grid;gap:8px}.chart-saved-records>button{display:grid;gap:4px;width:100%;min-width:0;padding:9px 10px;text-align:left;border:1px solid #dce2d4;border-radius:7px;background:#fffefb;color:var(--ink);font:inherit;overflow-wrap:anywhere}.chart-saved-records strong{font-size:14px;font-weight:500}.chart-saved-records small{font-size:12px;color:var(--muted)}.chart-import-help{margin:8px 0 0;font-size:13px;line-height:1.6;color:var(--muted)}#chart-import-status{margin:14px 0 0;font-size:14px;line-height:1.65;color:var(--action)}#chart-import-status:empty{display:none}.chart-import-preview{margin:16px 0 0;padding:16px;border:1px solid #dce2d4;border-radius:12px;background:#f7faf3}.chart-import-preview h3{overflow-wrap:anywhere}#chart-import-profile{margin:0 0 8px;font-size:13px;line-height:1.6;color:var(--muted)}#chart-import-board.chart-full-board{--piece:30px;gap:4px;max-width:300px;margin:0 auto;padding:10px}.chart-import-preview>.chart-import-help{text-align:center}.chart-import-actions{position:sticky;bottom:-22px;display:flex;justify-content:flex-end;gap:10px;margin-top:16px;padding:14px 0 0;background:#fffdf8;box-shadow:0 -8px 10px #fffdf8}.chart-import-actions button{min-height:42px;padding:9px 14px;border:1px solid var(--action-line);border-radius:8px;background:#fffdf8;color:var(--action);font:inherit;font-size:14px}#load-chart-import{background:var(--action);color:#fff;border-color:var(--action)}
@media(max-width:540px){#chart-view>.workspace-heading{align-items:flex-start;flex-wrap:wrap;gap:10px}.chart-import-tools{justify-content:flex-start}.chart-import-dialog{padding:16px;border-radius:14px;max-height:90svh}.chart-import-heading h2{font-size:21px}.chart-import-sources{grid-template-columns:1fr}.chart-saved-records{max-height:140px}.chart-import-actions{bottom:-16px}.chart-import-actions button{padding:9px 12px}.chart-import-preview{padding:12px}}

/* 保留靜心介紹，三步儀式由使用者展開閱讀。 */
.grounding-entry:before{right:50px;top:10px;width:48px;height:48px;opacity:.35;z-index:-1}.grounding-entry:after{right:-100px;top:-170px;width:340px;height:340px;border-color:#b7c5a938;box-shadow:0 0 0 26px #d7c18d0b,0 0 0 58px #b4c4a30b;z-index:-1}
.grounding-entry-heading{display:flex;align-items:center;gap:12px;margin-bottom:16px;min-width:0}.grounding-entry-mark{display:grid;place-items:center;width:40px;height:40px;flex-shrink:0;border:1px solid #c5ab7755;border-radius:50%;background:#fffdf3bd;color:#b09561;font-size:27px;line-height:1}.grounding-entry-heading>div{min-width:0}.grounding-entry #grounding-title{margin:0;color:#3e5c4c;font:600 25px/1.4 'PMingLiU','Songti TC',serif;letter-spacing:1px}.grounding-entry p.grounding-entry-intro{margin:5px 0 0;font-family:inherit;font-size:14px;font-weight:400;line-height:1.65;letter-spacing:.15px;color:#74806d}
.grounding-entry .grounding-steps{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0;padding:0;list-style:none}.grounding-entry .grounding-step{position:relative;min-width:0;margin:0;padding:15px 17px 16px;border:1px solid #dedccc;border-radius:13px;background:linear-gradient(135deg,#fffef9ee,#fbfaf4d9);box-shadow:0 3px 10px #53674c04,inset 0 1px 0 #fff}.grounding-entry .grounding-step-affirmation{border-color:#cbd8c2;background:linear-gradient(135deg,#f7faf1,#edf3e7b8)}.grounding-step-top{display:flex;align-items:center;gap:9px;margin-bottom:9px}.grounding-step-icon{display:grid;place-items:center;width:31px;height:31px;border:1px solid #dce2d2;border-radius:50%;background:#f0f4eacc;color:#718c70;flex-shrink:0}.grounding-step-icon svg{display:block;width:21px;height:21px}.grounding-step-number{color:#8a9a86;font-size:11px;font-weight:500;line-height:1.4;letter-spacing:1px;white-space:nowrap}.grounding-entry .grounding-step-title{display:block;color:#3e5d4e;font-size:17px;font-weight:600;line-height:1.45;letter-spacing:.4px}.grounding-entry .grounding-step>p{margin:6px 0 0;font-family:inherit;font-size:14px;font-weight:400;line-height:1.7;letter-spacing:0;color:#666e62;overflow-wrap:break-word}
.grounding-entry .grounding-sources>summary{width:fit-content;max-width:100%;color:#8a9a86;font-size:12px;font-weight:400;line-height:1.6;cursor:pointer}.grounding-entry .grounding-sources>p{margin:9px 0 0;max-width:900px;font-family:inherit;font-size:13px;font-weight:400;line-height:1.75;letter-spacing:0;color:#74806d}.grounding-entry .grounding-sources>summary:focus-visible{outline:2px solid var(--action);outline-offset:4px;border-radius:2px}
@media(max-width:760px){.grounding-entry-heading{align-items:flex-start;gap:10px;margin-bottom:14px}.grounding-entry-mark{width:34px;height:34px;font-size:24px}.grounding-entry #grounding-title{font-size:23px}.grounding-entry p.grounding-entry-intro{font-size:13px;line-height:1.7;margin-top:5px}.grounding-entry .grounding-steps{grid-template-columns:minmax(0,1fr);gap:9px}.grounding-entry .grounding-step{display:grid;grid-template-columns:31px minmax(0,1fr);column-gap:11px;row-gap:0;padding:12px 14px}.grounding-step-top{display:contents}.grounding-step-icon{grid-column:1;grid-row:1/span 2;align-self:center}.grounding-step-number{grid-column:2;grid-row:1;font-size:10px;line-height:1.5;margin-bottom:2px}.grounding-entry .grounding-step-title{grid-column:2;grid-row:2;font-size:16px;line-height:1.45}.grounding-entry .grounding-step>p{grid-column:2;grid-row:3;margin-top:4px;font-size:14px;line-height:1.65}}
@media(max-width:360px){.grounding-entry-heading{gap:9px}.grounding-entry-mark{width:30px;height:30px;font-size:22px}.grounding-entry #grounding-title{font-size:22px}.grounding-entry .grounding-step{padding:11px 12px;column-gap:9px}}
.home-main>.entry-choices .eyebrow,.home-main .record-save-card>.eyebrow{color:#8a9a86;font-size:11px;line-height:1.6;letter-spacing:1px}
@media(max-width:650px){.clearing-overview #panels .panel{border:1px solid rgba(255,255,255,.08);box-shadow:0 0 0 1px rgba(138,154,134,.18),0 0 16px rgba(177,197,166,.12)}.clearing-overview #panels .panel.selected{border-color:rgba(224,201,151,.65);box-shadow:0 0 0 1px rgba(182,140,72,.35),0 0 18px rgba(177,197,166,.14)}}

/* 命盤保存後的諮詢入口，以柔和的專屬邀請帶承接進階需求。 */
#chart-save>.chart-consult-banner{position:relative;isolation:isolate;display:flex;flex-wrap:nowrap;align-items:center;gap:16px;margin-top:22px;padding:22px;border:1px solid #dfd0d0;border-radius:15px;background:radial-gradient(ellipse at 0 0,#fff9e4b3,transparent 60%),linear-gradient(115deg,#fbf6ef,#f3eaf0);box-shadow:0 5px 18px #61354b07,inset 0 1px 0 #fffcf7;overflow:hidden}
#chart-save>.chart-consult-banner:after{content:'';position:absolute;right:-44px;top:-66px;z-index:-1;width:180px;height:180px;border:1px solid #b9a07930;border-radius:50%;box-shadow:0 0 0 18px #c3aa8410;pointer-events:none}
#chart-save .chart-consult-mark{display:grid;place-items:center;flex-shrink:0;width:46px;height:46px;border:1px solid #c9af825e;border-radius:50%;background:#fffaf1ad;color:#b29365}#chart-save .chart-consult-mark svg{display:block;width:28px;height:28px}#chart-save .chart-consult-copy{display:grid;gap:5px;min-width:0;flex:1}#chart-save .chart-consult-kicker{color:#9a8690;font-size:11px;font-weight:400;line-height:1.5;letter-spacing:1px}#chart-save .chart-consult-copy>strong{color:#623d4e;font-size:15px;font-weight:500;line-height:1.5;letter-spacing:.3px}
#chart-save .chart-consult-banner #record-chart-consult{display:inline-flex;align-items:center;justify-content:center;gap:14px;flex-shrink:0;width:auto;min-height:50px;margin:0;padding:12px 20px;border:1px solid #603148;border-radius:10px;background:linear-gradient(115deg,#6c3b51,#54243e);box-shadow:0 4px 12px #54243e17,inset 0 1px 0 #ffffff1a;color:#fffaf2;font-family:inherit;font-size:16px;font-weight:500;line-height:1.5;letter-spacing:.2px;white-space:nowrap}#chart-save .chart-consult-banner #record-chart-consult>span{font-size:20px;font-weight:400;line-height:1}#chart-save .chart-consult-banner #record-chart-consult:hover{background:linear-gradient(115deg,#603148,#4a1d35)}#chart-save .chart-consult-banner #record-chart-consult:focus-visible{outline:2px solid #ae8d57;outline-offset:4px}
@media(max-width:650px){#chart-save>.chart-consult-banner{display:grid;grid-template-columns:38px minmax(0,1fr);gap:14px 11px;margin-top:20px;padding:17px 16px;border-radius:13px}#chart-save .chart-consult-mark{width:38px;height:38px}#chart-save .chart-consult-mark svg{width:25px;height:25px}#chart-save .chart-consult-copy{gap:4px}#chart-save .chart-consult-copy>strong{font-size:15px;letter-spacing:0}#chart-save .chart-consult-kicker{font-size:10px;letter-spacing:.5px}#chart-save .chart-consult-banner #record-chart-consult{grid-column:1/-1;width:100%;min-height:48px;padding:11px 12px;font-size:15px;gap:12px}}

/* 完成後保留清晰輪紋，在盤面範圍內緩緩放大，中央仍以暖紙襯字。 */
.panel.is-settled .board.finished .mantra-wheel{width:100%;height:100%;max-width:100%;max-height:100%;object-fit:contain;filter:none;opacity:.28;transform:translate(-50%,-50%) scale(1);transform-origin:center;animation:completed-wheel-breathe 5.2s ease-in-out infinite}
.panel.is-settled .board.finished>.completion-seal{background:radial-gradient(circle,#fffdf866 0%,#fffdf833 65%,#fffdf826 100%)}
.panel.is-settled .board.finished :is(.piece-place,.board-ring,.board-line,.healing-triangle){display:none}
@keyframes completed-wheel-breathe{0%,100%{transform:translate(-50%,-50%) scale(.93)}50%{transform:translate(-50%,-50%) scale(1)}}
@media(prefers-reduced-motion:reduce){.panel.is-settled .board.finished .mantra-wheel{animation:none;transform:translate(-50%,-50%) scale(1);opacity:.28}}

/* 首頁標誌裁去透明留白，讓實際圖案與標題、標語整組等高。 */
.home-header{--home-title-size:clamp(44px,4.8vw,66px);--home-slogan-size:clamp(18px,1.8vw,25px);--home-copy-gap:12px;--home-slogan-lines:1;--home-logo-height:calc(var(--home-title-size)*1.15 + var(--home-copy-gap) + var(--home-slogan-size)*1.5*var(--home-slogan-lines))}
.home-header .home-brand-logo{position:relative;display:block;flex-shrink:0;width:calc(var(--home-logo-height)*1.17);height:var(--home-logo-height);overflow:hidden}.home-header .home-brand-logo>.home-brand-mark{position:absolute;left:-12.512%;top:-23.086%;display:block;width:120.693%;height:141.216%;max-width:none;object-fit:contain;filter:none}.home-header .home-brand-copy{gap:var(--home-copy-gap)}.home-header .home-brand-title{font-size:var(--home-title-size);line-height:1.15}.home-header .home-brand-slogan{font-size:var(--home-slogan-size);line-height:1.5}.home-header .home-brand-divider{height:var(--home-logo-height)}

/* 暖紙、鼠尾草光暈與細金曲線，襯出安定而清楚的三步練習。 */


/* 兩個入口皆為原生連結，整卡可點，任何尺寸都維持左右兩欄。 */
.home-main>.entry-choices>.entry-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.home-main .entry-choice-card{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:16px;min-width:0;min-height:248px;padding:26px 22px;text-align:center;text-decoration:none;color:var(--ink);transition:transform .18s,border-color .18s,box-shadow .18s}.home-main .entry-choice-card>.entry-symbol{display:grid;place-items:center;flex-shrink:0;width:64px;height:64px;margin:0;border:1px solid #c6ad7a66;border-radius:50%;background:linear-gradient(135deg,#fffdf4,#eef3e7);color:#a98b55;box-shadow:inset 0 1px 0 #fffdf9}.home-main .entry-choice-card>.entry-symbol svg{display:block;width:40px;height:40px}.home-main .entry-choice-card.entry-chart>.entry-symbol{background:linear-gradient(135deg,#fffdf5,#f0e6ec);color:#9c768b}.home-main .entry-choice-card>h2{display:grid;gap:3px;margin:0;font-size:24px;font-weight:600;line-height:1.5;letter-spacing:.7px;white-space:normal}.home-main .entry-choice-card .entry-title-part{display:block;white-space:nowrap}.home-main .entry-choice-card .entry-title-part:first-child{font-size:15px;font-weight:400;letter-spacing:1.6px;color:#72866f}.home-main .entry-choice-card.entry-chart .entry-title-part:first-child{color:#987b89}.entry-choice-card>.entry-choice-action{display:flex;align-items:center;justify-content:center;gap:12px;width:min(100%,280px);min-height:46px;margin-top:auto;padding:11px 14px;border:1px solid #365b4c;border-radius:9px;background:linear-gradient(120deg,#406957,#315448);color:#fffdf5;font-size:14px;line-height:1.5;letter-spacing:.2px;white-space:nowrap}.entry-choice-card.entry-chart>.entry-choice-action{border-color:#54283e;background:linear-gradient(120deg,#62354b,#4e243b)}.entry-choice-action>span{font-size:18px;line-height:1}.home-main .entry-choice-card:hover{border-color:#adba9d;box-shadow:0 8px 22px #50664c14;transform:translateY(-2px)}.home-main .entry-choice-card.entry-chart:hover{border-color:#bca3b1}.home-main .entry-choice-card:focus-visible{outline:2px solid var(--gold);outline-offset:4px}

@media(min-width:701px) and (max-height:700px){.home-header{--home-title-size:44px;--home-slogan-size:18px;--home-copy-gap:8px}}
@media(max-width:700px){
  .home-header{--home-title-size:32px;--home-slogan-size:13px;--home-copy-gap:5px;--home-slogan-lines:1}.site-header.home-header{padding:10px 16px 0}.site-header.home-header .lu-brand{min-height:104px;padding:10px 16px;gap:12px}.home-header .home-brand-title{letter-spacing:1px}.home-header .home-brand-slogan{letter-spacing:.5px}.home-header .home-brand-slogan>span{display:inline}
  .grounding-entry .grounding-entry-heading{display:grid;grid-template-columns:28px minmax(0,1fr);align-items:center;gap:5px 9px;margin-bottom:11px}.grounding-entry-heading>div{display:contents}.grounding-entry .grounding-entry-mark{grid-column:1;grid-row:1;width:28px;height:28px;font-size:22px}.grounding-entry #grounding-title{grid-column:2;grid-row:1;font-size:21px;line-height:1.4}.grounding-entry p.grounding-entry-intro{grid-column:1/-1;grid-row:2;margin:0;font-size:13px;line-height:1.55}
  .grounding-entry .grounding-steps{gap:7px}.grounding-entry .grounding-step{grid-template-columns:26px auto minmax(0,1fr);column-gap:8px;row-gap:3px;padding:9px 11px}.grounding-entry .grounding-step-icon{grid-column:1;grid-row:1/span 2;align-self:start;width:26px;height:26px}.grounding-entry .grounding-step-icon svg{width:18px;height:18px}.grounding-entry .grounding-step-number{grid-column:2;grid-row:1;align-self:center;margin:0;font-size:10px;line-height:1.5;letter-spacing:.5px}.grounding-entry .grounding-step-title{grid-column:3;grid-row:1;font-size:15px;line-height:1.5;letter-spacing:.2px}.grounding-entry .grounding-step>p{grid-column:2/-1;grid-row:2;margin:0;font-size:13px;line-height:1.55}.grounding-entry .grounding-sources>summary{font-size:11px;line-height:1.6}
  .home-main>.entry-choices>.entry-grid{gap:10px}.home-main .entry-choice-card{gap:11px;min-height:206px;padding:18px 12px;border-radius:15px}.home-main .entry-choice-card>.entry-symbol{width:52px;height:52px}.home-main .entry-choice-card>.entry-symbol svg{width:33px;height:33px}.home-main .entry-choice-card>h2{gap:2px;font-size:18px;line-height:1.5;letter-spacing:.2px}.home-main .entry-choice-card .entry-title-part:first-child{font-size:14px;letter-spacing:.6px}.entry-choice-card>.entry-choice-action{gap:7px;min-height:40px;padding:9px 7px;font-size:12px;letter-spacing:0}.entry-choice-action>span{font-size:14px}
}
@media(max-width:360px){.home-header{--home-title-size:30px;--home-slogan-size:12px}.site-header.home-header{padding:8px 12px 0}.site-header.home-header .lu-brand{min-height:100px;padding:10px 12px;gap:10px}.grounding-entry #grounding-title{font-size:20px}.home-main .entry-choice-card{min-height:196px;padding:15px 10px;gap:10px}.home-main .entry-choice-card>h2{font-size:16px}.entry-choice-card>.entry-choice-action{gap:6px;padding:9px 6px}}

/* 完成時讓後方輪紋與前方完成圓同心，最大呼吸範圍仍止於原印記。 */
.panel.is-settled .board.finished>.healing-field{top:50%;bottom:auto;height:auto;aspect-ratio:1;transform:translateY(-50%)}
/* 暫停離屏及背景分頁的裝飾動畫，清理運算維持原本節奏。 */
.panel.motion-paused :is(.mantra-wheel,.healing-triangle,.completion-seal,.completion-firework>i),.panel.motion-paused .completion-firework:after,.coffee-support.motion-paused>.coffee-button,body.page-motion-paused :is(.mantra-wheel,.healing-triangle,.completion-seal,.completion-firework>i,.coffee-button),body.page-motion-paused .completion-firework:after{animation-play-state:paused!important}

/* 深梅紫與奶油字承接靜心練習，細緻光紋維持靜態，保留手機首屏比例。 */

.grounding-entry #grounding-title{color:#fff6ed}.grounding-entry p.grounding-entry-intro{color:#efe4f4}.grounding-entry .grounding-entry-mark{border-color:#d3b78066;background:#ffe8bd0d;color:#e5cd9e}.grounding-entry .grounding-step{border-color:#d4c2dc38;background:linear-gradient(135deg,#b7a0c014,#9b7aaa0d);box-shadow:0 2px 8px #291a3008,inset 0 1px 0 #f9e8ff12}.grounding-entry .grounding-step-affirmation{border-color:#d9c0e04d;background:linear-gradient(135deg,#c1a8cf14,#ad8abe12)}.grounding-entry .grounding-step-icon{border-color:#dfc9974d;background:#d1b3df14;color:#e5cd9e}.grounding-entry .grounding-step-number{color:#f9edce}.grounding-entry .grounding-step-title{color:#fff2df}.grounding-entry .grounding-step>p{color:#f0e5f3}.grounding-entry .grounding-sources>summary{color:#f9edce}.grounding-entry .grounding-sources>p{color:#efe4f4}
.grounding-entry .grounding-practice{max-width:none;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit}.grounding-entry .grounding-practice>summary{width:fit-content;max-width:100%;min-height:44px;padding:8px 0;color:#f9edce;font-family:inherit;font-size:14px;font-weight:500;line-height:1.7;letter-spacing:.3px;cursor:pointer}.grounding-entry .grounding-practice>summary:focus-visible{outline:2px solid #e5cd9e;outline-offset:3px;border-radius:3px}.grounding-entry .grounding-practice[open]>summary{margin-bottom:10px}.grounding-entry .grounding-practice-collapse,.grounding-entry .grounding-practice[open] .grounding-practice-expand{display:none}.grounding-entry .grounding-practice[open] .grounding-practice-collapse{display:inline}.grounding-entry .grounding-practice .grounding-step-icon{display:grid}.grounding-entry .grounding-practice .grounding-step-title{margin-bottom:0}
.board-privacy-note.operation-status-note,.operation-status-note #offline-status,.operation-status-note #offline-status :is(a,strong){font-size:14px;font-weight:400;line-height:1.7}
@media(max-width:700px){.lu-code-header:not(.home-header) .home-brand-slogan{font-size:clamp(12px,3.4vw,16px);letter-spacing:.3px}}
@keyframes grounding-sun-breathe{0%,100%{transform:scale(.92);opacity:.66}50%{transform:scale(1.1);opacity:.98}}
.grounding-entry.motion-paused:before,body.page-motion-paused .grounding-entry:before{animation-play-state:paused!important}

/* 卦象可分別保存盤圖與完整記錄，諮詢以柔玫瑰邀請卡承接。 */
#reading-save .record-actions{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#reading-save .record-actions .record-download{min-width:0;min-height:46px;padding:11px 12px;font-size:14px;line-height:1.5;letter-spacing:0}
#reading-save .record-actions .record-download-png{background:#e7eee5;border-color:#b5c9b9;color:#375c50;box-shadow:none}
#reading-save .record-actions .record-download-png:hover:not(:disabled){background:#dce8da;border-color:#92ae9b}
#reading-save .record-actions .record-download-pdf{background:#3f6658;border-color:#3f6658;color:#fffdf8;box-shadow:0 3px 10px #3f665816}
#reading-save .record-actions .record-download-pdf:hover:not(:disabled){background:#315347;border-color:#315347}
.reading .record-consult.reading-consult-banner{position:relative;isolation:isolate;display:grid;grid-template-columns:44px minmax(0,1fr) auto;align-items:center;gap:12px 14px;min-width:0;margin:22px 0 0;padding:20px;border:1px solid #dfcfd6;border-radius:15px;background:radial-gradient(ellipse at 0 0,#fff9e7b3,transparent 65%),linear-gradient(115deg,#fcf5f1,#f1e9f0);box-shadow:0 5px 18px #61354b08,inset 0 1px 0 #fffdf8;overflow:hidden}
.reading-consult-banner:after{content:'';position:absolute;z-index:-1;right:-32px;top:-50px;width:146px;height:146px;border:1px solid #b795a626;border-radius:50%;box-shadow:0 0 0 16px #b795a60c;pointer-events:none}
.reading .reading-consult-banner>.reading-consult-mark{display:grid;place-items:center;width:44px;height:44px;border:1px solid #c4a16a7a;border-radius:50%;background:#fff9eab3;color:#8a663e}
.reading-consult-mark svg{display:block;width:27px;height:27px}
.reading .reading-consult-banner>.reading-consult-prompt{min-width:0;color:#62465e;font-size:16px;font-weight:500;line-height:1.6;letter-spacing:.3px}
.reading-consult-banner #open-consult{position:static;display:inline-flex;align-items:center;justify-content:center;width:auto;min-width:0;min-height:48px;margin:0;padding:11px 17px;border:1px solid #c4a16a;border-radius:10px;background:linear-gradient(115deg,#ebd9b3,#dfc18c);box-shadow:0 4px 12px #b18a4520,inset 0 1px 0 #fff9e880;color:#5d432e;font-family:inherit;font-size:15px;font-weight:500;line-height:1.5;letter-spacing:.2px;white-space:nowrap}
.reading-consult-banner #open-consult:hover{background:linear-gradient(115deg,#e7d2aa,#ddbf88)}
.reading-consult-banner #open-consult:focus-visible,#reading-save .record-download:focus-visible{outline:2px solid #82633f;outline-offset:4px}
@media(max-width:700px){.reading .record-consult.reading-consult-banner{grid-template-columns:36px minmax(0,1fr);gap:12px 10px;padding:17px 16px}.reading .reading-consult-banner>.reading-consult-mark{width:36px;height:36px}.reading-consult-mark svg{width:23px;height:23px}.reading .reading-consult-banner>.reading-consult-prompt{font-size:15px;letter-spacing:0}.reading-consult-banner #open-consult{grid-column:1/-1;width:100%;padding:11px 10px}}
@media(max-width:600px){#reading-save .record-actions{grid-template-columns:minmax(0,1fr)}#reading-save .record-actions .record-download{min-height:44px;padding:11px 10px}.reading .record-consult.reading-consult-banner{margin-top:18px}}
.consult-dialog .consult-snapshot .snapshot-actions{display:flex;flex-wrap:wrap;gap:8px}
.consult-dialog .consult-snapshot .snapshot-actions>button{flex:1 1 205px;min-width:0;width:auto;min-height:44px;padding:10px 12px;font-size:14px;line-height:1.5;letter-spacing:0}
.consult-dialog .snapshot-actions .record-download-png{background:#e7eee5;border:1px solid #b5c9b9;color:#375c50;box-shadow:none}
.consult-dialog .snapshot-actions .record-download-png:hover:not(:disabled){background:#dce8da;border-color:#92ae9b}
.consult-dialog .snapshot-actions .record-download-pdf{background:#3f6658;border:1px solid #3f6658;color:#fffdf8;box-shadow:0 3px 10px #3f665816}
.consult-dialog .snapshot-actions .record-download-pdf:hover:not(:disabled){background:#315347;border-color:#315347}
.consult-dialog .snapshot-actions>button:focus-visible{outline:2px solid #82633f;outline-offset:4px}

/* 洗牌取棋沿用八列棋位，以暖木紙感棋匣與玉色雙環襯出棋背。 */
#chart-bank:not(.manual-bank){gap:5px;padding:14px 10px;border:1px solid #bda47c;border-radius:15px;background-image:url('assets/lu-paper.svg'),linear-gradient(135deg,#fff9ed,#f2e8d5 56%,#e9dcc3);background-size:320px 320px,100% 100%;box-shadow:inset 0 0 0 4px #fffaf480,inset 0 0 0 5px #b89c6d38,0 5px 14px #71583d0b}
#chart-bank:not(.manual-bank) .chart-pick.covered{position:relative;border:3px double #829876;background:radial-gradient(circle at 34% 23%,#fafbf1 0%,#e7eddf 40%,#bbcdb7 78%,#a9bca7 100%);color:#445f4b;text-shadow:0 1px 0 #fffff3cc,0 -1px 0 #526b561f;box-shadow:0 2px 3px #51432f1a,inset 0 1px 1px #ffffffb3,inset 0 -2px 2px #5f775c25;transition:background .16s,border-color .16s,box-shadow .16s}
#chart-bank:not(.manual-bank) .chart-pick.covered:before{content:'';position:absolute;inset:3px;border:1px solid #6f87683d;border-radius:50%;pointer-events:none}
#chart-bank:not(.manual-bank) .chart-pick.covered:hover:not(:disabled){border-color:#698564;background:radial-gradient(circle at 34% 23%,#fffef4 0%,#eaf1e1 40%,#c3d6bc 78%,#b0c5aa 100%);box-shadow:0 3px 5px #51432f24,inset 0 1px 1px #fffdf5,inset 0 -2px 2px #5f775c25;filter:none}
#chart-bank:not(.manual-bank) .chart-pick.covered:focus-visible{outline:2px solid #ac8252;outline-offset:3px;border-color:#698564}
#chart-bank:not(.manual-bank) .chart-pick.covered:active:not(:disabled){box-shadow:inset 0 2px 3px #526b562e,inset 0 -1px 0 #fffdf5b3}
@media(max-width:540px){#chart-bank:not(.manual-bank){gap:4px;padding:11px 7px;border-radius:13px}}
@media(prefers-reduced-motion:reduce){#chart-bank:not(.manual-bank) .chart-pick.covered{transition:none}}

/* 政策頁共用品牌頁首：保留完整圖案，讓標誌白底融入暖紙。 */
.lu-code-header:not(.home-header){--policy-title-size:clamp(44px,4.8vw,66px);--policy-slogan-size:clamp(18px,1.8vw,25px);--policy-copy-gap:12px;--policy-logo-height:calc(var(--policy-title-size)*1.15 + var(--policy-copy-gap) + var(--policy-slogan-size)*1.5)}
.lu-code-header:not(.home-header) .lu-brand{color:#4d2038;text-decoration:none;overflow-wrap:normal}
.lu-code-header:not(.home-header) .home-brand-logo{display:block;flex-shrink:0;width:calc(var(--policy-logo-height)*1.17);height:var(--policy-logo-height);border-radius:8px;overflow:hidden}
.lu-code-header:not(.home-header) .home-brand-logo>.home-brand-mark{display:block;width:100%;height:100%;object-fit:contain;filter:none;mix-blend-mode:multiply}
.lu-code-header:not(.home-header) .home-brand-copy{gap:var(--policy-copy-gap)}
.lu-code-header:not(.home-header) .home-brand-title{font-size:var(--policy-title-size);line-height:1.15}
.lu-code-header:not(.home-header) .home-brand-slogan{font-size:var(--policy-slogan-size);line-height:1.5;white-space:nowrap}
.lu-code-header:not(.home-header) .home-brand-divider{height:var(--policy-logo-height)}
.lu-code-header:not(.home-header) .lu-brand:focus-visible{outline:2px solid #b68c48;outline-offset:4px}
@media(min-width:701px) and (max-height:700px){.lu-code-header:not(.home-header){--policy-title-size:44px;--policy-slogan-size:18px;--policy-copy-gap:8px}}
@media(max-width:700px){.lu-code-header:not(.home-header){--policy-title-size:42px;--policy-slogan-size:clamp(12px,3.4vw,16px);--policy-copy-gap:10px}.lu-code-header:not(.home-header) .home-brand-slogan{letter-spacing:.3px}}
@media(max-width:360px){.lu-code-header:not(.home-header){--policy-title-size:36px;--policy-slogan-size:12px;--policy-copy-gap:8px}}
@media(min-width:540px) and (max-height:500px){.lu-code-header:not(.home-header){--policy-title-size:32px;--policy-slogan-size:14px;--policy-copy-gap:4px}}

/* 手機讓短標題與操作文字保持一行；解讀正文、長問題與報告名稱照常換行。 */
@media(max-width:540px){
  body :is(#divination-view,#chart-view,#numerology-view) .workspace-heading h1{font-size:clamp(20px,5.6vw,23px);line-height:1.45;letter-spacing:.2px;white-space:nowrap}
  body #lucky-view h1,body #lucky-view .lu-lucky-copy h2{font-size:clamp(21px,5.8vw,23px);letter-spacing:.3px;white-space:nowrap}
  body .grounding-entry #grounding-title{font-size:clamp(18px,5vw,21px);letter-spacing:0;white-space:nowrap}
  body #numerology-view>.birthday-section{padding:16px}
  body #numerology-view .birthday-section h2{font-size:19px;letter-spacing:.2px;white-space:nowrap}
  body #numerology-view .birthday-section form{display:grid;grid-template-columns:minmax(0,1.8fr) minmax(80px,1fr);gap:10px}
  body #numerology-view .birthday-section label{min-width:0;gap:6px;font-size:14px;white-space:nowrap}
  body #numerology-view .birthday-section :is(input,select){min-width:0;max-width:100%;padding:9px 8px;font-size:16px}
  body #birthday-reference-results .bref-section-heading h2{font-size:clamp(18px,5vw,20px);letter-spacing:0;white-space:nowrap}
  body #chart-view .chart-toolbar{gap:6px 8px}
  body #chart-view #chart-progress{font-size:12px;white-space:nowrap}
  body #chart-view :is(.chart-toolbar,.chart-import-tools) button,body #chart-size-toggle{min-width:0;padding:9px 10px;font-size:14px;letter-spacing:0;white-space:nowrap}
  body :is(#reading-save,#chart-save) .record-actions button{font-size:clamp(14px,4vw,15px);padding-inline:8px;letter-spacing:0;white-space:nowrap}
  body .consult-dialog .snapshot-actions>button{padding-inline:8px;font-size:14px;letter-spacing:0;white-space:nowrap}
  body .reading-consult-banner #open-consult,body #chart-save .chart-consult-banner #record-chart-consult{gap:8px;padding-inline:8px;font-size:14px;letter-spacing:0;white-space:nowrap}
  body .coffee-direct .coffee-button{padding-inline:12px;font-size:14px;letter-spacing:.3px;white-space:nowrap}
  body .record-save-card h2{font-size:20px;letter-spacing:.2px;white-space:nowrap}
  body .lu-code-header:not(.home-header) .lu-brand{gap:10px;padding-inline:14px}
  body .lu-code-header:not(.home-header) .home-brand-title{white-space:nowrap}
  body .terms-page>h1,body .privacy-page h1{font-size:clamp(23px,6.2vw,28px);letter-spacing:.5px;white-space:nowrap}
  body .terms-page .terms-contact,body #lucky-view .lu-lucky-contact-link{font-size:14px;white-space:nowrap}
}

/* Explicit interpretation action alongside draw, clean and pause. */
#panels .panel-actions,.clearing-overview #panels .panel-actions{grid-template-columns:minmax(0,1fr) minmax(0,1fr) minmax(0,1.5fr) minmax(0,1fr)}
#panels .panel-actions button{min-width:0;white-space:nowrap}
