@charset "UTF-8";
@import url('./fonts.css');
:root {
  color-scheme:light;
  --paper:#f6fff8;
  --card:#ffffff;
  --ink:#283d32;
  --muted:#707970;
  --line:#dfe2d7;
  --accent:#dd7955;
  --sage:#e5eadb;
  --radius:17px;
  --gap:16px;
  --unit:166px;
  font-family:'Pinye Sans',sans-serif;
  font-synthesis:none
}
* {
  box-sizing:border-box
}
body {
  margin:0;
  background:var(--paper);
  color:var(--ink)
}
button,input,select,textarea {
  font:inherit
}
button,a,input,select,textarea {
  -webkit-tap-highlight-color:transparent
}
button {
  cursor:pointer
}
button:disabled {
  opacity:.35;
  cursor:default
}
button,a {
  touch-action:manipulation
}
a {
  color:inherit
}
button {
  color:inherit
}
button:focus-visible,a:focus-visible,input:focus-visible,textarea:focus-visible,select:focus-visible,[tabindex]:focus-visible {
  outline:3px solid #d67c50;
  outline-offset:4px
}
button svg,[data-icon] svg {
  display:block;
  width:18px;
  height:18px;
  flex:none
}
button span[data-icon] {
  display:inline-flex
}
button {
  border:0
}
button[hidden],[hidden] {
  display:none!important
}
.button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  border-radius:9px;
  min-height:39px;
  padding:9px 14px;
  background:#eceee4;
  font-size:13px;
  font-weight:600;
  text-decoration:none;
  white-space:nowrap
}
.button:hover {
  background:#e1e6d8
}
.button.quiet {
  background:transparent
}
.button.quiet:hover {
  background:#e8ebe1
}
.button.dark {
  background:var(--ink);
  color:#ffffff
}
.button.dark:hover {
  background:#3f5847
}
.button.small {
  padding:8px 12px;
  min-height:34px;
  font-size:12px
}
.icon-button {
  width:34px;
  height:34px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:8px;
  background:transparent;
  flex:none
}
.icon-button:hover,.icon-button.active {
  background:#e4e8dc
}
.icon-button.active {
  color:#2f6548
}
.icon-button.danger:hover {
  background:#f7dfd6;
  color:#a6402b
}
.eyebrow {
  font-size:9px;
  letter-spacing:1.7px;
  font-weight:700;
  color:var(--muted)
}
.green-dot {
  display:inline-block;
  width:6px;
  height:6px;
  background:#719066;
  border-radius:50%;
  flex:none
}
.app-header {
  height:78px;
  border-bottom:1px solid var(--line);
  padding:0 32px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:20px;
  background:#ffffff;
  position:relative;
  z-index:20
}
.brand {
  display:flex;
  align-items:center;
  gap:11px;
  text-decoration:none;
  white-space:nowrap
}
.brand-name {
  font-size:24px;
  font-weight:850;
  letter-spacing:-1px
}
.brand-subtitle {
  font-size:12px;
  color:var(--muted);
  font-weight:450
}
.brand-divider {
  width:1px;
  height:18px;
  background:#d2d8cb;
  margin:0 4px 0 9px
}
.header-actions {
  display:flex;
  gap:8px;
  align-items:center
}
.save-status {
  font-size:10px;
  color:var(--muted);
  margin-right:14px;
  display:flex;
  align-items:center;
  gap:6px
}
.save-status:before {
  content:"";
  width:5px;
  height:5px;
  background:#719066;
  border-radius:50%
}
.workspace {
  display:grid;
  grid-template-columns:218px minmax(0,1fr);
  min-height:calc(100vh - 78px)
}
.palette {
  border-right:1px solid var(--line);
  padding:29px 18px 20px;
  background:#ffffff;
  display:flex;
  flex-direction:column;
  gap:0
}
.palette-heading {
  display:flex;
  align-items:center;
  justify-content:space-between
}
.palette h2 {
  font-size:18px;
  font-weight:700;
  margin:7px 0 0;
  letter-spacing:-.4px
}
.small-count {
  font-size:11px;
  color:#9aa28d;
  border:1px solid var(--line);
  border-radius:20px;
  padding:4px 7px;
  align-self:end
}
.palette-hint {
  font-size:11px;
  color:var(--muted);
  line-height:1.8;
  margin:12px 0 19px
}
.template-list {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px
}
.template-item {
  background:#ffffff;
  border:1px solid var(--line);
  border-radius:10px;
  padding:10px 8px 8px;
  min-width:0;
  transition:border-color .15s,transform .15s;
  text-align:left
}
.template-item:hover {
  border-color:#859a75;
  transform:translateY(-2px)
}
.template-item:active {
  transform:translateY(0)
}
.template-mini {
  height:44px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  grid-template-rows:repeat(3,1fr);
  gap:3px;
  margin-bottom:9px;
  overflow:hidden
}
.template-mini span {
  background:#dde5d1;
  border-radius:2px
}
.template-mini.lead span:first-child {
  grid-area:1/1/3/5;
  background:#aac29d
}
.template-mini.lead span:last-child {
  grid-area:3/1/4/4
}
.template-mini.story span:first-child {
  grid-area:1/1/4/3;
  background:#c9c1ad
}
.template-mini.story span:last-child {
  grid-area:1/3/3/5
}
.template-mini.poster span:first-child {
  grid-area:1/2/4/4;
  background:#e8c883
}
.template-mini.poster span:last-child {
  grid-area:3/2/4/4;
  background:#b3aa8e
}
.template-mini.note span:first-child {
  grid-area:1/1/2/3;
  background:#b8c9b0
}
.template-mini.note span:last-child {
  grid-area:2/1/4/5
}
.template-mini.list span {
  grid-column:1/5;
  background:#d5dcc9
}
.template-mini.banner span:first-child {
  grid-area:1/1/4/5;
  background:#d5b9a3
}
.template-mini.banner span:last-child {
  grid-area:2/1/3/4;
  background:#a98b73
}
.template-mini.gallery span:first-child {
  grid-area:1/1/4/3;
  background:#c4d4b6
}
.template-mini.gallery span:nth-child(2) {
  grid-area:1/3/3/5;
  background:#d7c49a
}
.template-mini.gallery span:last-child {
  grid-area:3/3/4/5;
  background:#e3bba8
}
.template-mini.link span:first-child {
  grid-area:1/1/3/3;
  background:#c2c7b6
}
.template-mini.link span:last-child {
  grid-area:3/1/4/5
}
.template-item-name {
  display:block;
  font-size:11px;
  font-weight:600;
  margin:0 0 3px
}
.template-item-size {
  font-size:9px;
  color:#8a9386
}
.palette-note {
  display:flex;
  gap:9px;
  margin-top:25px;
  padding-top:19px;
  border-top:1px dashed #d5dccc;
  color:#8a957f
}
.palette-note>span {
  margin-top:4px
}
.palette-note svg {
  width:17px;
  height:17px
}
.palette-note p {
  font-size:10px;
  color:#8a9386;
  line-height:1.95;
  margin:0
}
.palette-note strong {
  font-weight:500;
  color:#65715d
}
.library-button {
  margin-top:17px;
  font-size:10px;
  min-height:33px;
  padding:8px;
  background:#edf0e6
}
.palette-bottom {
  display:flex;
  align-items:center;
  gap:6px;
  font-size:9px;
  color:#929c8a;
  margin-top:28px
}
.palette-bottom>span:last-child {
  margin-left:auto
}
.main-area {
  min-width:0;
  padding:35px 38px 20px
}
.page-heading {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin:0 auto 29px;
  max-width:1120px
}
.page-heading h1 {
  font-size:32px;
  line-height:1.45;
  letter-spacing:-1.2px;
  font-weight:750;
  margin:10px 0 9px
}
.title-dot {
  color:var(--accent)
}
.page-heading p {
  font-size:12px;
  color:var(--muted);
  margin:0;
  line-height:1.9
}
.heading-mark {
  width:78px;
  height:78px;
  border:1px solid #cbd4be;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  transform:rotate(11deg);
  background:#eef0e4;
  margin-right:10px;
  color:#839373
}
.heading-mark span {
  font-size:14px;
  letter-spacing:3px;
  line-height:1.65;
  font-family:'Pinye Serif',serif
}
.heading-mark i {
  font-style:normal;
  font-size:26px;
  align-self:start;
  margin-top:15px
}
.canvas-toolbar {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:14px;
  max-width:1120px;
  margin:auto;
  padding:11px 0;
  border-top:1px solid var(--line);
  border-bottom:1px solid var(--line)
}
.preset-tabs {
  display:flex;
  gap:6px
}
.preset-tab {
  padding:8px 12px;
  border-radius:7px;
  font-size:11px;
  background:transparent;
  color:#7a8475;
  white-space:nowrap
}
.preset-tab:hover {
  background:#e9ecdf
}
.preset-tab.active {
  background:#e3e9d9;
  color:#34513c;
  font-weight:650
}
.canvas-tools {
  display:flex;
  gap:2px;
  align-items:center
}
.canvas-tools .icon-button {
  width:29px;
  height:29px
}
.canvas-tools svg {
  width:15px;
  height:15px
}
.device-switch {
  display:flex;
  gap:2px
}
.tool-separator {
  height:16px;
  width:1px;
  margin:0 9px;
  background:var(--line)
}
.canvas-meta {
  max-width:1120px;
  margin:15px auto 15px;
  display:flex;
  justify-content:space-between;
  gap:12px;
  font-size:9px;
  color:#8b9585
}
.canvas-meta>span:first-child {
  display:flex;
  gap:7px;
  align-items:center
}
.canvas-stage {
  max-width:1120px;
  position:relative;
  margin:auto;
  min-width:0;
  transition:max-width .2s
}
.canvas-stage[data-device="tablet"] {
  max-width:680px
}
.canvas-stage[data-device="mobile"] {
  max-width:370px
}
.canvas {
  --columns:4;
  display:grid;
  grid-template-columns:repeat(var(--columns),minmax(0,1fr));
  grid-auto-rows:var(--unit);
  gap:var(--gap);
  position:relative;
  isolation:isolate;
  border-radius:var(--radius);
  min-height:var(--unit)
}
.canvas.show-grid {
  background-image:linear-gradient(90deg,#a4b49730 1px,transparent 1px),linear-gradient(#a4b49730 1px,transparent 1px);
  background-size:calc((100% + var(--gap))/var(--columns)) calc(var(--unit) + var(--gap))
}
.tile {
  border:1px solid #d9dece;
  border-radius:var(--radius);
  position:relative;
  overflow:hidden;
  min-width:0;
  min-height:0;
  display:flex;
  flex-direction:column;
  background:var(--card);
  color:var(--ink);
  transition:box-shadow .15s,border-color .15s
}
.tile:hover {
  border-color:#b8c3ab
}
.tile.selected {
  border-color:#5c8052;
  outline:2px solid #5c8052;
  outline-offset:3px;
  z-index:2
}
.tile.is-dragging {
  opacity:.32
}
.tile.tone-mint {
  background:#e0ffec
}
.tile.tone-green {
  background:#8af0b5;
  color:#f5f6ec;
  border-color:#8af0b5
}
.tile.tone-orange {
  background:#ffe0bd;
  border-color:#e9d4c4
}
.tile.tone-yellow {
  background:#fff3a6;
  border-color:#e1dac6
}
.tile[data-disclosure="sponsor"] {
  border-color:#d8bda6
}
.tile-handle {
  position:absolute;
  top:9px;
  left:9px;
  z-index:6;
  width:27px;
  height:27px;
  background:#fffef5e8;
  border:1px solid #dfe2d4;
  border-radius:7px;
  color:#586850;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:0;
  cursor:grab;
  transition:opacity .15s;
  box-shadow:0 1px 4px #243a2310
}
.tile-handle svg {
  width:14px;
  height:14px
}
.tile:hover .tile-handle,.tile:focus-within .tile-handle,.tile.selected .tile-handle {
  opacity:1
}
.tile-handle:active {
  cursor:grabbing
}
.tile-open {
  position:absolute;
  right:10px;
  bottom:10px;
  width:27px;
  height:27px;
  border-radius:50%;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fffef5d9;
  color:#34513c;
  z-index:4;
  border:1px solid #d8dfcc;
  opacity:0;
  transition:opacity .15s
}
.tile-open svg {
  width:13px;
  height:13px
}
.tile:hover .tile-open,.tile:focus-within .tile-open {
  opacity:1
}
.tile-content {
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:10px;
  min-width:0;
  min-height:0;
  flex:1
}
.tile-kicker {
  display:flex;
  align-items:center;
  gap:7px;
  font-size:9px;
  line-height:1.4;
  letter-spacing:.6px;
  min-height:15px;
  flex-wrap:wrap;
  flex:none
}
.disclosure-badge {
  display:inline-flex;
  align-items:center;
  gap:4px;
  border-radius:4px;
  padding:3px 5px;
  font-size:9px;
  letter-spacing:0;
  background:#e4d1bb;
  color:#634a32;
  flex:none
}
.disclosure-badge.public {
  background:#cfdfc4;
  color:#3e5d37
}
.tile.tone-green .disclosure-badge {
  background:#5c7457;
  color:#f5f6e7
}
.tile-title,.reader-title,.tile-summary,.reader-dek {
  white-space:pre-wrap
}
.tile-title {
  font-size:19px;
  line-height:1.45;
  letter-spacing:-.45px;
  font-weight:700;
  margin:0;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere;
  flex-shrink:0
}
.tile-summary {
  font-size:11px;
  line-height:1.85;
  margin:0;
  color:#75816f;
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden;
  overflow-wrap:anywhere
}
.tone-green .tile-summary {
  color:#c5d4bb
}
.tile-meta {
  font-size:9px;
  color:#8c967f;
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:auto;
  flex-shrink:0
}
.tone-green .tile-meta {
  color:#b7c9ac
}
.tile-image {
  display:block;
  object-fit:cover;
  width:100%;
  min-height:0;
  background:#dfe5d1;
  flex:none
}
.tile-lead .tile-image {
  height:56%
}
.tile-lead .tile-content {
  padding:17px 22px;
  gap:7px
}
.tile-lead .tile-title {
  font-size:25px;
  line-height:1.4;
  letter-spacing:-.7px
}
.tile-lead .tile-summary {
  -webkit-line-clamp:1
}
.tile-story {
  flex-direction:row
}
.tile-story .tile-image {
  width:35%;
  height:100%;
  align-self:stretch
}
.tile-story .tile-content {
  padding:18px;
  gap:8px;
  justify-content:center
}
.tile-story .tile-title {
  font-size:17px
}
.tile-story .tile-meta {
  margin-top:auto
}
.tile-poster .tile-image {
  height:100%;
  position:absolute;
  inset:0;
  object-fit:cover
}
.tile-poster .tile-content {
  z-index:1;
  margin-top:auto;
  flex:none;
  background:linear-gradient(transparent,#f0e4b8 24%);
  padding:50px 19px 19px;
  gap:8px;
  max-height:60%
}
.tile-poster .tile-title {
  font-size:23px
}
.tile-poster .tile-summary {
  color:#6c6f52;
  font-size:10px
}
.tile-poster .tile-kicker {
  color:#626747
}
.tile-note .tile-content {
  gap:8px;
  padding:20px
}
.tile-note .tile-title {
  font-size:19px;
  line-height:1.5
}
.tile-note .tile-summary {
  -webkit-line-clamp:2;
  font-size:10px
}
.tile-note .tile-meta {
  font-size:9px
}
.tile-note .note-symbol {
  position:absolute;
  right:16px;
  top:15px;
  color:#9aa788;
  font-size:20px;
  line-height:1
}
.tone-green .note-symbol {
  color:#aac397
}
.tile-note:has(.note-symbol) .tile-kicker {
  padding-right:18px
}
.tile-list .tile-content {
  gap:13px
}
.tile-list .tile-title {
  font-size:20px
}
.tile-list ol {
  list-style:none;
  padding:0;
  margin:0;
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  overflow:hidden
}
.tile-list li {
  display:flex;
  align-items:center;
  gap:10px;
  font-size:11px;
  line-height:1.5;
  border-top:1px solid #cbd6be;
  padding:13px 0
}
.tile-list .list-number {
  font-family:'Pinye Serif',serif;
  font-size:15px;
  color:#8c9d77;
  flex:none
}
.tile-list li>span:last-child {
  display:-webkit-box;
  -webkit-box-orient:vertical;
  -webkit-line-clamp:2;
  overflow:hidden
}
.tile-banner .tile-content {
  padding:22px 24px;
  justify-content:center;
  gap:10px;
  position:relative;
  padding-right:100px
}
.tile-banner .tile-title {
  font-size:23px
}
.tile-banner .tile-summary {
  font-size:10px
}
.banner-symbol {
  position:absolute;
  right:25px;
  top:50%;
  transform:translateY(-50%) rotate(-12deg);
  font-family:'Pinye Serif',serif;
  font-size:65px;
  line-height:1;
  color:#849e77
}
.tone-green .banner-symbol {
  color:#adc394
}
.tone-orange .banner-symbol {
  color:#bd8464
}
.tile-gallery .tile-content {
  padding:16px 20px;
  flex:none;
  height:36%;
  gap:7px
}
.tile-gallery .tile-title {
  font-size:21px
}
.gallery-images {
  display:grid;
  grid-template-columns:1.2fr 1fr;
  grid-template-rows:1fr 1fr;
  gap:5px;
  flex:1;
  min-height:0;
  padding:9px 9px 0
}
.gallery-images img {
  width:100%;
  height:100%;
  object-fit:cover;
  border-radius:8px;
  min-width:0;
  min-height:0;
  background:#e2e7d3
}
.gallery-images img:first-child {
  grid-row:span 2
}
.tile-link .tile-content {
  padding:18px 19px;
  gap:10px;
  justify-content:center
}
.tile-link .tile-title {
  font-size:18px
}
.tile-link .link-arrow {
  position:absolute;
  right:16px;
  bottom:16px;
  font-size:22px;
  color:#8f9e7d
}
.tile-link .tile-summary {
  padding-right:23px;
  font-size:10px;
  -webkit-line-clamp:1
}
.drop-hint {
  position:absolute;
  z-index:8;
  border:2px dashed #66815c;
  border-radius:var(--radius);
  background:#b8cf9e40;
  pointer-events:none;
  display:flex;
  align-items:center;
  justify-content:center;
  color:#3f6335;
  font-size:12px;
  font-weight:600
}
.canvas-empty {
  grid-column:1/-1;
  border:1px dashed #becbb2;
  border-radius:var(--radius);
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  font-size:14px;
  color:var(--muted)
}
.page-footer {
  max-width:1120px;
  margin:25px auto 10px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  color:#8b9582;
  font-size:9px;
  gap:12px
}
.footer-star {
  font-size:16px;
  margin-left:12px;
  color:#b6bf9f
}
.selection-bar {
  position:fixed;
  left:calc(50% + 85px);
  bottom:22px;
  transform:translateX(-50%);
  z-index:30;
  background:#fffef9f7;
  border:1px solid #d7decb;
  box-shadow:0 8px 28px #2c422425;
  border-radius:13px;
  padding:9px 11px;
  display:flex;
  align-items:center;
  gap:10px;
  backdrop-filter:blur(10px);
  max-width:calc(100vw - 24px)
}
#selection-label {
  font-size:10px;
  font-weight:600;
  white-space:nowrap;
  border-right:1px solid var(--line);
  padding:0 10px 0 2px
}
.move-controls {
  display:flex
}
.move-controls .icon-button {
  width:25px;
  height:30px
}
.move-controls svg {
  width:14px;
  height:14px
}
.toast {
  position:fixed;
  left:50%;
  bottom:87px;
  transform:translateX(-50%);
  background:#2d4437;
  color:#f6f7ec;
  border-radius:9px;
  padding:12px 18px;
  z-index:100;
  font-size:12px;
  box-shadow:0 5px 20px #283d3220;
  max-width:calc(100vw - 30px);
  text-align:center
}
dialog {
  border:1px solid #d8dfcc;
  padding:0;
  border-radius:19px;
  color:var(--ink);
  background:var(--paper);
  box-shadow:0 20px 100px #1b322830;
  max-height:calc(100dvh - 40px);
  max-width:calc(100vw - 32px)
}
dialog::backdrop {
  background:#26382e66;
  backdrop-filter:blur(4px)
}
.dialog-heading {
  display:flex;
  align-items:start;
  justify-content:space-between;
  gap:20px;
  padding:25px 27px 21px;
  border-bottom:1px solid var(--line)
}
.dialog-heading h2 {
  font-size:23px;
  letter-spacing:-.8px;
  margin:8px 0 0
}
.dialog-heading p {
  font-size:12px;
  color:var(--muted);
  margin:10px 0 0
}
.editor-dialog {
  width:590px
}
.editor-dialog form {
  display:flex;
  flex-direction:column;
  max-height:calc(100dvh - 42px)
}
.editor-fields {
  overflow-y:auto;
  padding:22px 27px;
  display:grid;
  gap:17px
}
.editor-fields label {
  font-size:11px;
  font-weight:600;
  display:flex;
  flex-direction:column;
  gap:8px;
  min-width:0
}
.editor-fields input,.editor-fields select,.editor-fields textarea {
  width:100%;
  border:1px solid #d8dfcb;
  background:#ffffff;
  border-radius:7px;
  min-height:38px;
  padding:9px 10px;
  color:var(--ink);
  font-size:12px;
  line-height:1.6
}
.editor-fields textarea {
  resize:vertical
}
.field-row {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:16px
}
.field-help {
  font-size:10px;
  color:var(--muted);
  font-weight:400
}
.appearance-field {
  border:0;
  padding:0;
  margin:0
}
.appearance-field legend {
  font-size:11px;
  font-weight:600;
  margin-bottom:10px
}
.tone-options {
  display:flex;
  gap:11px
}
.tone-option {
  position:relative;
  width:34px;
  height:28px
}
.tone-option input {
  position:absolute;
  opacity:0;
  width:34px;
  height:28px;
  min-height:0;
  cursor:pointer
}
.tone-option span {
  display:block;
  width:34px;
  height:28px;
  border:1px solid #cdd6bf;
  border-radius:6px
}
.tone-option input:checked+span {
  outline:2px solid #6f8c60;
  outline-offset:3px
}
.tone-option input:focus-visible+span {
  outline:3px solid #d67c50;
  outline-offset:3px
}
.dialog-footer {
  border-top:1px solid var(--line);
  padding:15px 22px;
  display:flex;
  align-items:center;
  justify-content:end;
  gap:10px
}
.dialog-footer>span {
  font-size:11px;
  color:#a24631;
  margin-right:auto
}
.reader-dialog {
  width:900px;
  height:calc(100dvh - 64px);
  background:#ffffff;
  overflow:hidden
}
.reader-topbar {
  height:63px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:0 23px;
  border-bottom:1px solid var(--line)
}
.reader-brand {
  font-weight:700;
  display:flex;
  align-items:center;
  gap:9px;
  font-size:17px
}
.reader-scroll {
  overflow-y:auto;
  height:calc(100% - 63px);
  overscroll-behavior:contain
}
.reader-scroll article {
  max-width:670px;
  margin:auto;
  padding:45px 30px 65px
}
.reader-kicker {
  display:flex;
  align-items:center;
  gap:8px;
  font-size:11px;
  color:var(--muted);
  margin-bottom:18px
}
.reader-scroll h1 {
  font-size:32px;
  line-height:1.5;
  letter-spacing:-1px;
  margin:0 0 20px
}
.reader-dek {
  font-size:15px;
  color:var(--muted);
  line-height:1.95;
  margin-bottom:26px
}
.reader-cover {
  width:100%;
  max-height:320px;
  object-fit:cover;
  border-radius:12px;
  margin:8px 0 27px
}
.reader-body {
  font-size:16px;
  line-height:2;
  color:#3f4a3e;
  overflow-wrap:anywhere
}
.reader-body p {
  margin:0 0 24px
}
.reader-body h2 {
  font-size:22px;
  line-height:1.6;
  margin:32px 0 14px;
  color:var(--ink)
}
.reader-body ul {
  padding-left:23px;
  margin-bottom:25px
}
.reader-body li {
  margin-bottom:8px
}
.reader-source {
  padding-top:25px;
  margin-top:34px;
  border-top:1px solid var(--line);
  font-size:11px;
  color:var(--muted)
}
.reader-link {
  margin-top:20px
}
.library-dialog {
  width:1120px
}
.library-grid {
  padding:23px;
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:19px
}
.library-sample {
  min-width:0
}
.library-sample-stage {
  height:220px;
  overflow:hidden;
  border-radius:12px;
  position:relative;
  background:#e9ecdf
}
.library-sample-stage .tile {
  position:absolute;
  inset:0;
  border-radius:12px;
  pointer-events:none
}
.library-sample-stage .tile-handle,.library-sample-stage .tile-open {
  display:none
}
.library-sample-stage .tile-title {
  font-size:17px
}
.library-sample-stage .tile-content {
  padding:15px
}
.library-sample-stage .tile-list li {
  padding:9px 0
}
.library-sample-stage .tile-banner .tile-content {
  padding-right:45px
}
.library-sample-stage .banner-symbol {
  font-size:30px;
  right:10px
}
.library-sample-stage .tile-story {
  flex-direction:column
}
.library-sample-stage .tile-story .tile-image {
  width:100%;
  height:45%
}
.library-sample-stage .tile-story .tile-content {
  gap:5px
}

.library-sample-title {
  display:flex;
  justify-content:space-between;
  align-items:center;
  margin-top:11px;
  gap:6px
}
.library-sample-title strong {
  font-size:12px
}
.library-sample-title span {
  font-size:9px;
  color:var(--muted)
}
.library-sample p {
  font-size:10px;
  color:var(--muted);
  line-height:1.8;
  margin:7px 0 10px
}
.library-sample .button {
  width:100%;
  font-size:10px;
  min-height:30px;
  padding:7px
}
.preview-mode .palette,.preview-mode .tile-handle,.preview-mode .selection-bar,.preview-mode .canvas-meta,.preview-mode .canvas-tools,.preview-mode .preset-tabs,.preview-mode .heading-mark,.preview-mode .save-status {
  display:none!important
}
.preview-mode .workspace {
  grid-template-columns:1fr
}
.preview-mode .main-area {
  padding:38px 38px 20px
}
.preview-mode .page-heading {
  margin-bottom:30px
}
.preview-mode .canvas-toolbar {
  border:0;
  padding:0;
  margin:0
}
.preview-mode .tile {
  cursor:pointer
}
.preview-mode .tile:hover {
  box-shadow:0 6px 15px #263e2510
}
.preview-mode .tile.selected {
  outline:0;
  border-color:#d9dece
}
.preview-mode .tile-open {
  opacity:1
}
.preview-mode .header-actions>#import-button {
  display:none
}
.preview-mode .tile:focus-visible {
  outline:3px solid #d67c50
}
.skip-link {
  position:fixed;
  top:-60px;
  left:20px;
  z-index:200;
  padding:12px;
  background:var(--ink);
  color:white;
  border-radius:6px;
  font-size:13px
}
.skip-link:focus {
  top:12px
}
.canvas[data-columns="1"] .tile-story {
  flex-direction:column
}
.canvas[data-columns="1"] .tile-story .tile-image {
  width:100%;
  height:48%
}
.canvas[data-columns="1"] .tile-story .tile-content {
  padding:17px 20px
}
.canvas[data-columns="1"] .tile-lead .tile-title {
  font-size:23px
}
.canvas[data-columns="1"] .tile-banner .tile-title {
  font-size:20px
}
.canvas[data-columns="1"] .tile-banner .tile-content {
  padding-right:65px
}
.canvas[data-columns="1"] .banner-symbol {
  font-size:44px;
  right:16px
}
.canvas[data-columns="1"] .tile-handle {
  display:none
}
.canvas[data-columns="2"] .tile-handle {
  display:none
}
html {
  scrollbar-gutter:stable
}
.dialog-open {
  overflow:hidden
}
.tile-kicker {
  font-size:10px
}
.tile-summary {
  font-size:12px;
  color:#64715f;
  line-height:1.75
}
.tile-meta {
  font-size:10px;
  color:#77836c
}
.tile-list li {
  font-size:12px;
  padding:11px 0
}
.tile-note .tile-content {
  padding:18px;
  gap:7px
}
.tile-note .tile-title {
  font-size:18px;
  line-height:1.45
}
.tile-note .tile-summary {
  font-size:11px;
  -webkit-line-clamp:1
}
.tile-note .tile-meta {
  font-size:10px
}
.tile-story .tile-summary {
  font-size:12px;
  -webkit-line-clamp:1
}
.tile-lead .tile-image {
  height:52%
}
.tile-gallery .tile-content {
  height:40%
}
.tile-banner .tile-title {
  font-size:22px;
  line-height:1.4
}
.tile-banner .tile-summary {
  font-size:12px;
  -webkit-line-clamp:1
}
.tile-poster .tile-content {
  color:#283d32
}
.tile-poster .tile-summary {
  font-size:11px;
  color:#646948
}
.tile-poster .disclosure-badge {
  background:#cfb891;
  color:#493f30
}
.tile-link .tile-summary {
  font-size:11px
}
.tile-kicker {
  flex-wrap:nowrap;
  min-width:0;
}
.tile-kicker > span:not(.disclosure-badge) {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.tile-meta {
  display:block;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.tile-list li {
  min-height:44px;
  flex:none;
}
.tile-list li > span:last-child {
  -webkit-line-clamp:1;
}
.library-sample-stage .tile-lead .tile-image {
  height:45%;
}
.library-sample-stage .tile-lead .tile-content {
  padding:13px 15px;
  gap:6px;
}
.library-sample-stage .tile-lead .tile-title {
  font-size:16px;
  line-height:1.45;
}
.library-sample-stage .tile-lead .tile-summary {
  font-size:10px;
  -webkit-line-clamp:1;
}
.library-sample-stage .tile-story .tile-title {
  font-size:16px;
  line-height:1.35;
}
.library-sample-stage .tile-list li {
  min-height:31px;
  padding:7px 0;
  font-size:10px;
}
.library-sample-stage .tile-list li:nth-child(n+4) {
  display:none;
}
@media(min-width:1700px) {
  .main-area {
    padding-left:60px;
    padding-right:60px
  }
  .palette {
    padding-left:23px;
    padding-right:23px
  }
  .workspace {
    grid-template-columns:238px minmax(0,1fr)
  }
}
@media(max-width:1150px) {
  .app-header {
    padding:0 22px
  }
  .brand-subtitle {
    display:none
  }
  .brand-divider {
    display:none
  }
  .workspace {
    grid-template-columns:180px minmax(0,1fr)
  }
  .palette {
    padding:25px 13px
  }
  .main-area {
    padding:29px 24px 20px
  }
  .page-heading h1 {
    font-size:28px
  }
  .heading-mark {
    width:66px;
    height:66px
  }
  .palette-note {
    gap:5px
  }
  .palette-note p {
    font-size:9px
  }
  .palette-note br {
    display:none
  }
  .selection-bar {
    left:calc(50% + 70px)
  }
  .library-grid {
    grid-template-columns:repeat(3,1fr)
  }
  .save-status {
    display:none
  }
}
@media(max-width:850px) {
  .workspace {
    grid-template-columns:150px minmax(0,1fr)
  }
  .palette {
    padding:24px 10px
  }
  .template-list {
    gap:7px
  }
  .template-item {
    padding:9px 6px 7px
  }
  .template-item-name {
    font-size:10px
  }
  .template-mini {
    height:35px
  }
  .palette-hint {
    font-size:10px
  }
  .palette .eyebrow {
    font-size:8px;
    letter-spacing:.8px
  }
  .palette h2 {
    font-size:16px
  }
  .palette-note {
    display:none
  }
  .small-count {
    font-size:9px
  }
  .main-area {
    padding:25px 18px
  }
  .page-heading h1 {
    font-size:24px;
    letter-spacing:-1px
  }
  .page-heading .eyebrow {
    font-size:8px;
    letter-spacing:1px
  }
  .page-heading p {
    font-size:11px
  }
  .heading-mark {
    display:none
  }
  .canvas-toolbar {
    flex-wrap:wrap;
    gap:8px
  }
  .canvas-tools {
    margin-left:auto
  }
  .preset-tab {
    padding:7px 9px;
    font-size:10px
  }
  .selection-bar {
    left:calc(50% + 50px);
    gap:5px
  }
  .selection-bar #selection-label {
    display:none
  }
  .page-footer {
    font-size:8px
  }
  .library-grid {
    grid-template-columns:repeat(2,1fr)
  }
}
@media(max-width:600px) {
  :root {
    --gap:13px;
    --unit:166px
  }
  .app-header {
    height:66px;
    padding:0 16px;
    gap:8px
  }
  .brand {
    gap:8px
  }
  .brand img {
    width:29px;
    height:29px
  }
  .brand-name {
    font-size:22px
  }
  .header-actions {
    gap:2px
  }
  .header-actions .button {
    padding:8px 9px;
    font-size:10px;
    gap:6px;
    min-height:34px
  }
  .header-actions .button svg {
    width:14px;
    height:14px
  }
  #import-button {
    display:none
  }
  .workspace {
    display:flex;
    flex-direction:column;
    min-height:calc(100vh - 66px)
  }
  .palette {
    border-right:0;
    border-bottom:1px solid var(--line);
    padding:15px 16px 13px;
    gap:0
  }
  .palette-heading h2 {
    font-size:12px;
    margin:0
  }
  .palette-heading .eyebrow,.small-count,.palette-hint,.library-button,.palette-bottom {
    display:none
  }
  .template-list {
    display:flex;
    overflow-x:auto;
    gap:8px;
    margin-top:12px;
    padding:1px 1px 6px;
    scrollbar-width:thin
  }
  .template-item {
    width:76px;
    min-width:76px;
    padding:8px
  }
  .template-mini {
    height:26px;
    margin-bottom:6px
  }
  .template-item-size {
    font-size:8px
  }
  .main-area,.preview-mode .main-area {
    padding:24px 16px 20px
  }
  .page-heading {
    margin-bottom:22px
  }
  .page-heading h1 {
    font-size:26px;
    margin-top:9px
  }
  .page-heading p {
    font-size:11px
  }
  .page-heading .eyebrow {
    font-size:7px;
    letter-spacing:.7px
  }
  .canvas-toolbar {
    padding:9px 0;
    gap:6px
  }
  .preset-tabs {
    gap:3px
  }
  .preset-tab {
    font-size:10px;
    padding:7px 8px
  }
  .canvas-tools {
    gap:0
  }
  .canvas-tools .icon-button {
    width:27px
  }
  .canvas-tools .device-switch,.canvas-tools .tool-separator {
    display:none
  }
  .canvas-meta {
    margin:13px auto;
    font-size:9px
  }
  #edit-hint {
    max-width:150px;
    text-align:right;
    line-height:1.6
  }
  .canvas-stage {
    max-width:390px
  }
  .selection-bar {
    left:50%;
    bottom:12px;
    padding:8px;
    gap:5px;
    max-width:calc(100vw - 24px)
  }
  .selection-bar .move-controls {
    display:none
  }
  .selection-bar .button {
    font-size:11px
  }
  .page-footer {
    align-items:start;
    line-height:1.8;
    gap:15px
  }
  .page-footer>span:last-child {
    text-align:right;
    max-width:160px
  }
  .footer-star {
    display:none
  }
  .toast {
    bottom:75px
  }
  .editor-dialog {
    max-width:calc(100vw - 20px);
    max-height:calc(100dvh - 20px)
  }
  .editor-dialog form {
    max-height:calc(100dvh - 22px)
  }
  .dialog-heading {
    padding:20px
  }
  .dialog-heading h2 {
    font-size:21px
  }
  .editor-fields {
    padding:18px 20px
  }
  .dialog-footer {
    padding:12px 16px
  }
  .reader-dialog {
    height:100dvh;
    width:100vw;
    max-height:100dvh;
    max-width:100vw;
    border:0;
    border-radius:0
  }
  .reader-scroll article {
    padding:29px 22px 45px
  }
  .reader-scroll h1 {
    font-size:27px
  }
  .reader-body {
    font-size:16px
  }
  .library-dialog {
    max-width:calc(100vw - 20px)
  }
  .library-grid {
    grid-template-columns:1fr;
    padding:20px
  }
  .library-sample-stage {
    height:250px
  }
  .library-sample .button {
    min-height:35px
  }
  .preview-mode .app-header {
    height:66px
  }
  .preview-mode .page-heading {
    margin-bottom:25px
  }
}
@media(prefers-reduced-motion:reduce) {
  *,*:before,*:after {
    transition:none!important;
    scroll-behavior:auto!important
  }
}
