:root  {
  --paper: #f8f7f1;
  --sheet: #fffefa;
  --text: #262d29;
  --muted: #58615a;
  --line: #d9dbd0;
  --accent: #b3452b;
  --soft: #e9ebdf;
  --serif: "Instrument Serif", "Baskervville", Georgia, "Times New Roman", serif;
  --sans: "DM Sans", "Inter", "Segoe UI", system-ui, sans-serif;
  font-family: var(--sans);
  color: var(--text);
  background: var(--paper);
  font-synthesis: none;
}

* {
  box-sizing:border-box
}

body {
  margin:0
}

button,input,select,textarea {
  font:inherit;
  color:inherit
}

button {
  cursor:pointer
}

a {
  color:inherit
}

[hidden] {
  display:none!important
}

:focus-visible {
  outline:3px solid #3568a7;
  outline-offset:3px
}

.shell,.head-inner {
  width:min(1216px,calc(100% - 96px));
  margin-inline:auto
}

.skip {
  position:absolute;
  left:16px;
  top:-100px;
  background:var(--text);
  color:white;
  padding:10px;
  z-index:5
}

.skip:focus {
  top:12px
}

.site-head {
  border-bottom:1px solid var(--line)
}

.head-inner {
  min-height:76px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:26px
}

.wordmark {
  display:inline-flex;
  align-items:center;
  line-height:1;
  text-decoration:none;
  letter-spacing:-.072em;
  font-family:var(--serif);
  font-weight:bold;
  font-size:42px
}

.word-dot {
  color:var(--accent)
}

.brandmark {
  position:relative;
  width:28px;
  height:26px;
  margin-right:9px;
  display:inline-block
}

.brandmark:before,.brandmark:after {
  position:absolute;
  content:"";
  width:47%;
  height:84%;
  top:2px;
  background:var(--accent)
}

.brandmark:before {
  left:0;
  border-radius:0 60% 0 0;
  transform:skewY(12deg)
}

.brandmark:after {
  right:0;
  border-radius:60% 0 0 0;
  transform:skewY(-12deg)
}

.site-nav,.head-actions,.hero-actions,.site-foot>div,.actions,.toolbar,.row {
  display:flex;
  align-items:center;
  gap:14px
}

.site-nav {
  gap:32px
}

.site-nav a,.site-foot a:not(.wordmark),.plain,.linkbutton,.text-action {
  font-size:14px;
  text-decoration:none;
  font-weight:600
}

.site-nav a,.site-foot a:not(.wordmark),.plain,.linkbutton {
  color:var(--muted)
}

.site-nav a:hover,.site-foot a:hover,.plain:hover,.linkbutton:hover,.text-action:hover {
  color:var(--accent)
}

.plain,.text-action,.linkbutton {
  border:0;
  background:none;
  padding:4px 0
}

.button {
  border:1px solid var(--text);
  background:var(--text);
  color:white;
  padding:13px 21px;
  min-height:46px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:15px;
  border-radius:5px;
  text-decoration:none;
  font-size:14px;
  font-weight:650;
  letter-spacing:.005em;
  transition:background .15s,color .15s,transform .15s
}

.button:hover {
  background:#424b43
}

.button:active {
  transform:translateY(1px)
}

.button.small {
  padding:8px 15px;
  min-height:39px;
  font-size:13px
}

.button.secondary {
  background:transparent;
  border-color:#b9bfb3;
  color:var(--text)
}

.button.secondary:hover {
  background:var(--soft)
}

.button.danger {
  background:#923b30;
  border-color:#923b30;
  color:#fff
}

.button:disabled,.text-action:disabled {
  opacity:.48;
  cursor:not-allowed;
  transform:none
}

.text-action {
  display:inline-flex;
  gap:10px;
  align-items:center
}

.hero-actions .text-action {
  border-bottom:1px solid #a5aa9b;
  border-radius:0;
  padding:3px 0
}

.text-action span,.button span {
  font-size:17px
}

.hero {
  display:grid;
  grid-template-columns:1.03fr .97fr;
  gap:6.5%;
  padding-block:56px 54px;
  align-items:center
}

.hero-copy {
  padding-block:12px
}

.eyebrow,.shelf-label,.cover-tag,.file-line,.shelf-caption,.front-foot,.cover-foot {
  font-size:10px;
  font-weight:720;
  letter-spacing:.16em;
  text-transform:uppercase
}

.eyebrow {
  margin:0 0 18px;
  display:flex;
  align-items:center;
  gap:12px;
  color:var(--accent)
}

.little-rule {
  width:30px;
  height:2px;
  background:currentColor
}

.hero h1,h2,h3,h4,p {
  margin-top:0
}

.hero h1 {
  font:normal clamp(58px,6.8vw,100px)/.98 var(--serif);
  letter-spacing:-.07em;
  margin:0 0 24px
}

.hero h1 em {
  font-weight:normal;
  color:var(--accent)
}

.hero-description {
  font-size:clamp(16px,1.35vw,20px);
  line-height:1.55;
  color:var(--muted);
  max-width:410px;
  margin-bottom:28px
}

.hero-actions {
  gap:26px
}

.hero-actions .button {
  min-height:49px
}

.file-line {
  letter-spacing:.035em;
  text-transform:none;
  display:flex;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:12px;
  font-weight:500;
  margin:20px 0 0
}

.filesymbol {
  width:11px;
  height:13px;
  border:1.4px solid currentColor;
  border-radius:1px;
  position:relative
}

.filesymbol:after {
  content:"";
  position:absolute;
  left:2px;
  top:3px;
  width:5px;
  height:1px;
  background:currentColor;
  box-shadow:0 3px currentColor
}

.book-display {
  position:relative;
  isolation:isolate;
  overflow:hidden;
  aspect-ratio:1.27;
  background:radial-gradient(ellipse at 45% 43%,#f1ecdc 0%,#dedac9 74%,#d2cebd 100%);
  border:1px solid #d4d1c2;
  border-radius:8px
}

.book-display:before {
  content:"";
  position:absolute;
  inset:0;
  opacity:.42;
  pointer-events:none;
  background-image:repeating-linear-gradient(112deg,#ffffff1c 0,#ffffff1c 1px,transparent 1px,transparent 4px)
}

.shelf-label {
  position:absolute;
  top:5.2%;
  left:5.4%;
  font-size:9px;
  color:#53584c;
  letter-spacing:.17em
}

.book {
  position:absolute;
  isolation:isolate;
  display:block;
  text-align:left;
  width:37.5%;
  height:65.5%;
  border:0;
  border-radius:2px 4px 3px 2px;
  box-shadow:2px 2px 0 #625a4829,8px 12px 14px -5px #3e32185e,23px 23px 33px -14px #47371f70;
  container-type:inline-size
}

.book:after {
  content:"";
  position:absolute;
  inset:0;
  z-index:2;
  border-radius:inherit;
  pointer-events:none;
  background:linear-gradient(90deg,#0003,transparent 2%,#0002 3.6%,#fff4 4%,transparent 5.5%,transparent 98.6%,#0002)
}

.back-blue {
  background:#253e51;
  color:#f3e6bf;
  left:48%;
  top:17%;
  transform:rotate(12deg);
  overflow:hidden
}

.cover-tag,.cover-foot {
  position:absolute;
  left:11%;
  right:6%;
  top:8%;
  font-size:clamp(6px,3.4cqw,10px);
  letter-spacing:.13em
}

.blue-title {
  position:absolute;
  left:11%;
  top:20%;
  font:normal 20cqw/.95 var(--serif);
  letter-spacing:-.075em
}

.blue-title i {
  font-size:.7em
}

.cover-foot {
  top:auto;
  bottom:6%;
  font-size:3.4cqw
}

.orbits {
  position:absolute;
  width:82%;
  height:38%;
  bottom:13%;
  left:28%;
  transform:rotate(-22deg)
}

.orbits i {
  position:absolute;
  width:100%;
  height:75%;
  border:1px solid #d8a779;
  border-radius:50%
}

.orbits i:nth-child(2) {
  transform:rotate(38deg)
}

.orbits i:nth-child(3) {
  transform:rotate(78deg)
}

.front-book {
  color:#fff0d7;
  background:#c45436;
  left:20%;
  top:17%;
  transform:rotate(-9deg);
  overflow:hidden;
  transition:transform .2s
}

.front-book:hover {
  transform:translateY(-4px) rotate(-7deg)
}

.front-book strong {
  position:absolute;
  top:17.5%;
  left:11%;
  font:normal 26cqw/.84 var(--serif);
  letter-spacing:-.075em
}

.front-book strong em {
  font-weight:normal
}

.sun-art {
  position:absolute;
  right:11%;
  top:48%;
  width:28%;
  aspect-ratio:1;
  border-radius:50%;
  background:#efbc66
}

.wave-art {
  position:absolute;
  left:-9%;
  right:-28%;
  bottom:0;
  height:45%;
  overflow:hidden;
  background:repeating-radial-gradient(ellipse at 20% 106%,#333e37 0 3%,#e9a86c 3.6% 4.6%,#485746 5% 7.2%);
  clip-path:polygon(0 38%,12% 29%,26% 40%,39% 33%,53% 13%,65% 17%,78% 2%,91% 8%,100% 0,100% 100%,0 100%)
}

.front-foot {
  position:absolute;
  z-index:2;
  left:11%;
  bottom:4.8%;
  font-size:3.3cqw;
  line-height:1.15;
  letter-spacing:.12em;
  color:#f6e8c6;
  background:#354238;
  padding:3px 4px
}

.shelf-caption {
  position:absolute;
  bottom:5%;
  left:5.4%;
  right:5.4%;
  display:flex;
  align-items:center;
  gap:7px;
  color:#52584b;
  font-size:9px;
  letter-spacing:.08em
}

.caption-dot {
  width:5px;
  height:5px;
  background:#ad5338;
  border-radius:50%
}

.shelf-caption b {
  margin-left:auto;
  font-weight:600
}

.formats,.pricing,.site-foot {
  border-top:1px solid var(--line)
}

.formats {
  padding-block:32px 34px
}

.section-heading,.pricing,.site-foot,.headline,.dialog-head {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px
}

.section-heading {
  margin-bottom:20px
}

.section-heading .eyebrow,.pricing .eyebrow,.headline .eyebrow {
  margin-bottom:8px
}

.section-heading h2,.pricing h2,.headline h1,.dialog-inner h2 {
  font:normal clamp(30px,3.5vw,48px)/1.04 var(--serif);
  letter-spacing:-.055em;
  margin:0
}

.format-grid {
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:12px
}

.format-card {
  background:var(--sheet);
  border:1px solid var(--line);
  border-radius:6px;
  text-align:left;
  display:flex;
  align-items:center;
  gap:14px;
  padding:16px;
  font-weight:650;
  transition:border-color .15s
}

.format-card:hover {
  border-color:#8a9586
}

.format-card b {
  font-size:16px;
  font-weight:400;
  margin-left:auto;
  align-self:flex-start
}

.format-card small {
  display:block;
  color:var(--muted);
  font-weight:400;
  font-size:12px;
  margin-top:3px
}

.mini-cover {
  width:39px;
  height:52px;
  display:block;
  flex-shrink:0;
  position:relative;
  isolation:isolate;
  overflow:hidden;
  border-radius:1px 2px 2px 1px;
  box-shadow:inset 2px 0 #0003,2px 2px 0 #0001
}

.mini-cover i {
  position:absolute;
  display:block
}

.mini-orange {
  background:#c56249
}

.mini-blue {
  background:#3a5364
}

.mini-green {
  background:#839377
}

.grid-pattern {
  inset:9px 6px;
  background:repeating-linear-gradient(0deg,transparent 0 4px,#ffdb9f 5px 6px),repeating-linear-gradient(90deg,transparent 0 4px,#ffdb9f 5px 6px)
}

.steps-pattern {
  inset:8px 5px;
  border-radius:100% 0 0 0;
  background:repeating-radial-gradient(circle at 100% 100%,#cdbfa0 0 1px,transparent 2px 5px)
}

.flower-pattern {
  inset:7px 6px;
  background:repeating-radial-gradient(ellipse,#e4e8c9 0 1px,transparent 2px 4px);
  border-radius:50%
}

.more-formats {
  display:flex;
  gap:9px 15px;
  align-items:center;
  flex-wrap:wrap;
  margin-top:17px;
  color:var(--muted);
  font-size:12px
}

.more-formats span {
  font-weight:600
}

.more-formats button {
  background:none;
  border:0;
  padding:2px 0;
  text-decoration:underline;
  text-decoration-color:#adb2a3;
  text-underline-offset:3px
}

.pricing {
  padding-block:31px 40px
}

.pricing h2 {
  font-size:34px
}

.pricing p:not(.eyebrow) {
  color:var(--muted);
  max-width:590px;
  margin:10px 0 0;
  font-size:14px;
  line-height:1.5
}

.site-foot {
  padding-block:24px 35px
}

.site-foot .wordmark {
  font-size:28px
}

.site-foot .brandmark {
  width:19px;
  height:18px
}

.site-foot>div {
  gap:18px
}

.workspace {
  padding-block:34px 50px;
  min-height:64vh
}

.headline {
  margin-bottom:24px
}

.headline h1 {
  overflow-wrap:anywhere
}

.eyebrow.neutral {
  color:var(--muted)
}

.muted,.help,.empty p,.form-sub {
  color:var(--muted);
  line-height:1.5
}

.help {
  font-size:13px
}

.head-actions .account-label {
  font-size:13px;
  max-width:170px;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap
}

.form-sub {
  margin:0 0 17px;
  font-size:14px
}

.stack {
  display:grid;
  gap:16px
}

.row {
  gap:10px;
  flex-wrap:wrap
}

.wide {
  width:100%
}

.panel,.empty,.stat {
  background:var(--sheet);
  border:1px solid var(--line);
  border-radius:7px
}

.panel {
  padding:22px
}

.panel h2,.panel h3,.empty h2,.preview h2 {
  font:normal 29px/1.1 var(--serif);
  letter-spacing:-.045em;
  margin-bottom:13px
}

.panel h3 {
  font-size:24px
}

.empty {
  padding:36px 22px;
  text-align:center
}

.empty p {
  margin:0 0 18px
}

.empty h2 {
  margin-bottom:8px
}

.stats {
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:10px;
  margin:0 0 24px
}

.stat {
  padding:13px 16px
}

.stat strong {
  font:normal 27px var(--serif);
  display:block
}

.stat span {
  color:var(--muted);
  font-size:12px
}

.library-grid {
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(210px,1fr));
  gap:15px
}

.book-tile {
  text-align:left;
  background:var(--sheet);
  border:1px solid var(--line);
  padding:0;
  overflow:hidden;
  border-radius:6px
}

.book-tile:hover {
  border-color:#899781
}

.tile-art {
  height:130px;
  background:#e8e6d8;
  display:grid;
  place-items:center;
  overflow:hidden
}

.tile-art .mini-cover {
  transform:scale(1.7) rotate(-6deg)
}

.tile-art img {
  height:110px;
  max-width:86px;
  object-fit:contain;
  box-shadow:3px 4px 7px #0003
}

.tile-text {
  display:grid;
  gap:7px;
  padding:14px
}

.tile-text strong {
  font:normal 22px/1.07 var(--serif);
  overflow-wrap:anywhere
}

.tile-text small {
  font-size:12px;
  color:var(--muted)
}

.field {
  display:grid;
  gap:6px;
  font-size:13px;
  font-weight:650
}

.field input,.field select,.field textarea,.chapter-input,.chapter-area {
  border:1px solid #b7bdb2;
  border-radius:4px;
  background:var(--sheet);
  padding:9px 11px;
  width:100%;
  font-size:15px;
  font-weight:400;
  line-height:1.45
}

.field textarea,.chapter-area {
  resize:vertical;
  min-height:78px
}

.field input::placeholder,.field textarea::placeholder {
  color:#747b72
}

.field-grid {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:13px
}

.toolbar {
  flex-wrap:wrap;
  gap:8px
}

.check {
  display:flex;
  gap:8px;
  align-items:flex-start;
  font-size:13px;
  color:var(--muted)
}

.error {
  color:#8a3025;
  font-size:14px;
  line-height:1.45
}

.notice {
  background:#edefe3;
  border-left:3px solid #909b75;
  padding:10px 13px;
  color:#465344;
  font-size:13px;
  line-height:1.5
}

.notice.error {
  background:#f8e8e2;
  border-color:#bb5a3f;
  color:#843c2a
}

.notice strong {
  color:inherit
}

.icon-action {
  border:1px solid var(--line);
  background:none;
  border-radius:4px;
  min-width:36px;
  min-height:34px
}

.icon-action:hover {
  background:var(--soft)
}

.lesson-row,.exercise-row {
  margin-top:10px;
  padding:12px;
  background:#f2f2e9;
  border:1px solid var(--line);
  border-radius:5px
}

.lesson-row .row,.exercise-row .row {
  justify-content:space-between;
  margin-bottom:7px
}

.lesson-row .field+.field,.exercise-row .field+.field {
  margin-top:7px
}

.reader-layout {
  display:grid;
  grid-template-columns:minmax(195px,.72fr) minmax(0,2fr);
  gap:22px;
  align-items:start
}

.sidebar {
  padding:16px
}

.sidebar h3,.subhead {
  font-weight:650;
  font-size:14px;
  margin:0 0 10px
}

.chapter-link {
  width:100%;
  border:0;
  border-radius:4px;
  background:transparent;
  display:flex;
  text-align:left;
  gap:8px;
  align-items:flex-start;
  padding:8px;
  font-size:13px
}

.chapter-link:hover {
  background:#eeefe5
}

.chapter-link.current {
  background:#e8eadc;
  font-weight:650
}

.chapter-link small {
  margin-left:auto;
  color:var(--muted)
}

.chapter-link span {
  overflow-wrap:anywhere
}

.chapter-link .num {
  color:var(--accent);
  font-size:11px;
  min-width:15px;
  font-variant-numeric:tabular-nums
}

.separator {
  height:1px;
  border:0;
  background:var(--line);
  margin:15px 0
}

.tabs {
  border-bottom:1px solid var(--line);
  display:flex;
  flex-wrap:wrap;
  gap:22px;
  margin:0 0 18px
}

.tabs button {
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  padding:8px 0;
  background:none;
  color:var(--muted);
  font-size:14px
}

.tabs button[aria-current=page] {
  border-color:var(--accent);
  color:var(--accent);
  font-weight:700
}

.editor-top {
  align-items:flex-start
}

.editor-top .eyebrow {
  margin-bottom:4px
}

.back {
  display:inline-flex;
  margin-bottom:17px;
  font-size:13px;
  color:var(--muted);
  text-decoration:none
}

.back:hover {
  text-decoration:underline
}

.edit-panel {
  min-width:0
}

.edit-panel .actions {
  flex-wrap:wrap;
  gap:7px
}

.chapter-area {
  min-height:315px;
  line-height:1.65
}

.summary-row {
  display:flex;
  justify-content:space-between;
  gap:14px;
  align-items:flex-start
}

.summary-row h2 {
  margin-bottom:5px
}

.content-img {
  display:block;
  max-height:300px;
  max-width:100%;
  margin-bottom:13px;
  border-radius:3px
}

.outline-list {
  display:grid;
  gap:12px
}

.outline-item {
  padding:12px;
  border:1px solid var(--line);
  border-radius:5px
}

.outline-item .row {
  justify-content:space-between;
  margin:0 0 6px
}

.outline-item textarea {
  min-height:58px
}

.progress {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:8px;
  color:var(--muted);
  font-size:13px
}

.progress progress {
  width:min(175px,100%);
  accent-color:var(--accent)
}

.preview {
  padding:clamp(14px,2.5vw,35px);
  background:var(--sheet);
  border:1px solid var(--line);
  border-radius:4px
}

.preview .manuscript p,.preview li {
  font:normal 16px/1.62 var(--serif)
}

.preview .manuscript {
  overflow-wrap:anywhere
}

.preview .manuscript h3,.preview .manuscript h4 {
  font:normal 23px/1.2 var(--serif);
  margin:15px 0 6px
}

.preview .manuscript p {
  white-space:pre-wrap;
  margin:10px 0
}

.preview .page-nav,.page-nav {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:9px;
  border-top:1px solid var(--line);
  padding-top:12px;
  margin-top:20px;
  font-size:13px;
  color:var(--muted)
}

.preview-cover {
  text-align:center;
  min-height:180px;
  display:grid;
  place-items:center;
  align-content:center;
  gap:6px
}

.preview-cover img {
  max-height:280px;
  max-width:100%
}

.preview-cover h2 {
  font-size:38px
}

dialog {
  border:1px solid #b4bbad;
  border-radius:8px;
  background:var(--sheet);
  color:var(--text);
  padding:0;
  width:min(540px,calc(100vw - 30px));
  max-height:88vh;
  overflow-y:auto;
  box-shadow:0 18px 65px #1b211c3b
}

dialog::backdrop {
  background:#242e2873
}

.dialog-inner {
  padding:24px
}

.dialog-head {
  margin-bottom:18px
}

.dialog-inner h2 {
  font-size:31px
}

.dialog-inner .close {
  flex:0 0 33px;
  height:33px;
  border:1px solid var(--line);
  border-radius:50%;
  background:transparent;
  font-size:18px
}

.dialog-inner .form-footer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  gap:10px
}

.dialog-inner .text-action {
  font-size:13px
}

.dialog-inner .notice:empty {
  display:none
}

.plan-grid {
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:8px;
  margin-top:13px
}

.plan {
  padding:13px;
  border:1px solid var(--line);
  border-radius:4px;
  display:grid;
  gap:8px
}

.plan strong {
  font-size:18px
}

.plan small {
  color:var(--muted)
}

.status-line {
  font-size:13px;
  color:var(--muted);
  line-height:1.5;
  margin:7px 0
}

.actions {
  flex-wrap:wrap
}

.sample-kicker {
  color:var(--accent);
  font-size:12px;
  font-weight:700
}

.sample-reader {
  font:normal 18px/1.6 var(--serif)
}

.sample-reader h3 {
  font-size:27px;
  line-height:1.1
}

.sample-reader p {
  margin:12px 0
}

#notify {
  position:fixed;
  z-index:10;
  bottom:20px;
  left:50%;
  transform:translateX(-50%);
  max-width:min(90vw,600px);
  border-radius:5px;
  box-shadow:0 3px 10px #0002;
  background:var(--text);
  color:#fff;
  padding:11px 18px;
  font-size:14px;
  opacity:0;
  pointer-events:none
}

#notify.show {
  opacity:1
}

.draft-flag {
  background:#f3e5d7;
  color:#8d482c;
  padding:2px 5px;
  border-radius:4px;
  font-size:11px
}

.title-row {
  display:flex;
  gap:12px;
  align-items:center;
  flex-wrap:wrap
}

.status-box {
  margin-bottom:14px
}

.status-box:empty {
  display:none
}

@media(max-width:900px) {
  .shell,.head-inner {
    width:calc(100% - 50px)
  }
  .hero {
    gap:4%;
    padding-block:45px
  }
  .site-nav {
    gap:20px
  }
  .format-card {
    padding:12px;
    gap:10px
  }
  .format-card small {
    font-size:11px
  }
  .head-inner {
    gap:16px
  }
}

@media(max-width:700px) {
  .shell,.head-inner {
    width:calc(100% - 32px)
  }
  .head-inner {
    min-height:62px
  }
  .site-nav {
    display:none
  }
  .wordmark {
    font-size:34px
  }
  .brandmark {
    width:23px;
    height:22px
  }
  .head-actions {
    gap:12px
  }
  .hero {
    grid-template-columns:1fr;
    gap:28px;
    padding-block:30px
  }
  .hero-copy {
    padding:0
  }
  .hero h1 {
    font-size:clamp(53px,11vw,77px);
    margin-bottom:18px
  }
  .hero-description {
    margin-bottom:17px;
    max-width:440px
  }
  .hero-actions {
    gap:20px
  }
  .file-line {
    margin-top:14px
  }
  .book-display {
    aspect-ratio:1.5;
    max-height:400px
  }
  .book-display .book {
    width:34%;
    height:72%;
    top:15%
  }
  .shelf-label {
    font-size:8px
  }
  .section-heading {
    align-items:flex-end
  }
  .section-heading>.text-action {
    display:none
  }
  .format-grid {
    grid-template-columns:1fr
  }
  .format-card {
    padding:10px 13px
  }
  .mini-cover {
    width:32px;
    height:42px
  }
  .more-formats {
    gap:8px 12px
  }
  .pricing {
    align-items:flex-start;
    flex-direction:column
  }
  .site-foot {
    gap:18px;
    flex-wrap:wrap
  }
  .site-foot>div {
    gap:12px
  }
  .reader-layout {
    grid-template-columns:1fr;
    gap:12px
  }
  .sidebar {
    padding:12px
  }
  .sidebar .chapter-items {
    max-height:160px;
    overflow-y:auto
  }
  .workspace {
    padding-block:22px 35px
  }
  .headline {
    gap:10px;
    flex-wrap:wrap
  }
  .stats {
    grid-template-columns:repeat(2,1fr)
  }
  .editor-top h1 {
    font-size:34px
  }
  .panel {
    padding:15px
  }
  .tabs {
    gap:15px
  }
  .dialog-inner {
    padding:18px
  }
}

@media(max-width:420px) {
  .hero h1 {
    font-size:52px
  }
  .hero-actions .button {
    padding:11px 15px
  }
  .hero-actions .text-action {
    font-size:13px
  }
  .field-grid {
    grid-template-columns:1fr
  }
  .site-foot a:not(.wordmark),.site-foot .linkbutton {
    font-size:12px
  }
  .workspace .button {
    padding:9px 12px;
    min-height:38px
  }
  .head-actions .account-label {
    max-width:84px
  }
  .plan-grid {
    grid-template-columns:1fr
  }
  .format-card small {
    font-size:12px
  }
}

@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition:none!important;
    scroll-behavior:auto!important
  }
}

.front-book strong.garden-title {
  font-size:17cqw;
  line-height:.95;
  top:17%;
  letter-spacing:-.068em
}

.book-assistant { min-width:0; }
.assistant-thread { display:grid; gap:1rem; max-height:32rem; overflow:auto; overflow-wrap:anywhere; }
.assistant-turn { display:grid; gap:.45rem; padding:1rem; border:1px solid var(--line); border-radius:12px; }
.assistant-turn p,.assistant-edit-preview p { margin:0; }
.assistant-author,.assistant-name { color:var(--muted); font-size:.85rem; }
.assistant-name { margin-top:.65rem; }
.assistant-message,.assistant-reply,.assistant-value { white-space:pre-wrap; overflow-wrap:anywhere; }
.assistant-proposal { display:flex; align-items:center; flex-wrap:wrap; gap:.75rem; padding-top:.75rem; border-top:1px solid var(--line); }
.assistant-edit-preview { padding:.75rem 0; display:grid; gap:.45rem; }
.assistant-starters { gap:.6rem 1rem; }
.book-assistant [data-chat-form] { border-top:1px solid var(--line); padding-top:1rem; }
@media (max-width:760px) {
  .reader-layout:has([data-assistant-host]) > .edit-panel { grid-row:1; }
}
.saved-build-preview { margin-top: 1rem; border-top: 1px solid var(--line, #ddd); padding-top: 1rem; }
.saved-build-preview h4 { margin: 0 0 .4rem; overflow-wrap: anywhere; }
.saved-build-preview p { font-size: .92rem; overflow-wrap: anywhere; }
.saved-build-preview img { display: block; max-width: 100%; max-height: 9rem; object-fit: contain; margin: .5rem auto; }
