/* Scrawler's limit: the quiet note over a read-only script's sheets, and the page a fourth script lands on. */
.beyond-the-limit {
  border-inline-start: 2px solid var(--pencil);
  padding-inline-start: 0.75rem;
  margin-block: 0.5rem 1.25rem;
}

.room__convert {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Scrawler's cards keep their mood and beat charges, unseen: they're Writer's. */
.card--scrawler .card__splat,
.card--scrawler .card__charges,
.card--scrawler .card__mood { display: none; }

/* What Writer adds: a section a feature, each with a small drawing in the room's own paper, ink and cork. */
.title-page.writer-plan { width: min(var(--sheet-wide), 100%); }

.writer-plan__when {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 0.9rem;
  align-items: center;
  margin-block: 1rem;
}

.writer-plan__when:empty { display: none; }

.title-page .writer-plan__soon {
  cursor: default;
  border: 1.5px dashed var(--sheet-muted);
}

.title-page .writer-plan__soon:hover { filter: none; }

.writer-plan__kept { margin-top: 0.75rem; }

.writer-plan__features {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr));
  gap: 1.75rem 2rem;
  margin-top: 1.5rem;
}

.writer-plan__feature { scroll-margin-top: 4rem; }
.writer-plan__feature p { margin-top: 0.3rem; color: var(--sheet-soft); }
.writer-plan__feature:target .writer-picture { outline: 2px solid var(--accent); outline-offset: 3px; }

.writer-picture {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 320 / 140;
  border-radius: var(--radius-control);
  background: var(--sheet-tint);
  margin-bottom: 0.6rem;
}

.writer-picture .wp-page { fill: var(--typed-paper); stroke: var(--sheet-line); stroke-width: 1; filter: drop-shadow(0 1px 1.5px rgb(0 0 0 / 0.18)); }
.writer-picture .wp-brad { fill: var(--brass); }
.writer-picture .wp-typed { stroke: var(--typed-ink); stroke-width: 2.4; stroke-linecap: round; opacity: 0.7; }
.writer-picture .wp-typed--soft { stroke-width: 1.6; opacity: 0.3; }
.writer-picture .wp-typed-text { font-family: var(--font-typed); font-size: 12px; fill: var(--typed-ink); }
.writer-picture .wp-typed-text--small { font-size: 9px; }
.writer-picture .wp-typed-text--tiny { font-size: 7px; opacity: 0.6; }
.writer-picture .wp-typed-text--cut { text-decoration: line-through; opacity: 0.55; font-size: 10px; }
.writer-picture .wp-hand { font-family: var(--font-hand); font-size: 13px; fill: var(--pencil); }
.writer-picture .wp-hand--small { font-size: 11px; }
.writer-picture .wp-hand--on-cork { fill: var(--sheet-ink); }
.writer-picture .wp-pencil { font-family: var(--font-hand); font-size: 15px; fill: var(--pencil); }
.writer-picture .wp-pencil-line { stroke: var(--pencil); stroke-width: 1.4; stroke-linecap: round; }

.writer-picture .wp-cork { fill: #b98a5c; }
.writer-picture .wp-card { fill: #fffdf4; filter: drop-shadow(0 1.5px 1.5px rgb(0 0 0 / 0.3)); }
.writer-picture .wp-card--printed { fill: none; stroke: var(--sheet-line); stroke-width: 1; filter: none; }
.writer-picture .wp-card-rule { stroke: #e07a7a; stroke-width: 0.8; }
.writer-picture .wp-pin { fill: #c0392b; stroke: rgb(0 0 0 / 0.3); stroke-width: 0.6; }
.writer-picture .wp-yarn { fill: none; stroke: var(--yarn); stroke-width: 2; stroke-linecap: round; filter: drop-shadow(0 2px 1px rgb(0 0 0 / 0.25)); }
.writer-picture .wp-charge { font-family: var(--font-ui); font-weight: 800; font-size: 11px; fill: var(--sheet-ink); }
.writer-picture .wp-splat { fill: #c0392b; opacity: 0.75; }
.writer-picture .wp-act { stroke: var(--sheet-ink); stroke-width: 1.5; stroke-dasharray: 4 3; }

.writer-picture .wp-reading { fill: var(--notice-strong); opacity: 0.5; }
.writer-picture .wp-wave { fill: none; stroke: var(--primary-on-paper); stroke-width: 2; stroke-linecap: round; }
.writer-picture .wp-play { fill: var(--primary-on-paper); }
.writer-picture .wp-play-mark { fill: var(--primary-on-paper-ink); }

.writer-picture .wp-caret { stroke: var(--ink); stroke-width: 2; }
.writer-picture .wp-initials { font-family: var(--font-ui); font-weight: 800; font-size: 6.5px; fill: #fff; text-anchor: middle; }
.writer-picture .wp-bubble { fill: var(--typed-paper); stroke: var(--sheet-line); }
.writer-picture .wp-bubble--mine { fill: var(--ok); }
.writer-picture .wp-chat { font-family: var(--font-ui); font-size: 10px; fill: var(--sheet-ink); }

.writer-picture .wp-board { fill: #8a5a36; stroke: #6d4428; stroke-width: 1; }
.writer-picture .wp-scrap { fill: #f6efdc; stroke: #cdbf9f; stroke-width: 0.8; filter: drop-shadow(0 2px 1.5px rgb(0 0 0 / 0.35)); }
.writer-picture .wp-scratch { fill: #fdf8ea; stroke: var(--sheet-line); }
.writer-picture .wp-phone { fill: #2a2420; }
.writer-picture .wp-bible { fill: var(--leather); filter: drop-shadow(0 2px 2px rgb(0 0 0 / 0.3)); }
.writer-picture--series .wp-hand--on-cork { fill: var(--brass); }

/* A Writer feature's quiet sample where it lives on Scrawler: there, greyed, never badged, and a link to its
   section on What Writer adds. */
.writer-sample {
  opacity: 0.55;
  text-decoration: none;
}

.writer-sample:hover, .writer-sample:focus-visible { opacity: 0.85; }

.writer-sample__spool { width: 1.05em; height: 1.05em; vertical-align: -0.18em; margin-inline-end: 0.3em; }

.menu-row.writer-sample .menu-row__hint { font-style: italic; }

/* A co-writer's empty place under Who has it. */
.writer-sample--slot {
  display: block;
  margin-top: 0.75rem;
  padding: 0.7rem 0.9rem;
  border: 1.5px dashed var(--sheet-line);
  border-radius: var(--radius-control);
  color: var(--sheet-soft);
}

.writer-sample--slot strong { display: block; color: var(--sheet-ink); }

/* The ribbon's outline, where Scrawler's part of At a glance is written. */
.writer-sample--ribbon { display: block; margin-top: 1.25rem; color: var(--sheet-soft); }
.writer-sample__ribbon { display: flex; gap: 2px; height: 1.6rem; margin-bottom: 0.4rem; }
.writer-sample__ribbon span { flex: var(--w) 1 0; border: 1.5px dashed var(--sheet-line); border-radius: 2px; }
