/* src/ui/studio.css */
@font-face {
  font-family: StudioUI;
  src: url(/assets/fonts/a2/Inter-Variable.ttf);
  font-weight: 100 900;
  font-display: swap;
}
@font-face {
  font-family: StudioDisplay;
  src: url(/assets/fonts/a2/InstrumentSerif-Regular.ttf);
  font-display: swap;
}
:root {
  --paper-studio: #f6f3ec;
  --paper-sheet: #fffefb;
  --paper-rail: #faf8f3;
  --paper-sunken: #f1ede5;
  --paper-table: #eae6dd;
  --graphite-900: #2b2b2a;
  --graphite-700: #4a4946;
  --graphite-500: #5f5c57;
  --graphite-300: #b9b5ac;
  --graphite-150: #dedad1;
  --sepia-ink: #8a5a2b;
  --sepia-tint: #f3e9dc;
  --blueprint-ink: #2e5c8f;
  --blueprint-line: #9db4ce;
  --blueprint-tint: #e8eef5;
  --attention: #8a5410;
  --attention-tint: #f6ebd9;
  --problem: #a13a35;
  --ok: #2f5f43;
  --ok-tint: #e3eee6;
  --font-ui:
    StudioUI,
    Arial,
    sans-serif;
  --font-display:
    StudioDisplay,
    Georgia,
    serif;
  --top-height: 52px;
  --rail-width: 72px;
  --bottom-height: 44px;
}
* {
  box-sizing: border-box;
}
html,
body,
#app {
  margin: 0;
  min-height: 100%;
  width: 100%;
}
body {
  font-family: var(--font-ui);
  font-size: 14px;
  line-height: 1.5;
  color: var(--graphite-900);
  background: var(--paper-studio);
}
button,
input,
textarea,
select {
  font: inherit;
  color: inherit;
}
button,
a,
input,
textarea,
select {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: default;
  opacity: 0.55;
}
button[aria-disabled=true] {
  cursor: help;
}
button {
  border: 0;
  background: none;
}
a {
  color: inherit;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
iframe:focus-visible {
  outline: 2px solid var(--sepia-ink);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1,
h2 {
  font-family: var(--font-display);
  font-weight: 400;
}
h1 {
  font-size: 44px;
  line-height: 1.1;
}
h2 {
  font-size: 28px;
  line-height: 1.2;
}
h3 {
  font-size: 13px;
  font-weight: 600;
}
p + p {
  margin-top: 10px;
}
.muted {
  color: var(--graphite-500);
}
.small {
  font-size: 12px;
  line-height: 1.5;
}
.ok {
  color: var(--ok);
}
.blue {
  color: var(--blueprint-ink);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1px;
}
.icon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}
.icon img {
  display: block;
  max-width: 24px;
  max-height: 24px;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 36px;
  padding: 6px 14px;
  border: 1px solid var(--graphite-300);
  border-radius: 2px;
  font-size: 14px;
  font-weight: 500;
  line-height: 20px;
  text-decoration: none;
  background: transparent;
  max-width: 100%;
}
.button-primary {
  background: var(--graphite-900);
  border-color: var(--graphite-900);
  color: var(--paper-sheet);
}
.button-blueprint {
  background: var(--blueprint-tint);
  border-color: var(--blueprint-line);
  color: var(--blueprint-ink);
}
.button-quiet {
  border-color: transparent;
  background: transparent;
}
.button:hover:not(:disabled) {
  box-shadow: inset 0 0 0 1px var(--graphite-300);
}
.button-primary:hover:not(:disabled) {
  background: var(--graphite-700);
}
.full {
  width: 100%;
}
.actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.app {
  height: 100dvh;
  min-height: 500px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.top-bar {
  height: var(--top-height);
  min-height: var(--top-height);
  background: var(--paper-rail);
  border-bottom: 1px solid var(--graphite-150);
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 16px 0 24px;
  z-index: 8;
}
.atelier-wordmark {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 0;
  flex-shrink: 0;
}
.atelier-wordmark img {
  width: 22px;
  height: 22px;
}
.atelier-wordmark span {
  font: 24px var(--font-display);
}
.top-divider,
.toolbar-divider {
  width: 1px;
  height: 22px;
  background: var(--graphite-150);
  flex-shrink: 0;
}
.workbook-title {
  font-size: 14px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.workbook-state {
  font-size: 12px;
  color: var(--graphite-500);
  white-space: nowrap;
}
.top-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-left: auto;
  flex-shrink: 0;
}
.save-status {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--graphite-500);
  font-size: 12px;
  min-width: 54px;
}
.workspace-row {
  display: flex;
  flex: 1;
  min-height: 0;
}
.left-rail {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: var(--rail-width);
  flex-shrink: 0;
  background: var(--paper-rail);
  border-right: 1px solid var(--graphite-150);
  padding-top: 12px;
  z-index: 7;
}
.left-rail > button {
  width: 72px;
  min-height: 64px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: 12px;
  border-left: 2px solid transparent;
}
.left-rail .icon {
  width: 24px;
  height: 24px;
}
.left-rail button[aria-current] {
  background: var(--paper-sunken);
  border-left-color: var(--sepia-ink);
}
.left-rail button:hover {
  background: var(--paper-sunken);
}
.workspace {
  flex: 1;
  min-width: 0;
  min-height: 0;
  position: relative;
  overflow: auto;
  background: var(--paper-table);
}
.workspace:focus {
  outline: none;
}
.drawer {
  width: 360px;
  flex-shrink: 0;
  background: var(--paper-rail);
  border-right: 1px solid var(--graphite-150);
  overflow: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.drawer-pages {
  width: 280px;
}
.drawer-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.drawer-title h1 {
  font-size: 28px;
}
.drawer-title .button {
  padding: 2px;
  border: 0;
  min-width: 28px;
}
.bottom-rail {
  height: var(--bottom-height);
  min-height: var(--bottom-height);
  margin-left: var(--rail-width);
  background: var(--paper-rail);
  border-top: 1px solid var(--graphite-150);
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 0 16px;
  z-index: 7;
}
.bottom-rail .button {
  font-size: 12px;
  padding: 4px 5px;
  min-height: 30px;
}
.position {
  white-space: nowrap;
  font-size: 12px;
}
.bottom-spacer {
  flex: 1;
}
.construction-toggle {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  padding: 5px;
  white-space: nowrap;
}
.switch {
  width: 30px;
  height: 18px;
  display: inline-block;
  background: var(--graphite-300);
  border-radius: 12px;
  position: relative;
}
.switch:before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  background: var(--paper-sheet);
  border-radius: 50%;
}
[aria-checked=true] .switch {
  background: var(--graphite-900);
}
[aria-checked=true] .switch:before {
  left: 14px;
}
.compose-area {
  min-height: 100%;
  display: flex;
  align-items: flex-start;
  gap: 48px;
  padding: 44px 40px 60px;
}
.compose-table {
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.spread-region {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 0;
}
.spread-size {
  flex-shrink: 0;
  position: relative;
  box-shadow: 0 10px 16px #33261a24;
}
.spread-size iframe,
.proof-pages {
  border: 0;
  transform-origin: top left;
  position: absolute;
  left: 0;
  top: 0;
  max-width: none;
}
.proof-pages {
  display: flex;
}
.proof-pages img {
  display: block;
  max-width: none;
}
.loading-paper {
  background: var(--paper-sheet);
  padding: 40px;
}
.preview-status {
  position: absolute;
  bottom: 10px;
  font-size: 12px;
  color: var(--graphite-500);
}
.margin-notes {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 320px;
  flex-shrink: 0;
}
.note {
  background: var(--paper-sheet);
  border: 1px solid var(--blueprint-line);
  border-radius: 4px;
  padding: 14px 16px;
  box-shadow: 0 4px 8px #2b2b2914;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  line-height: 1.45;
}
.note-origin {
  display: flex;
  gap: 8px;
  align-items: center;
  font-size: 10px;
  font-weight: 500;
  color: var(--blueprint-ink);
  letter-spacing: 1px;
}
.callout {
  display: flex;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  background: var(--blueprint-ink);
  color: white;
  letter-spacing: 0;
}
.note h3 {
  font-size: 14px;
}
.note .button {
  width: 100%;
  font-size: 13px;
  min-height: 36px;
}
.context-toolbar {
  position: absolute;
  left: 0;
  bottom: 110px;
  display: flex;
  align-items: center;
  gap: 9px;
  background: var(--paper-sheet);
  border: 1px solid var(--graphite-150);
  border-radius: 6px;
  padding: 6px 8px 6px 14px;
  box-shadow: 0 6px 9px #2b2b2924;
  z-index: 5;
  font-size: 12px;
  white-space: nowrap;
  max-width: calc(100vw - 130px);
}
.context-toolbar .button {
  min-height: 30px;
  padding: 4px;
  border: 0;
  font-size: 12px;
}
.show-notes {
  position: absolute;
  right: 20px;
  top: 20px;
}
.preview-only .margin-notes,
.preview-only .context-toolbar {
  display: none;
}
.preview-only .compose-area {
  gap: 0;
}
.preview-only .left-rail {
  display: none;
}
.preview-only .bottom-rail {
  margin-left: 0;
}
.library-catalog {
  padding: 28px 48px;
  min-height: 100%;
  background: var(--paper-studio);
}
.library-heading {
  display: flex;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-end;
}
.library-heading h1 {
  margin: 4px 0 12px;
}
.library-heading .button {
  padding-left: 0;
  font-size: 12px;
}
.add-location {
  background: var(--paper-sheet);
  border: 1px solid var(--graphite-150);
  padding: 10px 14px;
  font-size: 12px;
  white-space: nowrap;
}
.add-location strong {
  margin-left: 5px;
}
.categories {
  display: flex;
  gap: 16px;
  margin: 24px 0;
  overflow: auto;
  padding-bottom: 3px;
}
.categories > button {
  padding: 0;
  text-align: left;
  min-width: 168px;
  max-width: 190px;
  font-size: 13px;
}
.category-specimen {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper-table);
  height: 100px;
  margin-bottom: 8px;
  border-bottom: 2px solid transparent;
}
.categories .active .category-specimen {
  border-bottom-color: var(--sepia-ink);
}
.category-specimen > span {
  height: 70px;
  width: 54px;
  background: var(--paper-sheet);
  box-shadow: 0 4px 8px #33261a20;
  position: relative;
}
.category-specimen > span:before {
  content: "";
  position: absolute;
  left: 9px;
  right: 9px;
  top: 18px;
  height: 30px;
  background: repeating-linear-gradient(transparent 0 7px, #b9b5ac 7px 8px);
}
.library-filter {
  background: var(--paper-sheet);
  border: 1px solid var(--graphite-150);
  padding: 12px 16px;
  display: flex;
  gap: 18px;
  align-items: center;
  margin-bottom: 24px;
}
.library-filter > label:first-child {
  display: flex;
  gap: 8px;
  align-items: center;
  flex: 1;
  min-width: 120px;
}
.library-filter input {
  border: 0;
  background: transparent;
  min-width: 0;
  width: 100%;
  font-size: 13px;
}
.library-filter select {
  border: 0;
  background: transparent;
  font-size: 12px;
  max-width: 190px;
}
.catalog-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 28px;
}
.catalog-card {
  text-align: left;
  padding: 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 10px;
}
.catalog-card > h2 {
  font: 500 15px var(--font-ui);
}
.catalog-card > p {
  font-size: 13px;
  color: var(--graphite-500);
}
.catalog-specimen {
  height: 320px;
  background: var(--paper-table);
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.mini-page {
  width: 176px;
  height: 228px;
  background: var(--paper-sheet);
  padding: 22px 17px;
  box-shadow: 0 6px 16px #33261a29;
}
.mini-page h2 {
  font: 17px var(--font-display);
  margin: 5px 0 16px;
}
.mini-page p {
  font: 9px var(--font-display);
  margin-bottom: 10px;
}
.mini-gold {
  height: 1px;
  width: 10px;
  background: #b8964a;
}
.mini-lines {
  height: 80px;
  background: repeating-linear-gradient(transparent 0 12px, #b9b5ac 12px 13px);
}
.variant-row {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--graphite-500);
}
.style-swatch {
  width: 22px;
  height: 22px;
  border: 1px solid var(--graphite-300);
  background-color: var(--paper-sheet);
  display: inline-block;
  flex-shrink: 0;
}
.style-swatch.ruled {
  background-image: repeating-linear-gradient(transparent 0 5px, #b9b5ac 5px 6px);
}
.style-swatch.grid {
  background-image: radial-gradient(#8e8573 0.7px, transparent 0.7px);
  background-size: 5px 5px;
}
.style-swatch.plain {
  border: 3px double var(--graphite-300);
}
.status-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--graphite-500);
  border-radius: 2px;
  padding: 2px 8px;
  background: var(--paper-sunken);
  font-size: 12px;
}
.status-tag.attention {
  color: var(--attention);
  background: var(--attention-tint);
  border-color: var(--attention);
}
.status-tag.problem {
  color: var(--problem);
  border-color: var(--problem);
}
.status-tag.ok {
  color: var(--ok);
  background: var(--ok-tint);
  border-color: var(--ok);
}
.library-detail {
  display: flex;
  gap: 40px;
  padding: 28px 40px 28px 48px;
  min-height: 100%;
  background: var(--paper-studio);
}
.library-about {
  width: 440px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: flex-start;
}
.library-about > .button:first-child {
  padding-left: 0;
}
.library-about h1 {
  font-size: 36px;
}
.library-about .small {
  font-size: 12px;
}
.library-about > p {
  font-size: 15px;
}
.style-options {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.style-option {
  border: 1px solid var(--graphite-150);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  width: 100%;
}
.style-option.selected {
  border-color: var(--graphite-900);
  background: var(--paper-sheet);
}
.style-option .style-swatch {
  width: 32px;
  height: 36px;
}
.style-option small {
  display: block;
  font-size: 12px;
  color: var(--graphite-500);
}
.rules-card {
  background: var(--paper-sunken);
  padding: 14px;
  width: 100%;
}
.rules-card p {
  font-size: 13px;
  margin-top: 8px;
}
.rules-card .icon {
  margin-right: 7px;
}
.detail-preview {
  flex: 1;
  background: var(--paper-table);
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  padding: 24px 16px;
}
.detail-preview .spread-region {
  flex: 1;
}
.format-current {
  background: var(--sepia-tint);
  border: 1px solid var(--sepia-ink);
  padding: 12px;
  font-size: 13px;
}
.format-current small {
  display: block;
  margin-left: 15px;
  color: var(--graphite-500);
}
.template-rule {
  border-bottom: 1px solid var(--graphite-150);
  padding-bottom: 10px;
  font-size: 12px;
}
.template-rule strong {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 13px;
}
.template-rule p {
  margin-top: 5px;
  color: var(--graphite-500);
}
.page-outline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.page-outline li + li {
  margin-top: 4px;
}
.page-outline button {
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  width: 100%;
  padding: 10px 7px;
  border: 1px solid transparent;
  font-size: 13px;
}
.page-outline button.active {
  border-color: var(--sepia-ink);
  background: var(--sepia-tint);
}
.page-outline small {
  display: block;
  color: var(--graphite-500);
  font-size: 11px;
}
.page-number {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--graphite-150);
  background: var(--paper-sheet);
  min-width: 28px;
  height: 36px;
  font-size: 11px;
}
.review-table {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 24px;
  gap: 16px;
}
.review-table .spread-region {
  padding: 0;
  flex: 1;
}
.review-table .spread-size {
  margin: auto;
}
.page-checks {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.review-item {
  font-size: 13px;
  border-bottom: 1px solid var(--graphite-150);
  padding-bottom: 14px;
}
.review-item-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.review-item-title .button {
  padding: 0;
  min-height: 28px;
  font-size: 12px;
  text-decoration: underline;
}
.review-item p {
  margin-top: 5px;
}
.review-item small {
  font-size: 10px;
  display: block;
  margin-top: 8px;
}
.resolved-list {
  list-style: none;
  padding: 0;
  margin: 0;
  color: var(--graphite-500);
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.resolved-list li::first-letter {
  color: var(--ok);
}
.proof-panel {
  border: 1px solid var(--graphite-150);
  background: var(--paper-sheet);
  padding: 16px 18px;
  border-radius: 4px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
}
.proof-panel.ready {
  border: 1.5px solid var(--graphite-900);
}
.proof-panel h2 {
  font-size: 24px;
}
.proof-panel .button {
  font-size: 13px;
}
.proof-panel .small {
  font-size: 11px;
}
dialog {
  background: var(--paper-sheet);
  color: var(--graphite-900);
  border: 1px solid var(--graphite-300);
  border-radius: 4px;
  padding: 24px;
  max-width: min(680px, calc(100vw - 40px));
  width: 640px;
  max-height: calc(100dvh - 40px);
  overflow: auto;
  box-shadow: 0 20px 80px #2b2b2a40;
}
dialog::backdrop {
  background: #2b2b2a40;
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.dialog-heading h2 {
  font-size: 30px;
}
.dialog-heading .button {
  padding: 6px;
  border: 0;
}
dialog > p {
  margin-bottom: 16px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 16px 0;
}
.field input,
.field textarea {
  padding: 10px 12px;
  border: 1px solid var(--graphite-300);
  background: white;
  width: 100%;
  resize: vertical;
}
.field textarea {
  line-height: 1.6;
}
.checkbox-field {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 20px 0;
}
.checkbox-field input {
  margin-top: 4px;
}
.choice-list,
.menu-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.comparison {
  padding: 16px;
  background: var(--paper-studio);
  margin-bottom: 18px;
  font-size: 13px;
}
.notice,
.error-notice {
  position: fixed;
  bottom: 58px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-width: calc(100vw - 48px);
  padding: 10px 14px;
  background: var(--paper-sheet);
  border: 1px solid var(--blueprint-line);
  border-radius: 4px;
  box-shadow: 0 4px 16px #2b2b2a26;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
}
.notice .button,
.error-notice .button {
  padding: 3px;
  min-height: 28px;
}
.error-notice {
  border-color: var(--problem);
  bottom: 110px;
}
.home {
  display: flex;
  background: var(--paper-studio);
  min-height: 100%;
}
.brand-moment {
  width: 32%;
  object-fit: contain;
  align-self: stretch;
}
.workbooks {
  flex: 1;
  min-width: 0;
  padding: 48px 56px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.home-heading {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
}
.home-heading h1 {
  font-size: 56px;
}
.workbook-card {
  border: 1px solid var(--graphite-150);
  padding: 14px 20px 14px 16px;
  background: var(--paper-sheet);
  display: flex;
  align-items: center;
  gap: 20px;
}
.workbook-card > div:nth-child(2) {
  flex: 1;
  min-width: 0;
}
.workbook-card h2 {
  font-size: 24px;
}
.workbook-card .small {
  margin-top: 5px;
}
.workbook-card .status-tag {
  margin-top: 7px;
}
.cover-mini {
  height: 80px;
  width: 62px;
  background: #0a1428;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.cover-mini img {
  width: 50px;
  height: 50px;
}
.opening {
  padding: 60px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: fixed;
  left: 16px;
  top: -60px;
  background: white;
  padding: 8px;
  z-index: 99;
}
.skip-link:focus {
  top: 8px;
}
.catalog-page-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
  min-width: 0;
  pointer-events: none;
}
.notice {
  pointer-events: none;
}
.notice .button {
  pointer-events: auto;
}
.proof-texts {
  width: 100%;
  max-width: 850px;
  font-size: 12px;
  color: var(--graphite-500);
}
.proof-texts details {
  margin-top: 6px;
}
.proof-texts summary {
  cursor: pointer;
  text-decoration: underline;
}
.proof-texts p {
  white-space: pre-wrap;
  background: var(--paper-sheet);
  padding: 16px;
  max-height: 240px;
  overflow: auto;
  margin-top: 8px;
}
.spread-region {
  overflow: auto;
}
.spread-size {
  overflow: hidden;
}
.library-heading h1 {
  font-size: 48px;
  line-height: 52px;
}
.library-about h1 {
  font-size: 44px;
  line-height: 48px;
}
.review-table {
  position: relative;
  height: 100%;
  min-height: 660px;
  display: block;
  padding: 0 24px 110px;
}
.review-table .spread-region {
  height: 100%;
  padding: 110px 0 0;
}
.review-table .page-checks {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 72px;
}
.review-table .proof-texts {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 15px;
  width: auto;
  max-width: none;
}
.catalog-page-size {
  position: relative;
  flex-shrink: 0;
  box-shadow: 0 6px 16px #33261a29;
}
.catalog-page-size iframe {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: top left;
  border: 0;
  max-width: none;
}
.catalog-page-preview.thumbnail {
  width: 176px;
  height: 228px;
}
.grid-swatch {
  width: 22px;
  height: 22px;
  display: inline-block;
  flex-shrink: 0;
}
.grid-swatch img {
  display: block;
}
.grid-swatch.large,
.style-option .style-swatch.large {
  width: 40px;
  height: 52px;
}
.construction-toggle[aria-checked=true] .switch {
  background: transparent url(/assets/a2/compose-imgSwitchOn.svg) no-repeat center;
}
.construction-toggle[aria-checked=true] .switch:before {
  display: none;
}
@media (min-width: 1251px) {
  .compose-area {
    padding-right: 70px;
  }
  .compose-table .spread-region {
    justify-content: flex-start;
  }
}
@media (max-width: 1250px) {
  .compose-area {
    gap: 20px;
    padding: 36px 24px;
  }
  .margin-notes {
    width: 270px;
  }
  .context-toolbar {
    flex-wrap: wrap;
    white-space: normal;
    max-width: 100%;
    bottom: 80px;
  }
  .workbook-state {
    display: none;
  }
  .library-catalog {
    padding: 28px 32px;
  }
  .catalog-grid {
    gap: 20px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .library-detail {
    padding: 28px;
    gap: 24px;
  }
  .library-about {
    width: 350px;
  }
  .drawer {
    width: 320px;
  }
  .drawer-pages {
    width: 250px;
  }
  .library-heading {
    align-items: flex-start;
  }
  .add-location {
    white-space: normal;
  }
  .catalog-specimen {
    height: 280px;
  }
}
@media (max-width: 1050px) {
  .compose-area {
    flex-direction: column;
  }
  .compose-table {
    width: 100%;
    min-height: 520px;
  }
  .margin-notes {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: start;
  }
  .context-toolbar {
    bottom: 45px;
    max-width: 100%;
  }
  .library-detail {
    flex-direction: column;
  }
  .library-about {
    width: 100%;
  }
  .detail-preview {
    min-height: 420px;
    width: 100%;
  }
  .catalog-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .catalog-specimen {
    height: 250px;
  }
  .mini-page {
    transform: scale(0.85);
  }
  .library-filter {
    gap: 12px;
    flex-wrap: wrap;
  }
  .top-bar {
    padding-left: 16px;
    gap: 10px;
  }
  .top-actions {
    gap: 6px;
  }
  .top-actions .button {
    font-size: 12px;
    padding: 5px 10px;
  }
  .save-status {
    max-width: 125px;
  }
  .bottom-rail {
    gap: 3px;
    padding: 0 8px;
  }
  .workbooks {
    padding: 32px;
  }
  .home-heading {
    flex-wrap: wrap;
  }
}
@media (max-width: 800px) {
  .app {
    height: auto;
    min-height: 100dvh;
    overflow: visible;
  }
  .top-bar {
    height: auto;
    min-height: 62px;
    flex-wrap: wrap;
    padding: 10px 12px;
    gap: 8px;
    position: sticky;
    top: 0;
  }
  .top-divider {
    display: none;
  }
  .workbook-title {
    max-width: calc(100vw - 150px);
  }
  .top-actions {
    width: 100%;
    justify-content: flex-end;
  }
  .save-status {
    margin-right: auto;
    max-width: none;
  }
  .workspace-row {
    min-height: calc(100dvh - 155px);
  }
  .left-rail {
    width: 58px;
  }
  .left-rail > button {
    width: 58px;
    font-size: 10px;
  }
  .drawer {
    width: 260px;
    padding: 14px;
    flex-shrink: 1;
    min-width: 225px;
  }
  .workspace {
    overflow: auto;
  }
  .workspace-compose {
    min-width: 0;
  }
  .compose-area {
    padding: 12px;
    gap: 14px;
  }
  .compose-table {
    min-height: 360px;
  }
  .margin-notes {
    grid-template-columns: 1fr;
  }
  .context-toolbar {
    position: relative;
    bottom: auto;
    left: auto;
    width: 100%;
    box-shadow: 0 2px 4px #2b2b2914;
    max-width: 100%;
    font-size: 11px;
    gap: 4px;
  }
  .compose-table {
    flex-direction: column;
  }
  .spread-region {
    padding: 20px 0;
  }
  .bottom-rail {
    height: auto;
    min-height: 44px;
    flex-wrap: wrap;
    margin-left: 58px;
    position: sticky;
    bottom: 0;
    padding: 5px;
    z-index: 8;
  }
  .bottom-spacer {
    display: none;
  }
  .construction-toggle {
    font-size: 11px;
  }
  .drawer-review {
    width: 250px;
  }
  .review-table {
    padding: 20px 8px;
  }
  .page-checks {
    gap: 6px;
  }
  .page-checks .button {
    font-size: 11px;
  }
  .library-catalog {
    padding: 20px;
  }
  .library-heading {
    display: block;
  }
  .add-location {
    margin: 12px 0;
    display: inline-block;
  }
  .categories {
    gap: 12px;
  }
  .categories > button {
    min-width: 130px;
  }
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .catalog-specimen {
    height: 225px;
  }
  .library-filter input {
    font-size: 12px;
  }
  .library-filter > span {
    display: none;
  }
  .library-filter > label:last-child {
    width: 100%;
  }
  .library-detail {
    padding: 20px;
  }
  .library-about h1 {
    font-size: 32px;
  }
  .brand-moment {
    display: none;
  }
  .workbooks {
    padding: 24px 16px;
  }
  .workbook-card {
    flex-wrap: wrap;
    gap: 12px;
  }
  .workbook-card > .button {
    margin-left: auto;
  }
  .home-heading h1 {
    font-size: 44px;
  }
  .notice,
  .error-notice {
    bottom: 90px;
    width: calc(100vw - 32px);
  }
  .error-notice {
    bottom: 155px;
  }
  .preview-only .compose-table {
    min-height: 500px;
  }
}
