:root {
  --black: #050505;
  --ink: #090909;
  --panel: #0e0e0e;
  --panel-raised: #141414;
  --white: #f5f5f0;
  --soft-white: #deded8;
  --muted: #9a9a94;
  --line: #2b2b2b;
  --strong-line: #545454;
  --reading: Georgia, "Times New Roman", serif;
  --interface: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
  font-family: var(--interface);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--interface);
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

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

button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: inherit;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  min-height: 76px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 0 clamp(24px, 4vw, 68px);
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.94);
  backdrop-filter: blur(14px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--white);
  font-size: 1.14rem;
  font-weight: 800;
  letter-spacing: -0.045em;
  text-decoration: none;
}

.brand-mark {
  width: 18px;
  height: 18px;
  display: block;
  border: 1.5px solid var(--white);
  border-radius: 50%;
  box-shadow: inset 6px 0 0 var(--white);
}

.account-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.public-nav-link {
  color: var(--soft-white);
  font-size: 0.78rem;
  font-weight: 700;
  text-decoration: none;
}

.public-nav-link:hover,
.public-nav-link:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.account-email {
  max-width: 280px;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.78rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.shell {
  width: min(1240px, calc(100% - 48px));
  margin: 0 auto;
  padding: 68px 0 120px;
}

.shell.wide {
  width: min(1480px, calc(100% - 48px));
}

.site-footer {
  min-height: 82px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 clamp(24px, 4vw, 68px);
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.74rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 20px;
}

.footer-links a {
  color: inherit;
  text-decoration: none;
}

.footer-links a:hover,
.footer-links a:focus-visible {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 4px;
}

h1,
h2,
h3,
p,
dl,
dd,
figure {
  margin-top: 0;
}

.auth-policy-note {
  margin: -2px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  line-height: 1.55;
}

.auth-policy-note a {
  color: var(--black);
  font-weight: 700;
  text-underline-offset: 3px;
}

/* Public support and policy pages */
.information-page .site-header {
  position: relative;
}

.information-nav {
  display: flex;
  align-items: center;
  gap: 18px;
}

.information-shell {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: clamp(64px, 9vw, 118px) 0 120px;
}

.information-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(260px, 0.55fr);
  gap: clamp(40px, 8vw, 110px);
  align-items: end;
  padding-bottom: clamp(50px, 8vw, 92px);
  border-bottom: 1px solid var(--strong-line);
}

.information-hero h1 {
  max-width: 820px;
  margin-bottom: 20px;
  font-size: clamp(3.35rem, 8vw, 7.5rem);
}

.information-hero .lede {
  max-width: 760px;
  margin-bottom: 0;
}

.information-meta {
  margin: 0;
  border-top: 1px solid var(--line);
}

.information-meta div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 18px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.information-meta dt,
.information-meta dd {
  margin: 0;
}

.information-meta dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.information-meta dd {
  font-size: 0.86rem;
}

.information-layout {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: clamp(38px, 8vw, 110px);
  padding-top: clamp(48px, 7vw, 82px);
}

.information-index {
  align-self: start;
  position: sticky;
  top: 28px;
}

.information-index strong {
  display: block;
  margin-bottom: 14px;
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.information-index a {
  display: block;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.8rem;
  text-decoration: none;
}

.information-index a:hover,
.information-index a:focus-visible {
  color: var(--white);
}

.information-content {
  max-width: 790px;
}

.information-content section {
  scroll-margin-top: 24px;
  padding: 0 0 48px;
}

.information-content section + section {
  padding-top: 48px;
  border-top: 1px solid var(--line);
}

.information-content h2 {
  margin-bottom: 20px;
  font-size: clamp(1.8rem, 3vw, 2.7rem);
}

.information-content h3 {
  margin-top: 28px;
  font-size: 1.08rem;
}

.information-content p,
.information-content li {
  color: var(--soft-white);
  font-size: 0.98rem;
  line-height: 1.78;
}

.information-content li + li {
  margin-top: 8px;
}

.information-callout,
.support-card {
  padding: 24px;
  border: 1px solid var(--strong-line);
  background: var(--panel);
}

.information-callout strong,
.support-card strong {
  display: block;
  margin-bottom: 8px;
}

.information-callout p:last-child,
.support-card p:last-child {
  margin-bottom: 0;
}

.support-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.support-card a,
.information-content a {
  color: var(--white);
  font-weight: 700;
  text-underline-offset: 4px;
}

.support-primary {
  display: inline-flex;
  margin-top: 12px;
  padding: 13px 18px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black) !important;
  text-decoration: none;
}

@media (max-width: 800px) {
  .information-page .site-header {
    align-items: flex-start;
    padding-top: 18px;
    padding-bottom: 18px;
  }

  .information-nav {
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 10px 14px;
  }

  .information-shell {
    width: min(100% - 32px, 1180px);
    padding-top: 48px;
  }

  .information-hero,
  .information-layout {
    grid-template-columns: 1fr;
  }

  .information-hero {
    gap: 34px;
  }

  .information-index {
    position: static;
  }

  .support-grid {
    grid-template-columns: 1fr;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 26px;
    padding-bottom: 26px;
  }

  .footer-links {
    justify-content: flex-start;
  }
}

h1,
h2,
h3 {
  letter-spacing: -0.045em;
}

h1 {
  max-width: 1000px;
  margin-bottom: 22px;
  font-size: clamp(3rem, 7vw, 6.75rem);
  line-height: 0.93;
  letter-spacing: -0.075em;
}

h2 {
  margin-bottom: 12px;
  font-size: clamp(2rem, 4vw, 3.55rem);
  line-height: 1;
}

h3 {
  margin-bottom: 8px;
  font-size: clamp(1.2rem, 2vw, 1.55rem);
  line-height: 1.15;
}

.eyebrow,
.role-chip {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.lede {
  max-width: 760px;
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: clamp(1.12rem, 2vw, 1.4rem);
  line-height: 1.55;
}

.message {
  min-height: 1.4em;
  margin-bottom: 0;
  color: var(--soft-white);
  font-size: 0.86rem;
}

.message.error,
.error {
  color: var(--white);
  font-weight: 700;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(1px, 1px, 1px, 1px) !important;
  clip-path: inset(50%) !important;
  white-space: nowrap !important;
}

.panel,
.card,
.production-box,
.workflow {
  border: 1px solid var(--line);
  background: var(--panel);
}

.panel,
.production-box,
.workflow {
  padding: clamp(24px, 3.2vw, 40px);
}

.auth-layout {
  min-height: calc(100vh - 265px);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr);
  align-items: center;
  gap: clamp(52px, 8vw, 128px);
}

.auth-introduction h1 {
  font-size: clamp(3.25rem, 6.2vw, 6.2rem);
}

.auth-card {
  background: var(--white);
  color: var(--black);
}

.auth-card .eyebrow,
.auth-card .section-heading p,
.auth-card label,
.auth-card label span,
.auth-card .message {
  color: #4a4a47;
}

.auth-card .message.error {
  color: var(--black);
}

.auth-card input {
  border-color: #b6b6af;
  background: #fff;
  color: var(--black);
}

.auth-card button {
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.auth-card button.secondary {
  background: transparent;
  color: var(--black);
}

.auth-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 24px;
  border: 1px solid #9f9f99;
}

.auth-card .auth-mode-switch button {
  min-height: 44px;
  border: 0;
  border-right: 1px solid #9f9f99;
  background: transparent;
  color: var(--black);
  font-size: 0.82rem;
}

.auth-card .auth-mode-switch button:last-child {
  border-right: 0;
}

.auth-card .auth-mode-switch button[aria-selected="true"] {
  background: var(--black);
  color: var(--white);
}

.auth-trust-note {
  margin: 2px 0 0;
  padding-top: 16px;
  border-top: 1px solid #c6c6c0;
  color: #4a4a47;
  font-size: 0.76rem;
}

.auth-trust-note strong {
  color: var(--black);
}

.auth-card .auth-link-button {
  min-height: auto;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: var(--black);
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.auth-flow-heading {
  margin-bottom: 8px;
}

.auth-flow-heading h3,
.auth-token-panel h3 {
  margin-bottom: 10px;
  font-size: clamp(1.7rem, 2.5vw, 2.35rem);
}

.auth-flow-heading > p:last-child,
.auth-token-panel > p:not(.eyebrow) {
  color: #4a4a47;
  line-height: 1.55;
}

.auth-token-panel {
  display: grid;
  gap: 16px;
}

.auth-token-panel .error {
  color: var(--black);
}

.section-heading {
  margin-bottom: 30px;
}

.section-heading h2 {
  font-size: clamp(2rem, 3.4vw, 3.2rem);
}

.principle-list {
  max-width: 720px;
  margin-top: 52px;
  border-top: 1px solid var(--line);
}

.principle-list > div {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 14px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}

.principle-list span {
  color: var(--muted);
  font-size: 0.72rem;
}

.principle-list p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
}

.principle-list strong {
  display: block;
  margin-bottom: 2px;
  color: var(--white);
  font-size: 0.92rem;
}

.public-offers {
  margin-top: 110px;
  padding-top: 70px;
  border-top: 1px solid var(--strong-line);
}

.public-service-list {
  display: grid;
  border-top: 1px solid var(--strong-line);
}

.public-service-list article {
  min-height: 116px;
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.public-service-list article > span {
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.public-service-list h3,
.public-service-list p {
  margin-bottom: 0;
}

.public-service-list p {
  max-width: 720px;
  margin-top: 5px;
  color: var(--muted);
}

.public-service-list article > strong {
  min-width: 130px;
  text-align: right;
}

.public-offers-action {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-top: 32px;
  padding: 28px;
  border: 1px solid var(--line);
  background: var(--panel);
}

.public-offers-action p {
  max-width: 680px;
  margin-bottom: 0;
  color: var(--muted);
}

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

.stack label,
.toolbar label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
  letter-spacing: 0.02em;
}

.stack label span {
  font-weight: 400;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--strong-line);
  border-radius: 0;
  background: var(--ink);
  color: var(--white);
  padding: 13px 14px;
}

textarea {
  min-height: 100px;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #73736e;
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--white);
  outline-offset: 3px;
}

.auth-card input:focus,
.auth-card button:focus-visible {
  outline-color: var(--black);
}

button {
  min-height: 44px;
  border: 1px solid var(--white);
  border-radius: 0;
  background: var(--white);
  color: var(--black);
  padding: 11px 17px;
  font-weight: 750;
  cursor: pointer;
  transition: background 150ms ease, color 150ms ease, border-color 150ms ease, opacity 150ms ease;
}

button:hover {
  background: transparent;
  color: var(--white);
}

.secondary,
.text-button {
  border-color: var(--strong-line);
  background: transparent;
  color: var(--white);
}

.secondary:hover,
.text-button:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.text-button {
  min-height: auto;
  border: 0;
  padding: 7px 2px;
  font-size: 0.82rem;
}

.text-button:hover {
  background: transparent;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.danger {
  border-color: var(--white);
  background: transparent;
  color: var(--white);
}

.danger:hover {
  background: var(--white);
  color: var(--black);
}

.small {
  min-height: 34px;
  padding: 5px 10px;
  font-size: 0.74rem;
}

button:disabled,
input:disabled,
textarea:disabled,
select:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

button:disabled:hover {
  background: var(--white);
  color: var(--black);
}

input:disabled,
textarea:disabled,
select:disabled {
  background: #111;
}

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

.auth-actions button {
  flex: 1;
}

.dashboard-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 50px;
  margin-bottom: 46px;
}

.dashboard-heading h1 {
  max-width: 880px;
  font-size: clamp(3.2rem, 5.8vw, 5.8rem);
}

.dashboard-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 28px;
}

.account-overview {
  display: grid;
  grid-template-columns: repeat(3, minmax(100px, 1fr));
  min-width: 360px;
  margin-bottom: 10px;
  border-top: 1px solid var(--strong-line);
  border-bottom: 1px solid var(--strong-line);
}

.account-overview > div {
  padding: 18px 20px;
  border-right: 1px solid var(--line);
}

.account-overview > div:last-child {
  border-right: 0;
}

.account-overview dt {
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.account-overview dd {
  margin: 0;
  font-size: 1.9rem;
  font-weight: 780;
  letter-spacing: -0.05em;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-bottom: 62px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.tabs button {
  display: flex;
  justify-content: flex-start;
  gap: 14px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  padding: 18px 20px;
  text-align: left;
}

.tabs button:last-child {
  border-right: 0;
}

.tabs button:hover,
.tabs button.active {
  background: var(--white);
  color: var(--black);
}

.tabs button span {
  font-size: 0.68rem;
  letter-spacing: 0.12em;
}

.section-intro {
  display: grid;
  grid-template-columns: minmax(300px, 0.8fr) minmax(320px, 0.65fr);
  justify-content: space-between;
  align-items: end;
  gap: 60px;
  margin-bottom: 34px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.section-intro h2,
.section-intro p {
  margin-bottom: 0;
}

.section-intro > p {
  color: var(--muted);
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(360px, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(30px, 5vw, 72px);
}

.sticky-panel {
  position: sticky;
  top: 100px;
}

.form-heading {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.form-heading p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 0.88rem;
}

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

.collection-column {
  min-width: 0;
}

.collection-heading {
  min-height: 68px;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 18px;
}

.collection-heading h3,
.collection-heading p {
  margin-bottom: 0;
}

.collection-heading > p {
  color: var(--muted);
  font-size: 0.75rem;
}

.cards,
.journal-list,
.request-history,
.queue-list {
  display: grid;
  gap: 14px;
}

.card {
  padding: clamp(22px, 3vw, 34px);
}

.journal-home-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 60px;
  margin-bottom: 42px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--strong-line);
}

.journal-home-heading h2 {
  max-width: 820px;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.journal-home-heading p:last-child {
  max-width: 700px;
  margin-bottom: 0;
  color: var(--muted);
  font-family: var(--reading);
  font-size: 1.08rem;
}

.journal-home-heading > button {
  min-width: 150px;
}

.journal-toolbar {
  display: grid;
  grid-template-columns: minmax(300px, 1fr) auto minmax(180px, auto);
  align-items: end;
  gap: 18px;
  margin-bottom: 20px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.journal-toolbar label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 650;
}

.journal-search {
  display: grid;
  gap: 8px;
}

.journal-filter {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.journal-filter input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--white);
}

.journal-filter select {
  min-width: 180px;
  margin-left: 6px;
}

.journal-index {
  display: grid;
  margin-top: 18px;
  border-top: 1px solid var(--strong-line);
}

.journal-index-row {
  position: relative;
  min-height: 170px;
  display: grid;
  grid-template-columns: 142px minmax(0, 1fr) 54px;
  align-items: stretch;
  gap: 22px;
  border-bottom: 1px solid var(--line);
}

.journal-index-row.is-draft {
  border-left: 2px solid var(--muted);
}

.journal-index-date {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 32px 0;
  color: var(--muted);
  font-size: 0.72rem;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.journal-index-date span {
  color: var(--white);
}

.journal-entry-open {
  min-width: 0;
  min-height: 0;
  display: block;
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 28px 20px;
  text-align: left;
}

.journal-entry-open:hover {
  background: var(--panel);
  color: var(--white);
}

.journal-entry-open .eyebrow {
  margin-bottom: 7px;
}

.journal-entry-open h3 {
  margin-bottom: 10px;
  font-size: clamp(1.45rem, 2.4vw, 2.1rem);
}

.journal-entry-open > p:not(.eyebrow) {
  display: -webkit-box;
  max-width: 820px;
  overflow: hidden;
  margin-bottom: 14px;
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: 1.05rem;
  font-weight: 400;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  line-clamp: 3;
  white-space: pre-wrap;
}

.journal-index-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.journal-index-meta span {
  padding: 3px 8px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.journal-favorite-button {
  min-width: 54px;
  min-height: 54px;
  align-self: center;
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 0;
  font-size: 1.45rem;
}

.journal-favorite-button:hover {
  background: var(--white);
  color: var(--black);
}

.journal-pagination {
  display: flex;
  justify-content: center;
  padding-top: 28px;
}

.journal-mode-bar {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 44px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.journal-save-state {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.journal-editor {
  max-width: 960px;
  margin: 0 auto;
}

.journal-writing-form {
  display: grid;
  gap: 22px;
}

.journal-date-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
}

.journal-date-row label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.journal-date-row input {
  width: auto;
  min-width: 180px;
}

.journal-date-row > span {
  padding-bottom: 12px;
  color: var(--muted);
  font-size: 0.76rem;
}

.journal-title-input {
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0 18px;
  font-size: clamp(2.3rem, 5.5vw, 5.1rem);
  font-weight: 780;
  line-height: 1;
  letter-spacing: -0.065em;
}

.journal-title-input::placeholder {
  color: #666661;
}

.journal-writing-area {
  min-height: 48vh;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  padding: 8px 0 30px;
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: clamp(1.15rem, 1.8vw, 1.32rem);
  line-height: 1.85;
  resize: vertical;
}

.journal-details {
  border: 1px solid var(--line);
  background: var(--panel);
}

.journal-details summary {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  font-weight: 750;
  cursor: pointer;
}

.journal-details summary span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 500;
}

.journal-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  padding: 0 20px 22px;
}

.journal-details-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.76rem;
}

.journal-editor-actions,
.journal-reader-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.field-help {
  margin: 0;
  padding: 13px 14px;
  border-left: 2px solid var(--strong-line);
  color: var(--muted);
  font-size: 0.76rem;
}

.field-help strong {
  color: var(--soft-white);
}

.journal-reader {
  max-width: 900px;
  margin: 0 auto;
}

.journal-reader-heading {
  margin-bottom: 46px;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--strong-line);
}

.journal-reader-heading time,
.journal-reader-heading > p:last-child {
  color: var(--muted);
  font-size: 0.78rem;
}

.journal-reader-heading h2 {
  max-width: 850px;
  margin: 14px 0 18px;
  font-size: clamp(2.8rem, 6vw, 5.7rem);
}

.journal-reader-body {
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: clamp(1.14rem, 1.7vw, 1.3rem);
  line-height: 1.9;
  white-space: pre-wrap;
}

.journal-reader-details {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 48px 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.journal-reader-details > div {
  display: flex;
  gap: 7px;
  padding: 7px 10px;
  border: 1px solid var(--line);
}

.journal-reader-details dt {
  color: var(--muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.journal-reader-details dd {
  margin: 0;
  font-size: 0.78rem;
}

.journal-reader-actions {
  margin-top: 56px;
  padding-top: 26px;
  border-top: 1px solid var(--strong-line);
}

.empty {
  min-height: 140px;
  display: grid;
  place-items: center;
  padding: 30px;
  border: 1px dashed var(--strong-line);
  color: var(--muted);
  text-align: center;
}

.process-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0 0 42px;
  padding: 0;
  border: 1px solid var(--line);
  list-style: none;
}

.process-strip li {
  min-height: 132px;
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 20px;
  border-right: 1px solid var(--line);
}

.process-strip li:last-child {
  border-right: 0;
}

.process-strip span {
  margin-bottom: 15px;
  color: var(--muted);
  font-size: 0.66rem;
}

.process-strip strong {
  font-size: 0.95rem;
}

.process-strip small {
  color: var(--muted);
  line-height: 1.45;
}

.service-catalog {
  display: grid;
  margin: 0;
}

.service-option {
  min-height: 70px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--white);
  padding: 12px 14px;
  text-align: left;
}

.service-option:last-child {
  border-bottom: 0;
}

.service-option:hover,
.service-option.selected {
  background: var(--white);
  color: var(--black);
}

.service-option > span:nth-child(2) {
  display: grid;
  gap: 2px;
}

.service-number,
.service-mode {
  color: var(--muted);
  font-size: 0.67rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.service-option:hover .service-number,
.service-option:hover .service-mode,
.service-option.selected .service-number,
.service-option.selected .service-mode,
.service-option:hover small,
.service-option.selected small {
  color: #4d4d49;
}

.service-option strong {
  font-size: 0.98rem;
}

.service-option small {
  color: var(--muted);
  font-weight: 450;
}

.request-builder {
  display: grid;
  grid-template-columns: minmax(280px, 0.58fr) minmax(0, 1.42fr);
  align-items: start;
  gap: clamp(22px, 3vw, 42px);
}

.service-picker {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--panel);
}

.service-picker-heading {
  padding: 22px;
  border-bottom: 1px solid var(--strong-line);
}

.service-picker-heading h3,
.service-picker-heading p {
  margin-bottom: 0;
}

.service-picker-heading h3 {
  margin-top: 5px;
  font-size: 1.2rem;
}

.request-composer {
  display: grid;
  gap: 24px;
}

.request-field-grid {
  display: grid;
  grid-template-columns: minmax(230px, 0.72fr) minmax(300px, 1.28fr);
  align-items: stretch;
  gap: 22px;
}

.request-field-column {
  display: grid;
  align-content: start;
  gap: 16px;
}

.request-notes-field {
  min-height: 100%;
}

.request-notes-field textarea {
  min-height: 224px;
  height: calc(100% - 25px);
}

.request-submit-bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding-top: 22px;
  border-top: 1px solid var(--strong-line);
}

.request-submit-bar > button {
  min-width: 210px;
  min-height: 52px;
}

.request-commercial-summary {
  display: grid;
  gap: 4px;
}

.request-commercial-summary p,
.request-commercial-summary strong {
  margin: 0;
}

.request-commercial-summary > p:last-child {
  max-width: 650px;
  color: var(--muted);
  font-size: 0.78rem;
}

.request-history-section {
  margin-top: 64px;
  padding-top: 12px;
  border-top: 1px solid var(--strong-line);
}

.checkout-note {
  padding: 18px;
  border: 1px solid var(--strong-line);
  background: var(--ink);
}

.checkout-note strong {
  display: block;
  margin-bottom: 4px;
  font-size: 0.84rem;
}

.checkout-note p {
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.request-history-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 26px;
  border-top: 1px solid var(--strong-line);
  background: transparent;
}

.request-history-card h3 {
  margin: 4px 0 9px;
}

.request-history-card .request-note {
  margin-bottom: 0;
  color: var(--muted);
}

.request-state {
  display: grid;
  align-content: start;
  gap: 10px;
  padding-left: 20px;
  border-left: 1px solid var(--line);
}

.request-state p {
  margin: 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.payment-box {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  align-items: center;
  gap: 28px;
  margin-top: 4px;
  padding: 22px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
}

.payment-box .eyebrow,
.payment-box p,
.payment-box .message {
  color: #4a4a47;
}

.payment-box p {
  margin-bottom: 0;
  font-size: 0.78rem;
}

.payment-box .message.error {
  color: var(--black);
}

.money {
  display: block;
  margin: 2px 0 8px;
  font-size: clamp(1.75rem, 3vw, 2.8rem);
  line-height: 1;
  letter-spacing: -0.055em;
}

.paypal-checkout {
  min-width: 0;
  display: grid;
  gap: 8px;
}

.scope-decision {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.scope-decision-option {
  display: grid;
  align-content: start;
  gap: 16px;
  margin: 0;
  padding: 22px;
  border: 1px solid var(--strong-line);
  background: var(--ink);
}

.scope-decision-option h3,
.scope-decision-option p {
  margin-bottom: 0;
}

.scope-decision-option > button {
  align-self: end;
  margin-top: auto;
}

paypal-button {
  width: 100%;
  min-height: 44px;
  display: block;
}

paypal-button[hidden] {
  display: none;
}

.status {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 9px;
  border: 1px solid var(--strong-line);
  color: var(--soft-white);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.status::before {
  width: 6px;
  height: 6px;
  margin-right: 7px;
  border: 1px solid currentColor;
  border-radius: 50%;
  content: "";
}

.continuation-context {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 18px;
  border: 1px solid var(--white);
  background: var(--black);
}

.continuation-context .eyebrow {
  margin-bottom: 5px;
}

.continuation-context strong {
  display: block;
  margin-bottom: 5px;
  font-family: var(--reading);
  font-size: 1.08rem;
}

.continuation-context p:last-child {
  max-width: 560px;
  margin: 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.library-intro {
  margin-bottom: 26px;
}

.library-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 12px;
  max-width: 920px;
}

.library-toolbar label {
  margin: 0;
}

.library-search input,
.library-toolbar select {
  min-height: 52px;
}

.library-shelf {
  display: grid;
  margin-top: 22px;
  border-top: 1px solid var(--strong-line);
}

.library-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr) auto;
  align-items: center;
  gap: clamp(18px, 3vw, 42px);
  min-height: 176px;
  padding: 30px 0;
  border-bottom: 1px solid var(--line);
}

.library-item-number {
  align-self: start;
  padding-top: 7px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}

.library-item-main {
  min-width: 0;
}

.library-item .eyebrow {
  margin-bottom: 8px;
}

.library-item-kicker {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-bottom: 8px;
}

.library-item-kicker .eyebrow {
  margin: 0;
}

.library-item-formats {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.library-item-formats li {
  padding: 3px 7px;
  border: 1px solid var(--line);
  color: var(--soft-white);
  font-size: 0.6rem;
  font-weight: 720;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.library-item h3 {
  max-width: 780px;
  margin-bottom: 10px;
  font-size: clamp(1.65rem, 2.6vw, 2.45rem);
  letter-spacing: -0.04em;
}

.library-item-main > p:not(.eyebrow) {
  max-width: 720px;
  margin-bottom: 14px;
  color: var(--muted);
}

.library-item-meta,
.delivery-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin: 0;
  padding: 0;
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  list-style: none;
  text-transform: uppercase;
}

.library-item-meta li + li::before,
.delivery-meta li + li::before {
  margin-right: 18px;
  color: var(--strong-line);
  content: "·";
}

.library-item-actions {
  min-width: 176px;
  display: grid;
  gap: 9px;
}

.library-item-actions button {
  min-width: 164px;
}

.library-reader-toolbar {
  position: sticky;
  top: 66px;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 58px;
  margin-bottom: 34px;
  padding: 0 2px;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);
}

.library-reader-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.library-reader-actions .secondary {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.76rem;
}

.reading-progress {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  overflow: hidden;
  background: var(--line);
}

.reading-progress span {
  width: 100%;
  height: 100%;
  display: block;
  background: var(--white);
  transform: scaleX(0);
  transform-origin: left center;
}

.library-reader-toolbar .message {
  margin: 0;
  text-align: right;
}

#library-reader-content {
  min-height: 60vh;
  padding-bottom: 80px;
}

.narration-player {
  position: relative;
  z-index: 3;
  width: min(900px, 100%);
  display: grid;
  gap: 16px;
  margin: 0 auto 46px;
  padding: 20px 22px;
  border: 1px solid var(--strong-line);
  background: rgba(14, 14, 14, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.5);
}

.narration-player.is-docked {
  position: fixed;
  right: clamp(18px, 3vw, 48px);
  bottom: 22px;
  z-index: 30;
  width: min(660px, calc(100% - 36px));
  margin: 0;
  padding: 16px 18px;
  border-color: var(--white);
}

#library-reader-view:has(.narration-player.is-docked) {
  padding-bottom: 190px;
}

.narration-player-heading,
.narration-controls,
.narration-timeline {
  display: flex;
  align-items: center;
}

.narration-player-heading {
  justify-content: space-between;
  gap: 24px;
}

.narration-player-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.narration-player-heading .eyebrow {
  margin-bottom: 3px;
}

.narration-player-heading strong {
  display: block;
  font-family: var(--reading);
  font-size: 1.08rem;
}

.narration-player-heading p:last-child {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.72rem;
}

.narration-controls {
  gap: 10px;
}

.narration-controls > button {
  min-width: 112px;
}

.narration-controls #narration-play {
  min-width: 92px;
}

.narration-speed,
.narration-volume {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 0.7rem;
}

.narration-volume {
  margin-left: auto;
}

.narration-volume input {
  width: 84px;
  height: 18px;
  padding: 0;
  accent-color: var(--white);
}

.narration-speed select {
  width: 88px;
  min-height: 40px;
  padding: 7px 10px;
}

.narration-timeline {
  gap: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-size: 0.68rem;
}

.narration-timeline input {
  flex: 1;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--white);
}

.dialog-bar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 66px;
  margin: -1px -1px 0;
  padding: 0 24px;
  border: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.96);
  backdrop-filter: blur(12px);
}

.dialog-bar .eyebrow {
  margin: 0;
}

.dialog-close {
  min-height: auto;
  border: 0;
  background: transparent;
  color: var(--white);
  padding: 8px 0;
  font-size: 0.78rem;
}

.dialog-close:hover {
  background: transparent;
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}

dialog {
  width: min(1320px, calc(100% - 32px));
  max-height: 94vh;
  margin: auto;
  border: 1px solid var(--strong-line);
  border-radius: 0;
  background: var(--black);
  color: var(--white);
  padding: 0;
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.84);
  backdrop-filter: blur(5px);
}

.delivery-dialog {
  width: min(1080px, calc(100% - 32px));
}

#delivery-dialog-content {
  padding: clamp(30px, 6vw, 80px);
}

.customer-delivery {
  max-width: 1220px;
  margin: 0 auto;
}

.customer-delivery > .delivery-hero {
  max-width: 960px;
  margin: 0 auto 64px;
  padding: clamp(30px, 6vw, 80px) 0 clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--strong-line);
}

.customer-delivery > .delivery-hero h2 {
  max-width: 940px;
  margin: 9px 0 18px;
  font-size: clamp(3rem, 7vw, 7.4rem);
  line-height: 0.94;
  letter-spacing: -0.07em;
}

.customer-delivery .delivery-summary {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: clamp(1.15rem, 2vw, 1.42rem);
  line-height: 1.55;
}

.delivery-source {
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.delivery-meta {
  margin-top: 20px;
}

.delivery-reading-layout {
  display: grid;
  grid-template-columns: minmax(170px, 220px) minmax(0, 820px);
  justify-content: center;
  align-items: start;
  gap: clamp(34px, 7vw, 100px);
}

.delivery-reading-layout:has(.delivery-reading-content:only-child) {
  grid-template-columns: minmax(0, 820px);
}

.delivery-contents {
  position: sticky;
  top: 150px;
  padding-top: 8px;
}

.delivery-contents ol {
  display: grid;
  margin: 16px 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
  list-style: none;
}

.delivery-contents a {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 9px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.35;
  text-decoration: none;
}

.delivery-contents a:hover {
  color: var(--white);
}

.delivery-contents a.active,
.delivery-contents a[aria-current="location"] {
  color: var(--white);
  font-weight: 720;
}

.delivery-contents a.active span,
.delivery-contents a[aria-current="location"] span {
  color: var(--white);
}

.delivery-contents a span {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.delivery-reading-content {
  min-width: 0;
}

.chapter-focus-enabled:not(.show-all-chapters) .delivery-reading-content > [data-reading-section] {
  display: none;
}

.chapter-focus-enabled:not(.show-all-chapters) .delivery-reading-content > .active-reading-section {
  display: block;
  padding-top: 0;
  border-top: 0;
}

.delivery-content-section {
  scroll-margin-top: 145px;
  padding: 52px 0;
  border-top: 1px solid var(--line);
}

.delivery-content-section:first-child {
  padding-top: 0;
  border-top: 0;
}

.delivery-introduction > h3,
.delivery-additional-media > h3 {
  margin: 8px 0 28px;
  font-size: clamp(1.65rem, 3vw, 2.5rem);
}

.delivery-section-heading {
  display: grid;
  grid-template-columns: 50px 1fr;
  align-items: start;
  gap: 14px;
  margin-bottom: 30px;
}

.delivery-section-heading > span {
  padding-top: 9px;
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
}

.delivery-section-heading .eyebrow {
  margin-bottom: 5px;
}

.delivery-section-heading h3 {
  margin: 0;
  font-size: clamp(2rem, 4.2vw, 4rem);
  letter-spacing: -0.055em;
}

.body-copy {
  max-width: 760px;
  margin: 0;
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: clamp(1.05rem, 1.5vw, 1.22rem);
  line-height: 1.82;
  white-space: pre-wrap;
}

.delivery-section-copy {
  max-width: 760px;
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: clamp(1.08rem, 1.55vw, 1.24rem);
  line-height: 1.86;
  white-space: pre-wrap;
}

.delivery-section-copy + .delivery-chapter-assets,
.body-copy + .delivery-chapter-assets {
  margin-top: 34px;
}

.chapter-step-navigation {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 24px;
  margin-top: 58px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.chapter-step-navigation a {
  display: grid;
  gap: 3px;
  color: var(--muted);
  text-decoration: none;
}

.chapter-step-navigation a.next {
  text-align: right;
}

.chapter-step-navigation a span {
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chapter-step-navigation a strong {
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: 1rem;
}

.chapter-step-navigation a:hover,
.chapter-step-navigation a:hover strong {
  color: var(--white);
}

.asset-stack {
  display: grid;
  gap: 42px;
  margin-top: 56px;
}

.delivery-chapter {
  display: grid;
  gap: 20px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.delivery-chapter-heading {
  display: grid;
  grid-template-columns: 55px 1fr;
  align-items: baseline;
  gap: 12px;
}

.delivery-chapter-heading span {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.12em;
}

.delivery-chapter-heading h3 {
  margin: 0;
  font-size: clamp(1.4rem, 2.5vw, 2rem);
}

.delivery-chapter-assets {
  display: grid;
  gap: 20px;
}

.delivery-asset {
  display: block;
  margin: 0;
  padding: 18px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.delivery-asset .asset-label {
  margin: 0 0 10px;
  font-weight: 720;
}

.delivery-asset.role-illustration {
  padding: 10px;
  border-color: var(--strong-line);
}

.delivery-asset.role-multimedia {
  border-color: var(--strong-line);
}

.delivery-asset.role-narration {
  padding: 16px 18px;
  border-left: 3px solid var(--white);
}

.delivery-asset.role-sound {
  border-left: 3px double var(--soft-white);
}

.delivery-asset.role-reference,
.delivery-asset.role-supplemental {
  border-style: solid;
}

.asset-role {
  margin: -5px 0 14px;
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.media {
  width: 100%;
  max-height: 720px;
  display: block;
  border: 0;
  background: #000;
  object-fit: contain;
}

.pdf-viewer {
  min-height: min(72vh, 820px);
  background: var(--white);
}

audio.media {
  min-height: 54px;
}

.embed {
  aspect-ratio: 16 / 9;
  background: #000;
}

.embed iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

figcaption {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-top: 12px;
  color: var(--muted);
  font-size: 0.78rem;
}

figcaption span {
  color: var(--soft-white);
  font-weight: 700;
}

figcaption small {
  font-size: 0.62rem;
  font-weight: 720;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

audio.media.playlist-managed {
  display: none;
}

.narration-jump {
  width: fit-content;
  margin-top: 12px;
}

.narration-jump.active {
  color: var(--white);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.asset-load-state {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
}

.private-asset.is-loaded .asset-load-state {
  color: var(--soft-white);
}

.private-asset.has-load-error,
.delivery-asset-error {
  border-style: dashed;
  border-color: var(--white);
}

.private-document a,
.external.delivery-asset {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border: 1px solid var(--strong-line);
  color: var(--white);
  padding: 10px 14px;
  text-decoration: none;
}

.private-document a:hover,
.external.delivery-asset:hover {
  border-color: var(--white);
  background: var(--white);
  color: var(--black);
}

.picture-book-dialog {
  width: min(1180px, calc(100% - 32px));
  height: min(92vh, 900px);
}

.picture-book-stage {
  height: calc(100% - 66px);
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 18px;
  padding: clamp(18px, 3vw, 34px);
}

.picture-book-spread {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, 0.85fr);
  overflow: hidden;
  border: 1px solid var(--line);
}

.picture-book-images {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1px;
  overflow: auto;
  background: #000;
}

.picture-book-images[data-image-count="1"] {
  grid-template-columns: 1fr;
}

.picture-book-images figure {
  min-height: 280px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  margin: 0;
  background: #000;
}

.picture-book-images img {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
}

.picture-book-images figcaption {
  padding: 9px 12px;
  border-top: 1px solid #303030;
  color: #d8d8d2;
  font-size: 0.68rem;
}

.picture-book-copy {
  min-height: 0;
  overflow-y: auto;
  padding: clamp(26px, 4vw, 54px);
  border-left: 1px solid var(--line);
  background: var(--panel);
}

.picture-book-copy h2 {
  margin-bottom: 26px;
  font-size: clamp(2.2rem, 4vw, 4rem);
}

.picture-book-text {
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: clamp(1.05rem, 1.5vw, 1.28rem);
  line-height: 1.8;
  white-space: pre-wrap;
}

.picture-book-audio-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.picture-book-caption,
.picture-book-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.picture-book-caption p {
  margin-bottom: 0;
}

.picture-book-caption .eyebrow,
.picture-book-caption > span {
  color: var(--muted);
  font-size: 0.68rem;
}

.picture-book-controls button {
  min-width: 170px;
}

.admin-heading {
  align-items: end;
}

.admin-heading h1 {
  font-size: clamp(3.2rem, 6vw, 6rem);
}

.queue-overview {
  grid-template-columns: repeat(4, minmax(86px, 1fr));
  min-width: 430px;
}

.queue-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 24px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}

.queue-header h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 3.5vw, 3.3rem);
}

.toolbar {
  display: flex;
  align-items: end;
  gap: 12px;
}

.toolbar label {
  min-width: 190px;
}

.queue-list {
  margin-top: 24px;
}

.request-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr) 240px;
  gap: 28px;
  align-items: start;
  border-top: 1px solid var(--strong-line);
  background: transparent;
}

.request-card-number {
  color: var(--muted);
  font-size: 0.7rem;
  letter-spacing: 0.12em;
}

.request-card h3 {
  margin-bottom: 8px;
  font-size: clamp(1.35rem, 2.4vw, 2.1rem);
}

.request-card .request-brief {
  max-width: 760px;
  display: -webkit-box;
  overflow: hidden;
  color: var(--muted);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  line-clamp: 5;
  white-space: pre-wrap;
}

.request-card aside {
  display: grid;
  justify-items: end;
  gap: 12px;
  padding-left: 24px;
  border-left: 1px solid var(--line);
  text-align: right;
}

.request-card aside p {
  max-width: 220px;
  margin: 0;
  overflow: hidden;
  color: var(--muted);
  font-size: 0.76rem;
  text-overflow: ellipsis;
}

.source {
  margin-top: 18px;
  padding: 18px 20px;
  border-left: 2px solid var(--white);
  background: var(--ink);
  color: var(--soft-white);
  font-family: var(--reading);
  white-space: pre-wrap;
}

.studio-dialog {
  width: min(1460px, calc(100% - 28px));
}

#studio-content {
  padding: clamp(28px, 4.5vw, 68px);
}

.studio-titlebar {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: end;
  gap: 30px;
  margin-bottom: 42px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.studio-titlebar h1 {
  margin-bottom: 0;
  font-size: clamp(2.6rem, 5vw, 5rem);
}

.studio-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.7fr) minmax(440px, 1.3fr);
  align-items: start;
  gap: clamp(34px, 5vw, 78px);
}

.quote-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.75fr) minmax(420px, 1.25fr);
  align-items: start;
  gap: clamp(34px, 5vw, 78px);
}

.quote-panel {
  margin-top: 0;
}

.quote-panel > p:not(.eyebrow) {
  max-width: 680px;
  color: var(--muted);
}

.quote-form {
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
}

.quote-status {
  margin-top: 28px;
  padding: 24px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
}

.quote-status .eyebrow,
.quote-status p {
  color: #4a4a47;
}

.quote-status p:last-child {
  margin-bottom: 0;
}

.customer-source-panel {
  position: sticky;
  top: 90px;
}

.customer-source-panel h2,
.delivery-workspace h2 {
  font-size: clamp(1.5rem, 2.4vw, 2.2rem);
}

.continuation-production-context {
  margin-bottom: 30px;
  padding: 20px;
  border: 1px solid var(--strong-line);
  background: var(--panel);
}

.continuation-context-heading h3 {
  margin-bottom: 8px;
}

.continuation-context-heading > p:last-child {
  margin-bottom: 18px;
  color: var(--muted);
  font-size: 0.8rem;
}

.continuation-production-context summary,
.existing-chapter-editor summary {
  cursor: pointer;
}

.continuation-chapters.compact ol {
  display: grid;
  gap: 6px;
  margin: 14px 0 0;
  padding-left: 22px;
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: 0.86rem;
}

.production-box,
.workflow {
  margin-top: 24px;
}

.existing-work-editor {
  display: grid;
  gap: 24px;
}

.existing-chapter-list {
  display: grid;
  gap: 10px;
}

.existing-chapter-editor {
  border: 1px solid var(--line);
  background: var(--ink);
}

.existing-chapter-editor[open] {
  border-color: var(--strong-line);
}

.existing-chapter-editor summary {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  list-style-position: inside;
}

.existing-chapter-editor summary > span,
.existing-chapter-editor summary > small {
  color: var(--muted);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.existing-chapter-editor summary > strong {
  font-family: var(--reading);
}

.existing-chapter-editor-body {
  display: grid;
  gap: 16px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.existing-chapter-editor-body label {
  display: grid;
  gap: 8px;
  color: var(--muted);
  font-size: 0.76rem;
}

.existing-chapter-media {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  list-style: none;
}

.existing-chapter-media li {
  display: grid;
  grid-template-columns: 150px 1fr;
  gap: 12px;
  color: var(--soft-white);
  font-size: 0.78rem;
}

.existing-chapter-media span {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 720;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.production-box > h2,
.workflow > h2 {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.delivery-sections-editor {
  display: grid;
  gap: 26px;
}

.delivery-section-editor-list {
  display: grid;
  gap: 18px;
}

.delivery-section-editor {
  display: grid;
  gap: 16px;
  padding: 22px;
  border: 1px solid var(--line);
  background: var(--ink);
}

.delivery-section-editor > header {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.delivery-section-editor h3 {
  margin: 4px 0 0;
  font-size: 1.35rem;
}

.section-order-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.section-order-actions button {
  padding: 4px 0;
}

.add-section-form {
  padding: 22px;
  border: 1px dashed var(--strong-line);
}

.asset-list {
  margin-bottom: 24px;
}

.asset-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.asset-row > span {
  display: grid;
  gap: 2px;
  text-align: left;
}

.asset-row small {
  color: var(--muted);
  text-transform: capitalize;
}

.asset-row-editable {
  align-items: end;
}

.asset-edit-fields {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(150px, 1fr));
  gap: 12px;
}

.asset-edit-fields label {
  margin: 0;
}

.asset-edit-fields input,
.asset-edit-fields select {
  min-height: 42px;
  padding: 8px 10px;
}

.asset-row-actions {
  display: flex;
  gap: 8px;
}

fieldset {
  display: grid;
  gap: 18px;
  margin: 0;
  padding: 0;
  border: 0;
}

legend {
  margin-bottom: 16px;
  font-size: 0.78rem;
  font-weight: 740;
}

hr {
  width: 100%;
  margin: 6px 0;
  border: 0;
  border-top: 1px solid var(--line);
}

.delivery-preview-section {
  margin-top: 62px;
  padding-top: 34px;
  border-top: 1px solid var(--strong-line);
}

.preview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}

.preview-heading h2,
.preview-heading p {
  margin-bottom: 0;
}

.delivery-preview-shell {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(28px, 5vw, 70px);
  border: 1px solid var(--strong-line);
  background: var(--panel);
}

.delivery-preview-shell .delivery-reading-layout {
  grid-template-columns: 1fr;
}

.delivery-preview-shell .delivery-contents {
  position: static;
}

.delivery-preview-shell > .delivery-hero {
  padding-top: 20px;
}

.delivery-preview-shell > .delivery-hero h2 {
  font-size: clamp(2.7rem, 6vw, 5.4rem);
}

.workflow-actions {
  align-items: flex-start;
}

.review-confirmation {
  max-width: 620px;
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 12px 14px;
  border: 1px solid var(--strong-line);
  color: var(--soft-white);
}

.review-confirmation input {
  width: auto;
  margin-top: 0.3em;
  accent-color: var(--white);
}

:root[data-theme="light"] {
  --black: #f5f5f0;
  --ink: #ffffff;
  --panel: #ffffff;
  --panel-raised: #ecece7;
  --white: #080808;
  --soft-white: #292927;
  --muted: #656560;
  --line: #d4d4cd;
  --strong-line: #85857e;
  color-scheme: light;
}

[data-theme="light"] .site-header,
[data-theme="light"] .library-reader-toolbar,
[data-theme="light"] .dialog-bar {
  background: rgba(245, 245, 240, 0.96);
}

[data-theme="light"] .narration-player {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] input:disabled,
[data-theme="light"] textarea:disabled,
[data-theme="light"] select:disabled {
  background: #e7e7e1;
}

[data-theme="light"] input::placeholder,
[data-theme="light"] textarea::placeholder,
[data-theme="light"] .journal-title-input::placeholder {
  color: #74746e;
}

[data-theme="light"] .service-option:hover .service-number,
[data-theme="light"] .service-option:hover .service-mode,
[data-theme="light"] .service-option.selected .service-number,
[data-theme="light"] .service-option.selected .service-mode,
[data-theme="light"] .service-option:hover small,
[data-theme="light"] .service-option.selected small {
  color: #bcbcb5;
}

[data-theme="light"] .auth-card {
  border-color: #080808;
  background: #080808;
  color: #f5f5f0;
}

[data-theme="light"] .auth-card .eyebrow,
[data-theme="light"] .auth-card .section-heading p,
[data-theme="light"] .auth-card label,
[data-theme="light"] .auth-card label span,
[data-theme="light"] .auth-card .message,
[data-theme="light"] .auth-flow-heading > p:last-child,
[data-theme="light"] .auth-token-panel > p:not(.eyebrow),
[data-theme="light"] .auth-policy-note,
[data-theme="light"] .auth-trust-note {
  color: #bdbdb6;
}

[data-theme="light"] .auth-card .auth-link-button,
[data-theme="light"] .auth-token-panel .error {
  color: #f5f5f0;
}

[data-theme="light"] .verification-banner .eyebrow,
[data-theme="light"] .verification-banner p,
[data-theme="light"] .verification-banner-actions .message {
  color: #bdbdb6;
}

[data-theme="light"] .auth-card input {
  border-color: #72726d;
  background: #141414;
  color: #f5f5f0;
}

[data-theme="light"] .auth-card button,
[data-theme="light"] .auth-card .auth-mode-switch button[aria-selected="true"] {
  border-color: #f5f5f0;
  background: #f5f5f0;
  color: #080808;
}

[data-theme="light"] .auth-card button.auth-link-button {
  border: 0;
  background: transparent;
  color: #f5f5f0;
}

[data-theme="light"] .auth-card .auth-mode-switch,
[data-theme="light"] .auth-card .auth-mode-switch button {
  border-color: #72726d;
}

[data-theme="light"] .auth-card .auth-mode-switch button[aria-selected="false"] {
  background: transparent;
  color: #f5f5f0;
}

[data-theme="light"] .auth-trust-note {
  border-color: #52524e;
}

[data-theme="light"] .auth-trust-note strong {
  color: #f5f5f0;
}

[data-theme="light"] .auth-card input:focus,
[data-theme="light"] .auth-card button:focus-visible {
  outline-color: #f5f5f0;
}

[data-theme="light"] .payment-box .eyebrow,
[data-theme="light"] .payment-box p,
[data-theme="light"] .payment-box .message,
[data-theme="light"] .quote-status .eyebrow,
[data-theme="light"] .quote-status p {
  color: #bdbdb6;
}

[data-theme="light"] .payment-box .message.error {
  color: #f5f5f0;
}

@media (max-width: 1080px) {
  .auth-layout,
  .dashboard-heading,
  .section-intro,
  .workspace-grid,
  .request-builder,
  .request-field-grid,
  .scope-decision,
  .journal-home-heading,
  .studio-grid,
  .quote-layout {
    grid-template-columns: 1fr;
  }

  .journal-home-heading {
    gap: 24px;
  }

  .journal-home-heading > button {
    width: fit-content;
  }

  .auth-layout {
    min-height: auto;
  }

  .auth-card {
    max-width: 680px;
  }

  .dashboard-heading {
    align-items: start;
  }

  .account-overview,
  .queue-overview {
    width: 100%;
    min-width: 0;
  }

  .section-intro {
    gap: 18px;
  }

  .sticky-panel,
  .customer-source-panel {
    position: static;
  }

  .request-card {
    grid-template-columns: 75px minmax(0, 1fr) 210px;
  }

  .delivery-reading-layout {
    grid-template-columns: minmax(150px, 190px) minmax(0, 1fr);
    gap: 42px;
  }

  .asset-row-editable {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 760px) {
  .site-header {
    position: static;
    min-height: 68px;
    padding: 0 18px;
  }

  .account-email,
  .role-chip {
    display: none;
  }

  .shell,
  .shell.wide {
    width: min(100% - 28px, 1240px);
    padding: 42px 0 80px;
  }

  .auth-layout {
    gap: 40px;
  }

  h1,
  .dashboard-heading h1,
  .auth-introduction h1 {
    font-size: clamp(2.8rem, 15vw, 4.5rem);
  }

  .principle-list {
    margin-top: 34px;
  }

  .dashboard-heading {
    margin-bottom: 34px;
  }

  .account-overview {
    grid-template-columns: repeat(3, 1fr);
  }

  .queue-overview {
    grid-template-columns: repeat(2, 1fr);
  }

  .account-overview > div {
    padding: 14px 12px;
  }

  .tabs {
    grid-template-columns: 1fr;
    margin-bottom: 42px;
  }

  .tabs button {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .tabs button:last-child {
    border-bottom: 0;
  }

  .field-row,
  .process-strip,
  .journal-details-grid {
    grid-template-columns: 1fr 1fr;
  }

  .journal-toolbar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .library-toolbar,
  .delivery-reading-layout {
    grid-template-columns: 1fr;
  }

  .delivery-contents {
    position: static;
  }

  .delivery-contents ol {
    grid-template-columns: 1fr 1fr;
  }

  .delivery-section-heading {
    grid-template-columns: 1fr;
  }

  .journal-filter {
    justify-content: space-between;
  }

  .journal-filter select {
    flex: 1;
  }

  .process-strip li:nth-child(2) {
    border-right: 0;
  }

  .process-strip li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .service-option {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .service-mode {
    grid-column: 2;
  }

  .request-submit-bar {
    grid-template-columns: 1fr;
    align-items: stretch;
  }

  .request-submit-bar > button {
    width: 100%;
  }

  .journal-index-row,
  .request-history-card,
  .library-item,
  .request-card,
  .public-service-list article {
    grid-template-columns: 1fr;
  }

  .journal-index-row {
    gap: 0;
    padding: 20px 0;
  }

  .journal-index-date {
    padding: 0 14px 4px;
  }

  .journal-entry-open {
    padding: 14px;
  }

  .journal-favorite-button {
    position: absolute;
    right: 24px;
    min-width: 44px;
    min-height: 44px;
  }

  .journal-date-row,
  .journal-mode-bar {
    align-items: flex-start;
  }

  .journal-details-grid {
    grid-template-columns: 1fr;
  }

  .public-service-list article > strong {
    text-align: left;
  }

  .public-offers-action {
    align-items: stretch;
    flex-direction: column;
  }

  .payment-box {
    grid-template-columns: 1fr;
  }

  .request-state,
  .request-card aside {
    justify-items: start;
    padding: 18px 0 0;
    border-top: 1px solid var(--line);
    border-left: 0;
    text-align: left;
  }

  .request-card-number {
    display: none;
  }

  .library-item {
    gap: 12px;
  }

  .library-item-number {
    display: none;
  }

  .library-item-actions,
  .library-item button {
    width: 100%;
    margin-top: 10px;
  }

  .library-reader-toolbar {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    padding: 10px 0 14px;
  }

  .library-reader-actions,
  .narration-controls {
    width: 100%;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .narration-player:not(.is-docked) {
    position: static;
    padding: 18px;
  }

  .narration-player.is-docked {
    right: 14px;
    bottom: 14px;
    width: calc(100% - 28px);
    max-height: 70vh;
    overflow-y: auto;
  }

  .narration-player-heading,
  .picture-book-caption,
  .picture-book-controls {
    align-items: stretch;
    flex-direction: column;
  }

  .picture-book-dialog {
    height: 94vh;
  }

  .picture-book-stage {
    overflow-y: auto;
    grid-template-rows: auto auto auto;
  }

  .picture-book-spread {
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .picture-book-images {
    min-height: 42vh;
  }

  .picture-book-copy {
    overflow: visible;
    border-top: 1px solid var(--line);
    border-left: 0;
  }

  .narration-player-actions {
    flex-wrap: wrap;
  }

  .narration-controls > button {
    flex: 1;
  }

  .narration-speed {
    width: 100%;
    margin-left: 0;
  }

  .narration-volume {
    margin-left: 0;
  }

  .picture-book-controls button {
    width: 100%;
  }

  .continuation-context {
    flex-direction: column;
  }

  .asset-edit-fields {
    grid-template-columns: 1fr;
  }

  .existing-chapter-editor summary,
  .existing-chapter-media li {
    grid-template-columns: 1fr;
  }

  .queue-header,
  .toolbar,
  .preview-heading {
    align-items: stretch;
    flex-direction: column;
  }

  .toolbar label {
    min-width: 0;
  }

  .dialog-bar {
    min-height: 58px;
  }

  #delivery-dialog-content,
  #studio-content {
    padding: 24px 18px 44px;
  }

  .delivery-preview-shell {
    padding: 24px 18px;
  }

  .delivery-chapter-heading {
    grid-template-columns: 1fr;
  }

  .workflow-actions {
    display: grid;
  }

  .review-confirmation {
    max-width: none;
  }
}

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

/* Focused customer navigation
   The browser owns vertical scrolling. Collections, forms, and readers no
   longer compete through nested scroll containers. */
.customer-authenticated {
  height: auto;
  overflow: auto;
}

.customer-authenticated .site-header {
  min-height: 68px;
}

.customer-authenticated .shell {
  width: min(1480px, calc(100% - 40px));
  height: auto;
  min-height: calc(100vh - 68px);
  padding: 20px 0 96px;
}

.customer-authenticated .site-footer {
  display: none;
}

#customer-app,
.customer-workspace-shell,
.customer-workspace-main,
.customer-workspace-content {
  height: auto;
  min-height: 0;
}

.verification-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid var(--white);
  background: var(--white);
  color: var(--black);
}

.verification-banner .eyebrow,
.verification-banner p {
  color: #4a4a47;
}

.verification-banner strong {
  display: block;
  margin: 2px 0 5px;
  font-size: 1.12rem;
}

.verification-banner p {
  margin: 0;
  font-size: 0.82rem;
}

.verification-banner-actions {
  min-width: min(100%, 260px);
}

.verification-banner-actions button {
  width: 100%;
  border-color: var(--black);
  background: var(--black);
  color: var(--white);
}

.verification-banner-actions .message {
  max-width: 260px;
  margin: 8px 0 0;
  color: #4a4a47;
}

.customer-workspace-shell {
  display: grid;
  grid-template-columns: 244px minmax(0, 1fr);
  align-items: start;
  overflow: visible;
  border: 0;
  background: transparent;
}

.customer-sidebar {
  position: sticky;
  top: 88px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-self: start;
  overflow: visible;
  border: 1px solid var(--line);
  border-right: 0;
  background: var(--panel);
}

.customer-sidebar-heading {
  padding: 22px 20px 18px;
  border-bottom: 1px solid var(--line);
}

.customer-sidebar-heading .eyebrow {
  margin-bottom: 8px;
}

.customer-sidebar-heading h1 {
  max-width: 200px;
  margin-bottom: 12px;
  font-size: 1.72rem;
  line-height: 0.98;
  letter-spacing: -0.06em;
}

.customer-sidebar-heading > p:last-child {
  margin: 0;
  color: var(--muted);
  font-family: var(--reading);
  font-size: 0.82rem;
  line-height: 1.5;
}

.customer-sidebar .tabs {
  display: grid;
  grid-template-columns: 1fr;
  margin: 0;
  border: 0;
}

.customer-sidebar .tabs button {
  min-height: 56px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: 11px 17px;
}

.customer-sidebar .tabs button strong {
  font-size: 0.82rem;
  font-weight: 720;
}

.customer-sidebar .dashboard-actions {
  display: grid;
  gap: 8px;
  margin: 18px 17px;
  padding: 0;
}

.customer-sidebar .dashboard-actions button {
  width: 100%;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 0.76rem;
}

.customer-sidebar .account-overview {
  width: 100%;
  min-width: 0;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 0;
  border-top: 1px solid var(--line);
  border-bottom: 0;
}

.customer-sidebar .account-overview > div {
  padding: 13px 12px;
}

.customer-sidebar .account-overview dt {
  margin-bottom: 4px;
  font-size: 0.56rem;
}

.customer-sidebar .account-overview dd {
  font-size: 1.28rem;
}

.customer-workspace-main {
  min-width: 0;
  display: block;
  border: 1px solid var(--line);
  background: var(--black);
}

.customer-workspace-header {
  min-height: 82px;
  display: grid;
  grid-template-columns: minmax(220px, 0.6fr) minmax(260px, 0.85fr);
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: 17px clamp(22px, 3vw, 38px);
  border-bottom: 1px solid var(--line);
  background: var(--black);
}

.customer-workspace-header .eyebrow,
.customer-workspace-header h2,
.customer-workspace-header > p {
  margin: 0;
}

.customer-workspace-header h2 {
  margin-top: 3px;
  font-size: clamp(1.55rem, 2.3vw, 2.2rem);
}

.customer-workspace-header > p {
  max-width: 620px;
  justify-self: end;
  color: var(--muted);
  font-family: var(--reading);
  font-size: 0.92rem;
  line-height: 1.45;
}

.customer-workspace-content {
  overflow: visible;
}

.customer-workspace-content > .tab-panel,
.customer-workspace-content > #requests {
  height: auto;
  min-height: 64vh;
  overflow: visible;
  padding: clamp(24px, 3.5vw, 46px);
  scrollbar-gutter: auto;
}

#journal-home-view,
#library-home-view {
  height: auto;
  display: block;
  overflow: visible;
}

#journal-home-view .journal-index,
#library-home-view .library-shelf,
.request-create-pane,
.request-history,
.request-history-section {
  overflow: visible;
  overscroll-behavior: auto;
  scrollbar-gutter: auto;
}

.customer-workspace-content .section-intro,
.customer-workspace-content .journal-home-heading {
  margin-bottom: 26px;
  padding-bottom: 22px;
}

#journal-home-view .journal-toolbar {
  margin-bottom: 14px;
  padding: 0 0 16px;
}

#journal-home-view .journal-index,
#library-home-view .library-shelf {
  margin-top: 12px;
}

.customer-workspace-content .journal-index-row {
  min-height: 120px;
  grid-template-columns: 120px minmax(0, 1fr) 48px;
}

.customer-workspace-content .journal-mode-bar {
  position: sticky;
  top: 68px;
  z-index: 4;
  margin-bottom: 26px;
  padding: 13px 0;
  background: var(--black);
}

.customer-workspace-content .journal-writing-area {
  min-height: 48vh;
}

.customer-workspace-content .journal-editor-actions,
.customer-workspace-content .journal-reader-actions {
  position: sticky;
  bottom: 0;
  z-index: 3;
  margin-top: 28px;
  padding: 14px 0 16px;
  border-top: 1px solid var(--strong-line);
  background: var(--black);
}

.request-section-bar {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  align-items: end;
  gap: 32px;
  margin-bottom: 32px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--strong-line);
}

.request-section-bar .eyebrow,
.request-section-bar h2 {
  margin-bottom: 0;
}

.request-section-bar h2 {
  max-width: 720px;
  margin-top: 5px;
  font-size: clamp(2.15rem, 4vw, 4.2rem);
}

.request-view-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  border: 1px solid var(--line);
}

.request-view-tabs button {
  min-height: 56px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border: 0;
  border-right: 1px solid var(--line);
  background: var(--panel);
  color: var(--muted);
  padding: 10px 13px;
  text-align: left;
}

.request-view-tabs button:last-child {
  border-right: 0;
}

.request-view-tabs button:hover,
.request-view-tabs button.active {
  background: var(--white);
  color: var(--black);
}

.request-view-tabs span,
.request-view-tabs small {
  font-size: 0.62rem;
  letter-spacing: 0.08em;
}

.request-view-tabs strong {
  font-size: 0.8rem;
}

.request-view-tabs small {
  min-width: 23px;
  padding: 2px 5px;
  border: 1px solid currentColor;
  text-align: center;
}

.request-focused-views {
  width: 100%;
}

.focused-view-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(260px, 0.65fr);
  align-items: end;
  gap: 36px;
  margin-bottom: 24px;
}

.focused-view-heading .eyebrow,
.focused-view-heading h3,
.focused-view-heading > p {
  margin-bottom: 0;
}

.focused-view-heading h3 {
  max-width: 680px;
  margin-top: 5px;
  font-size: clamp(1.45rem, 2.4vw, 2.25rem);
}

.focused-view-heading > p {
  color: var(--muted);
  font-family: var(--reading);
  font-size: 0.92rem;
}

.request-create-pane {
  min-width: 0;
  padding: 0;
}

.request-create-pane .request-builder {
  grid-template-columns: minmax(260px, 0.5fr) minmax(0, 1.5fr);
  gap: 22px;
}

.request-create-pane .service-picker-heading {
  padding: 18px;
}

.request-create-pane .service-option {
  min-height: 62px;
  padding: 10px 12px;
}

.request-create-pane .request-composer {
  gap: 18px;
  padding: 24px;
}

.request-create-pane .request-submit-bar {
  position: sticky;
  bottom: 0;
  z-index: 5;
  margin: 0 -24px -24px;
  padding: 15px 24px 17px;
  border-top: 1px solid var(--strong-line);
  background: var(--panel);
}

.request-history-section {
  max-width: 980px;
  display: block;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}

.request-history-section .collection-heading {
  min-height: 0;
  align-items: end;
  margin-bottom: 12px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--strong-line);
}

.request-history-section .collection-heading h3 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.request-history-section .collection-help {
  max-width: 720px;
  margin-bottom: 20px;
  font-size: 0.86rem;
}

.request-history {
  display: grid;
  gap: 10px;
  padding: 0;
}

.request-history-card {
  display: block;
  border: 1px solid var(--line);
  background: var(--panel);
}

.request-history-card > summary {
  min-height: 84px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  cursor: pointer;
  list-style: none;
}

.request-history-card > summary::-webkit-details-marker {
  display: none;
}

.request-history-card > summary:hover {
  background: var(--panel-raised);
}

.request-history-card > summary .eyebrow,
.request-history-card > summary h3,
.request-history-card .request-context {
  margin-bottom: 0;
}

.request-history-card > summary h3 {
  margin-top: 3px;
  overflow-wrap: anywhere;
  font-size: 1.05rem;
}

.request-history-card > summary .status {
  max-width: 150px;
  text-align: center;
}

.request-history-card > summary::after {
  grid-column: auto;
  justify-self: end;
  content: "View request";
}

.request-history-card[open] > summary::after {
  content: "Hide request";
}

.request-history-detail {
  display: grid;
  gap: 14px;
  padding: 20px;
  border-top: 1px solid var(--line);
}

.request-history-detail .request-note {
  margin: 0;
  color: var(--soft-white);
  font-family: var(--reading);
  font-size: 0.95rem;
  line-height: 1.6;
  white-space: pre-wrap;
}

.request-history-detail .request-state {
  gap: 5px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  border-left: 0;
}

.request-history-detail .payment-box {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.55fr);
  margin-top: 0;
}

#library-home-view .library-toolbar {
  padding-bottom: 0;
}

.customer-workspace-content .library-item {
  min-height: 136px;
  padding: 22px 0;
}

#library-reader-view {
  min-height: 0;
}

.customer-workspace-content .library-reader-toolbar {
  top: 68px;
  margin: -8px 0 32px;
  padding: 8px 0;
}

.customer-workspace-content #library-reader-content {
  padding-bottom: 60px;
}

.customer-workspace-content .customer-delivery > .delivery-hero {
  padding-top: 8px;
}

.customer-workspace-content .delivery-reading-layout {
  grid-template-columns: minmax(150px, 190px) minmax(0, 720px);
}

.text-first-story .delivery-asset[data-media-role="narration"] {
  display: none;
}

.text-first-story .reader-media-only,
.text-first-story .reader-media-only-link {
  display: none;
}

.text-first-story:not(.show-reader-images) .delivery-asset:has(img) {
  display: none;
}

.text-first-story:not(.show-reader-images) .delivery-chapter-assets:not(:has(> .delivery-asset:not(:has(img)):not([data-media-role="narration"]))) {
  display: none;
}

@media (max-width: 1180px) {
  .customer-workspace-shell {
    grid-template-columns: 214px minmax(0, 1fr);
  }

  .customer-sidebar-heading {
    display: none;
  }

  .request-section-bar,
  .focused-view-heading {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 20px;
  }

  .request-view-tabs {
    width: min(100%, 520px);
  }

  .request-create-pane .request-builder,
  .request-create-pane .request-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .verification-banner {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .verification-banner-actions {
    width: 100%;
    min-width: 0;
  }

  .customer-authenticated .shell {
    width: min(100% - 28px, 840px);
    padding-top: 14px;
  }

  .customer-workspace-shell {
    grid-template-columns: 1fr;
  }

  .customer-sidebar {
    position: sticky;
    top: 68px;
    z-index: 12;
    border: 1px solid var(--line);
    border-bottom: 0;
  }

  .customer-sidebar .tabs {
    grid-template-columns: repeat(3, 1fr);
  }

  .customer-sidebar .tabs button {
    min-height: 58px;
    grid-template-columns: 1fr;
    gap: 2px;
    border-right: 1px solid var(--line);
    border-bottom: 0;
    padding: 8px;
    text-align: center;
  }

  .customer-sidebar .tabs button:last-child {
    border-right: 0;
  }

  .customer-sidebar .dashboard-actions,
  .customer-sidebar .account-overview {
    display: none;
  }

  .customer-workspace-main {
    border-top: 1px solid var(--line);
  }

  .customer-workspace-header {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .customer-workspace-header > p {
    max-width: 680px;
    justify-self: start;
  }

  .customer-workspace-content > .tab-panel,
  .customer-workspace-content > #requests {
    min-height: 70vh;
    padding: 28px 24px 48px;
  }

  .customer-workspace-content .journal-mode-bar,
  .customer-workspace-content .library-reader-toolbar {
    top: 126px;
  }
}

@media (max-width: 680px) {
  .customer-authenticated .site-header {
    min-height: 58px;
    padding: 0 15px;
  }

  .customer-authenticated .account-email {
    display: none;
  }

  .customer-authenticated .shell {
    width: 100%;
    padding: 0 0 64px;
  }

  .customer-sidebar {
    top: 58px;
    border-right: 0;
    border-left: 0;
  }

  .customer-sidebar .tabs button {
    min-width: 0;
    min-height: 56px;
    padding: 7px 3px;
  }

  .customer-sidebar .tabs button span {
    display: none;
  }

  .customer-sidebar .tabs button strong {
    font-size: 0.69rem;
    line-height: 1.2;
  }

  .customer-workspace-main {
    border-right: 0;
    border-left: 0;
  }

  .customer-workspace-header {
    min-height: 0;
    padding: 16px;
  }

  .customer-workspace-header > p {
    display: none;
  }

  .customer-workspace-header h2 {
    font-size: 1.5rem;
  }

  .customer-workspace-content > .tab-panel,
  .customer-workspace-content > #requests {
    padding: 24px 16px 42px;
  }

  .customer-workspace-content .journal-home-heading,
  .customer-workspace-content .section-intro,
  .focused-view-heading,
  .request-section-bar {
    display: grid;
    grid-template-columns: 1fr;
    align-items: start;
    gap: 16px;
  }

  .customer-workspace-content .journal-home-heading > button {
    width: 100%;
  }

  .journal-toolbar,
  .library-toolbar {
    grid-template-columns: 1fr;
  }

  .request-section-bar h2 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }

  .request-view-tabs {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .request-view-tabs button {
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) auto;
    padding: 8px 10px;
  }

  .request-view-tabs button > span {
    display: none;
  }

  .request-view-tabs strong {
    font-size: 0.72rem;
  }

  .request-create-pane .request-composer {
    padding: 18px;
  }

  .request-create-pane .request-submit-bar,
  .customer-workspace-content .journal-editor-actions,
  .customer-workspace-content .journal-reader-actions,
  .customer-workspace-content .journal-mode-bar,
  .customer-workspace-content .library-reader-toolbar {
    position: static;
  }

  .request-create-pane .request-submit-bar {
    grid-template-columns: 1fr;
    margin: 0 -18px -18px;
    padding: 16px 18px 18px;
  }

  .request-submit-bar > button {
    width: 100%;
    min-width: 0;
  }

  .request-history-card > summary {
    grid-template-columns: 1fr;
    align-items: start;
    padding: 16px;
  }

  .request-history-card > summary .status,
  .request-history-card > summary::after {
    justify-self: start;
  }

  .customer-workspace-content .journal-index-row,
  .customer-workspace-content .library-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .customer-workspace-content .journal-index-date,
  .customer-workspace-content .journal-entry-open,
  .customer-workspace-content .journal-favorite-button {
    padding: 12px 0;
  }

  .customer-workspace-content .library-item-number {
    display: none;
  }

  .customer-workspace-content .library-item-actions,
  .customer-workspace-content .library-item-actions button {
    width: 100%;
    min-width: 0;
  }

  .library-reader-actions {
    width: 100%;
    flex-wrap: wrap;
    gap: 8px 12px;
  }

  .customer-workspace-content .delivery-reading-layout {
    grid-template-columns: 1fr;
  }
}
