@font-face {
  font-family: "IBM Plex Serif";
  src: url("/demo-fonts/IBMPlexSerif-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/demo-fonts/IBMPlexSans-400-latin.woff2") format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("/demo-fonts/IBMPlexSans-600-latin.woff2") format("woff2");
  font-weight: 600;
  font-display: swap;
}

.journal-demo, .demo-office, .demo-review {
  --ground: #ffffff;
  --ink: #1d2127;
  --soft: #505862;
  --line: #b5bdc6;
  --fence: #dde2e7;
  --quiet: #f5f7f9;
  --deep: #812939;
  --on-deep: #ffffff;
  --journal-heading: "IBM Plex Serif", Georgia, serif;
}

@media (prefers-color-scheme: dark) {
  .journal-demo, .demo-office, .demo-review {
    --ground: #1b1c1e;
    --ink: #eceef0;
    --soft: #b5b9bf;
    --line: #697079;
    --fence: #41464d;
    --quiet: #232427;
    --deep: #eba6ad;
    --on-deep: #301617;
  }
}

.journal-demo {
  border-top: 4px solid var(--deep);
  min-height: 100vh;
  font-size: 16px;
}

.journal-wrap { width: min(70rem, calc(100% - 4rem)); margin-inline: auto; }
.journal-demo main { display: block; padding: 0 0 4.5rem; }
.journal-demo a { text-decoration-color: currentColor; text-underline-offset: .22em; }
.journal-demo a:hover { color: var(--deep); }
.demo-site-nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: .3rem 1.5rem;
  border-bottom: 1px solid var(--ink);
}
.demo-brand { font: 400 1.9rem/1.2 var(--journal-heading); letter-spacing: -.045em; text-decoration: none; }
.demo-site-nav nav { display: flex; flex-wrap: wrap; gap: 0 1.65rem; }
.demo-site-nav nav a {
  padding: 1.35rem 0 1.15rem;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  text-decoration: none;
  font-size: .9375rem;
  font-weight: 600;
}
.demo-site-nav nav a[aria-current="page"] { border-bottom-color: var(--deep); color: var(--deep); }

.journal-title { padding: clamp(2.75rem, 6vw, 5.4rem) 0 clamp(2.2rem, 5vw, 3.55rem); }
.journal-title h1 {
  font: 400 clamp(2.65rem, 6vw, 5.1rem)/1.04 var(--journal-heading);
  letter-spacing: -.045em;
  overflow-wrap: normal;
  max-width: 18ch;
}
.journal-lead {
  max-width: 46rem;
  margin: 1.1rem 0 0;
  font: 400 clamp(1.1rem, 2vw, 1.36rem)/1.54 var(--journal-heading);
  color: var(--soft);
}
.journal-kicker { color: var(--deep); font-size: .85rem; font-weight: 600; margin-bottom: .85rem; }
.feature-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(10rem, 14rem);
  gap: 2rem;
  align-items: end;
}
.feature-intro-links {
  display: grid;
  justify-items: start;
  align-content: center;
  gap: .55rem;
  padding: .3rem 0 .3rem 1.2rem;
  border-left: 1px solid var(--line);
  font-size: .9375rem;
  font-weight: 600;
}
.feature-intro-links a { color: var(--deep); }

.feature-stages { border-block: 1px solid var(--line); }
.feature-stages ol {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  list-style: none;
  margin: 0;
  padding: 0;
}
.feature-stages li + li { border-left: 1px solid var(--fence); }
.feature-stages a {
  display: block;
  padding: .82rem .7rem;
  text-align: center;
  font-size: .9375rem;
  font-weight: 600;
  text-decoration: none;
}
.feature-stages a:hover { text-decoration: underline; }

.feature-index {
  display: grid;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.2rem);
  align-items: start;
  padding-top: 2.75rem;
}
.feature-contents { position: sticky; top: 1.25rem; }
.feature-contents h2 { margin: 0; padding-bottom: .55rem; border-bottom: 1px solid var(--line); }
.feature-contents ul { list-style: none; padding: .45rem 0 0; margin: 0; }
.feature-contents a {
  display: block;
  padding: .44rem 0;
  color: var(--soft);
  font-size: .9375rem;
  text-decoration: none;
}
.feature-contents a:hover { color: var(--deep); text-decoration: underline; }
.feature-index-title {
  margin: 0 0 1.6rem;
  font: 400 clamp(1.85rem, 4vw, 2.7rem)/1.12 var(--journal-heading);
  letter-spacing: -.028em;
}
.feature-section { display: block; scroll-margin-top: 1.25rem; border-top: 1px solid var(--line); padding-top: .9rem; }
.feature-section + .feature-section { margin-top: 2.7rem; }
.feature-section h3 {
  margin: 0 0 .55rem;
  color: var(--ink);
  font: 400 clamp(1.4rem, 3vw, 1.8rem)/1.2 var(--journal-heading);
}
.feature-section > p { color: var(--soft); margin: 0 0 .6rem; max-width: 64ch; }
.feature-entries { margin: 0; }
.feature-entries > div {
  display: grid;
  grid-template-columns: minmax(10rem, 30%) minmax(0, 1fr);
  align-items: baseline;
  gap: .35rem 1.3rem;
  padding: .85rem 0;
  border-bottom: 1px solid var(--fence);
}
.feature-entries dt { font-weight: 600; }
.feature-entries dd { margin: 0; color: var(--soft); }

.demo-capacity-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: 1.4rem; }
.demo-capacity-actions form { display: block; margin: 0; }

.demo-journal-title h1 { max-width: none; }
.demo-roles h2 {
  border-block: 1px solid var(--line);
  margin: 0;
  padding: .72rem 0;
  font: 400 1.55rem/1.25 var(--journal-heading);
}
.demo-role-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: clamp(1.5rem, 4vw, 3rem);
  margin-top: .6rem;
}
.demo-role-group h3 { margin: .65rem 0 .25rem; color: var(--soft); font-size: .9rem; font-weight: 600; }
.demo-role-group ul { list-style: none; margin: 0; padding: 0; }
.demo-role-group li { border-bottom: 1px solid var(--fence); }
.demo-role-group button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0 .6rem;
  width: 100%;
  margin: 0;
  padding: .65rem .25rem;
  text-align: left;
  white-space: normal;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.demo-role-group button:hover strong { color: var(--deep); text-decoration: underline; text-underline-offset: .22em; }
.demo-role-group button:focus-visible { outline-offset: -2px; }
.journal-demo > .demo-site-footer {
  max-width: 70rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 1.5rem;
  margin-top: 0;
  padding: 1.1rem 0 2rem;
  border-top: 1px solid var(--line);
  color: var(--soft);
  font-size: .9rem;
}
.demo-site-footer p { margin: 0; }

@media (max-width: 760px) {
  .journal-wrap { width: calc(100% - 2rem); }
  .feature-intro, .feature-index { grid-template-columns: 1fr; }
  .feature-intro { gap: 1.25rem; }
  .feature-intro-links { grid-template-columns: repeat(2, max-content); column-gap: 1.1rem; border: 0; padding: 0; }
  .feature-contents { position: static; }
  .feature-contents ul { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 1rem; }
  .feature-stages ol { display: flex; flex-wrap: wrap; }
  .feature-stages a { padding: .65rem .5rem; }
  .feature-stages li + li { border: 0; }
  .demo-role-groups { grid-template-columns: 1fr; gap: 1.35rem; }
}

@media (max-width: 480px) {
  .demo-site-nav nav { gap: 0 1rem; }
  .demo-site-nav nav a { padding-block: .92rem .8rem; }
  .demo-brand { font-size: 1.5rem; }
  .feature-intro-links { grid-template-columns: 1fr; }
  .feature-entries > div { grid-template-columns: 1fr; }
}

.demo-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .55rem 1.25rem;
  padding: .5rem 20px;
  background: var(--quiet);
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.demo-bar > a:first-child { font-weight: 600; }
.demo-bar-actions { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-inline-start: auto; }
.demo-bar form { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin: 0; min-width: 0; }
.demo-bar form label, .demo-bar form select { display: inline; margin: 0; width: auto; max-width: 100%; }
@media (max-width: 600px) {
  .demo-bar form { order: 1; flex: 1 1 100%; }
  .demo-bar-actions { margin-inline-start: 0; }
  .demo-bar select { flex: 1 1 9rem; min-width: 0; }
}

/* The demo office uses the same editorial typography and quiet rules as the public pages. */
.demo-office {
  --chosen: #8129390d;
  --chosen-edge: #81293970;
  --office-stage-active: #59475c;
  --office-stage-pending: #735310;
  --office-stage-accepted: #286544;
  --office-stage-declined: #812939;
}
@media (prefers-color-scheme: dark) {
  .demo-office {
    --chosen: #eba6ad19;
    --chosen-edge: #eba6ad90;
    --office-stage-active: #dbc4e4;
    --office-stage-pending: #efd08a;
    --office-stage-accepted: #9bdfb8;
    --office-stage-declined: #eba6ad;
  }
}
.demo-office > .bar { border-top: 3px solid var(--deep); gap: .35rem 1rem; }
.demo-office .bar .mark { color: var(--ink); font: 400 1.18rem/1.25 var(--journal-heading); }
.demo-office .places a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; }
.demo-office .places a:hover { border-bottom-color: var(--line); }
.demo-office .places a[aria-current="page"] { border-bottom-color: var(--deep); color: var(--deep); background: transparent; }
.demo-office > main { padding-top: 1.55rem; }
.demo-office > main h1 { font: 400 clamp(1.6rem, 4vw, 2.25rem)/1.14 var(--journal-heading); }
.demo-office .views { border-bottom: 1px solid var(--fence); }
.demo-office .views a { border: 0; border-bottom: 2px solid transparent; border-radius: 0; padding-block: .4rem; }
.demo-office .views a:hover { text-decoration: underline; }
.demo-office .views a[aria-current] { border-bottom-color: var(--deep); color: var(--deep); background: transparent; }
.demo-office .tag { background: transparent; color: var(--soft); padding-inline: .55rem 0; font-weight: 600; }
.demo-office .tag::before { border: 0; border-radius: 0; background: currentColor; width: 2px; inset-block: .22rem; }
.demo-office .tag.new, .demo-office .tag.decision { color: var(--office-stage-pending); }
.demo-office .tag.screening, .demo-office .tag.review, .demo-office .tag.revision { color: var(--office-stage-active); }
.demo-office .tag.accepted { color: var(--office-stage-accepted); }
.demo-office .tag.declined { color: var(--office-stage-declined); }

.demo-office main.reading { padding-top: clamp(1.75rem, 5vw, 3.25rem); }
.demo-office main.reading > :is(h1, .head, .request-title) { padding-bottom: .85rem; border-bottom: 1px solid var(--line); }
.demo-office main.reading h2,
.demo-office main.reading .demo-contact legend {
  font: 400 1.3rem/1.25 var(--journal-heading);
  color: var(--ink);
}
.demo-office main.reading :is(input:not([type=checkbox]):not([type=radio]), select, textarea) { border-radius: 2px; }
.demo-office form[data-layout] { gap: 1rem; }
.demo-office .form-read { border-width: 0 0 1px; border-radius: 0; }
.demo-office .form-read > header { min-height: 0; padding: 0 0 .5rem; border: 0; }
.demo-office .form-read .body { padding: 0 0 .9rem; }
.demo-office .form-read-pick input { min-width: 0; }
.demo-office .form-steps { border-bottom: 1px solid var(--line); margin-bottom: 0; }
.demo-office .form-steps button {
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: .55rem .75rem;
  white-space: normal;
}
.demo-office .form-steps button[aria-current] { border-color: var(--deep); color: var(--deep); background: transparent; }
.demo-office .form-step { gap: .9rem; }
.demo-office .form-step label:not(.check), .demo-office [data-asks] label:not(.check) { font-weight: 500; }
.demo-office .form-step small, .demo-office [data-asks] small { font-weight: 400; }
.demo-office .form-send { padding-top: .85rem; border-top: 1px solid var(--fence); }

.demo-office [data-asks] { gap: .9rem; }
.demo-office .demo-contact { padding-top: .65rem; border-top: 1px solid var(--fence); gap: .65rem; }
.demo-office .demo-contact legend { padding-inline-end: .7rem; }
.demo-contact-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; }
.demo-contact p { margin: 0; }
.demo-office .demo-screenshot-heading { border-top: 1px solid var(--fence); margin: .45rem 0 0; padding-top: .8rem; }
.demo-screenshot-heading small { color: var(--soft); font: 400 .85rem "IBM Plex Sans", system-ui, sans-serif; margin-inline-start: .35rem; }
.demo-office .screen-card { border-radius: 0; }
.demo-office .screen-head { background: var(--ground); }
.demo-office .mark-num { background: var(--deep); color: var(--on-deep); }
.demo-office .request-kicker { color: var(--soft); font-weight: 600; }
.demo-office .request-state { color: var(--deep); margin: .65rem 0 0; font-weight: 600; }
.demo-office .demo-request-record ul { margin-top: 0; padding-inline-start: 1.2rem; }
.demo-office .feedback-float summary { box-shadow: none; border-radius: 2px; }
.demo-office .feedback-annotation > summary { border: 0; padding-inline: 0; font: 400 1.15rem var(--journal-heading); }
.demo-office .feedback-reply[open] form { margin-top: .55rem; }

@media (max-width: 540px) {
  .demo-contact-fields { grid-template-columns: 1fr; }
}

.integration-index { display: flex; flex-wrap: wrap; gap: .5rem 1.15rem; padding: .75rem 0; }
.integration-group { scroll-margin-top: 1.25rem; margin-top: 1.65rem; }
.integration-group h4 { font: 400 1.3rem var(--journal-heading); margin: 0 0 .4rem; }
.demo-office { --demo-row: color-mix(in srgb, var(--quiet) 70%, var(--ground)); }
.demo-office :is(button, .button, details > summary):not(.hide),
.demo-review :is(button, .button, details > summary):not(.hide) {
  border-radius: 6px;
  border-bottom-width: 1px;
  min-height: 34px;
  font-weight: 500;
}
.demo-office button:active, .demo-office .button:active { margin-top: 0; }
.demo-office form > button:not([hidden]), .demo-review form > button:not([hidden]) { justify-self: start; max-width: 100%; }
.demo-office :is(.demo-quiet, .table-sort, .table-pin, .demo-profile > summary, .demo-role-picker > summary),
.demo-review .demo-role-picker > summary {
  border: 1px solid transparent;
  background: transparent;
  font: inherit;
  color: inherit;
  padding: .34rem .55rem;
  cursor: pointer;
}
.demo-office :is(.demo-quiet, .table-sort, .table-pin, .demo-profile > summary, .demo-role-picker > summary):hover,
.demo-review .demo-role-picker > summary:hover { background: var(--quiet); border-color: var(--fence); }
.demo-role-picker > summary, .demo-profile > summary, .demo-viewing, .demo-editor-name { display: inline-flex; align-items: center; gap: .55rem; }
.demo-viewing { flex-shrink: 0; margin: 0; }
.demo-viewing small, .demo-role-options small { display: block; color: var(--soft); }
.demo-avatar {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  inline-size: 2rem;
  block-size: 2rem;
  border-radius: 50%;
  background: var(--quiet);
  color: var(--deep);
  font-size: .75rem;
  font-weight: 600;
}
.demo-avatar[data-person]:not([data-person=""]) {
  background: var(--quiet) url("/demo-personas.jpg") var(--avatar-x, 0%) var(--avatar-y, 0%)/400% 300% no-repeat;
  color: transparent;
}
.demo-avatar[data-person="lead"], .demo-avatar[data-person="layout"], .demo-avatar[data-person="ines"] { --avatar-x: 33.333%; }
.demo-avatar[data-person="editor"], .demo-avatar[data-person="proofreader"], .demo-avatar[data-person="wei"] { --avatar-x: 66.667%; }
.demo-avatar[data-person="section"], .demo-avatar[data-person="reviewer"] { --avatar-x: 100%; }
.demo-avatar:is([data-person="copyeditor"], [data-person="layout"], [data-person="proofreader"], [data-person="reviewer"]) { --avatar-y: 50%; }
.demo-avatar:is([data-person="pat"], [data-person="ines"], [data-person="wei"]) { --avatar-y: 100%; }
.demo-role-group button { grid-template-columns: auto minmax(0, 1fr) auto; }
.demo-role-group button .demo-avatar { grid-area: 1 / 1 / 3 / 2; align-self: center; inline-size: 2.4rem; block-size: 2.4rem; }
.demo-role-group button strong { grid-area: 1 / 2 / 2 / 3; color: var(--ink); font-size: 1rem; }
.demo-role-group .demo-role-person { grid-area: 2 / 2 / 3 / 3; color: var(--soft); font-size: .88rem; }
.demo-role-group .demo-role-arrow { grid-area: 1 / 3 / 3 / 4; align-self: center; color: var(--deep); }
.demo-role-options { display: grid; gap: .25rem; }
.demo-dialog .demo-role-options button {
  display: flex;
  align-items: center;
  gap: .65rem;
  text-align: start;
  border: 1px solid transparent;
  padding: .5rem;
  width: 100%;
}
.demo-role-options button:hover, .demo-role-options button[aria-current] { background: var(--quiet); border-color: var(--fence); }

.demo-dialog {
  padding: 0;
  inline-size: min(42rem, calc(100% - 1.5rem));
  max-block-size: min(48rem, 90dvh);
  color: var(--ink);
  background: var(--ground);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 16px 65px #121a2e33;
}
.demo-office dialog::backdrop, .demo-dialog::backdrop {
  background: rgb(25 36 49 / 23%);
  backdrop-filter: blur(9px) saturate(85%);
}
.demo-dialog.demo-dialog-wide { inline-size: min(72rem, calc(100% - 2rem)); }
.demo-dialog.demo-dialog-profile { inline-size: min(64rem, calc(100% - 2rem)); }
.demo-dialog-profile > .demo-dialog-content { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1.3rem; }
.demo-dialog-profile .demo-dialog-content > section + section { border-top: 0; border-inline-start: 1px solid var(--fence); padding: 0 0 0 1.3rem; }
@media (max-width: 680px) {
  .demo-dialog-profile > .demo-dialog-content { grid-template-columns: 1fr; }
  .demo-dialog-profile .demo-dialog-content > section + section { border-inline-start: 0; border-top: 1px solid var(--fence); padding: 1rem 0 0; }
}
.demo-office .task-file-dialog:not(.task-file-expanded) { inline-size: min(92rem, calc(100% - 3rem)); max-inline-size: none; height: 91dvh; }
.demo-office .task-file-dialog.agreement-dialog { inline-size: min(69rem, calc(100% - 2rem)); }
.record-sections { display: grid; gap: 1.5rem; }
.production-workspace { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.demo-dialog-content .production-workspace > section {
  display: grid; align-content: start; gap: .8rem; border: 1px solid var(--line);
  border-top: 3px solid var(--deep); padding: 1rem; min-width: 0;
}
.demo-dialog-content .production-workspace > section:first-child { grid-column: 1 / -1; }
.production-workspace h3 { margin: 0; font: 400 1.25rem var(--journal-heading); }
.production-workspace :is(form, details) { margin: 0; }
.production-workspace form.line { display: grid; justify-items: start; gap: .65rem; }
.production-workspace input[type=file] { max-width: 100%; }
.production-workspace p { margin: 0; }
@media (max-width: 650px) {
  .production-workspace { grid-template-columns: 1fr; }
  .demo-office .task-file-dialog:not(.task-file-expanded) { inline-size: calc(100% - 1rem); }
}
body:has(> .demo-dialog[open]) { overflow: hidden; }
.demo-dialog > header {
  position: sticky;
  inset-block-start: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-bottom: 1px solid var(--line);
  background: var(--ground);
}
.demo-dialog > header p { margin: 0 0 .3rem; color: var(--deep); font-size: .85rem; font-weight: 600; }
.demo-dialog > header h2 { margin: 0; font: 400 clamp(1.4rem,4vw,1.9rem)/1.18 var(--journal-heading); overflow-wrap: anywhere; }
.demo-dialog-content { padding: 1rem 1.4rem 1.4rem; display: grid; gap: .8rem; }
.demo-dialog-content > section:empty { display: none; }
.demo-dialog-content section + section { border-top: 1px solid var(--fence); padding-top: .65rem; }
.demo-dialog-content h3 { font-weight: 600; color: var(--ink); }
.demo-dialog .demo-dialog-close { flex: 0 0 auto; padding: 0; inline-size: 2rem; border: 0; font-size: 1.4rem; }
.demo-dialog .demo-dialog-close:hover { background: var(--quiet); }

[data-icon]::before {
  content: "";
  display: inline-block;
  inline-size: 1em;
  block-size: 1em;
  margin-inline-end: .4em;
  vertical-align: -.13em;
  background: currentColor;
  mask: var(--action-icon) center/contain no-repeat;
}
[data-icon="download"] { --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12 3v12m-4-4 4 4 4-4M4 16v4h16v-4'/%3E%3C/svg%3E"); }
[data-icon="arrow"], [data-icon="back"], [data-icon="chevron"] { --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 12h15m-6-6 6 6-6 6'/%3E%3C/svg%3E"); }
[data-icon="back"]::before { transform: rotate(180deg); }
[data-icon="chevron"]::before { transform: rotate(90deg); }
[data-icon="filter"] { --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M4 6h16M7 12h10m-7 6h4'/%3E%3C/svg%3E"); }

.queue-dashboard { border-block: 1px solid var(--fence); gap: 0; }
.queue-dashboard > header { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .6rem; padding: .8rem 0; }
.queue-dashboard h2 { margin: 0; font: 400 1.5rem var(--journal-heading); }
.queue-totals { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1px; background: var(--fence); border: 1px solid var(--fence); border-radius: 7px; overflow: hidden; }
.queue-totals a { background: var(--quiet); padding: .65rem .9rem; text-decoration: none; }
.queue-totals a:hover { color: var(--deep); background: var(--ground); }
.queue-totals strong { display: block; font: 400 1.55rem var(--journal-heading); }
.queue-chart-grid { display: grid; grid-template-columns: 1fr 1fr .84fr; gap: 1.2rem; padding: 1rem 0; }
.queue-chart-grid .queue-chart { border: 0; padding: 0; align-content: start; min-width: 0; }
.queue-chart h3 { font-size: .9rem; margin: 0; color: var(--ink); font-weight: 600; }
.queue-chart ul { padding: 0; margin: 0; list-style: none; }
.queue-chart li > a { display: grid; grid-template-columns: minmax(0,1.25fr) minmax(1.25rem,1fr) auto; gap: .5rem; align-items: center; padding: .28rem; text-decoration: none; }
.queue-chart li > a:hover, .queue-chart a[aria-current] { background: var(--quiet); text-decoration: underline; }
.queue-chart meter { width: 100%; height: .65rem; }
.queue-chart meter::-webkit-meter-bar { background: var(--fence); border: 0; border-radius: 2px; height: .5rem; }
.queue-chart meter::-webkit-meter-optimum-value { background: var(--deep); }
.queue-chart meter::-moz-meter-bar { background: var(--deep); }
.queue-chart ul.queue-issues li > a { grid-template-columns: minmax(0,1fr) auto; }
.queue-chart > a { justify-self: start; }
#queue-results, #publication-issues, #production-queue, [id^="issue-"] { scroll-margin-top: 4.5rem; }
tr[id^="issue-"]:target, .demo-editorial-table tr.demo-selected-row { background: var(--chosen); }

.demo-editorial-table th { background: var(--quiet); color: var(--ink); font-weight: 600; padding: .65rem .9rem; }
.demo-editorial-table td { vertical-align: middle; padding: .75rem .9rem; }
.demo-editorial-table tbody tr:nth-child(even) { background: var(--demo-row); }
.demo-editorial-table tbody tr:hover { background: var(--chosen); }
.demo-editorial-table tbody td:first-child > a { text-decoration-color: transparent; font-weight: 600; }
.demo-editorial-table tbody td:first-child > a:hover { text-decoration: underline; }
.demo-editorial-table .queue-attention { margin-top: .15rem; font-weight: 500; }
.demo-notice-table .unread td { font-weight: 400; }
.notice-new { display: inline-block; color: var(--deep); font-size: .76rem; font-weight: 600; margin-inline-end: .2rem; }
.demo-office .demo-language-picker { inline-size: min(100%, 31rem); }
.demo-office .demo-language-picker .checks { max-block-size: 16rem; overflow: auto; border: 1px solid var(--fence); padding: .5rem .85rem; }
.demo-office label:has(> input[type="checkbox"]):not(.check) { display: flex; gap: .45rem; align-items: baseline; }
.demo-office .demo-payment-section { max-width: 62rem; }
.demo-office .demo-payment-section h2 { font: 400 1.4rem var(--journal-heading); }
.demo-office .demo-payment-form fieldset { border-top: 1px solid var(--fence); padding-top: .7rem; }
.demo-office .demo-payment-form legend { padding-inline-end: .65rem; font-weight: 600; }
.demo-office .demo-payment-form textarea { min-height: 4.2rem; }
.demo-office .demo-lock-note { background: color-mix(in srgb, #d19c28 15%, var(--ground)); border-inline-start: 4px solid #ae7b14; color: var(--ink); }
.demo-office .demo-lock-note strong { display: block; }
.demo-office .demo-locked { opacity: .83; }
.demo-connection-preview { padding: 1.1rem 1.25rem; border: 1px solid var(--fence); border-top: 3px solid var(--deep); }
.demo-connection-preview h2 { font: 400 1.65rem var(--journal-heading); }
.demo-connection-preview p { max-width: 70ch; }

@media (max-width: 820px) {
  .queue-chart-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .queue-totals { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .queue-chart-grid { grid-template-columns: 1fr; }
  .demo-editorial-table td { padding-inline: .55rem; }
}

.table-tools { display: flex; flex-wrap: wrap; gap: .45rem .65rem; align-items: center; margin: .35rem 0 .45rem; }
.table-tools input[type="search"] { width: min(18rem, 100%); }
.table-tools select { width: auto; max-width: 15rem; }
.table-tools [hidden] { display: none; }
.table-result-count { margin-inline-start: auto; white-space: nowrap; font-size: .85rem; }
.demo-office .table-sort { text-align: inherit; padding: 0 .2rem; min-height: 1.7rem; white-space: normal; }
.table-sort::after { content: " ↕"; opacity: .55; }
th[aria-sort="ascending"] .table-sort::after { content: " ↑"; opacity: 1; }
th[aria-sort="descending"] .table-sort::after { content: " ↓"; opacity: 1; }
.demo-office .table-pin-cell { padding-inline: .35rem; text-align: center; width: 1%; }
.demo-office .table-pin { padding: .12rem .4rem; color: var(--soft); }
.demo-office .table-pinned { background: var(--chosen); }
.demo-office .table-pinned .table-pin { color: var(--deep); }
.demo-office tr[hidden] { display: none; }

.demo-office.appearance-accent-navy { --deep: #24466f; }
.demo-office.appearance-accent-teal { --deep: #135d58; }
.demo-office:is(.appearance-accent-navy, .appearance-accent-teal) { --chosen: color-mix(in srgb, var(--deep) 8%, var(--ground)); }
@media (prefers-color-scheme: dark) {
  .demo-office.appearance-accent-navy { --deep: #a8caff; }
  .demo-office.appearance-accent-teal { --deep: #85d5c7; }
}
.demo-office.appearance-template-compact:not(.appearance-density-spacious) main { gap: 15px; }
.demo-office.appearance-density-compact .demo-editorial-table td { padding-block: .45rem; }
.demo-office.appearance-density-spacious .demo-editorial-table td { padding-block: 1rem; }
.demo-office.appearance-labels-text .tag { padding-inline-start: 0; }
.demo-office.appearance-labels-text .tag::before, .demo-office.appearance-labels-filled .tag::before { display: none; }
.demo-office.appearance-labels-filled .tag { background: color-mix(in srgb, currentColor 12%, var(--ground)); padding-inline: .45rem; border-radius: 4px; }
.demo-office.appearance-buttons-soft :is(button,.button):not(.main,.danger,.demo-quiet,.table-sort,.table-pin) { background: var(--quiet); }

.demo-reader-link { margin-top: 1rem; }
.demo-reader-link a { color: var(--deep); font-weight: 600; }

.demo-office label[hidden] { display: none; }
.demo-country-picker { display: grid; grid-template-columns: minmax(0, 22rem) auto; gap: .4rem .75rem; align-items: end; justify-content: start; }
.demo-country-picker .demo-country-chips, .demo-country-picker .soft { grid-column: 1 / -1; }
.demo-country-picker .soft:empty { display: none; }
.demo-country-chips { display: flex; flex-wrap: wrap; gap: .35rem; }
.demo-country-chips button { background: var(--quiet); color: var(--ink); }
[data-icon="pin"] { --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15 4 5 5-3 1-3 5-1 3-7-7 3-1 5-3zm-6 11-5 5'/%3E%3C/svg%3E"); }
.table-pin[data-icon]::before { margin: 0; }

.demo-role-group button { min-block-size: 3.6rem; }
.demo-role-group button strong, .demo-role-person { overflow-wrap: anywhere; }
.demo-dialog-wide { inline-size: min(66rem, calc(100% - 2rem)); }
.demo-dialog-wide > header, .demo-dialog-wide > .demo-dialog-content {
  padding: clamp(1rem, 3vw, 2.25rem);
}
.demo-dialog-wide > .demo-dialog-content { gap: 1.5rem; }
.demo-dialog-wide .said { max-inline-size: 75ch; }
.demo-people-actions { display: flex; align-items: center; justify-content: end; gap: .5rem 1rem; flex-wrap: wrap; }
.demo-people-actions > details { display: block; margin: 0; }
.demo-people-actions > details > summary { border: 0; box-shadow: none; background: none; padding: .4rem .5rem; }
.demo-people-actions > details > summary:hover { background: var(--chosen); }
.demo-people-table td:last-child { inline-size: 15rem; }
.screen-instruction { margin: .25rem 0 0; color: var(--soft); font-size: .86rem; font-weight: 400; }
@media (min-width: 1060px) {
  .queue-chart-grid { grid-template-columns: 1.2fr 1.15fr .9fr 1fr; }
}
.queue-chart li > a:focus-visible, .queue-chart li > a:hover { background: var(--chosen); }
.queue-chart li > a[aria-current] { box-shadow: inset 3px 0 var(--deep); }
.queue-active-filter { margin: 0; padding: .65rem 1rem; background: var(--chosen); }
.queue-active-filter a { margin-inline-start: .65rem; }
.feature-matrix { inline-size: 100%; border-collapse: collapse; }
.feature-matrix th, .feature-matrix td { text-align: start; padding: .7rem .8rem; vertical-align: top; }
.feature-matrix thead { background: var(--quiet); }
.feature-matrix tbody th { inline-size: 30%; font-weight: 600; }
.feature-matrix tbody tr:nth-child(even) { background: var(--quiet); }
.release-check-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: .85rem; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.release-check-grid li { padding: 1rem 1.2rem; border: 1px solid var(--fence); border-block-start: 3px solid var(--deep); }
.release-check-grid strong { font-size: 1rem; }
.release-check-grid p { margin: .4rem 0 0; color: var(--soft); }
@media (max-width: 560px) { .release-check-grid { grid-template-columns: 1fr; } }
.demo-inbox-record { inline-size: min(72rem, 100%); }
.feedback-screen { margin: 0; border: 1px solid var(--fence); }
.feedback-screen figcaption, .feedback-screen-caption { padding: .7rem 1rem; }
.feedback-screen-image { position: relative; background: var(--quiet); }
.feedback-screen-image img { display: block; width: 100%; height: auto; }
.feedback-screen-image canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.feedback-screen-image canvas:focus-visible { outline-offset: -3px; }
.demo-change-pointer { color: var(--deep); font: 600 2.8rem/.85 var(--journal-sans, system-ui); display: block; width: max-content; pointer-events: none; }
.work-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: var(--fence); border: 1px solid var(--fence); }
.work-summary a { background: var(--quiet); padding: .7rem .9rem; text-decoration: none; }
.work-summary strong { display: block; font: 400 1.65rem var(--journal-heading); }
.work-summary a:hover { background: var(--chosen); }
.author-next { border: 1px solid var(--fence); padding: 1rem; gap: .65rem; }
.author-next h2 { font: 400 1.35rem var(--journal-heading); }
.author-next ul { margin: 0; padding: 0; list-style: none; }
.author-next li + li { border-block-start: 1px solid var(--fence); margin-block-start: .55rem; padding-block-start: .55rem; }
.author-next small { display: block; color: var(--soft); }
#needs-author, #submission-drafts, #your-papers { scroll-margin-top: 4rem; }
.demo-office main.demo-inbox-record { max-width: min(76rem, 100%); }
@media (min-width: 800px) {
  .demo-inbox-record .feedback-screen form {
    grid-template-columns: minmax(0, 1fr) minmax(14rem, 25%);
    align-items: start;
    gap: 0;
  }
  .demo-inbox-record .feedback-screen-caption { border-inline-start: 1px solid var(--fence); }
}
.feedback-screen-caption .line { align-items: center; }
.demo-view-control { justify-content: space-between; padding: .75rem 0; border-block-end: 1px solid var(--fence); }
.demo-view-control p { margin: .25rem 0 0; }
.queue-view-switch { margin-block: -.25rem 0; }
.queue-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: .55rem .75rem; }
.queue-toolbar > .table-tools { flex: 1 1 28rem; margin: 0; }
.queue-toolbar > details { margin: 0; }
.queue-toolbar .queue-selection { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; font-size: .9rem; color: var(--soft); }
.queue-toolbar .queue-selection span { background: var(--chosen); padding: .2rem .55rem; border-radius: 4px; }
.queue-toolbar .table-result-count { margin-inline-start: 0; }
.queue-toolbar + .demo-editorial-table { margin-block-start: 0; }
.integrity-panel { padding-block: .6rem; }
.integrity-providers { display: grid; gap: .5rem; margin-block: .85rem; }
.integrity-provider { display: flex; flex-wrap: wrap; align-items: start; justify-content: space-between; gap: .55rem 1rem; border-block-start: 1px solid var(--fence); padding-block: .75rem; }
.integrity-provider h4, .integrity-provider p { margin: 0 0 .35rem; }
[data-icon="more"] { --action-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='5' cy='12' r='2'/%3E%3Ccircle cx='12' cy='12' r='2'/%3E%3Ccircle cx='19' cy='12' r='2'/%3E%3C/svg%3E"); }
.demo-office :is(button, a.button, details > summary):not([aria-current], [aria-pressed="true"], [aria-selected="true"]) { border-radius: 6px; }
.demo-office .demo-quiet, .demo-office .table-pin, .demo-office .table-sort { min-block-size: 2rem; }
.demo-office .record-action-choices { display: flex; flex-wrap: wrap; gap: .5rem; border-block-end: 1px solid var(--fence); padding-block-end: .85rem; }
.record-action-choices button[aria-pressed="true"] { background: var(--chosen); border-color: var(--deep); }
.record-action-pane [hidden] { display: none; }
.profile-identities { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(12rem,1fr)); margin: .9rem 0 0; }
.profile-identities dt { color: var(--soft); font-size: .88rem; }
.profile-identities dd { margin: .15rem 0 0; overflow-wrap: anywhere; }
.profile-identities small { display: block; color: var(--soft); }
.demo-office main:has(form[data-asks]) { max-width: 76rem; }
.demo-office .screen-card { grid-template-columns: minmax(0, 1fr); }
.demo-office .screen-card .pic { border-right: 0; border-bottom: 1px solid var(--fence); background: var(--quiet); }
.demo-office .screen-card canvas.mark-up { max-block-size: none; }
.demo-office .screen-card:not([data-zoom]) canvas.mark-up, .demo-office .screen-card[data-zoom="100"] canvas.mark-up { inline-size: 100%; }
.demo-office .screen-card .side { gap: .65rem; padding: .75rem 1rem; }
.demo-office .screen-card .side > label { max-width: 32rem; }
.demo-office .screen-card .mark-tools > select { width: auto; }
.demo-office .screen-card .mark-tools { gap: .4rem; }

.demo-role-cell { display: flex; align-items: center; gap: .75rem; justify-content: space-between; }
.demo-role-cell > span { flex: 1; }
.demo-role-cell > details > summary { font-size: .85rem; white-space: nowrap; color: var(--deep); }
.queue-chart-grid { grid-template-columns: 1.2fr 1fr; gap: 1rem; }
.queue-chart-grid .queue-chart { padding: .9rem 1rem; background: var(--ground); border: 1px solid var(--fence); }
.queue-pipeline { grid-row: span 2; }
.queue-chart h3 { margin-bottom: .35rem; }
.queue-segments { display: flex; height: 1.4rem; gap: 2px; margin: .4rem .25rem; }
.queue-segments[hidden] { display: none; }
.queue-segments > span { flex-basis: 0; background: var(--chart-tone); min-inline-size: 2px; }
.queue-chart [data-tone="burgundy"] { --chart-tone: #953e56; }
.queue-chart [data-tone="blue"] { --chart-tone: #465e90; }
.queue-chart [data-tone="teal"] { --chart-tone: #287374; }
.queue-chart [data-tone="gold"] { --chart-tone: #9d6a29; }
.queue-chart [data-tone="plum"] { --chart-tone: #744a86; }
.queue-chart [data-tone="green"] { --chart-tone: #537541; }
.queue-chart [data-tone="slate"] { --chart-tone: #52677a; }
.queue-chart [data-tone="rose"] { --chart-tone: #a95857; }
.queue-chart meter::-webkit-meter-optimum-value { background: var(--chart-tone); }
.queue-chart meter::-moz-meter-bar { background: var(--chart-tone); }
.queue-pipeline li > a { grid-template-columns: minmax(0,1fr) 3.5rem 2.3rem; }
.queue-pipeline li > a span::before { content: ""; display: inline-block; inline-size: .55em; block-size: .55em; background: var(--chart-tone); margin-inline-end: .55em; }
.queue-pipeline li small, .queue-pipeline li strong { text-align: end; font-variant-numeric: tabular-nums; }
@media (max-width: 720px) {
  .queue-chart-grid { grid-template-columns: 1fr; }
  .queue-pipeline { grid-row: auto; }
}
