:root{color-scheme:light;--paper:#f6f1e6;--white:#fffcf6;--ink:#161616;--blue:#1d4e79;--ochre:#b9852a;--muted:#615d54;--line:#e3d9c7;--side:#faf5e9;--shadow:0 6px 18px #46331b08;--serif:Georgia,"Times New Roman",serif;--sans:"Segoe UI",Arial,sans-serif}
*{box-sizing:border-box}
html{min-height:100%;scrollbar-color:#b7ac98 var(--paper)}
body{margin:0;background:var(--paper);color:var(--ink);font:1rem/1.55 var(--sans)}
a{color:var(--blue)}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{-webkit-tap-highlight-color:transparent}
button{cursor:pointer}
:focus-visible{outline:3px solid var(--blue);outline-offset:3px}
main:focus{outline:none}
h1,h2,h3,p{margin:0}
h1,h2,h3{font-family:var(--serif);font-weight:400;line-height:1.13;letter-spacing:-.025em}
h1{font-size:clamp(2.55rem,5vw,4.15rem)}
h2{font-size:clamp(1.55rem,3vw,2.15rem)}
h3{font-size:1.55rem}
svg{width:1.25rem;height:1.25rem;flex:none;vertical-align:middle}
::selection{color:#10314c;background:#efd194}
.skip{position:fixed;top:-90px;left:1rem;z-index:20;padding:.7rem 1rem;background:var(--white)}
.skip:focus{top:1rem}
.sidebar{width:248px;position:fixed;inset:0 auto 0 0;background:var(--side);border-right:1px solid var(--line);display:flex;flex-direction:column;padding:1.85rem 1.15rem 1.12rem;overflow:auto;z-index:4}
.brand{color:var(--ink);text-decoration:none;display:flex;align-items:center;gap:.72rem;padding:.25rem .42rem;font:1.4rem/1.05 var(--serif);white-space:nowrap}
.brand>svg{width:2.75rem;height:2.75rem;padding:.55rem;color:#f4cf82;border-radius:.74rem;background:#143c54}
.brand i{color:var(--blue)}
.brand small{font:600 .58rem/1.2 var(--sans);letter-spacing:.12em;display:block;margin-top:.38rem;color:#695e4d}
.sidebar nav{margin-top:2.25rem;display:grid;gap:.24rem}
.nav-label{font-size:.69rem;font-weight:700;color:#706552;letter-spacing:.16em;padding:.4rem .7rem}
.nav-label:not(:first-child){margin-top:1.22rem}
.sidebar nav a,.menu-list a{display:flex;align-items:center;gap:.72rem;min-height:44px;color:#494740;text-decoration:none;font-size:.96rem;font-weight:550;padding:.53rem .7rem;border-radius:.55rem}
.sidebar nav a svg,.menu-list svg{color:#5c716f}
.sidebar nav a:hover,.menu-list a:hover{background:#efe5d1}
.sidebar nav a.active{background:#e8edf0;color:#17476b;font-weight:700}
.sidebar nav a.active svg{color:var(--blue)}
.side-foot{margin-top:auto;padding:1rem .55rem .1rem;color:#686256;font-size:.83rem;border-top:1px solid var(--line);display:flex;gap:.5rem;align-items:center}
.side-foot svg{width:1rem}
.shell{margin-left:248px;min-height:100dvh;display:flex;flex-direction:column}
.topbar{padding:.75rem max(1.85rem,calc((100% - 1112px)/2));min-height:72px;display:flex;justify-content:space-between;align-items:center;gap:.6rem;background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:3}
.topbar .brand{display:none}
.crumb,.topright{display:flex;align-items:center;gap:.75rem}
.crumb{white-space:nowrap;color:#776e5e;font-size:.72rem;letter-spacing:.12em}
.crumb strong{font-size:.9rem;color:#233e50;letter-spacing:0}
.help,.avatar{border:1px solid #d6b492;background:#fcf1e1;color:#753f2d;display:inline-flex;justify-content:center;align-items:center;gap:.45rem;min-height:42px;padding:.42rem .75rem;border-radius:999px;font-size:.88rem;font-weight:650;white-space:nowrap}
.help:hover{background:#f4e4d0}
.help svg{width:1.06rem}
.avatar{border-color:var(--line);background:#eee7d7;color:var(--blue);width:42px;padding:0;text-decoration:none}
.avatar svg{width:1.05rem}
main{width:min(100%,1172px);margin:0 auto;padding:1.75rem 1.85rem 2rem;flex:1}
.footer{width:min(100%,1172px);margin:0 auto;padding:.85rem 1.85rem 1.5rem;display:flex;align-items:center;justify-content:space-between;gap:.65rem;color:var(--muted);font-size:.78rem}
.hero{position:relative;overflow:hidden;display:flex;align-items:center;min-height:390px;background:#122d3e url('./hero.jpg') 100% 50%/auto 122% no-repeat;border-radius:1rem;color:#fff9e9;isolation:isolate}
.hero:before{content:"";position:absolute;inset:0;background:linear-gradient(90deg,#112b3b 8%,#112b3b 25%,#112b3be5 38%,#112b3b44 66%,#112b3b00 87%),linear-gradient(0deg,#10293966,transparent 44%);z-index:-1}
.hero-content{padding:2.5rem clamp(1.4rem,5vw,3.6rem);max-width:680px}
.kicker{font-size:.74rem;line-height:1.45;font-weight:750;letter-spacing:.14em;color:#685027;text-transform:uppercase}
.hero .kicker{color:#f0c979;display:flex;gap:.65rem;align-items:center}
.hero .kicker span{width:1.5rem;height:1px;background:#d7ac65}
.hero h1{font-size:clamp(3.35rem,7vw,6.2rem);line-height:.92;letter-spacing:-.065em;margin:.9rem 0 1.05rem}
.hero h1 em{font-weight:400;color:#f1c979}
.hero-content>p:not(.kicker){max-width:23rem;color:#f2eadb;margin-bottom:1.3rem;font-size:1.025rem}
.hero-credit{position:absolute;right:1.2rem;bottom:1rem;color:#fff3d9;font-size:.61rem;font-weight:650;letter-spacing:.12em;text-shadow:0 1px 4px #000}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;border:1px solid transparent;border-radius:.48rem;padding:.62rem .95rem;min-height:44px;color:inherit;text-decoration:none;font-weight:650;font-size:.94rem;line-height:1.24;text-align:center;background:transparent}
.btn:active,.tile:active{transform:translateY(1px)}
.primary{background:#18496f;color:white}
.primary:hover{background:#113c61}
.gold{background:#edc476;color:#2f2618}
.gold:hover{background:#f7d38b}
.gold:focus-visible{outline-color:#fff4da}
.outlined{border-color:#9caeb9;color:#1c4866;background:#fffdf5}
.outlined:hover{background:#e7edf0}
.danger{border-color:#ad755e;color:#843926;background:#fff6ed}
.danger:hover{background:#f6e2d3}
.text-link{color:var(--blue);font-weight:650;text-decoration:underline;text-underline-offset:.25em;font-size:.9rem;display:inline-block}
.dashboard{display:grid;grid-template-columns:1.02fr 1fr;gap:1.1rem;margin-top:1.12rem}
.panel{background:var(--white);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:.78rem;padding:clamp(1.05rem,2.4vw,1.55rem);min-width:0}
.today-top,.phase-heading{display:flex;gap:.75rem;align-items:center}
.today h2{margin:.65rem 0 .4rem}
.today>p,.progress-panel>p:not(.kicker){color:var(--muted)}
.today .btn{margin-top:.85rem}
.symbol{height:2.55rem;width:2.55rem;display:inline-grid;flex:none;place-items:center;border-radius:.53rem;background:#eee3ce;color:#735223}
.symbol.ochre,.symbol.phase-0,.tile.sand .symbol{background:#f1e5ca;color:#745012}
.symbol.blue,.symbol.phase-1,.tile.blue .symbol{background:#e7edf0;color:var(--blue)}
.symbol.phase-2{background:#ece1d1;color:#853f29}
.progress-panel h2{font-size:2.85rem;line-height:.95;margin:.45rem 0 .25rem;color:#173d5b}
.progress-panel h2 em{font-size:1.75rem;color:#746b5c;font-style:normal}
.track{height:7px;background:#eae2d3;border-radius:50px;overflow:hidden}
.track span{display:block;height:100%;background:#1e597f;border-radius:50px}
.progress-panel .track{margin:.72rem 0 .78rem}
.days-strip{display:grid;grid-template-columns:repeat(14,minmax(0,1fr));gap:.27rem;margin-bottom:.64rem}
.daychip{display:grid;place-items:center;aspect-ratio:1/1;min-height:23px;font-size:clamp(.65rem,1.05vw,.77rem);border-radius:.32rem;text-decoration:none;color:#614817;border:1px solid #eadbbd;background:#fbf3e0}
.daychip.phase-1{color:#255374;background:#edf1f2;border-color:#dce5e9}
.daychip.phase-2{color:#734a3a;background:#f4e9df;border-color:#eadbd0}
.daychip.next{border-color:#b9852a;box-shadow:inset 0 0 0 1px #b9852a;font-weight:750}
.daychip.done{background:#1d4e79;color:#fff9ea;border-color:#1d4e79}
.daychip svg{width:.85rem;height:.85rem}
.daychip:hover{box-shadow:inset 0 0 0 1px currentColor}
.section-head{margin:1.7rem 0 .75rem;display:flex;justify-content:space-between;align-items:baseline;gap:1rem}
.section-head span{color:var(--muted)}
.tile-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem}
.tile{min-height:80px;padding:.8rem 1rem;background:var(--white);border:1px solid var(--line);border-radius:.7rem;display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:.72rem;align-items:center;text-decoration:none;color:var(--ink);box-shadow:var(--shadow)}
.tile:hover{border-color:#bba889;background:#fffbef}
.tile strong,.tile small{display:block}
.tile strong{font-size:1rem}
.tile small{color:var(--muted);font-size:.88rem;margin-top:.1rem}
.tile>svg{width:.9rem;color:#76654c}
.pagehead{max-width:800px;margin:.5rem 0 1.7rem}
.pagehead h1{margin:.42rem 0 .52rem;color:#173749;line-height:1.02}
.pagehead>p:not(.kicker),.muted{color:var(--muted)}
.back{display:inline-flex;gap:.3rem;align-items:center;margin-bottom:.78rem;font-weight:650;text-decoration:none}
.back span{font-size:1.5rem;line-height:1}
.reading{display:grid;gap:1rem;max-width:790px}
.stack{display:grid;gap:1.05rem}
.info p,.callout h3,.callout p+.text-link,.phase-heading p{margin-top:.36rem}
.callout{padding:1rem;background:#f5ecda;border-left:3px solid #b9852a;border-radius:.1rem .5rem .5rem .1rem}
.callout .field{margin:.7rem 0}
.stack p.kicker+p,.callout h3+p{margin-top:.3rem}
.field{display:grid;gap:.35rem;width:100%}
.field>span{font-size:.95rem;font-weight:650}
.field small{font-weight:400;color:var(--muted);margin-left:.25rem}
input:not([type=checkbox],[type=radio]),textarea,select{min-width:0;width:100%;background:#fffefa;color:var(--ink);border:1px solid #b9b1a2;padding:.66rem .78rem;border-radius:.45rem;line-height:1.4;min-height:44px}
textarea{min-height:90px;resize:vertical}
input[type=date]{max-width:20rem}
input[type=checkbox],input[type=radio]{accent-color:var(--blue);width:1.2rem;height:1.2rem;margin:0;flex:none}
.check{display:flex;gap:.6rem;align-items:center;min-height:44px;width:fit-content}
.actions{display:flex;flex-wrap:wrap;gap:.55rem;align-items:center}
.journey-meter{display:grid;gap:.6rem;margin-bottom:.85rem;color:#1b4765;font-weight:700}
.phase-list{margin-bottom:.8rem}
.phase-heading{margin-bottom:.16rem}
.phase-heading p{color:var(--muted)}
.phase-list .phase-heading{padding-bottom:.7rem}
.listrow{display:grid;grid-template-columns:auto 1fr auto;align-items:center;gap:.8rem;min-height:50px;padding:.45rem .25rem;border-top:1px solid var(--line);text-decoration:none;color:var(--ink)}
.listrow:hover{background:#f7f0e1}
.row-index{font-variant-numeric:tabular-nums;color:#695027}
.row-end{display:flex;align-items:center;gap:.35rem;color:var(--blue);font-size:.84rem}
.row-end svg{width:1rem}
.banner{display:flex;flex-wrap:wrap;justify-content:space-between;align-items:center;gap:.85rem}
.spaced{margin-top:1rem}
fieldset{border:0;min-width:0;margin:0;padding:0}
legend{font-family:var(--serif);font-size:clamp(1.4rem,3vw,1.9rem);line-height:1.17;margin:0 0 .75rem;padding:0}
.options{display:grid;gap:.45rem}
.options label{display:flex;gap:.65rem;align-items:center;border:1px solid var(--line);border-radius:.45rem;min-height:46px;padding:.47rem .65rem;cursor:pointer}
.options label:has(input:checked){background:#e7edf0;border-color:#7896a9;color:#173e5a}
.journal-question{font-family:var(--serif);font-size:1.3rem}
.record{padding:.85rem 1rem}
.record summary{cursor:pointer;color:var(--blue);font-weight:650}
.record summary time{display:inline-block;margin-left:.65rem;font-size:.8rem;color:var(--muted);font-weight:400}
.record p{margin:.7rem 0 .2rem;white-space:pre-wrap;overflow-wrap:anywhere}
.empty{color:var(--muted)}
.search{display:flex;gap:.55rem;align-items:center;color:var(--blue)}
.search svg{flex:none}
.filters{display:flex;flex-wrap:wrap;gap:.4rem}
.pill{border:1px solid var(--line);background:#fffaf0;color:#494239;border-radius:999px;padding:.42rem .75rem;min-height:42px;font-size:.9rem}
.pill.selected{color:#fff;background:var(--blue);border-color:var(--blue)}
.result-count{color:var(--muted);margin:.85rem 0 .45rem;font-size:.9rem}
.phrase{display:flex;align-items:center;justify-content:space-between;gap:.45rem}
.phrase p+p{margin-top:.3rem}
.copy-btn,.icon-button{border:1px solid var(--line);border-radius:.47rem;background:#fbf7ee;color:var(--blue);padding:.44rem .65rem;display:inline-flex;gap:.35rem;align-items:center;min-height:42px;font-size:.86rem}
.copy-btn:hover,.icon-button:hover{background:#e9edf0}
.copy-btn svg{width:1rem}
.mobile{display:none}
dialog{background:var(--white);border:1px solid var(--line);border-radius:.9rem;color:var(--ink);width:min(93vw,610px);max-height:92dvh;padding:clamp(1rem,3vw,1.6rem);box-shadow:0 15px 60px #101d3155}
dialog::backdrop{background:#142638a6}
dialog>.actions,dialog>.callout,dialog>p,dialog>textarea{margin-top:.75rem}
.modal-head{display:flex;justify-content:space-between;gap:.6rem;align-items:center}
.icon-button{padding:.45rem}
.protocol-clock{display:flex;align-items:center;gap:.75rem;margin:.7rem 0}
.protocol-clock #clock{font-family:var(--serif);font-variant-numeric:tabular-nums;color:var(--blue);font-size:2rem}
.support{margin-top:1rem;padding-top:.7rem;border-top:1px solid var(--line)}
.support h3{font-size:1.2rem}
.support p,.support .actions{margin:.42rem 0;font-size:.91rem}
.menu-list{display:grid;margin-top:.65rem}
#toast{position:fixed;z-index:8;bottom:1.15rem;right:1.15rem;max-width:min(90vw,410px);padding:.65rem .85rem;border-radius:.45rem;color:white;background:#153b57;box-shadow:0 5px 24px #16232b29;pointer-events:none;opacity:0;transition:opacity .15s}
#toast.visible{opacity:1}
#printout{display:none}
@media(max-width:1050px){.sidebar{width:210px;padding-inline:.82rem}.shell{margin-left:210px}.hero{background-size:auto 110%}.hero:before{background:linear-gradient(90deg,#112b3b 2%,#112b3be9 29%,#112b3b33 67%,transparent)}.days-strip{grid-template-columns:repeat(7,minmax(0,1fr));gap:.3rem}.daychip{aspect-ratio:auto;min-height:25px}}
@media(max-width:760px){.sidebar,.crumb,.avatar{display:none}.shell{margin-left:0;padding-bottom:calc(64px + env(safe-area-inset-bottom))}.topbar{min-height:62px;padding:.55rem 1rem}.topbar .brand{display:flex;font-size:1.19rem;padding:0}.brand>svg{width:2.35rem;height:2.35rem;padding:.47rem}.brand small{font-size:.52rem}.topright{gap:.3rem}.help{min-height:38px;padding:.38rem .62rem}.mobile{position:fixed;z-index:4;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));background:#fffcf5;border-top:1px solid var(--line);inset:auto 0 0;padding:.25rem .35rem calc(.25rem + env(safe-area-inset-bottom));box-shadow:0 -4px 20px #4230190c}.mobile a,.mobile-more{min-height:49px;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:.16rem;color:#575148;font-size:.75rem;text-decoration:none;border:0;border-radius:.45rem;background:transparent;padding:0}.mobile svg{width:1.15rem;height:1.15rem}.mobile .active{color:var(--blue);background:#edf1f2;font-weight:700}main{padding:1rem 1rem 1.5rem}.footer{padding:0 1rem 1rem}.hero{min-height:350px;background-position:90% 50%;background-size:auto 113%}.hero-content{padding:2rem 1.4rem}.hero h1{font-size:clamp(3.3rem,11vw,5.6rem)}.hero-credit{font-size:.56rem}.pagehead{margin-bottom:1.15rem}#toast{bottom:calc(65px + env(safe-area-inset-bottom));right:.75rem}}
@media(max-width:510px){.dashboard,.tile-grid{grid-template-columns:1fr;gap:.65rem}.hero{min-height:354px;background-position:75% 50%;background-size:auto 100%}.hero:before{background:linear-gradient(90deg,#112b3bf5 4%,#112b3bcc 31%,#112b3b29 100%),linear-gradient(0deg,#112b3bdc,transparent 42%)}.hero-content{max-width:100%;padding:1.65rem 1.1rem}.hero-content>p:not(.kicker){max-width:16rem}.hero-credit{right:.72rem;bottom:.6rem}.days-strip{grid-template-columns:repeat(14,minmax(0,1fr));gap:.16rem}.daychip{min-height:25px;font-size:.64rem}.footer{display:block}.footer span+span{display:none}.section-head{margin:1.3rem 0 .65rem}.row-end span{display:none}.record summary time{display:block;margin-left:0}.copy-btn span{display:none}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{transition:none!important;scroll-behavior:auto!important}}
