:root {
  color-scheme: dark;
  --ground: #101915; --ground-raised: #18251f; --ground-raised-2: #20332a;
  --ink: #f5efe4; --ink-dim: #c0b7a8; --hairline: #40554a;
  --ember: #f08a45; --ember-soft: #ffc17e; --ember-dim: #b85f31;
  --accent: #f08a45; --accent-soft: #ffc17e; --accent-dim: #b85f31;
}
body { background: var(--ground); }
* { letter-spacing: 0 !important; }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
button, a, summary { touch-action: manipulation; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, .pillar-btn, .spark-card, .profile-select-btn { border-radius: 8px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, summary:focus-visible { outline: 3px solid #326fa2; outline-offset: 3px; }
input, select, textarea { min-width: 0; max-width: 100%; background: #fff; color: var(--ink); border: 1px solid #a0b8ac; border-radius: 6px; padding: .65rem .8rem; }
a { color: #236b5b; }
.topbar { background: #fff; }
.brand-lockup, .beta-badge { color: var(--ink); }
.account-bar { background: transparent; border: 0; }
.account-bar { padding: 1rem clamp(1rem, 4vw, 3rem); }
#account-signed-out { display: block; }
.signin-card { max-width: 640px; margin: 1.5rem auto 0; }
.welcome-panel { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); background: #163e35; border: 0; border-radius: 0; color: white; min-height: 0; padding: 0; overflow: hidden; }
.welcome-art { position: relative; min-width: 0; min-height: 460px; }
.welcome-illustration { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; object-position: 85% center; }
.welcome-copy { min-width: 0; padding: 2rem; }
.welcome-panel { width: 100%; max-width: none; }
.signed-out-shell::before, .signed-out-shell::after, .signin-card::before { display: none; }
.welcome-panel h1 { max-width: none; }
.welcome-panel h1 span { background: none; -webkit-background-clip: initial; background-clip: initial; filter: none; }
.welcome-lead { max-width: 30rem; font-size: 17px; }
.signin-card .account-row input, .account-code-input { background: #fff; color: var(--ink); border-color: #a0b8ac; border-radius: 6px; }
#account-magic-link-btn, #account-code-verify-btn { background: #287464; color: #fff; border-radius: 8px; box-shadow: none; }
.signin-note a { color: #236b5b; }
.welcome-panel h1, .welcome-panel h1 span, .welcome-panel p { color: white; text-shadow: 0 1px 5px #14293a; }
.welcome-panel h1 { font-size: 36px; }
.welcome-panel .welcome-path { display: none; }
.story-worlds { margin-top: 2rem; }
.story-world { background: #fff; color: #253d35; border-radius: 6px; }
.signin-card { background: #fff; color: var(--ink); border: 1px solid var(--hairline); border-radius: 8px; box-shadow: none; }
.signin-card h2 { font-size: 26px; }
.signin-card p, .signin-copy, .signin-note, .account-email-label { color: var(--ink-dim); }
.dashboard-shell { background: transparent; border: 0; padding-top: 1rem; }
.dashboard-shell::before { display: none; }
.dashboard-heading h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ink); }
.dashboard-intro { color: var(--ink-dim); font-size: 16px; }
.dashboard-eyebrow, .section-kicker { color: #587266; }
.brand-lockup .wordmark { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ink); }
.dashboard-start { background: transparent; border: 0; border-radius: 0; box-shadow: none; padding: 0; }
.dashboard-profiles .profile-add-toggle { color: #236b5b; border-color: #82ad9c; background: #fff; border-radius: 6px; }
.ember-welcome { box-shadow: none; grid-template-columns: 1fr; }
.ember-welcome p:last-child { color: #fff; }
.account-menu, #account-signout-btn { color: var(--ink); }
.composer.is-reading > .quick-story-btn, .composer.is-reading > .quick-story-help { display: none; }
.dashboard-heading { padding-bottom: 1rem; }
.dashboard-heading h1 { font-size: 32px; }
.ember-welcome { background: url('/assets/hearthside-hero-storybook.png') center 60% / cover; border-radius: 0; min-height: 210px; color: white; border: 0; padding: 1.5rem; }
.ember-welcome h2, .ember-welcome p { color: #fff; text-shadow: 0 1px 5px #14293a; max-width: 400px; }
.ember-welcome h2 { font-size: 25px; }
.ember-avatar { display: none; }
.dashboard-start h2 { font-size: 24px; }
.dashboard-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.dashboard-action { background: #fff; border: 1px solid var(--hairline); border-radius: 8px; box-shadow: none; min-height: 104px; color: var(--ink); }
.dashboard-action strong { font-size: 19px; }
.dashboard-action small { color: var(--ink-dim); }
.action-tell { background: #fff1ed; border-color: #e6baae; }
.action-continue { background: #eaf5ef; border-color: #b4d6c0; }
.action-explore { background: #ecf4fc; border-color: #b4cee4; }
.action-library { background: #fff5dc; border-color: #e5ce93; }
.action-learn { background: #f7eff7; border-color: #d8bfd6; }
.family-nav { display: flex; flex-wrap: wrap; gap: .35rem; padding: .7rem 0; border-bottom: 1px solid var(--hairline); }
.family-nav, #profile-dock { width: 100%; }
.family-nav button { border: 0; background: transparent; color: var(--ink); padding: .65rem .8rem; min-height: 44px; }
.family-nav button[aria-current] { background: #dfeee6; font-weight: 700; }
#profile-dock { padding-top: .5rem; }
.dashboard-profiles { border: 0; background: transparent; padding: .5rem 0; }
.dashboard-profiles h2 { font-size: 20px; }
.dashboard-profiles .section-kicker { display: none; }
.profiles-list { display: flex; flex-wrap: wrap; gap: .5rem; }
.profile-select-btn { min-height: 44px; border: 1px solid var(--hairline); background: #fff; color: var(--ink); padding: .5rem 1rem; }
.profile-select-btn[aria-pressed=true] { background: #287464; border-color: #287464; color: #fff; }
#profiles-retry-btn { min-height: 44px; padding: .4rem .5rem; font-size: 13px; background: transparent; border: 0; color: #236b5b; }
#profiles-load-status:empty, #family-notice:empty { display: none; }
#family-notice { margin: .5rem 0; font-size: 14px; }
.family-destination, .library-wrap, .composer { width: 100%; max-width: 880px; margin: 0 auto; padding: 2rem 1.25rem; background: transparent; border: 0; }
.family-destination h1, .workspace-heading h1 { font-size: 30px; margin-bottom: 1.5rem; }
.family-destination h2 { font-size: 22px; }
.workspace-heading p:last-child { display: none; }
.workspace-heading { background: transparent; border: 0; border-radius: 0; padding: 0; box-shadow: none; }
.workspace-heading h1 { background: none; -webkit-background-clip: initial; background-clip: initial; color: var(--ink); }
.workspace-heading .back-home-btn { background: #fff; color: #236b5b; border: 1px solid var(--hairline); border-radius: 6px; }
.composer { gap: 1.3rem; }
.customize-more { border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); padding: .8rem 0; }
.customize-more summary { cursor: pointer; font-weight: 600; min-height: 44px; }
.customize-more .step { margin: 1rem 0; }
.step { border: 0; background: transparent; }
#story-studio .step { border: 0; background: transparent; border-radius: 0; box-shadow: none; padding: 0; }
#story-studio .pillar-card { background: #fff; color: var(--ink); border-color: var(--hairline); border-radius: 8px; }
#story-studio .pillar-card.is-active { background: #e0eee8; border-color: #55947d; }
#story-studio .step-label { color: #50675f; }
.quick-story-btn { background: #e0eee8; color: #184d3e; border: 1px solid #82ad9c; border-radius: 8px; box-shadow: none; }
.quick-story-help { display: none; }
.spark-card, .audience-btn, .seg-btn, .series-card, .library-card { background: #fff; color: var(--ink); border: 1px solid var(--hairline); border-radius: 8px; box-shadow: none; }
.spark-card .spark-title, .lib-title { color: var(--ink); }
.spark-card .spark-desc, .lib-snippet, .series-sub { color: var(--ink-dim); }
.seg-btn.is-active, .audience-btn.is-active { background: #e0eee8; color: #184d3e; border-color: #55947d; }
.tell-btn { background: #287464; color: #fff; border: 0; border-radius: 8px; }
.story-card { background: #fff; color: var(--ink); border: 0; border-radius: 0; box-shadow: none; padding: 1.5rem .5rem; }
.story-card h2 { font-size: 30px; }
.composer.is-reading > .step, .composer.is-reading > details, .composer.is-reading > .tell-btn { display: none; }
.story-actions { flex-wrap: wrap; }
.story-actions button { background: #eef5f2; color: #253d35; border: 1px solid var(--hairline); border-radius: 6px; min-height: 44px; }
.fact-card { background: #edf5fb; border-color: #b4cee4; }
.discovery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; margin: 1.5rem 0; }
.discovery-grid button { padding: 1.5rem .8rem; min-height: 100px; background: #183229; color: #f5efe4; border: 1px solid #3e715e; border-radius: 8px; font-weight: 600; }
.discovery-grid button:nth-child(3n+2) { background: #172c31; border-color: #3f6670; }
.discovery-grid button:nth-child(3n) { background: #302b1c; border-color: #71623a; }
.discovery-grid button:hover { filter: brightness(1.14); }
.ask-ember-form label { display: block; font-weight: 600; margin-bottom: .5rem; }
.ask-ember-form input { flex: 1; }
.ask-ember-form .row { flex-wrap: wrap; }
#story-ready-btn { min-height: 44px; padding: .7rem 1rem; background: #e0eee8; color: #184d3e; border: 1px solid #82ad9c; }
.word-popover { max-width: calc(100vw - 20px); max-height: calc(100dvh - 20px); overflow: auto; }
.word-popover-head button { min-height: 44px; min-width: 44px; }
.ask-ember-form button, .parent-section > button, #profile-save-btn { background: #287464; color: #fff; border: 0; padding: .7rem 1rem; }
.shelf-controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; margin-bottom: 1.5rem; }
.library-item { position: relative; min-width: 0; }
.library-item .library-card { width: 100%; padding-right: 3.5rem; }
.favorite-toggle { position: absolute; right: .4rem; top: .4rem; width: 44px; height: 44px; font-size: 24px; background: #fff; border: 0; color: #875d0b; }
.shelf-controls input { min-width: 0; max-width: 100%; flex: 1 1 180px; }
.shelf-remove, .recovery-item button { min-height: 44px; padding: .5rem .8rem; margin-top: .4rem; border: 1px solid var(--hairline); background: #fff; color: var(--ink); border-radius: 8px; }
.series-item { min-width: 0; }
.series-item .series-card { width: 100%; }
.series-card:disabled { opacity: .75; cursor: default; }
.recovery-item { padding: 1rem 0; border-bottom: 1px solid var(--hairline); overflow-wrap: anywhere; }
.recovery-item pre { white-space: pre-wrap; font: inherit; max-height: 20rem; overflow: auto; }
.parent-section { border-top: 1px solid var(--hairline); padding: 1.5rem 0; }
.parent-section h2 { margin-bottom: 1rem; }
.parent-section a { display: inline-block; margin: .5rem 1rem .5rem 0; }
#parent-owner-link { display: inline-flex; align-items: center; min-height: 44px; padding: .7rem 1rem; border-radius: 8px; background: #287464; color: #fff; font-weight: 700; text-decoration: none; }
.parent-profile-row { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .6rem 0; }
.parent-profile-row span { flex: 1; min-width: 120px; }
.parent-profile-row button { background: #fff; border: 1px solid var(--hairline); padding: .5rem .8rem; color: var(--ink); }
.profile-form { background: transparent; border: 0; padding: 1rem 0; }
.profile-form-heading h3 { font-size: 23px; }
.account-menu { align-items: center; flex-wrap: wrap; overflow-wrap: anywhere; }
.site-footer { background: transparent; }
.site-footer a { color: #50675f; }
#account-signout-btn { border-radius: 6px; background: #fff; border-color: var(--hairline); }
#profile-form .audience-btn.is-active { background: #e0eee8; border-color: #55947d; color: #184d3e; }
.legal-wrap h1 { font-size: 32px; color: var(--ink); background: none; -webkit-background-clip: initial; background-clip: initial; }
body:has(.legal-wrap)::before { display: none; }
.legal-top, .legal-note { background: transparent; border: 0; border-radius: 0; box-shadow: none; }
.legal-form input, .legal-form select, .legal-form textarea { background: #fff; color: var(--ink); border-color: #a0b8ac; border-radius: 6px; }
.legal-submit { background: #287464; color: #fff; border: 0; border-radius: 8px; box-shadow: none; }
.narration-dock { background: #20332b; border-color: #719181; border-radius: 8px; color: #e3ece3; }
.narration-dock__status, .narration-dock[data-state="playing"] .narration-dock__status { color: #c0d4c8; }
.narration-dock__toggle { background: #c9dc98; border-color: #c9dc98; color: #1a2e21; border-radius: 6px; }
.narration-dock__return { background: #30483d; border-color: #719181; color: #e3ece3; border-radius: 6px; }
@media screen {
  body[data-hearthside-view="story"]:has(.composer.is-reading) {
    --ground: #13251f; --ground-raised: #20362c; --ground-raised-2: #294337;
    --ink: #e3ece3; --ink-dim: #b5cabd; --hairline: #516d5e;
    --accent: #b8d78e; --accent-soft: #cee5a9; --accent-dim: #8bae68;
    background: var(--ground);
  }
  body[data-hearthside-view="story"]:has(.composer.is-reading) .topbar { background: #182d25; }
  body[data-hearthside-view="story"]:has(.composer.is-reading) .story-card { background: transparent; }
  body[data-hearthside-view="story"]:has(.composer.is-reading) .story-card h2 { color: #f0d58c; }
  body[data-hearthside-view="story"]:has(.composer.is-reading) a,
  body[data-hearthside-view="story"]:has(.composer.is-reading) #profiles-retry-btn { color: #b8d78e; }
  body[data-hearthside-view="story"]:has(.composer.is-reading) .profile-select-btn,
  body[data-hearthside-view="story"]:has(.composer.is-reading) .dashboard-profiles .profile-add-toggle,
  body[data-hearthside-view="story"]:has(.composer.is-reading) .workspace-heading .back-home-btn,
  body[data-hearthside-view="story"]:has(.composer.is-reading) .story-actions button { background: #294337; color: var(--ink); }
  body[data-hearthside-view="story"]:has(.composer.is-reading) .family-nav button[aria-current],
  body[data-hearthside-view="story"]:has(.composer.is-reading) .profile-select-btn[aria-pressed=true] { background: #406149; color: #f2f6ed; }
  body[data-hearthside-view="story"]:has(.composer.is-reading) .section-kicker,
  body[data-hearthside-view="story"]:has(.composer.is-reading) .dashboard-eyebrow { color: var(--ink-dim); }
  body[data-hearthside-view="story"]:has(.composer.is-reading) .fact-card { background: #243c44; border-color: #8dabb5; }
  body[data-hearthside-view="story"]:has(.composer.is-reading) .narrate-error { color: #ffb69c; }
}
@media (max-width: 1000px) {
  .welcome-panel { grid-template-columns: minmax(0, 1fr); }
  .welcome-art { min-height: 0; aspect-ratio: 16 / 9; }
}
@media (max-width: 600px) {
  .account-bar { padding: 0 1rem; }
  .welcome-panel { padding: 0; min-height: 0; }
  .welcome-art { aspect-ratio: 1; }
  .welcome-copy { padding: 1.2rem; }
  .welcome-panel h1 { font-size: 30px; }
  .dashboard-actions { grid-template-columns: 1fr; }
  .dashboard-action { min-height: 88px; }
  .discovery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .family-destination h1, .workspace-heading h1 { font-size: 27px; }
  .family-nav button { padding: .5rem .6rem; font-size: 14px; }
  .row { flex-wrap: wrap; }
  .field { min-width: 140px; max-width: 100%; }
  .ask-ember-form input { flex-basis: 100%; }
  .ember-welcome { min-height: 220px; background-position: 52% 60%; }
  .ember-welcome h2 { font-size: 22px; max-width: 220px; }
}
@media print { .family-nav, #profile-dock, .family-destination { display: none !important; } }

/* Copy and controls sit beside/below the illustration, never over Ember. */
.welcome-panel .welcome-links { display: flex; flex-direction: column; align-items: flex-start; max-width: 30rem; gap: .75rem; margin-top: 1.25rem; text-shadow: none; }
.welcome-panel .welcome-links a { display: inline-flex; align-items: center; min-height: 44px; padding: .65rem .9rem; border: 2px solid #fff; border-radius: 8px; background: #163e35; color: #fff; font-weight: 600; line-height: 1.4; text-decoration: underline; text-underline-offset: .2em; text-shadow: none; }
.welcome-panel .welcome-links a:visited { color: #fff; }
.welcome-panel .welcome-links a:hover { background: #0c2c25; color: #fff; }
.welcome-panel .welcome-links a:focus-visible { outline-color: #fff; box-shadow: 0 0 0 6px #163e35; }
#spark-refresh-status { color: var(--ink-dim); font-size: .875rem; margin: .3rem 0; }
#spark-refresh-status:empty { display: none; }
#refresh-sparks-btn, #surprise-btn { min-height: 44px; }

/* Public doorway: one continuous fireside scene instead of white app panels. */
body.is-signed-out {
  --ground: #101915;
  --ground-raised: #18251f;
  --ground-raised-2: #20332a;
  --ink: #f5efe4;
  --ink-dim: #c0b7a8;
  --hairline: #40554a;
  --accent: #f08a45;
  --accent-soft: #ffc17e;
  --accent-dim: #b85f31;
  min-height: 100vh;
  background:
    radial-gradient(circle at 12% 14%, rgba(240,138,69,.17), transparent 30rem),
    radial-gradient(circle at 88% 22%, rgba(87,135,125,.18), transparent 34rem),
    linear-gradient(145deg, #101915 0%, #14251f 48%, #101713 100%);
  color: var(--ink);
}
body.is-signed-out::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.055) .7px, transparent .7px);
  background-size: 22px 22px;
  mask-image: linear-gradient(to bottom, #000, transparent 78%);
}
body.is-signed-out .app { min-height: 100vh; }
body.is-signed-out .topbar {
  margin-top: 1rem;
  background: rgba(17,29,24,.78);
  border: 1px solid rgba(255,193,126,.16);
  border-radius: 20px;
  box-shadow: 0 18px 55px rgba(0,0,0,.22);
  backdrop-filter: blur(18px);
}
body.is-signed-out .brand-lockup,
body.is-signed-out .brand-lockup .wordmark { color: var(--ink); }
body.is-signed-out .brand-flame {
  border-color: rgba(255,193,126,.42);
  background: radial-gradient(circle at 40% 35%, rgba(255,193,126,.22), rgba(240,138,69,.1) 62%, transparent 63%);
}
body.is-signed-out .beta-badge {
  color: #d6ded7;
  border-color: rgba(137,186,171,.32);
  background: rgba(42,76,65,.34);
}
body.is-signed-out .beta-dot { background: #67d1ba; box-shadow: 0 0 12px rgba(103,209,186,.65); }
body.is-signed-out .account-bar { padding-top: 1.4rem; }
body.is-signed-out .signed-out-shell {
  display: block;
  position: relative;
  padding: clamp(.65rem,1.4vw,1rem);
  border: 1px solid rgba(255,193,126,.18);
  border-radius: 30px;
  background:
    radial-gradient(circle at 30% 16%, rgba(240,138,69,.12), transparent 28rem),
    linear-gradient(145deg, rgba(25,44,36,.96), rgba(13,25,21,.98));
  box-shadow: 0 34px 90px rgba(0,0,0,.34);
  overflow: hidden;
}
body.is-signed-out .signed-out-shell::after {
  display: block;
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: linear-gradient(115deg, rgba(255,255,255,.025), transparent 38%, rgba(87,135,125,.05));
}
body.is-signed-out .welcome-panel,
body.is-signed-out .signin-card { position: relative; z-index: 1; }
body.is-signed-out .welcome-panel {
  grid-template-columns: minmax(0,1.18fr) minmax(22rem,.82fr);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: #183b32;
  box-shadow: 0 22px 65px rgba(0,0,0,.26);
}
body.is-signed-out .welcome-copy {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(1.6rem,3.5vw,3rem);
  background:
    radial-gradient(circle at 95% 8%, rgba(255,193,126,.1), transparent 18rem),
    linear-gradient(145deg, #183f35, #14342d);
}
body.is-signed-out .welcome-panel h1 { font-size: clamp(2.25rem,3.4vw,3.65rem); color: #fff7e9; }
body.is-signed-out .welcome-panel p { color: #ecf2ed; text-shadow: none; }
body.is-signed-out .welcome-eyebrow { color: #ffc17e; }
body.is-signed-out .welcome-panel .welcome-links { flex-direction: row; flex-wrap: wrap; max-width: none; }
body.is-signed-out .welcome-panel .welcome-links a {
  border: 1px solid rgba(255,193,126,.42);
  border-radius: 999px;
  background: rgba(7,25,20,.38);
  color: #fff6e8;
  text-decoration: none;
}
body.is-signed-out .welcome-panel .welcome-links a:first-child {
  background-color: #f4a052;
  background-image: linear-gradient(105deg,#f08a45,#ffc15e);
  color: #23140b;
  border-color: #ffc17e;
}
body.is-signed-out .welcome-panel .welcome-links a:hover { background: rgba(7,25,20,.7); color: #fff; }
body.is-signed-out .story-world { background: rgba(248,244,233,.93); color: #253d35; }
body.is-signed-out .signin-card {
  max-width: 46rem;
  margin: clamp(1.25rem,3vw,2rem) auto clamp(.75rem,2vw,1.3rem);
  padding: clamp(1.5rem,4vw,2.5rem);
  border: 1px solid rgba(255,193,126,.25);
  border-radius: 22px;
  background:
    radial-gradient(circle at 88% 8%, rgba(240,138,69,.15), transparent 19rem),
    linear-gradient(145deg, rgba(31,49,41,.98), rgba(21,34,29,.98));
  color: var(--ink);
  box-shadow: 0 22px 60px rgba(0,0,0,.26);
}
body.is-signed-out .signin-card h2 { color: #fff7e9; }
body.is-signed-out .signin-card p,
body.is-signed-out .signin-copy,
body.is-signed-out .signin-note { color: #c8d2ca; }
body.is-signed-out .account-email-label { color: #eee7db; }
body.is-signed-out .signin-card .account-row input,
body.is-signed-out .account-code-input {
  background: rgba(8,20,16,.62);
  color: #fff7e9;
  border-color: #536e60;
}
body.is-signed-out #account-magic-link-btn,
body.is-signed-out #account-code-verify-btn { background: linear-gradient(105deg,#f08a45,#ffc15e); color: #23140b; }
body.is-signed-out .signin-note a { color: #ffc17e; }
body.is-signed-out .site-footer { border-top-color: rgba(255,193,126,.14); color: #aebbb2; }
body.is-signed-out .site-footer a { color: #c7d4cb; }

@media (max-width:1000px) {
  body.is-signed-out .welcome-panel { grid-template-columns: 1fr; }
  body.is-signed-out .welcome-panel .welcome-links { flex-direction: row; }
}
@media (max-width:600px) {
  body.is-signed-out .topbar { margin: .65rem .75rem 0; border-radius: 16px; }
  body.is-signed-out .account-bar { padding: .75rem; }
  body.is-signed-out .signed-out-shell { border-radius: 22px; padding: .45rem; }
  body.is-signed-out .welcome-panel { border-radius: 17px; }
  body.is-signed-out .welcome-panel .welcome-links { flex-direction: column; }
  body.is-signed-out .signin-card { margin: .8rem .25rem .25rem; border-radius: 17px; }
}

/* The landing-page palette is Hearthside's palette everywhere. */
body:not(.is-signed-out){min-height:100vh;background:radial-gradient(circle at 12% 14%,rgba(240,138,69,.12),transparent 30rem),radial-gradient(circle at 88% 22%,rgba(87,135,125,.16),transparent 34rem),linear-gradient(145deg,#101915 0%,#14251f 48%,#101713 100%);color:var(--ink)}
body:not(.is-signed-out) .topbar{background:rgba(17,29,24,.86);border-bottom:1px solid rgba(255,193,126,.14)}
body:not(.is-signed-out) .brand-lockup,body:not(.is-signed-out) .brand-lockup .wordmark,body:not(.is-signed-out) .beta-badge,body:not(.is-signed-out) .account-menu,body:not(.is-signed-out) #account-signout-btn{color:var(--ink)}
body:not(.is-signed-out) a{color:#ffc17e}
body:not(.is-signed-out) input,body:not(.is-signed-out) select,body:not(.is-signed-out) textarea,body:not(.is-signed-out) .signin-card .account-row input,body:not(.is-signed-out) .account-code-input{background:#0d1a16;color:var(--ink);border-color:#536e60}
body:not(.is-signed-out) .dashboard-heading h1,body:not(.is-signed-out) .workspace-heading h1,body:not(.is-signed-out) .legal-wrap h1{color:var(--ink)}
body:not(.is-signed-out) .dashboard-intro,body:not(.is-signed-out) .dashboard-action small,body:not(.is-signed-out) .spark-card .spark-desc,body:not(.is-signed-out) .lib-snippet,body:not(.is-signed-out) .series-sub,body:not(.is-signed-out) .signin-copy,body:not(.is-signed-out) .signin-note,body:not(.is-signed-out) .account-email-label{color:var(--ink-dim)}
body:not(.is-signed-out) .dashboard-action,body:not(.is-signed-out) .dashboard-profiles .profile-add-toggle,body:not(.is-signed-out) .profile-select-btn,body:not(.is-signed-out) .workspace-heading .back-home-btn,body:not(.is-signed-out) #story-studio .pillar-card,body:not(.is-signed-out) .spark-card,body:not(.is-signed-out) .audience-btn,body:not(.is-signed-out) .seg-btn,body:not(.is-signed-out) .series-card,body:not(.is-signed-out) .library-card,body:not(.is-signed-out) .story-card,body:not(.is-signed-out) .story-actions button,body:not(.is-signed-out) .favorite-toggle,body:not(.is-signed-out) .shelf-remove,body:not(.is-signed-out) .recovery-item button,body:not(.is-signed-out) .parent-profile-row button,body:not(.is-signed-out) #account-signout-btn{background:var(--ground-raised);color:var(--ink);border-color:var(--hairline)}
body:not(.is-signed-out) .action-tell{background:#34251e;border-color:#754936}body:not(.is-signed-out) .action-continue{background:#183229;border-color:#3e715e}body:not(.is-signed-out) .action-explore{background:#172c31;border-color:#3f6670}body:not(.is-signed-out) .action-library{background:#302b1c;border-color:#71623a}body:not(.is-signed-out) .action-learn{background:#292331;border-color:#625274}
body:not(.is-signed-out) .dashboard-action strong,body:not(.is-signed-out) .spark-card .spark-title,body:not(.is-signed-out) .lib-title{color:var(--ink)}
body:not(.is-signed-out) .family-nav{border-color:var(--hairline)}body:not(.is-signed-out) .family-nav button{color:var(--ink)}
body:not(.is-signed-out) .family-nav button[aria-current],body:not(.is-signed-out) .profile-select-btn[aria-pressed=true],body:not(.is-signed-out) #story-studio .pillar-card.is-active,body:not(.is-signed-out) .seg-btn.is-active,body:not(.is-signed-out) .audience-btn.is-active{background:#294337;color:#f5efe4;border-color:#67a78e}
body:not(.is-signed-out) .quick-story-btn,body:not(.is-signed-out) .tell-btn,body:not(.is-signed-out) .ask-ember-form button,body:not(.is-signed-out) .parent-section>button,body:not(.is-signed-out) #profile-save-btn,body:not(.is-signed-out) #parent-owner-link{background:linear-gradient(105deg,#f08a45,#ffc15e);color:#23140b;border-color:#ffc17e}
body:not(.is-signed-out) .fact-card{background:#193039;border-color:#4b7a86}
body:not(.is-signed-out) .legal-top,body:not(.is-signed-out) .legal-note,body:not(.is-signed-out) .feedback-optional{background:rgba(24,37,31,.82);border-color:var(--hairline)}
body:not(.is-signed-out) .legal-form input,body:not(.is-signed-out) .legal-form select,body:not(.is-signed-out) .legal-form textarea{background:#0d1a16;color:var(--ink);border-color:#536e60}
body:not(.is-signed-out) .legal-submit{background:linear-gradient(105deg,#f08a45,#ffc15e);color:#23140b}
body:not(.is-signed-out) .site-footer{border-top-color:rgba(255,193,126,.14);color:#aebbb2}body:not(.is-signed-out) .site-footer a{color:#c7d4cb}
