:root{color-scheme:light}*{box-sizing:border-box}[hidden]{display:none!important}.auth-shell{width:min(100% - 2rem,36rem);margin:0 auto;padding:2rem 0 3rem}.auth-brand{display:flex;align-items:center;gap:.9rem;margin:0 0 1.5rem}.auth-brand p{margin:0;color:#527273;font-size:.9rem}.auth-brand h1{margin:.25rem 0 0;font-size:1.5rem;color:#163c45}.auth-brand .brand-symbol{flex:none}.auth-card{background:#fff;border:1px solid #dce9e6;border-radius:1.5rem;padding:clamp(1.2rem,4vw,2rem);box-shadow:0 14px 40px #164d4520}.auth-eyebrow{font-size:.9rem;letter-spacing:.08em;color:#147d74;font-weight:700;margin:0 0 .7rem}.auth-card h2{font-size:1.65rem;margin:0 0 .8rem;color:#153b45}.auth-description,.auth-help,.auth-trial-note{line-height:1.85;color:#526f75;font-size:1rem}.auth-tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:.3rem;background:#edf5f2;padding:.3rem;border-radius:.9rem;margin:1.4rem 0}.auth-tabs button{font:inherit;font-weight:700;min-height:3rem;border:0;border-radius:.65rem;background:transparent;color:#526f75;cursor:pointer}.auth-tabs button[aria-selected=true]{background:#fff;color:#0d766e;box-shadow:0 2px 8px #1b4d4317}.auth-card label{display:block;margin:1rem 0;color:#234d55;font-weight:700;font-size:1rem}.auth-card input,.auth-card textarea{display:block;width:100%;margin-top:.45rem;font:inherit;font-weight:400;min-height:3rem;padding:.75rem;border:1px solid #bcd5cd;border-radius:.65rem;background:#fff;color:#173d44}.auth-card input:focus,.auth-card textarea:focus{outline:3px solid #a1e1d4;outline-offset:1px;border-color:#147b72}.auth-card .button{width:100%;justify-content:center;margin-top:.7rem;min-height:3.1rem;font-size:1rem}.auth-error{border:1px solid #edb9ad;background:#fff2ed;border-radius:.7rem;color:#853c2a;padding:.85rem;line-height:1.8}.auth-card button:disabled{opacity:.6;cursor:wait}.auth-trial-note{padding:0 .4rem}.recovery-receipt{background:#eff8f3;border:1px solid #c8e1d7;padding:1rem;border-radius:1rem}.recovery-receipt h3{margin-top:0}.recovery-receipt textarea{font-family:ui-monospace,monospace;overflow-wrap:anywhere;resize:vertical}.journal-account{max-width:1440px;margin:0 auto 1rem;padding:.8rem 1rem;display:flex;align-items:center;justify-content:space-between;gap:.8rem;flex-wrap:wrap;background:#ffffffc9;border:1px solid #d9e8e1;border-radius:1rem;color:#27575b;font-size:1rem}.journal-account button{font:inherit;border:1px solid #bdd7cc;background:#fff;color:#176e65;border-radius:.65rem;min-height:2.7rem;padding:.5rem .8rem;cursor:pointer}.journal-account small{display:block;font-size:.9rem;color:#597974}.account-error{width:100%;color:#8b3c29;margin:0}#diary-app[aria-busy=true]{opacity:.65}button:disabled{cursor:wait}.login-load-error{padding:1.2rem;color:#843c28;line-height:1.8}

main.diary-layout{display:block;max-width:60rem;margin:auto}
.trial-sticky-nav{position:sticky;top:env(safe-area-inset-top,0px);z-index:5;padding:5px 0;background:#eef6f4}
.trial-sticky-nav .diary-nav{margin:0}
.trial-sticky-nav .diary-nav-button{min-height:44px}
#nav-warning{margin:4px 8px;font-size:14px}
#diary-app,#trial-calendar{scroll-margin-top:82px}
#trial-calendar{display:flex;flex-direction:column;max-width:43rem;margin:12px auto 22px}
#trial-calendar .daily-message{order:-1;min-height:0;margin:0 0 10px}
#trial-calendar .daily-scene img{max-height:360px;object-fit:contain}
#trial-calendar .side-intention{display:none}
@media print{.trial-sticky-nav{display:none!important}}

#registration-details{border:0;margin:0;padding:0;min-width:0}#registration-details legend{font-weight:700;margin-bottom:12px}
.review-questions{border:2px solid #bc790c;border-left-width:6px;background:#fff2ca;color:#5a3500}
.review-questions>strong{display:block;font-size:1.05rem}
.review-questions .button{margin-top:8px}
@media print{.review-questions .button{display:none!important}}

.report-jump{margin:0 0 14px}
.report-edit{display:block;margin:8px 0}
.report-excerpt[tabindex]:focus{outline:2px solid #14767b;outline-offset:3px}
@media print{.report-jump,.report-edit{display:none!important}}

.auth-card .agree-box input[type="checkbox"]{width:1.25rem;height:1.25rem;min-height:0;margin:0;padding:0;flex:none;accent-color:#14767b}.report-share{padding:1rem;background:#edf8f3;border:1px solid #b8d8c8;border-radius:.8rem;line-height:1.7}.report-share small{display:block;margin-top:.4rem}.admin-shell{max-width:70rem;margin:auto;padding:1rem}.admin-shell h1{font-size:1.8rem}.admin-toolbar{display:flex;align-items:end;gap:1rem;flex-wrap:wrap;margin:1.5rem 0}.admin-toolbar label{display:grid;gap:.5rem;font-size:1rem}.admin-toolbar input{font:inherit;min-height:2.8rem;padding:.5rem}.admin-card{background:#fff;padding:1rem;border:1px solid #cfdfd8;border-radius:1rem;margin:1rem 0}.admin-card h3{font-size:1.1rem}.admin-card p{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8}.admin-summary{display:flex;flex-wrap:wrap;gap:.8rem}.admin-total{padding:.8rem;background:#edf8f3;border-radius:.6rem;min-width:9rem}.admin-total strong{display:block;font-size:1.4rem}.admin-total small{font-size:.9rem}.admin-actions{display:flex;gap:.7rem;flex-wrap:wrap;margin:1rem 0}.admin-actions .button{min-height:2.8rem}.admin-shell .agree-box{display:flex;gap:.7rem;align-items:start;font-size:1rem;line-height:1.7}.admin-shell input[type=checkbox]{width:1.25rem;height:1.25rem;flex:none;margin:.2rem 0}.admin-error{padding:1rem;background:#fff2ed;color:#853c2a;line-height:1.7}.admin-note{line-height:1.8;color:#45636a}.journal-account a{font-size:1rem}.admin-card dl{display:grid;grid-template-columns:1fr 1fr;gap:.5rem}.admin-card dt{font-size:.9rem}.admin-card dd{margin:0;font-weight:700}@media(max-width:520px){.admin-actions .button{width:100%}.admin-card dl{grid-template-columns:1fr}.admin-card dd{margin-bottom:.4rem}}
.month-report .entry-timestamp,.admin-card .entry-timestamp{display:block;font-size:1rem;line-height:1.65;overflow-wrap:anywhere;color:#45636a;margin:.35rem 0}

/* The approved Ninomiya illustration stays decorative behind the existing UI. */
body.has-ninomiya-background{position:relative;isolation:isolate;min-height:100svh}
body.has-ninomiya-background::before{content:"";position:fixed;z-index:-1;pointer-events:none;top:3.5rem;right:-2rem;width:min(88vw,42rem);aspect-ratio:1;background:url("./journal-icon-512.png") center/contain no-repeat;opacity:.24;-webkit-mask-image:radial-gradient(ellipse,#000 42%,transparent 73%);mask-image:radial-gradient(ellipse,#000 42%,transparent 73%)}
.has-ninomiya-background .auth-card{background:rgba(255,255,255,.74)}
.has-ninomiya-background .auth-card input,.has-ninomiya-background .auth-card textarea{background:#fff}
@media(max-width:600px){body.has-ninomiya-background::before{top:2.5rem;right:-5rem;width:28rem;opacity:.24}}
@media print{body.has-ninomiya-background::before{display:none!important}.has-ninomiya-background .auth-card{background:#fff!important}}
