:root{font-family:system-ui,sans-serif;color:#173b30;background:#f2f6f3;color-scheme:light}*{box-sizing:border-box}body{margin:0;padding:20px 16px 40px}main{max-width:760px;margin:auto}header{display:flex;align-items:center;justify-content:space-between;gap:12px}h1{font-size:1.7rem;margin:6px 0}.badge{font-size:.7rem;letter-spacing:.05em;font-weight:800;color:#685019;margin:0}.subtitle{margin:0;color:#53645d;font-size:.9rem}p{line-height:1.5}#status{font-size:.85rem;margin:12px 0;color:#53645d;overflow-wrap:anywhere}button,input,a{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;border:1px solid #164832;border-radius:12px;background:#205b43;color:#fff;font-weight:700;padding:14px;min-height:48px}button:disabled{opacity:.6;cursor:wait}a{color:#205b43}:focus-visible{outline:3px solid #b08319;outline-offset:4px}button:hover{background:#174832}.main-actions{display:grid;gap:14px}.action-card{display:flex;align-items:center;gap:16px;width:100%;min-height:112px;text-align:left;text-decoration:none;padding:22px;border:1px solid #9cb3a5;border-radius:16px;box-shadow:0 3px 0 #d5e1d9;background:white;color:#173b30}.action-card>span:nth-child(2){flex:1;min-width:0}.action-card strong{display:block;font-size:1.2rem;line-height:1.3;overflow-wrap:anywhere}.action-card small{display:block;font-size:.85rem;line-height:1.4;font-weight:400;margin-top:6px}.card-icon{display:grid;place-items:center;width:50px;height:50px;flex:0 0 50px;border-radius:12px;background:#e6eee8;color:#205b43;font-size:2.1rem;font-weight:500}.card-icon svg{width:34px;height:34px}.purchase{background:#205b43;color:white;border:1px solid #164832;border-left:5px solid #c79a2e;box-shadow:0 3px 0 #163e2e}.purchase .card-icon{background:#ffffff20;color:white}.search{background:#e9f2ec;border-color:#6d9980}.search:hover{background:#dcebe1}.other-actions{display:grid;gap:14px;margin-top:28px}.other-actions>a:not(.action-card){display:block;border:1px solid #d5e1d9;border-radius:10px;background:white;padding:16px;text-decoration:none;min-height:50px}.other-actions .action-card:hover{background:#edf4ef}dialog{width:calc(100% - 24px);max-width:520px;max-height:90dvh;overflow:auto;border:1px solid #9cb3a5;border-radius:18px;padding:22px;color:#173b30}dialog::backdrop{background:#102f26a6}.dialog-header{display:flex;align-items:center;justify-content:space-between;gap:10px}.dialog-header h2{font-size:1.25rem;margin:0}.quiet{background:#edf4ef;color:#173b30;border-color:#d5e1d9}.lookup-options{display:grid;grid-template-columns:1fr 1fr;gap:12px}.lookup-options button{padding:14px 8px;font-size:.95rem}.lookup-options small{font-weight:400}.secondary{background:#e6eee8;color:#173b30;border-color:#9cb3a5}.secondary:hover,.quiet:hover{background:#d5e1d9}form label{display:block;font-weight:700;margin:16px 0 8px}input{width:100%;min-height:48px;border:1px solid #9cb3a5;border-radius:9px;padding:12px}form button{width:100%;margin-top:14px}#lookup-status{font-size:.9rem;overflow-wrap:anywhere}#barcode-video{width:100%;max-height:240px;object-fit:cover;border-radius:10px;background:#102f26;margin-top:16px}#camera-panel p{font-size:.85rem;margin:6px 0}#camera-panel button{width:100%}[hidden]{display:none!important}@media(max-width:420px){body{padding:16px 14px 32px}h1{font-size:1.45rem}.action-card{padding:18px 14px;gap:12px;min-height:104px}.action-card strong{font-size:1.1rem}.card-icon{width:44px;height:44px;flex-basis:44px}.other-actions{margin-top:24px}dialog{padding:18px}}@media(max-height:560px) and (max-width:600px){body{padding-top:10px}header h1{font-size:1.3rem}.action-card{min-height:88px;padding:13px}.main-actions{gap:10px}.subtitle{font-size:.8rem}#status{margin:8px 0}.other-actions{margin-top:20px}}

/* A quiet editorial identity: paper, forest green and the gold of a book spine. */
body.page-home { padding: 28px 24px 56px; }
.page-home main { max-width: 1040px; }
.page-home .home-masthead { padding: 0 0 20px; border: 0; border-bottom: 1px solid #d3ddce; border-radius: 0; box-shadow: none; background: transparent; }
.home-brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: #193d33; font-size: 1.1rem; font-weight: 750; letter-spacing: -.025em; }
.home-brand small { display: block; font-size: .72rem; letter-spacing: .02em; color: #617266; font-weight: 400; margin-top: 3px; }
.home-brand-mark { display: grid; place-items: center; width: 44px; height: 48px; border-radius: 4px 12px 12px 4px; color: #f1d9a7; background: #205b46; border-left: 3px solid #b99145; box-shadow: 2px 3px 0 #d4ddce; }
.home-brand-mark svg { width: 30px; height: 30px; }
.home-intro { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin: 30px 0 14px; }
.home-intro h1 { font-family: Georgia, serif; font-size: clamp(1.8rem, 4.5vw, 3.1rem); margin: 12px 0 0; font-weight: 400; line-height: 1.12; }
.home-intro em { font-weight: 400; color: #47705a; }
.book-spines { height: 86px; display: flex; gap: 7px; align-items: end; padding-right: 18px; transform: rotate(-6deg); }
.book-spines span { position: relative; display: block; width: 25px; height: 78px; background: #205b46; border-radius: 4px 5px 2px 2px; box-shadow: inset 3px 0 #ffffff22, 3px 4px #193d330c; }
.book-spines span::before, .book-spines span::after { content: ''; position: absolute; left: 4px; right: 4px; height: 1px; background: #e7d1a4; top: 12px; }
.book-spines span::after { top: auto; bottom: 12px; }
.book-spines span:nth-child(2) { height: 64px; background: #b99145; }
.book-spines span:nth-child(3) { height: 86px; background: #92a38c; transform: rotate(12deg); transform-origin: bottom; }
.page-home #status { margin: 16px 0; font-size: .85rem; color: #617266; }
.page-home .main-actions { grid-template-columns: 1fr 1fr; gap: 20px; }
.page-home .action-card { border-radius: 18px; box-shadow: 0 6px 20px #193d3309; transition: box-shadow .16s, border-color .16s, background-color .16s; }
.page-home button.action-card { min-height: 172px; padding: 28px 24px; }
.page-home .action-card strong { font-family: Georgia, serif; font-size: 1.75rem; font-weight: 500; line-height: 1.15; letter-spacing: -.025em; }
.page-home .action-card small { font-size: .87rem; line-height: 1.5; margin-top: 8px; }
.page-home .action-card > :last-child { font-weight: 400; font-size: 1.4rem; }
.page-home .purchase { border: 1px solid #164936; border-left: 5px solid #c49c55; background: #205b46; color: #fffefa; box-shadow: 0 8px 28px #193d331c; }
.page-home .purchase .card-icon { color: #f2d9a5; background: #ffffff12; border: 1px solid #ffffff25; }
.page-home .search { border-color: #b5c6b1; background: #eaf0e3; color: #193d33; }
.page-home .search .card-icon { background: #fffefa; border: 1px solid #d3dfcb; }
.page-home .card-icon { width: 56px; height: 56px; flex-basis: 56px; border-radius: 14px; }
.page-home .action-card:hover { box-shadow: 0 10px 28px #193d331c; }
.page-home .section-caption { margin: 32px 0 16px; font-family: inherit; font-weight: 650; font-size: .8rem; color: #617266; letter-spacing: .03em; }
.page-home .other-actions { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin: 0; }
.page-home .other-actions > .action-card { grid-column: 1 / -1; min-height: 96px; padding: 20px 24px; background: #fffefa; border-color: #d3ddce; }
.page-home .other-actions .action-card strong { font-size: 1.3rem; }
.page-home .other-actions > a:not(.action-card) { min-height: 68px; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-radius: 12px; font-size: .88rem; background: #fffefa; border-color: #dbe1d8; }
.page-home .other-actions > a:not(.action-card)::after { content: ''; width: 7px; height: 7px; flex: 0 0 7px; border-top: 1.5px solid #80937d; border-right: 1.5px solid #80937d; }
.page-home .other-actions > a:not(.action-card):hover { border-color: #9db497; background: #f1f4eb; }
.page-home dialog { background: #fffefa; }
.page-home .lookup-options button { min-height: 86px; line-height: 1.6; }
.page-home .dialog-header h2 { font-family: Georgia,serif; font-size: 1.6rem; font-weight: 400; }
@media (max-width: 700px) {
  body.page-home { padding: 18px 16px 36px; }
  .page-home .home-masthead { padding-bottom: 16px; }
  .home-intro { margin: 20px 0 8px; }
  .home-intro h1 { margin-top: 8px; font-size: 1.75rem; }
  .home-intro .badge { font-size: .6rem; }
  .book-spines { display: none; }
  .page-home #status { margin: 12px 0; font-size: .8rem; }
  .page-home .main-actions { grid-template-columns: 1fr; gap: 12px; }
  .page-home button.action-card { min-height: 104px; padding: 18px 16px; }
  .page-home .action-card strong { font-size: 1.35rem; }
  .page-home .action-card small { font-size: .8rem; margin-top: 5px; }
  .page-home .card-icon { width: 44px; height: 44px; flex-basis: 44px; border-radius: 10px; }
  .page-home .card-icon svg { width: 28px; height: 28px; }
  .page-home .section-caption { margin: 24px 0 12px; }
  .page-home .other-actions { grid-template-columns: 1fr 1fr; gap: 10px; }
  .page-home .other-actions > .action-card { padding: 18px 16px; }
  .page-home .other-actions > a:not(.action-card) { min-height: 70px; padding: 14px; gap: 8px; }
  .home-brand { font-size: 1rem; }
}
@media (max-width: 700px) and (max-height: 560px) {
  body.page-home { padding-top: 10px; }
  .page-home .home-masthead { padding-bottom: 10px; }
  .home-intro { margin-top: 14px; }
  .home-intro h1 { font-size: 1.55rem; }
  .page-home button.action-card { min-height: 94px; padding: 14px; }
  .page-home #status { margin: 10px 0; }
}
@media (prefers-reduced-motion: reduce) { .page-home .action-card { transition: none; } }

/* Welcome is public; account navigation and modules start after session validation. */
body.page-home{min-height:100dvh;padding:28px 32px 48px}
.page-home main{max-width:1180px}
.header-end{display:flex;align-items:center;gap:20px}
.environment-tag{color:#71571f;background:#f0eadc;border:1px solid #e3d7bd;padding:7px 11px;border-radius:30px;font-size:.66rem;font-weight:700;letter-spacing:.06em;white-space:nowrap}
.welcome{display:grid;grid-template-columns:1.16fr 1fr;margin-top:32px;min-height:580px;border:1px solid #e1e5db;border-radius:28px;overflow:hidden;background:#fffefa;box-shadow:0 24px 70px #193d330a}
.welcome-story{position:relative;isolation:isolate;overflow:hidden;background:radial-gradient(ellipse at 90% 100%,#35735b,transparent 65%),#153f33;color:#fffefa;padding:42px 44px 0}
.welcome-eyebrow{display:flex;align-items:center;gap:9px;margin:0;font-size:.61rem;letter-spacing:.15em;font-weight:650;color:#dfdfbd}
.welcome-eyebrow>span{width:6px;height:6px;border-radius:50%;background:#d5b977}
.page-home .welcome h1{color:#fffefa;font-family:inherit;font-size:clamp(2.3rem,4vw,3.5rem);line-height:1.07;letter-spacing:-.055em;font-weight:650;margin:28px 0 18px;text-wrap:initial}
.welcome h1 em{font-family:Georgia,serif;font-weight:400;color:#e7ca91}
.page-home .welcome-description{font-size:.9rem;line-height:1.7;color:#cfddd4;margin:0}
.welcome-art{height:258px;position:relative;margin-top:24px}
.art-orbit{position:absolute;width:290px;height:290px;border:1px solid #d2dfce26;border-radius:50%;top:0;left:60px}
.art-orbit::after{content:'';position:absolute;inset:23px;border:1px solid #d2dfce1a;border-radius:50%}
.art-book{position:absolute;width:146px;height:190px;border-radius:4px 12px 12px 4px;border-left:8px solid #00000015;box-shadow:12px 16px 24px #082b2b35;display:flex;flex-direction:column;justify-content:space-between;padding:22px 16px;font-family:Georgia,serif;font-size:1.22rem;line-height:1.2}
.book-one{left:22%;top:20px;background:#e6ce98;color:#253f33;transform:rotate(-13deg)}
.book-two{left:48%;top:52px;background:#e7ebdf;color:#274a3e;transform:rotate(13deg)}
.art-book i{width:48px;height:48px;border:1px solid currentColor;border-radius:50%;position:relative;opacity:.65}
.art-book i::before{content:'';position:absolute;inset:8px;border:1px solid currentColor;border-radius:50%}
.art-star svg{width:42px;height:42px}
.art-star{position:absolute;left:83%;top:12px;font-size:2.7rem;color:#dabb7a;font-weight:300}
.art-caption{position:absolute;bottom:15px;left:0;font:500 .52rem system-ui,sans-serif;letter-spacing:.17em;color:#bacdc0}
.welcome-entry{align-self:center;padding:48px 48px 46px}
.entry-number{display:block;font-size:.62rem;letter-spacing:.12em;color:#708074;font-weight:650;margin-bottom:38px}
.page-home .welcome-entry h2{font-family:inherit;font-weight:650;font-size:clamp(1.65rem,2.5vw,2rem);letter-spacing:-.045em;line-height:1.15;margin:0 0 14px}
.welcome-entry>p{font-size:.9rem;color:#5e7066;margin:0 0 28px;max-width:28ch}
.page-home .entry-button{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:58px;padding:17px 22px;background:#205b46;color:#fffefa;border:1px solid #205b46;border-radius:12px;box-shadow:0 5px 14px #193d3321;text-decoration:none;font-size:.9rem;font-weight:650;transition:background-color .16s,box-shadow .16s}
.entry-button>svg{width:22px;height:22px;flex:0 0 22px}
.page-home .entry-button:hover{background:#164332;box-shadow:0 8px 22px #193d3330}
.entry-note{display:flex;align-items:center;gap:12px;margin-top:22px;color:#617266;font-size:.72rem;line-height:1.6}
.entry-note svg{width:23px;height:23px;flex:0 0 23px;color:#50745f}
.entry-divider{height:1px;background:#e1e6dc;margin:28px 0 20px}
.page-home .entry-help{font-size:.78rem;font-weight:600;line-height:1.6;margin:0;color:#294c3e;max-width:none}
.entry-help span{font-size:.72rem;font-weight:400;color:#617266}
.access-status{display:flex;align-items:center;gap:16px;justify-content:center;min-height:42px;margin-top:10px}
.page-home .access-status #status{margin:0;font-size:.75rem;text-align:center}
.access-status #retry{font-size:.75rem;min-height:40px;padding:8px 12px}
.is-member .access-status{justify-content:start;margin:0 0 18px;min-height:24px}
.is-member .access-status #status{text-align:left}
.page-home .home-intro h1{font-family:inherit;font-weight:600;letter-spacing:-.045em;font-size:clamp(1.7rem,3.6vw,2.8rem)}
.home-intro h1 em{font-family:Georgia,serif}
.member-label{font-size:.65rem;color:#647b6c;letter-spacing:.12em;border:1px solid #cbd8c7;border-radius:30px;padding:8px 14px}
.page-home .action-card strong{font-family:inherit;font-weight:650;font-size:1.5rem;letter-spacing:-.03em}
.page-home .purchase{background:linear-gradient(125deg,#153f33,#286b51);border-left-width:1px}
.page-home .search{background:#fffefa}
@media(min-width:701px){.page-home .main-actions .card-icon{width:60px;height:60px;flex-basis:60px}.page-home .main-actions .action-card{min-height:164px}}
@media(max-width:900px) and (min-width:701px){.welcome-story{padding:36px 28px 0}.welcome-entry{padding:40px 28px}.art-book{width:122px;height:170px;font-size:1.1rem}.art-orbit{left:0}.book-one{left:10%}.book-two{left:44%}.page-home .action-card strong{font-size:1.3rem}}
@media(max-width:700px){
 body.page-home{padding:18px 16px 32px}
 .header-end{gap:12px}.environment-tag{font-size:.56rem;padding:6px 9px}
 .welcome{grid-template-columns:1fr;margin-top:20px;border-radius:20px;min-height:0}
 .welcome-story{padding:28px 26px 30px}
 .welcome-eyebrow{font-size:.55rem}
 .page-home .welcome h1{font-size:2.4rem;margin:20px 0 14px}
 .page-home .welcome-description{font-size:.8rem}
 .welcome-art{position:absolute;width:135px;height:170px;right:-30px;bottom:-25px;opacity:.2;z-index:-1;margin:0}
 .art-book{width:90px;height:125px;padding:12px;font-size:.85rem}.book-one{left:0}.book-two{left:45px}.art-orbit,.art-caption,.art-star{display:none}
 .welcome-entry{padding:26px}
 .entry-number{margin-bottom:18px;font-size:.57rem}
 .page-home .welcome-entry h2{font-size:1.55rem}
 .welcome-entry>p{font-size:.83rem;max-width:none;margin-bottom:22px}
 .page-home .entry-button{font-size:.85rem;min-height:56px;padding:15px 18px}
 .entry-note{font-size:.67rem;margin-top:18px}
 .entry-divider{margin:20px 0 16px}
 .page-home .entry-help{font-size:.75rem}.entry-help span{font-size:.68rem}
 .access-status{flex-wrap:wrap;gap:8px;margin-top:12px}
 .page-home .home-intro h1{font-size:1.65rem}.member-label{display:none}
 .page-home .action-card strong{font-size:1.2rem}
 .is-member .access-status{margin-bottom:12px}
}
@media(max-width:700px) and (max-height:700px){
 .welcome-story{padding:22px 24px}.page-home .welcome h1{font-size:2.1rem;margin:14px 0 10px}.welcome-entry{padding:24px}.entry-number{display:none}.entry-note{margin-top:14px}.entry-divider{margin:16px 0 12px}
}
@media(max-width:700px) and (max-height:560px){body.page-home{padding-top:10px}.page-home .home-intro h1{font-size:1.5rem}.is-member .access-status{margin-bottom:10px}}
@media(prefers-reduced-motion:reduce){.page-home .entry-button{transition:none}}

/* Primary actions keep large, readable symbols; secondary navigation is grouped. */
.page-home .main-actions .card-icon{width:80px;height:80px;flex-basis:80px;border-radius:20px}
.page-home .main-actions .card-icon svg{width:56px;height:56px}
.page-home .main-actions .action-card strong{font-size:1.4rem}
.page-home .other-actions{grid-template-columns:1fr 1fr}
.page-home .other-actions>.action-card .card-icon{font-size:2.6rem}
.home-menu{position:relative;min-width:0;border:1px solid #d4dfcf;border-radius:14px;background:#fffefa;align-self:start}
.home-menu summary{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:60px;padding:18px 20px;list-style:none;cursor:pointer;font-weight:600;font-size:.9rem}
.home-menu summary::-webkit-details-marker{display:none}.home-menu summary svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;flex:0 0 20px}
.home-menu[open] summary{border-bottom:1px solid #e3e8df}.home-menu[open] summary svg{transform:rotate(180deg)}
.home-menu>div{display:grid;padding:8px}.home-menu a{padding:12px;border-radius:8px;font-size:.85rem;text-decoration:none;min-height:44px;display:flex;align-items:center;gap:6px}.home-menu a:hover{background:#eff4e9}
@media(max-width:700px){.page-home .main-actions .card-icon{width:60px;height:60px;flex-basis:60px;border-radius:15px}.page-home .main-actions .card-icon svg{width:42px;height:42px}.page-home .main-actions .action-card strong{font-size:1.15rem}.home-menu summary{padding:16px;font-size:.85rem}.page-home .main-actions .action-card{gap:12px}.page-home .main-actions .action-card small{font-size:.75rem}}

/* Stack the dashboard actions across the available width on touch screens. */
@media(max-width:768px){
 .page-home .main-actions,.page-home .other-actions{grid-template-columns:minmax(0,1fr)}
 .page-home .main-actions .action-card,.page-home .other-actions>.action-card{width:100%;min-width:0}
 .page-home #home{padding-bottom:calc(24px + env(safe-area-inset-bottom, 0px))}
 .page-home #home .action-card{scroll-margin-top:120px;scroll-margin-bottom:24px}
}
