/* The two approved Suishijian directions share the original functional DOM.
   This stylesheet is loaded by /suishijian/ only; calculation diagrams retain
   their original coordinates, line order, buttons and accessible labels. */
@font-face{
  font-family:DaoSong;
  src:url('/suishijian/assets/serif-sc.woff2?v=20261003-final') format('woff2');
  font-style:normal;
  font-weight:200 900;
  font-display:swap;
}
html[data-dao-theme]{
  --serif:DaoSong,'Noto Serif SC','Songti SC',SimSun,serif;
  --latin:Georgia,'Times New Roman',serif;
  --sans:'Segoe UI','Microsoft YaHei','PingFang SC',sans-serif;
  --radius:1px;
  --gutter:clamp(20px,5vw,72px);
  --focus:#45655a;
  --edge:var(--line);
}
html[data-dao-theme=light]{
  color-scheme:light;
  --paper:#f1ede3;
  --surface:#f6f2e9;
  --panel:#f6f2e9;
  --ink:#223f39;
  --muted:#59685e;
  --line:#cecbbf;
  --accent:#824332;
  --night:#e8e3d6;
  --gold:#88764f;
  --selected:#e0e6d9;
  --field-line:#b8bcb0;
  --focus:#43645d;
  --error:#923c2d;
  --hover:#223f3908;
  --chart-ink:#223f39;
  --chart-muted:#5c695b;
  --chart-line:#60756a;
  --chart-bg:#ece8dc;
  --chart-selected:#d7e0d1;
  --chart-highlight:#824332;
}
html[data-dao-theme=dark]{
  color-scheme:dark;
  --paper:#112c40;
  --surface:#183448;
  --panel:#183448;
  --ink:#eef0e7;
  --muted:#b8c7c8;
  --line:#61778080;
  --accent:#bdd9d5;
  --night:#0d2334;
  --gold:#c2d5d2;
  --selected:#254758;
  --field-line:#70878c;
  --focus:#e7e0ca;
  --error:#f0b09c;
  --hover:#bdd9d50a;
  --chart-ink:#edf0e8;
  --chart-muted:#bfcece;
  --chart-line:#bdd3d0;
  --chart-bg:#153246;
  --chart-selected:#2b4e5e;
  --chart-highlight:#e7dfc1;
}
body.ssj{
  font-synthesis:none;
  font-size:14px;
  line-height:1.85;
  background-color:var(--paper);
}
html[data-dao-theme=light] body.ssj{
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.6' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Cpath fill='%237b735f' opacity='.035' filter='url(%23n)' d='M0 0h140v140H0z'/%3E%3C/svg%3E");
}
.ssj button,.ssj input,.ssj select,.ssj textarea{font-synthesis:none;touch-action:manipulation}
.ssj a{touch-action:manipulation}
.ssj ::selection{background:#b7c9b4;color:#102e29}
.ssj :focus-visible{outline:2px solid var(--focus);outline-offset:5px}
.ssj h1,.ssj h2,.ssj h3{font-weight:400}
.ssj h1{font-size:clamp(36px,4.5vw,64px);line-height:1.45;letter-spacing:.04em}
.ssj h2{font-size:28px;line-height:1.55}
.ssj h3{font-size:21px;line-height:1.65}
.ssj .site-header{
  height:110px;
  max-width:1440px;
  padding:0 var(--gutter);
  border:0;
  gap:28px;
}
.ssj .brand{gap:18px}
.ssj .brand>span{font-size:24px;font-weight:400;letter-spacing:3px}
.ssj .brand small{font-size:9px;letter-spacing:1.8px}
.ssj .brand img{object-fit:contain;max-width:100%;flex-shrink:0}
.ssj .brand .dao-logo{width:78px;height:auto}
.ssj .brand .brand-divider{width:1px;height:34px;background:var(--line)}
html[data-dao-theme=dark] .ssj .brand .dao-logo{filter:brightness(0) invert(1)}
.ssj .site-header nav{gap:36px}
.ssj .site-header nav a{font-size:14px;white-space:nowrap;min-height:44px}
.ssj .site-header nav a[aria-current=page]:after{height:1px;left:calc(50% - 9px);right:auto;width:18px;bottom:25px;background:currentColor}
.ssj .header-actions{gap:6px;align-items:center}
.ssj .header-actions button{min-width:44px;padding:8px 6px;font-size:13px}
.ssj .header-actions #language{font-family:var(--latin);font-size:15px}
.ssj .header-actions #theme{white-space:nowrap}
html[data-dao-theme=dark] .ssj .site-header{background:#0d2334}
.ssj main{
  width:calc(100% - 2 * var(--gutter));
  max-width:1260px;
  margin:0 auto;
  padding:50px 0 24px;
  outline:none;
}
.ssj .site-footer{max-width:1260px;width:calc(100% - 2 * var(--gutter));margin:72px auto 0;padding:28px 0 36px}
.ssj .page-head{max-width:800px;margin-bottom:42px}
.ssj .page-head p{font-size:14px;line-height:2;max-width:68ch;color:var(--muted)}
.ssj .muted,.ssj .note,.ssj .subtle,.ssj .small,.ssj .eyeline{color:var(--muted)}
.ssj .eyeline{letter-spacing:.04em}
.ssj .page-enter{animation:ssj-page-in .6s both}
.ssj button{border-radius:var(--radius);transition:background-color .18s,border-color .18s}
.ssj button:hover{background:var(--hover);border-color:var(--ink)}
.ssj button:disabled{cursor:default}
.ssj .primary,.ssj .solid-button{background:var(--ink);color:var(--paper);border:1px solid var(--ink);padding:12px 24px;min-height:48px}
.ssj .primary:hover,.ssj .solid-button:hover{background:var(--ink);color:var(--paper);filter:brightness(1.12)}
.ssj .outline-button{border:1px solid var(--line);padding:12px 24px;min-height:48px}
.ssj .quiet-link{color:var(--muted)}
.ssj .form-error,.ssj .danger{color:var(--error)}
.ssj .storage-alert{background:var(--panel);color:var(--ink);border-left-color:var(--accent)}
.ssj .notice{background:var(--ink);color:var(--paper);border:1px solid var(--line);box-shadow:0 6px 30px #0002}
.ssj input:not([type=checkbox]),.ssj textarea,.ssj select{
  background:var(--surface);
  color:var(--ink);
  border-color:var(--field-line);
  border-radius:var(--radius);
  line-height:1.65;
  padding:11px 12px;
  font-size:15px;
  max-width:100%;
}
.ssj input::placeholder,.ssj textarea::placeholder{color:var(--muted);opacity:.85}
.ssj input[type=checkbox]{accent-color:var(--ink)}
.ssj label{font-size:12px;font-weight:400}
.ssj label .note{line-height:1.7}
.ssj .form-grid{gap:22px}
.ssj .consent{line-height:1.8}
.ssj .actions,.ssj .toolbar{gap:14px}
.ssj .definition-list{column-gap:18px;row-gap:12px;overflow-wrap:anywhere}
.ssj .form-section>label,.ssj #object-form>label{margin-bottom:18px}
.ssj .method-switch{margin-bottom:30px}
.ssj .method-switch button{font-family:var(--serif);font-size:18px;flex:1;padding:14px 20px}
.ssj .method-switch button[aria-pressed=true]{border-bottom-color:var(--ink)}
.ssj .method-switch small{font-family:var(--sans);font-size:12px}
.ssj .practice-toolbar{padding:10px 0 25px}
.ssj .practice-selector{padding-top:12px}

/* Approved opening compositions; both remain in the DOM for instant switching. */
.ssj .ssj-opening{margin:0 0 44px}
html[data-dao-theme=light] .ssj .ssj-hero-dark,
html[data-dao-theme=dark] .ssj .ssj-hero-light{display:none}
.ssj .hero-title h1,.ssj .hero-title p{margin:0}
.ssj .text-link{display:inline-flex;align-items:center;gap:28px;min-height:44px;padding:8px 0;border-bottom:1px solid currentColor;text-decoration:none}
.ssj .text-link svg{width:25px;height:14px;transition:transform .25s}
.ssj .text-link:hover svg{transform:translateX(5px)}
.ssj .hero-a{
  position:relative;
  display:grid;
  grid-template-columns:36% 64%;
  min-height:620px;
  padding:8px 0 58px;
  isolation:isolate;
}
.ssj .hero-a .hero-title{position:relative;z-index:2;padding-top:24px}
.ssj .hero-a .hero-title h1{writing-mode:vertical-rl;height:315px;margin-left:12px;font-size:clamp(47px,5.5vw,80px);font-weight:300;line-height:1.7;letter-spacing:12px}
.ssj .hero-a .hero-subtitle{position:absolute;left:290px;top:62px;writing-mode:vertical-rl;font-size:12px;letter-spacing:3px;line-height:2.6;color:var(--muted)}
.ssj .hero-a .hero-caption{font-family:var(--latin);font-size:18px;font-style:italic;letter-spacing:.2px;margin-top:28px}
.ssj .hero-a .hero-desc{max-width:280px;font-size:13px;line-height:2;color:var(--muted);margin-top:16px}
.ssj .hero-a .text-link{margin-top:20px;font-size:13px;gap:35px}
.ssj .art-folio{position:relative;align-self:center;margin:0 0 0 -34px;transform:translateY(-10px);animation:ssj-unfold 1.65s cubic-bezier(.2,.65,.15,1) both;min-width:0}
.ssj .art-folio:before{content:'';position:absolute;inset:-18px 14px -18px -14px;border:1px solid #98846744;z-index:-1}
.ssj .art-folio img{width:100%;height:480px;object-fit:cover;object-position:40% center;box-shadow:4px 12px 25px #34281710;display:block}
.ssj .art-folio figcaption{font-family:var(--serif);font-size:11px;color:#716854;margin-top:23px;display:flex;justify-content:space-between;gap:20px}
.ssj .folio-seal{position:absolute;left:285px;top:75px;writing-mode:vertical-rl;border:1px solid var(--accent);color:var(--accent);padding:7px 4px;font-family:var(--serif);font-size:14px;line-height:1.3;letter-spacing:1px}
.ssj .hero-a .fine-line{position:absolute;bottom:12px;left:0;font-family:var(--serif);font-size:11px;color:var(--muted);letter-spacing:2px}
.ssj .hero-b{
  min-height:660px;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  background:#173044;
  margin-inline:calc(-1 * var(--gutter));
}
.ssj .woven-scene{position:absolute;inset:-35px;z-index:-2;object-fit:cover;width:calc(100% + 70px);height:calc(100% + 70px);object-position:50% 60%;filter:brightness(.34) saturate(.6);transform:translate(calc(var(--mx,0) * 9px),calc(var(--my,0) * 7px)) scale(1.04);transition:transform .7s cubic-bezier(.2,.5,.1,1);animation:ssj-weave-in 1.7s both}
.ssj .hero-b:after{content:'';position:absolute;inset:0;z-index:-1;background:linear-gradient(90deg,#0d233499,transparent 85%)}
.ssj .material-light{position:absolute;inset:-10%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at calc(60% + var(--mx,0) * 20%) calc(40% + var(--my,0) * 20%),#c9e4df24 0%,transparent 50%);mix-blend-mode:screen}
.ssj .hero-b .hero-title{position:absolute;top:76px;left:7%;z-index:2}
.ssj .hero-b .hero-title h1{font-size:clamp(53px,6.8vw,100px);font-weight:300;line-height:1.45;letter-spacing:8px}
.ssj .hero-b .hero-caption{font-family:var(--latin);font-size:22px;font-style:italic;opacity:.85;margin-top:15px}
.ssj .hero-b .hero-desc{max-width:325px;line-height:2;font-size:13px;color:#d1dad6;margin-top:20px}
.ssj .hero-b .text-link{margin-top:25px;font-size:13px;color:#eff0e9;border-color:#c2d5d2;gap:40px}
.ssj .hero-clock{position:absolute;right:6%;top:44px;width:43%;max-width:570px;color:#c2d5d2;animation:ssj-clock-arrive 1.6s cubic-bezier(.2,.6,.1,1) both}
.ssj .hero-clock svg{display:block;width:100%;height:auto;margin:0;max-width:none}
.ssj .hero-clock svg text{font-family:var(--serif);fill:currentColor}
.ssj .hero-clock .clock-face{fill:#a6c5bd0c}
.ssj .hero-clock .clock-core{fill:#dce6df}
.ssj .hero-clock .clock-tick{stroke:currentColor;stroke-width:1;opacity:.6}
.ssj .hero-clock .clock-ring{stroke:currentColor;stroke-width:.7;fill:none;opacity:.4}
.ssj .hero-clock .clock-label{fill:currentColor;font-size:14px}
.ssj .hero-clock .clock-branch{fill:currentColor;font-size:37px;font-weight:300}
.ssj .hero-clock .clock-time{fill:currentColor;font-family:var(--latin);font-size:23px}
.ssj .hero-clock .clock-small{fill:currentColor;font-size:9px;letter-spacing:1px;opacity:.7}
.ssj .hero-clock .hand{stroke:currentColor;stroke-width:1.2}
.ssj .hero-clock .clock-point{fill:currentColor}
.ssj .hero-clock [data-shichen]{cursor:pointer}
.ssj .hero-clock .clock-readout{top:46%;color:#c2d5d2}
.ssj .hero-clock-readout{position:absolute;left:0;right:0;top:44%;text-align:center;color:#dce6df;pointer-events:none}
.ssj .hero-clock-readout>span{font:31px/1.3 var(--latin);font-variant-numeric:tabular-nums;letter-spacing:2px}
.ssj .hero-clock-readout p{font-size:12px;line-height:1.8;margin:8px 0 0;color:#c2d5d2}
.ssj .hero-clock-svg line,.ssj .hero-clock-svg path{stroke:currentColor}
.ssj .hero-clock-svg circle:not(.orbit){fill:currentColor}
.ssj .hero-b .hero-foot{position:absolute;inset:auto 7% 35px;display:flex;justify-content:space-between;align-items:center;gap:30px;padding-top:24px;border-top:1px solid #c5d5cf44;font-size:12px;color:#d2d9d5}
.ssj .hero-foot .foot-time{font-family:var(--latin);font-size:23px}

/* The functional five-column product stays complete below the opening. */
.ssj .today-layout{gap:64px;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr)}
.ssj .today-layout>*{min-width:0}
.ssj .clock-stage{
  background:var(--chart-bg);
  color:var(--chart-ink);
  padding:24px;
  border:1px solid var(--line);
  border-radius:var(--radius);
  min-height:480px;
}
.ssj .clock-stage:before{display:none}
.ssj .clock-svg{max-width:430px}
.ssj .clock-svg .orbit{stroke:var(--chart-line);opacity:.3}
.ssj .clock-svg text{fill:var(--chart-ink)}
.ssj .clock-stage .clock-svg line{stroke:var(--chart-line)}
.ssj .clock-stage .clock-svg path{stroke:var(--chart-line)}
.ssj .clock-stage .clock-svg circle:not(.orbit){fill:var(--chart-line)}
.ssj .clock-stage .clock-pointer line{stroke:var(--chart-highlight)}
.ssj .clock-stage .clock-pointer circle{fill:var(--chart-highlight)}
.ssj .clock-readout time{font-family:var(--latin);font-size:31px}
.ssj .clock-readout p,.ssj .clock-caption{color:var(--chart-muted)}
.ssj .stage-top select{background:var(--chart-bg);color:var(--chart-ink);border-color:var(--line);font-size:12px;padding:6px 8px;margin:0}
.ssj .celestial-key{gap:8px}
.ssj .celestial-key button{color:var(--chart-muted);border-color:var(--line);padding:5px 10px;font-size:11px;min-height:34px}
.ssj .celestial-key button:hover{background:var(--chart-selected);color:var(--chart-ink)}
.ssj .reading-teaser{padding-bottom:30px;margin-bottom:30px}
.ssj .reading-teaser blockquote{font-size:clamp(27px,3vw,39px);font-weight:300;line-height:1.9;margin:22px 0;letter-spacing:1px}
.ssj .reading-teaser .actions{margin-top:24px}
.ssj .today-below{gap:64px;margin-top:56px}
.ssj .daily-reference{padding-top:32px;margin-top:40px}
.ssj .daily-cards{gap:32px}
.ssj .daily-cards>div{min-width:0}
.ssj .daily-cards ul{padding-left:20px;font-size:13px}
.ssj .daily-reference>p{max-width:74ch}
html[data-dao-theme=dark] .ssj .reading-teaser{--ink:#253e43;--muted:#50646b;--accent:#41605e;--line:#bcc9c1;--surface:#e5e9e2;--paper:#e5e9e2;--focus:#43645d;--hover:#253e430a;background:#e5e9e2;color:#253e43;padding:32px 36px;margin-bottom:28px}
.ssj .profile-layout{gap:56px;grid-template-columns:minmax(0,1fr) minmax(0,1.12fr);align-items:start}
.ssj .profile-layout>*{min-width:0}
.ssj .profile-card{padding:32px;background:var(--panel);border:1px solid var(--line)}
.ssj .pillar-grid{background:var(--chart-bg);color:var(--chart-ink);border:1px solid var(--line);padding:26px 16px;gap:12px}
.ssj .pillar-grid small{color:var(--chart-muted)}
.ssj .pillar-grid strong{font-size:35px;font-weight:400}
.ssj .profile-layout .form-section,.ssj .question-layout>.form-section{padding-top:0}
.ssj .question-layout{grid-template-columns:minmax(0,.88fr) minmax(0,1.12fr);gap:56px}
.ssj .question-layout>*{min-width:0}
.ssj #question-form>.form-section{margin-top:26px;margin-bottom:24px}
.ssj .question-layout details.form-section{margin-top:24px}
.ssj .chart-stage{background:var(--chart-bg);color:var(--chart-ink);padding:32px;border:1px solid var(--line);border-radius:var(--radius)}
.ssj .chart-stage .note,.ssj .chart-stage .small{color:var(--chart-muted)}
.ssj .chart-stage h2{font-size:28px;font-weight:400}
.ssj .chart-empty{height:350px}
.ssj .chart-empty>p:first-child{font:56px/1.3 var(--serif);opacity:.4;margin-bottom:28px}
.ssj .chart-empty>p:last-child{max-width:36ch;font-size:13px;line-height:1.9}
.ssj .chart-empty img{opacity:.4}
html[data-dao-theme=dark] .ssj .chart-empty img{filter:brightness(0) invert(1)}
.ssj .hexagrams{gap:28px}
.ssj .hex-line{background:var(--chart-line);height:7px}
.ssj .hex-line.yin{background:none}
.ssj .hex-line.yin:before,.ssj .hex-line.yin:after{background:var(--chart-line)}
.ssj .hex-line.moving{filter:none;background:var(--chart-highlight)}
.ssj .hex-line.moving.yin{background:none}
.ssj .hex-line.moving.yin:before,.ssj .hex-line.moving.yin:after{background:var(--chart-highlight)}
.ssj .marker{color:var(--chart-highlight)}
.ssj .hex-label{white-space:normal;line-height:1.7;overflow-wrap:anywhere}
.ssj .hex-row{grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) 18px;min-height:42px}
.ssj .qimen-grid{background:var(--line);border-color:var(--line);gap:1px}
.ssj .qimen-cell{background:var(--chart-bg);color:var(--chart-ink);min-height:142px;padding:14px;min-width:0}
.ssj .qimen-cell:hover,.ssj .qimen-cell[aria-pressed=true]{background:var(--chart-selected);color:var(--chart-ink)}
.ssj .qimen-cell[aria-pressed=true]{box-shadow:inset 0 0 0 1px var(--chart-line)}
.ssj .qimen-cell .cell-top,.ssj .qimen-cell .cell-bottom{color:var(--chart-muted);overflow-wrap:anywhere}
.ssj .qimen-cell .cell-gate{font-size:25px;font-weight:400}
.ssj .qimen-cell .flag{color:var(--chart-highlight)}
.ssj .coin{color:var(--accent);border-color:var(--accent)}
.ssj .ai-answer{padding:24px;background:var(--panel);border-left-color:var(--accent);overflow-wrap:anywhere}
.ssj .ai-answer h3{font-size:22px}
.ssj .ai-answer p{line-height:1.95}
.ssj .ai-form>label:not(.consent){margin-bottom:18px}
.ssj .ai-sources a{overflow-wrap:anywhere}
.ssj details>summary{cursor:pointer;line-height:1.85;min-height:36px}
.ssj .save-section{padding-top:28px;margin-top:30px}
.ssj .library-toolbar{max-width:900px;margin-bottom:30px;gap:24px}
.ssj .library-list{grid-template-columns:repeat(2,minmax(0,1fr));gap:0 56px}
.ssj .chapter-row{grid-template-columns:42px minmax(0,1fr);gap:12px 16px;padding:28px 0;align-content:start}
.ssj .chapter-row h2{margin:0;font-size:23px}
.ssj .chapter-row h2 button{font-family:var(--serif);font-size:inherit;text-align:left;line-height:1.55;min-height:44px}
.ssj .chapter-row .chapter-number{font-family:var(--latin);font-size:23px;padding-top:7px;color:var(--muted)}
.ssj .chapter-row .quote-line,.ssj .chapter-row .tag-line,.ssj .chapter-row .row-actions{grid-column:2}
.ssj .chapter-row .quote-line{font-size:15px;line-height:1.95;margin-bottom:0}
.ssj .chapter-row .tag-line{font-size:11px}
.ssj .chapter-row .row-actions{gap:24px}
.ssj .chapter-row button:hover{background:none;color:var(--accent)}
.ssj .topic-row{gap:24px;margin-bottom:32px}
.ssj .topic-row button{border:0;border-radius:0;padding:8px 0;min-height:44px;color:var(--muted);font-size:13px;border-bottom:1px solid transparent}
.ssj .topic-row button[aria-pressed=true]{border-bottom-color:var(--ink);background:none;color:var(--ink)}
.ssj .my-grid{gap:64px;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr)}
.ssj .my-grid>*{min-width:0}
.ssj .my-toolbar{align-items:center;gap:16px;margin-bottom:36px}
.ssj .import-label input{max-width:330px;font-size:12px;padding:8px}
.ssj .list>li,.ssj .journal-row{padding:24px 0}
.ssj .journal-row button{font-family:var(--serif);text-align:left;line-height:1.8}
.ssj .journal-row small{color:var(--muted)}
.ssj .journal-row div{min-width:0}
.ssj .task-item{grid-template-columns:28px minmax(0,1fr);gap:12px;overflow-wrap:anywhere}
.ssj .task-item button[data-task-done]{width:28px;min-height:44px;border:0;padding:0;font-size:21px}
.ssj .task-item .task-meta{margin-top:8px;line-height:1.8}
.ssj .object-row{gap:20px;overflow-wrap:anywhere}
.ssj .object-row>div:first-child{min-width:0;flex:1}
.ssj .object-row>div:last-child{display:flex;flex-shrink:0;align-items:flex-start;gap:4px}
.ssj .record-form{padding:28px;background:var(--panel);border:1px solid var(--line)}
.ssj .record-form label{margin-bottom:18px}
.ssj #task-form,.ssj #object-form{margin-top:28px}
.ssj #task-form h3{margin-bottom:18px}
.ssj #task-form select[multiple]{min-height:92px}
.ssj dialog{border:1px solid var(--line);border-radius:var(--radius);padding:28px 52px 44px;max-width:880px;box-shadow:0 20px 100px #0003}
.ssj dialog::backdrop{background:#06233299;backdrop-filter:blur(4px)}
.ssj .dialog-top{z-index:2;top:0;padding:0 0 8px}
.ssj .dialog-top button{min-width:44px;min-height:44px;font-size:30px}
.ssj .reading-original{font-size:23px;line-height:2.15;letter-spacing:.03em}
.ssj .reading-original h3{font-size:18px;color:var(--muted)}
.ssj .reading-columns{gap:32px}
.ssj .reading-columns p{line-height:2}
.ssj .source-link{overflow-wrap:anywhere}
.ssj .reading-controls{gap:12px}
.ssj .dialog-question{margin-top:28px}
html[data-dao-theme=dark] .ssj dialog{
  color-scheme:light;
  --paper:#e5e9e2;--surface:#e5e9e2;--panel:#f0f2ec;--ink:#253e43;
  --muted:#50646b;--line:#bcc9c1;--accent:#41605e;--focus:#43645d;
  --field-line:#a9b9b1;--error:#923c2d;--hover:#253e4308;
  background:var(--surface);color:var(--ink);
}
.ssj .orientation{padding:10px 0 36px}
.ssj .orientation-figure{margin:0;background:var(--panel);border-color:var(--line)}
.ssj .orientation-steps button{border:0;border-radius:0;border-bottom:2px solid transparent}
.ssj .orientation-steps button[aria-pressed=true]{border-bottom-color:var(--ink)}
.ssj .orientation-heading h1{font-weight:400}
.ssj .orientation-heading>p:last-child{line-height:2}
.ssj .orientation-actions a{color:var(--muted)}
.ssj .orientation-actions .solid-button{font-family:var(--sans)}
.ssj .about-content{max-width:68ch}
.ssj .about-content h2{font-size:34px}

html[lang^=en] .ssj h1{font-family:var(--latin);letter-spacing:0;line-height:1.3}
html[lang^=en] .ssj .hero-a .hero-title h1{writing-mode:horizontal-tb;font-size:53px;line-height:1.45;height:auto;margin-left:0;letter-spacing:0;max-width:370px}
html[lang^=en] .ssj .hero-a .hero-subtitle{position:static;writing-mode:horizontal-tb;letter-spacing:0;line-height:1.85;max-width:320px;margin-top:23px}
html[lang^=en] .ssj .hero-a .hero-desc{max-width:325px}
html[lang^=en] .ssj .hero-b .hero-title h1{font-family:var(--latin);font-size:clamp(50px,6vw,85px);letter-spacing:-1px;line-height:1.3}
html[lang^=en] .ssj .page-head{max-width:840px}
@keyframes ssj-unfold{from{clip-path:inset(0 100% 0 0);opacity:.4;transform:translateX(30px)}to{clip-path:inset(0 0 0 0);opacity:1;transform:translateX(0)}}
@keyframes ssj-weave-in{from{opacity:.1;transform:scale(1.12)}to{opacity:1;transform:scale(1.04)}}
@keyframes ssj-clock-arrive{from{opacity:0;transform:rotate(-18deg) scale(.9)}to{opacity:1;transform:rotate(0) scale(1)}}
@keyframes ssj-page-in{from{opacity:0}to{opacity:1}}
@media(min-width:1500px){.ssj .hero-b{margin-inline:-50px}.ssj .hero-b .hero-title{left:7%}}
@media(max-width:1100px){
  .ssj .site-header{gap:20px}.ssj .site-header nav{gap:24px}
  .ssj .hero-a{grid-template-columns:39% 61%;min-height:560px}
  .ssj .hero-a .hero-title h1{font-size:61px;height:270px;letter-spacing:10px}
  .ssj .hero-a .hero-subtitle{left:220px;top:60px;font-size:11px}
  .ssj .art-folio img{height:420px}.ssj .hero-a .hero-caption{font-size:16px}
  .ssj .hero-b{min-height:630px}.ssj .hero-b .hero-title{left:6%;top:90px}
  .ssj .hero-b .hero-title h1{font-size:73px;letter-spacing:5px}
  .ssj .hero-clock{top:105px;right:2%;width:44%}
  .ssj .today-layout,.ssj .today-below,.ssj .profile-layout,.ssj .question-layout,.ssj .my-grid{gap:36px}
  .ssj .clock-stage{min-height:430px;padding:20px}.ssj .clock-readout{top:44%}
  .ssj .chart-stage,.ssj .profile-card{padding:24px}
  .ssj .qimen-cell{padding:10px;min-height:126px}
  .ssj .library-list{gap:0 32px}
  html[lang^=en] .ssj .hero-a .hero-title h1{font-size:43px}
}
@media(max-width:1000px){
  .ssj .site-header{height:auto;min-height:132px;padding:22px var(--gutter) 0;display:grid;grid-template-columns:1fr auto;gap:8px}
  .ssj .site-header nav{grid-column:1/-1;grid-row:2;height:48px;gap:0;margin:0;justify-content:space-between;width:100%}
  .ssj .header-actions{grid-column:2;grid-row:1}
  .ssj .site-header nav a[aria-current=page]:after{bottom:1px}
}
@media(max-width:960px){
  .ssj .question-layout,.ssj .profile-layout{grid-template-columns:minmax(0,1fr);gap:32px}
  .ssj .form-section{max-width:none}.ssj .chart-stage,.ssj .profile-card{max-width:none}
  .ssj .hexagrams{gap:40px}.ssj .qimen-cell{min-height:145px;padding:16px}
}
@media(max-width:800px){
  .ssj .brand>span{font-size:23px}.ssj .brand{gap:12px}.ssj .brand .dao-logo{width:64px}
  .ssj main{padding-top:34px}.ssj .site-footer{margin-top:48px;padding-bottom:28px}
  .ssj .hero-a{min-height:0;display:flex;flex-direction:column;padding:0 0 30px}
  .ssj .hero-a .hero-title{padding-top:0;width:100%;display:grid;grid-template-columns:1fr 1fr;gap:0 20px}
  .ssj .hero-a .hero-title h1{font-size:54px;height:235px;line-height:1.6;letter-spacing:9px;margin-left:0;grid-row:1/4}
  .ssj .hero-a .hero-subtitle{position:static;writing-mode:horizontal-tb;letter-spacing:0;line-height:1.8;margin-top:20px;font-size:11px;grid-column:2}
  .ssj .hero-a .hero-caption{grid-column:2;font-size:16px;margin-top:0;align-self:center}
  .ssj .hero-a .hero-desc{display:none}
  .ssj .hero-a .text-link{grid-column:2;align-self:end;margin-top:0;justify-self:start;margin-bottom:20px;font-size:12px;gap:16px}
  .ssj .art-folio{margin:35px 0 0;transform:none;width:100%}
  .ssj .art-folio img{height:auto;aspect-ratio:1.55;object-fit:cover}
  .ssj .art-folio:before{inset:-10px 9px -10px -9px}
  .ssj .art-folio figcaption{margin-top:20px;font-size:10px}
  .ssj .hero-a .fine-line{position:static;margin-top:26px;font-size:10px}
  .ssj .hero-b{min-height:810px}
  .ssj .hero-b .hero-title{top:42px;left:7%;right:7%}
  .ssj .hero-b .hero-title h1{font-size:53px;line-height:1.4;letter-spacing:4px}
  .ssj .hero-b .hero-caption{font-size:18px;margin-top:12px}
  .ssj .hero-b .hero-desc{font-size:12px;margin-top:10px;max-width:280px}
  .ssj .hero-b .text-link{font-size:12px;margin-top:10px;gap:32px}
  .ssj .hero-clock{top:330px;right:50%;transform:translateX(50%);width:84%;max-width:355px;animation:ssj-page-in 1.4s both}
  .ssj .hero-b .hero-foot{inset:auto 7% 29px;align-items:baseline;gap:18px;font-size:10px;padding-top:18px;flex-wrap:wrap}
  .ssj .hero-foot .foot-time{font-size:20px}
  .ssj .today-layout,.ssj .today-below,.ssj .my-grid{grid-template-columns:minmax(0,1fr);gap:32px}
  .ssj .clock-stage{min-height:440px}.ssj .clock-svg{max-width:430px}.ssj .clock-readout{top:46%}
  .ssj .reading-teaser blockquote{font-size:29px}
  html[data-dao-theme=dark] .ssj .reading-teaser{padding:28px 26px}
  .ssj .today-below{margin-top:36px}.ssj .daily-cards{gap:20px}
  .ssj .page-head{margin-bottom:30px}.ssj .page-head h1{font-size:38px}.ssj .page-head p{font-size:13px}
  .ssj .my-grid>section{padding-top:20px}.ssj .library-list{gap:0 28px}
  .ssj .chapter-row{padding:24px 0;gap:10px 12px;grid-template-columns:32px minmax(0,1fr)}
  .ssj .chapter-row h2{font-size:21px}.ssj .chapter-row .quote-line{font-size:14px}
  .ssj .topic-row{gap:20px}.ssj .library-toolbar{gap:12px}
  .ssj dialog{padding:20px 26px 32px}.ssj .reading-original{font-size:21px}.ssj .reading-columns{grid-template-columns:1fr;gap:16px}
  .ssj .orientation{padding-top:0}.ssj .orientation-figure svg{max-height:300px}
  html[lang^=en] .ssj .hero-a .hero-title{display:block}
  html[lang^=en] .ssj .hero-a .hero-title h1{font-size:45px;height:auto;line-height:1.4}
  html[lang^=en] .ssj .hero-a .hero-subtitle{margin-top:15px}
  html[lang^=en] .ssj .hero-a .hero-caption{margin-top:15px}
  html[lang^=en] .ssj .hero-a .text-link{margin-top:20px}
  html[lang^=en] .ssj .hero-b .hero-title h1{font-size:53px}
}
@media(max-width:480px){
  .ssj .site-header{gap:8px;padding-top:18px;min-height:124px}
  .ssj .brand{gap:10px}.ssj .brand>span{font-size:21px;letter-spacing:2px}
  .ssj .brand .dao-logo{width:56px}.ssj .brand .brand-divider{height:28px}
  .ssj .brand small{font-size:8px;letter-spacing:1.3px}
  .ssj .header-actions{gap:0}.ssj .header-actions button{min-width:40px;font-size:11px;padding:8px 4px}
  .ssj .header-actions #language{font-size:14px}
  .ssj .site-header nav a{font-size:12px}
  .ssj main{padding-top:28px}.ssj .page-head h1{font-size:32px}
  .ssj .clock-stage{padding:16px;min-height:385px}.ssj .clock-readout{top:44%}
  .ssj .clock-readout time{font-size:28px}.ssj .clock-caption{font-size:11px}
  .ssj .celestial-key{gap:5px}.ssj .celestial-key button{font-size:10px;padding:4px 8px}
  .ssj .clock-stage .stage-top{gap:8px;font-size:11px}
  .ssj .stage-top select{max-width:125px;font-size:11px}
  .ssj .form-grid{grid-template-columns:minmax(0,1fr);gap:16px}
  .ssj .profile-card,.ssj .chart-stage,.ssj .record-form{padding:20px}
  .ssj .chart-stage h2{font-size:25px}.ssj .chart-empty{height:280px}
  .ssj .qimen-cell{padding:8px;min-height:110px}.ssj .qimen-cell .cell-gate{font-size:21px}
  .ssj .qimen-cell .cell-top,.ssj .qimen-cell .cell-bottom{font-size:10px}
  .ssj .hexagrams{gap:18px}.ssj .hex-row{gap:5px;font-size:10px;grid-template-columns:minmax(0,1fr) minmax(0,1fr) 14px}
  .ssj .hex-line{height:6px}.ssj .hex-line.yin{gap:10px}
  .ssj .definition-list{grid-template-columns:80px minmax(0,1fr);font-size:13px;gap:10px}
  .ssj .pillar-grid{padding:24px 8px;gap:8px}.ssj .pillar-grid strong{font-size:31px}
  .ssj .method-switch button{font-size:17px;padding:12px 16px}
  .ssj .library-list{grid-template-columns:minmax(0,1fr)}
  .ssj .library-toolbar{gap:12px;align-items:flex-end}
  .ssj .library-toolbar .primary{padding:10px 16px;min-height:44px}
  .ssj .topic-row{gap:18px;margin-bottom:24px}
  .ssj .object-row{gap:12px}.ssj .object-row>div:last-child{display:block}
  .ssj .ai-answer{padding:20px}.ssj .actions button{font-size:13px;padding:9px 14px}
  .ssj .my-toolbar{gap:12px;align-items:flex-start}.ssj .import-label{width:100%}
  .ssj .import-label input{max-width:100%;width:100%}
  .ssj .orientation-heading h1{font-size:32px}
  .ssj .practice-toolbar{flex-wrap:wrap;gap:8px;font-size:11px}
  .ssj .practice-toolbar button{padding:8px 0}
  .ssj .source-link{font-size:12px}
}
@media(max-width:370px){
  .ssj .brand .dao-logo{width:48px}.ssj .brand>span{font-size:19px}.ssj .brand{gap:8px}
  .ssj .header-actions button{min-width:36px}.ssj .header-actions #theme{font-size:10px}
  .ssj .hero-a .hero-title h1{font-size:46px;height:220px;letter-spacing:8px}
  .ssj .hero-a .hero-caption{font-size:14px}
  .ssj .hero-b .hero-title h1{font-size:45px}.ssj .hero-b{min-height:780px}.ssj .hero-clock{top:340px}
  html[lang^=en] .ssj .hero-b .hero-title h1{font-size:45px}
  .ssj .clock-stage{min-height:350px}.ssj .clock-readout{top:43%}.ssj .clock-readout time{font-size:25px}
  .ssj .clock-readout p{font-size:11px}.ssj .profile-card,.ssj .chart-stage{padding:16px}
  .ssj .qimen-cell{padding:6px;min-height:110px}.ssj .qimen-cell .cell-gate{font-size:19px}
  .ssj dialog{padding:16px 20px 28px}.ssj .reading-original{font-size:20px}
  .ssj .orientation-heading h1{font-size:30px}.ssj .orientation-steps{gap:12px}
}
@media(prefers-reduced-motion:reduce){
  .ssj .art-folio,.ssj .woven-scene,.ssj .hero-clock,.ssj .page-enter{animation:none!important;transition:none!important}
  .ssj .material-light{display:none}.ssj .woven-scene{transform:scale(1.04)}
}
.ssj[data-motion=off] *, .ssj[data-motion=off] *:before, .ssj[data-motion=off] *:after{animation:none!important;transition:none!important}
.ssj[data-motion=off] .material-light{display:none}
.ssj[data-motion=off] .woven-scene{transform:scale(1.04)}

/* Comfortable English reading measure; classical Chinese remains unchanged. */
html[lang="en"] .ssj .reading-columns p{font-size:16px;line-height:1.9}
html[lang="en"] .ssj .reading-columns:has(> section:only-child){grid-template-columns:1fr}
