:root { --h-bg: #f5f0e6; --h-card: #fffdf8; --h-ink: #1d1b18; --h-soft: #6b645a; --h-line: #e2d9c8; --h-accent: #1d1b18; --h-danger: #9b2c22; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --h-bg: #181614; --h-card: #221f1c; --h-ink: #efe8dc; --h-soft: #a59c8f; --h-line: #3a352f; --h-accent: #f0c35a; --h-danger: #f08a7e; } }
:root[data-theme="dark"] { --h-bg: #181614; --h-card: #221f1c; --h-ink: #efe8dc; --h-soft: #a59c8f; --h-line: #3a352f; --h-accent: #f0c35a; --h-danger: #f08a7e; }

.hosted-login { margin: 0; background: var(--h-bg); color: var(--h-ink); font: 17px/1.55 "Inter", -apple-system, system-ui, sans-serif; }
.hosted-login h1, .hosted-login h2 { text-wrap: balance; } .hosted-login p, .hosted-login li { text-wrap: pretty; }
.hosted-login main { max-width: 480px; margin: 0 auto; padding: 56px 16px; }
.hosted-login h1 { font: 400 40px "Newsreader", Georgia, serif; margin: 0 0 6px; }
.hosted-login h2 { font-size: 15px; margin: 32px 0 6px; }
.hosted-login .lede { color: var(--h-soft); }
.hosted-login label { display: block; font-size: 14px; margin: 18px 0 6px; }
.hosted-login input[type=email] { width: 100%; box-sizing: border-box; font: inherit; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--h-line); background: var(--h-card); color: var(--h-ink); }
.hosted-login button { margin-top: 12px; font: inherit; border: 0; border-radius: 10px; padding: 11px 16px; background: var(--h-accent); color: var(--h-card); cursor: pointer; }
.hosted-login a { color: var(--h-accent); }
.hosted-login .fine, .hosted-account .fine { color: var(--h-soft); font-size: 14px; }

.hosted-account-btn { position: fixed; left: 16px; bottom: 16px; z-index: 50; font: 14px -apple-system, system-ui, sans-serif; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--h-line); background: var(--h-card); color: var(--h-ink); cursor: pointer; }
.hosted-account { width: min(520px, calc(100vw - 32px)); border: 1px solid var(--h-line); border-radius: 14px; background: var(--h-card); color: var(--h-ink); font: 16px/1.5 -apple-system, system-ui, sans-serif; padding: 20px; }
.hosted-account::backdrop { background: rgba(0, 0, 0, .35); }
.hosted-account h2 { font: 400 26px Georgia, serif; margin: 0; }
.hosted-account h3 { font-size: 14px; margin: 18px 0 4px; letter-spacing: .02em; }
.hosted-account input[type=password], .hosted-account input[name=confirm] { width: 100%; box-sizing: border-box; font: 15px ui-monospace, monospace; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--h-line); background: var(--h-bg); color: var(--h-ink); margin: 6px 0; }
.hosted-account .row { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.hosted-account .row.end { justify-content: flex-end; margin-top: 18px; }
.hosted-account button { font: inherit; font-size: 14px; border: 1px solid var(--h-line); border-radius: 8px; padding: 7px 12px; background: var(--h-bg); color: var(--h-ink); cursor: pointer; }
.hosted-account button.danger { color: var(--h-danger); border-color: var(--h-danger); margin-top: 6px; }
.hosted-account a { color: var(--h-accent); }
.hosted-account details { margin-top: 16px; }

body.shape-hosted .shape-card:has([data-act="finance"]), body.shape-hosted .shape-card:has([data-act="library"]), body.shape-hosted .shape-card:has([data-act="training"]) { display: none; }
.hosted-account .legal { margin-top: 18px; }
.hosted-account .row .grow { flex: 1; }
.hosted-account .row .btn-link { align-self: center; font-size: 14px; }
.hosted-account button.primary { background: var(--h-accent); border-color: var(--h-accent); color: var(--h-card); }
.hosted-welcome p { margin: 10px 0; }
.hosted-legal main { max-width: 640px; }
.hosted-legal h2 { font-size: 17px; margin: 28px 0 6px; }
.hosted-legal li { margin: 4px 0; }
.hosted-login footer { margin-top: 40px; font-size: 14px; color: var(--h-soft); }
.hosted-share-btn { left: 104px; }
.hosted-share label { display: block; margin: 8px 0; }
.hosted-share select, .hosted-share input[name=n] { display: block; width: 100%; box-sizing: border-box; font: 15px -apple-system, system-ui, sans-serif; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--h-line); background: var(--h-bg); color: var(--h-ink); margin-top: 4px; }
.hosted-share .share-list { list-style: none; padding: 0; margin: 0; }
.hosted-share .share-list li { padding: 10px 0; border-top: 1px solid var(--h-line); }
.hosted-share .fb-pass { border-top: 1px solid var(--h-line); padding: 10px 0; }
.hosted-share blockquote { margin: 0 0 6px; font: 16px/1.5 Georgia, serif; color: var(--h-ink); }
.hosted-share .fb-c { margin: 6px 0 10px; }
.hosted-share .fb-c p { margin: 2px 0; }
.hosted-share { max-height: calc(100vh - 48px); overflow: auto; }
.hosted-read main { max-width: 640px; }
.hosted-read .r-head h1 { margin: 6px 0 8px; }
.hosted-read .r-name input { display: block; width: 100%; max-width: 280px; box-sizing: border-box; font: 15px -apple-system, system-ui, sans-serif; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--h-line); background: var(--h-card); color: var(--h-ink); margin-top: 4px; }
.hosted-read .r-book { font: 20px/1.6 "EB Garamond", Georgia, serif; margin-top: 28px; }
.hosted-read .r-ch { font: 400 22px "EB Garamond", Georgia, serif; text-align: center; margin: 36px 0 16px; }
.hosted-read .r-ch span { display: block; font-size: 15px; color: var(--h-soft); }
.hosted-read .r-p p { margin: 0 0 .9em; }
.hosted-read .r-p.fav p { box-shadow: inset 3px 0 0 var(--h-accent); padding-left: 12px; }
.hosted-read .r-mark { font: 14px/1.45 -apple-system, system-ui, sans-serif; color: var(--h-soft); margin: -4px 0 14px; padding: 6px 10px; border-left: 2px solid var(--h-line); }
.hosted-read .r-mark span { color: var(--h-ink); }
.hosted-read .r-cbox { font: 15px -apple-system, system-ui, sans-serif; margin: -4px 0 16px; }
.hosted-read textarea { width: 100%; box-sizing: border-box; font: 16px/1.45 -apple-system, system-ui, sans-serif; padding: 9px 10px; border-radius: 8px; border: 1px solid var(--h-line); background: var(--h-card); color: var(--h-ink); }
.hosted-read .row { display: flex; gap: 10px; align-items: center; }
.hosted-read .linkish { background: none; border: 0; padding: 0; margin: 0; color: var(--h-accent); text-decoration: underline; cursor: pointer; font: inherit; }
.hosted-read .r-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--h-line); }
.r-bar { position: absolute; z-index: 60; display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--h-ink); box-shadow: 0 4px 16px rgba(0, 0, 0, .2); }
.r-bar button { font: 14px -apple-system, system-ui, sans-serif; border: 0; border-radius: 999px; padding: 7px 12px; background: transparent; color: var(--h-card); cursor: pointer; }
.r-bar button:hover { background: rgba(255, 255, 255, .14); }

.hosted-404 main { max-width: 480px; padding-top: 72px; }
.hosted-404 .nf-brand, .hosted-legal .nf-brand { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 28px; color: var(--h-ink); text-decoration: none; font: 600 17px/1 -apple-system, system-ui, sans-serif; }
.hosted-404 .nf-brand svg, .hosted-legal .nf-brand svg { width: 24px; height: 24px; fill: currentColor; }
.hosted-404 .nf-home { display: inline-block; margin-top: 8px; padding: 11px 16px; border-radius: 10px; background: var(--h-accent); color: var(--h-card); text-decoration: none; }
.hosted-404 .nf-home:hover, .hosted-404 .nf-home:focus-visible { filter: brightness(1.08); }

.hosted-waitlist main { max-width: 520px; padding-top: 72px; }
.hosted-waitlist h1 { margin-bottom: 20px; }
.hosted-waitlist .wl-mark { display: block; width: 96px; height: 96px; object-fit: contain; margin: 0 0 20px; }
.hosted-waitlist .wl-mark[hidden] { display: none; }
.hosted-waitlist .wl-form label { margin-top: 0; }
.hosted-waitlist .wl-row { display: flex; gap: 8px; flex-wrap: wrap; }
.hosted-waitlist .wl-row input { flex: 1 1 220px; min-width: 0; min-height: 46px; }
.hosted-waitlist .wl-row button { margin-top: 0; flex: 0 0 auto; min-height: 46px; font-weight: 500; }
.hosted-waitlist .wl-row button[disabled] { opacity: .6; cursor: progress; }
.hosted-waitlist .wl-row input:focus-visible, .hosted-waitlist .wl-row button:focus-visible { outline: 2px solid var(--h-accent); outline-offset: 2px; }
.hosted-waitlist .wl-row input[aria-invalid="true"] { border-color: var(--h-danger); }
.hosted-waitlist .wl-status { min-height: 1.55em; margin: 10px 0 0; font-size: 15px; }
.hosted-waitlist .wl-status[data-kind="done"] { font-weight: 500; }
.hosted-waitlist .wl-status[data-kind="bad"], .hosted-waitlist .wl-status[data-kind="error"] { color: var(--h-danger); }
.hosted-waitlist .wl-status[data-kind="sending"] { color: var(--h-soft); }
@media (max-width: 480px) { .hosted-waitlist .wl-row button { flex: 1 1 100%; } }
