/* Document tools share a paper surface, clear editing controls and quieter supporting panels. */
body.study-edition {
  --ink: var(--brand-estate);
  --text-2: var(--brand-slate);
  --text-3: var(--brand-slate);
  --paper: var(--brand-paper);
  --paper-2: var(--brand-vintage);
  --paper-3: var(--brand-polar);
  --line: var(--brand-line);
  --line-strong: var(--brand-control);
  --cobalt: var(--brand-blue);
  --cobalt-deep: var(--brand-hover);
  --red: var(--brand-error);
  --lemon: var(--brand-polar);
  --lemon-soft: var(--brand-polar);
  --lemon-strong: var(--brand-polar);
  --blue-soft: var(--brand-polar);
  --pink: var(--brand-line);
  --mint: var(--brand-polar);
  --green: var(--brand-estate);
  --serif: var(--brand-font);
  --shadow-s: none;
  --shadow: none;
  --ring: 0 0 0 2px var(--ink);
  --r: var(--brand-radius);
  --dur: 140ms;
  --gutter: var(--brand-gutter);
  --container: var(--brand-width);
  color: var(--ink);
  background: var(--paper-2);
}
.study-edition .edition-path {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 10px;
  min-height: 32px;
  color: var(--text-3);
  font-size: 13px;
}
.edition-path a { display: inline-flex; align-items: center; min-height: 44px; color: inherit; text-decoration: none; padding-block: 6px; }
.edition-path a:hover { color: var(--cobalt); text-decoration: underline; }
.edition-path [aria-current] { color: var(--ink); }
.study-edition :is(.edition-path, .pg, .kit, .ws, #studyWizard, .paper-spread) :focus-visible { outline: 2px solid var(--cobalt); outline-offset: 3px; }
.study-edition :is(input,textarea) { caret-color: var(--cobalt); }
.study-edition ::selection { background: var(--line); color: var(--ink); }
.study-edition .study-button-primary, .study-edition .result-actions .result-primary,
.study-edition .ws-button-dark, .study-edition .pg-primary {
  background: var(--cobalt); border-color: var(--cobalt); color: var(--paper);
}
.study-edition .study-button-primary:hover, .study-edition .result-actions .result-primary:hover,
.study-edition .ws-button-dark:hover, .study-edition .pg-primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); color: var(--paper); }
.study-edition :is(.st-main,.pg,.kit) { padding-top: 20px; }
.study-edition :is(.kit,.pg) h1, .study-edition .study-page-intro h1, .study-edition .study-paper-page-heading h1,
.study-edition .study-wizard-heading h2 {
  font-family: var(--font-body);
  font-weight: 500;
  letter-spacing: -.035em;
  color: var(--ink);
}
.study-edition :is(.kit,.pg) h1, .study-edition .study-page-intro h1 { font-size: clamp(40px,5vw,64px); line-height: 1.04; }
.study-edition .edition-path + :is(header,.study-page-intro) { margin: 20px 0 24px; }
.study-edition :is(.kit,.pg) header > p { max-width: 62ch; font-size: 17px; color: var(--text-2); }

/* Wizard */
.study-entry .edition-path + .study-page-intro.is-compact { margin: 0; }
.study-entry .study-page-intro.is-compact h1 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.study-entry #studyWizard .study-wizard-heading h2[tabindex="-1"]:focus { outline: none; }
.study-entry .study-progress {
  display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 8px; margin: 18px 0 26px;
}
.study-entry .study-progress i { display: none; }
.study-entry .study-progress span {
  padding: 9px 0; border: 0; border-top: 2px solid var(--line); border-radius: 0;
  background: transparent; gap: 8px; color: var(--text-3); font-weight: 500;
}
.study-entry .study-progress span b { border: 0; width: auto; height: auto; color: inherit; background: none; font-variant-numeric: tabular-nums; }
.study-entry .study-progress span.is-active { color: var(--cobalt); border-color: var(--cobalt); font-weight: 650; }
.study-entry .study-progress span.is-done { border-color: var(--ink); color: var(--ink); }
.study-entry .study-progress span:is(.is-active,.is-done) b { color: inherit; background: none; }
.study-entry .study-back { color: var(--text-2); font-weight: 500; margin: 0 0 6px; }
.study-entry .study-wizard-heading h2 { font-size: 39px; line-height: 1.1; }
.study-entry .study-topic-layout { grid-template-columns: minmax(0,1.8fr) minmax(250px,.85fr); gap: 36px; align-items: start; }
.study-entry .study-topic-form { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; padding: 24px; gap: 16px; }
.study-entry .study-order-summary {
  padding: 18px 0; border: 0; border-block: 1px solid var(--line-strong); border-radius: 0;
  color: var(--ink); background: transparent; box-shadow: none;
}
.study-entry .study-order-summary h3 { margin-bottom: 10px; }
.study-entry .study-order-summary :is(a, small, em) { color: var(--text-2); }
.study-entry .study-order-summary a { display: inline-flex; align-items: center; min-height: 44px; color: var(--cobalt); }
.study-entry .study-order-summary dl > div { gap: 12px; border-bottom-style: solid; border-color: var(--line); }
.study-entry .study-order-note { border: 0; }
.study-edition .entry-guide { border: 1px dashed var(--line-strong); background: var(--paper-3); border-radius: 6px; }
.study-edition .entry-guide .study-file-button, .study-edition .entry-guide small { color: var(--ink); }
.study-edition .entry-guide:focus-within, .study-edition .entry-guide.is-dragging { outline-color: var(--cobalt); }
.study-entry #studyTopicForm .study-actionbar { align-items: center; justify-content: space-between; }
.study-entry #studyTopicForm .study-actionbar-info { flex: 1 1 160px; }
.study-entry .study-work-list { display: grid; max-width: none; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; border-top: 1px solid var(--line); }
.study-entry .study-work-row {
  border-radius: 0; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  grid-template-columns: minmax(0,1fr) auto; gap: 12px; padding: 14px 6px; min-height: 84px; text-align: left;
}
.study-entry .study-work-row:hover { background: var(--paper); }


.study-entry .study-wizard-heading { margin-bottom: 14px; }
.study-entry .study-order-summary dd { overflow-wrap: anywhere; }
.study-entry #topicInput { min-height: 74px; }
.study-entry .st-form ::placeholder { color: var(--text-2); }
.entry-subject-picker { margin-top: 5px; }
.entry-guide { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 5px; padding: 14px; }
.entry-guide.is-dragging, .entry-guide:focus-within { outline: 2px solid var(--ink); outline-offset: 2px; }
.study-entry .entry-guide .study-file-button { padding: 0; border: 0; background: transparent; font-size: 16px; font-weight: 560; }
.entry-guide .study-file-button::after { content: ''; position: absolute; inset: 0; cursor: pointer; }
.entry-guide svg { height: 16px; width: 16px; }
.entry-guide > button { position: relative; z-index: 1; }
.entry-guide small { font-size: 14px; pointer-events: none; }
.entry-guide .study-field-hint { flex: auto; overflow-wrap: anywhere; }
.entry-guide .study-field-hint:empty, #readyDownloadError:empty { display: none; }
.entry-settings { border-block: 1px solid var(--line); }
.entry-settings > summary, .review-disclosure > summary, .results-checks > summary { cursor: pointer; min-height: 44px; padding: 12px 0; font-weight: 550; }
.entry-settings-body { display: grid; gap: 18px; padding: 8px 0 16px; }
.review-disclosure { margin-block: 10px; border-bottom: 1px solid var(--line); }
.study-result #diplomaCompletion { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; background: transparent; padding: 0; margin-bottom: 14px; }
#checksSummary { color: var(--text-2); font-weight: 450; }
#missingChecks { margin: 0 0 10px; padding-left: 20px; color: var(--ink); }
.study-result .results-checks a { display: inline-flex; align-items: center; min-height: 44px; }
.study-result .result-ready .study-paper-topline,
.study-result .result-ready .study-checkout-card :is(.study-check-list,.study-safe-payment,.study-pay-button),
.study-result .result-ready .study-checkout-heading p { display: none; }
.study-result .result-actions a:not([hidden]) { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 44px; padding: 8px; border: 1px solid var(--line-strong); color: var(--ink); font-size: 15px; line-height: 1.2; text-decoration: none; }
.study-result .result-actions a.result-primary { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.study-result .result-actions a:hover { text-decoration: underline; text-underline-offset: .2em; }
@media (min-width: 761px) {
  .study-entry #studyTopicForm .study-actionbar-info { display: grid; gap: 2px; color: var(--text-2); }
}

/* Document overview */
.paper-metadata > summary, .paper-preview-description > summary { cursor: pointer; }
.paper-metadata > summary { font-size: 13px; color: var(--text-2); }
.paper-preview-description > summary h2 { display: inline; }
@media (min-width: 761px) {
  .paper-metadata > summary, .paper-preview-description > summary { list-style: none; }
  .paper-metadata > summary::-webkit-details-marker, .paper-preview-description > summary::-webkit-details-marker { display: none; }
  .paper-metadata[open] > summary { display: none; }
}

.study-edition .study-paper-page-heading { padding-bottom: 20px; margin-bottom: 22px; border-bottom: 1px solid var(--line-strong); }
.study-edition .study-paper-page-heading h1 { max-width: 31ch; font-size: 40px; line-height: 1.12; }
.study-edition .study-paper-page-heading p { font-size: 15px; }
.study-edition .study-paper-page-status { background: transparent; border: 0; padding: 0; color: var(--text-2); }
.study-edition .study-status-dot { background: var(--ink); }
.study-edition .paper-spread, .study-edition .paper-controls { min-width: 0; }
.study-edition .result-ready .paper-spread {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(278px, .39fr);
  grid-template-rows: auto 1fr; gap: 14px 36px; align-items: start;
}
.study-edition .result-ready .study-paper-layout { display: contents; }
.study-edition .result-ready .study-paper-column { grid-area: 1 / 1 / 3 / 2; min-width: 0; }
.study-edition .result-ready .paper-controls { grid-area: 1 / 2; }
.study-edition .result-ready .study-checkout-card { grid-area: 2 / 2; position: static; padding: 0; background: transparent; border: 0; }
.study-edition .result-ready .study-checkout-heading { display: none; }
.study-edition .result-ready .study-paper-actionbar { display: none; }
.study-edition .result-actions:not([hidden]) { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; margin: 0 0 18px; }
.study-edition .result-actions a { border-radius: 6px; text-align: center; }
.study-edition .result-actions :is(.result-primary,.result-kit) { grid-column: 1 / -1; }
.study-edition .study-document-tools { margin-top: 0; gap: 8px 18px; }
.study-edition .study-document-tools p { color: var(--text-3); max-width: 66ch; }
.study-edition .study-document-viewer { border-radius: 6px; background: var(--paper-3); }
.study-edition .study-document-navigation { gap: 8px; }
.study-edition .edition-page-jump:not([hidden]) { display: inline-flex; gap: 5px; align-items: center; }
.study-edition .edition-page-jump label { width: auto; margin: 0; }
.study-edition .edition-page-jump input { width: 3.2em; min-height: 44px; padding: 3px; text-align: center; border: 1px solid var(--line-strong); background: var(--paper); border-radius: 6px; font: inherit; appearance: textfield; }
.edition-page-jump input::-webkit-inner-spin-button { appearance: none; }
.study-edition .edition-page-jump button { min-width: 44px; }
.study-edition .study-document-viewport { background: var(--paper-3); }
.study-edition .result-ready .study-paper-format-chip { border: 0; border-top: 1px solid var(--line); padding: 14px 0 0; border-radius: 0; background: transparent; }
.study-edition .study-paper-format-chip button { color: var(--cobalt); }
.study-edition .results-checks summary span { display: block; padding-left: 1em; margin-top: 2px; font-size: 13px; }
.study-edition .paper-controls :is(#stepReview, .study-step-actions, #stepReviewFields) { min-width: 0; }
.study-edition .paper-controls :is(select,textarea) { max-width: 100%; }
.study-edition .paper-spread:has(.review-disclosure[open]) .paper-controls { grid-column: 1 / -1; }
.study-edition .result-ready .paper-spread:has(.review-disclosure[open]) .study-paper-column { grid-area: 2 / 1; }

/* Workspace */
.study-edition.study-ws-body {
  --ws-bg: var(--paper-3); --ws-panel: var(--paper-2); --ws-paper: var(--paper);
  --ws-ink: var(--ink); --ws-text: var(--text-2); --ws-muted: var(--text-3);
  --ws-line: var(--line); --ws-soft-line: var(--line); --ws-danger: var(--red); --ws-ok: var(--text-2);
}
.study-edition .ws-bar { background: var(--paper); gap: 12px; }
.study-edition .ws-bar-actions :is(.ws-button,.ws-icon-button) { min-height: 44px; border-radius: 6px; }
.study-edition .ws-bar .ws-logo { border: 0; background: transparent; width: 44px; height: 44px; font-size: 20px; }
.study-edition .ws-title > strong { font-family: var(--font-body); font-size: 19px; font-weight: 500; }
.ws-more { position: relative; }
.ws-more summary { list-style: none; }
.ws-more summary::-webkit-details-marker { display: none; }
.ws-popover { position: absolute; z-index: 20; top: calc(100% + 6px); right: 0; display: grid; width: 220px; padding: 6px; background: var(--paper); border: 1px solid var(--line-strong); border-radius: 6px; }
.study-edition .ws-popover :is(.ws-button,.ws-text-button) { justify-content: flex-start; width: 100%; border: 0; padding: 0 12px; background: transparent; }
.study-edition .ws-popover :is(.ws-button,.ws-text-button):hover { background: var(--paper-3); }
.study-edition .ws-focus[aria-pressed=true], .study-edition .ws-outline button.is-active, .study-edition .ws-tabs button.is-active { background: var(--paper-3); color: var(--cobalt); }
.study-edition .ws-doc { padding-top: 22px; }
.study-edition .ws-sheet { color: #202020; border-radius: 0; box-shadow: none; padding: 44px 48px 56px; }
.study-edition .ws-sheet-title { text-align: left; }
.study-edition .ws-sheet-title h1 { font-size: 29px; font-family: inherit; font-weight: 500; }
.study-edition .ws-sheet-title > span { display: none; }
.study-edition .ws-block h2, .study-edition .ws-assistant-head h2, .ws-paper-list > summary { color: var(--ink); font-size: 16px; font-weight: 600; }
.ws-paper-list > summary, .ws-contents > summary { cursor: pointer; min-height: 44px; }
.study-edition .ws-contents { padding: 0; margin-bottom: 16px; }
.study-edition .ws-contents > summary { font: 550 14px/1.5 var(--font-body); color: var(--text-2); padding: 5px 0; }
.study-edition .ws-contents[open] { padding-bottom: 12px; }
.study-edition .ws-section h2 { text-transform: none; }
.study-edition .ws-section.is-editing { background: var(--paper-3); border-color: var(--cobalt); }
.study-edition .ws-send { background: var(--cobalt); }
.study-edition .ws-section:focus { outline: 0; }
@media (min-width: 901px) {
  .study-edition .ws-panes { grid-template-columns: minmax(205px,.8fr) minmax(0,2.7fr) minmax(225px,.92fr); }
  .study-edition .ws-document-only .ws-panes { grid-template-columns: minmax(0,1fr); }
  .study-edition .ws-document-only :is(.ws-side,.ws-assistant) { display: none; }
}

/* Assembly */
.kit-export-jump { display: none; }
#kitExportTitle { scroll-margin-top: 85px; }
.study-edition .kit { max-width: 1170px; margin-block: 0 70px; }
.study-edition #kitForm { display: grid; grid-template-columns: minmax(0,1.8fr) minmax(260px,.85fr); align-items: start; gap: 32px; }
.study-edition .kit-fields > fieldset { margin: 0 0 20px; padding: 16px 22px 20px; border-radius: 6px; background: var(--paper); }
.study-edition .kit-fields legend { color: var(--ink); padding: 0 6px; font-size: 20px; font-weight: 600; }
.study-edition .kit-choice { align-items: center; min-height: 44px; margin: 0; padding-block: 4px; }
.study-edition .kit-choice input { accent-color: var(--cobalt); }
.study-edition .kit-upload { margin-top: 16px; padding-top: 15px; border-top: 1px solid var(--line); }
.study-edition .kit-export { position: sticky; top: 78px; padding: 15px 0; border-top: 2px solid var(--ink); }
.kit-manifest { margin: 14px 0 8px; }
.kit-manifest > div { display: flex; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); padding-block: 9px; font-size: 14px; }
.kit-manifest dd { margin: 0; color: var(--text-2); text-align: right; }
.study-edition .kit-export h2 { margin: 0; font: 500 26px/1.15 var(--font-body); }
.study-edition .kit-export .kit-actions { display: grid; margin: 16px 0; }
.study-edition .kit-export .study-button { width: 100%; }

/* The experiment opens at the editor. Project and dataset settings expand in place. */
.study-edition .pg header h1 { margin: 0 0 8px; }
.study-edition .pg header p { margin: 0; }
.study-edition .pg-disclosure > summary span { display: inline-block; vertical-align: bottom; color: var(--text-3); font-weight: 400; font-size: 13px; overflow: hidden; max-width: 62%; text-overflow: ellipsis; white-space: nowrap; margin-left: 6px; }
.study-edition .pg-setup { display: grid; gap: 0 24px; grid-template-columns: repeat(2,minmax(0,1fr)); align-items: start; }
.study-edition .pg-disclosure { min-width: 0; border-block: 1px solid var(--line); }
.study-edition .pg-disclosure > summary { padding: 12px 0; color: var(--ink); font-weight: 600; }
.study-edition .pg-disclosure[open] { grid-column: 1 / -1; padding-bottom: 12px; }
.study-edition .pg-disclosure .pg-settings { border: 0; margin: 8px 0; }
.study-edition .pg-columns { gap: 18px; grid-template-columns: minmax(0,1.35fr) minmax(0,1fr); }
.study-edition .pg-panel { background: var(--paper); border: 1px solid var(--line); border-radius: 6px; }
.study-edition .pg-panel-head { margin: 0; align-items: center; }
.study-edition .pg-panel-head label { display: flex; align-items: center; gap: 10px; }
.study-edition .pg #dataInfo { font-size: 13px; overflow-wrap: anywhere; margin: 12px 0; color: var(--text-2); }
.study-edition .pg-code-label { color: var(--ink); font-weight: 600; }
.study-edition .pg #code { display: block; color: var(--ink); background: var(--paper-3); border-radius: 6px; min-height: 160px; margin-top: 6px; }
.study-edition .pg .pg-code-help { margin: 6px 0; font-size: 14px; color: var(--text-2); }
.study-edition .pg .pg-code-help > summary { min-height: 44px; }
.study-edition .pg .pg-result-link { display: inline-flex; align-items: center; min-height: 44px; color: var(--cobalt); font-size: 14px; }
.study-edition .pg-actions { gap: 8px 12px; }
.study-edition .pg .pg-primary { padding-inline: 20px; }
.study-edition .pg-result { scroll-margin-top: 80px; }
.study-edition .pg-result #runStatus { min-height: 44px; line-height: 1.5; }
.study-edition .pg-table th { background: var(--paper-3); }
.study-edition .pg-insert { border-top: 2px solid var(--ink); }
.study-edition .pg h2 { font-family: var(--font-body); font-weight: 500; font-size: 27px; }

@media (max-width: 900px) {
  .study-edition .ws-bar { padding: 5px 12px; }
  .study-edition .ws-title strong { font-size: 17px; }
  .study-edition .ws-bar-actions { gap: 6px; align-items: center; flex-wrap: nowrap; }
  .study-edition .ws-bar-actions :is(.ws-icon-button,.ws-button) { min-width: 44px; }
  .study-edition .ws-bar-actions #downloadButton, .study-edition .ws-bar-actions #downloadPdfButton { width: auto; padding: 0 12px; }
  .study-edition :is(.ws-popover,#downloadButton,#downloadPdfButton) span { display: inline; }
  .study-edition .ws-more { margin-right: auto; }
  .study-edition .ws-more .ws-popover { left: -60px; right: auto; }
  .study-edition .ws-bar-actions .ws-focus { display: none; }
  .study-edition .ws-tabs { padding: 3px 10px; }
  .study-edition .ws-tabs button { min-height: 44px; }
  .study-edition .ws-doc { padding: 10px 8px 50px; }
  .study-edition .ws-sheet { padding: 22px 16px 30px; }
  .study-edition .ws-sheet-title h1 { font-size: 23px; }
  .study-edition .ws-section { margin: 0 -7px; padding: 8px 7px; }
  .study-edition .ws-mini { min-height: 44px; }
  .study-edition .ws-outline button { min-height: 44px; }
  .study-edition .ws-section-head { display: block; }
  .study-edition .ws-section-body p { text-align: left; }
}
@media (max-width: 760px) {
  .study-edition :is(.st-main,.pg,.kit) { padding-top: 9px; }
  .study-edition .edition-path { font-size: 13px; gap: 0 7px; }
  .study-edition .edition-path + :is(header,.study-page-intro) { margin: 12px 0 16px; }
  .study-edition :is(.kit,.pg) h1, .study-edition .study-page-intro h1, .study-entry .study-wizard-heading h2 { font-size: 32px; }
  .study-edition .study-paper-page-heading h1 { font-size: 25px; line-height: 1.1; }
  .study-result .edition-path + .study-paper-page-heading { margin: 4px 0 8px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 2px 8px; align-items: center; padding-bottom: 5px; }
  .paper-heading-copy { display: contents; }
  .paper-heading-copy h1 { grid-column: 1 / -1; margin: 0; }
  .paper-metadata { grid-column: 1; grid-row: 2; }
  .paper-metadata > summary { padding-block: 10px; min-height: 44px; }
  .paper-metadata[open] { grid-column: 1 / -1; }
  .study-edition .study-paper-page-heading p { margin: 0 0 10px; font-size: 13px; }
  .study-edition .study-paper-page-status { grid-column: 2; grid-row: 2; justify-self: end; align-self: start; padding-top: 10px; font-size: 12px; }
  .study-edition .study-paper-page-heading:has(.paper-metadata[open]) .study-paper-page-status { grid-row: 3; padding-block: 2px; }
  .paper-preview-description { min-width: 0; }
  .study-edition .paper-preview-description > summary { min-height: 44px; padding-block: 6px; }
  .study-edition .paper-preview-description > summary h2 { font-size: 19px; }
  .study-edition :is(.kit,.pg) header > p { font-size: 15px; }
  .study-entry .study-progress { gap: 5px; margin: 8px 0; }
  .study-entry .study-progress span { gap: 4px; padding: 6px 0; font-size: 12px; }
  .study-entry .study-progress em { display: inline; }
  .study-entry .study-topic-layout,.study-edition #kitForm,.study-edition .pg-columns { display: grid; grid-template-columns: minmax(0,1fr); gap: 16px; }
  html:has(.study-entry .study-actionbar) { scroll-padding-bottom: 16px; }
  .study-entry main:has([data-step="topic"].is-active) .edition-path { display: none; }
  .study-entry .study-actionbar { position: static; margin-inline: 0; padding: 10px 0; background: transparent; gap: 6px; }
  .study-entry #studyTopicForm .study-actionbar-info, .study-entry .study-outline-actions .study-actionbar-info { display: flex; flex: 1 1 100%; gap: 4px 8px; align-items: baseline; }
  .study-entry .entry-ruble-price { display: none; }
  .study-entry .study-topic-form { gap: 12px; padding: 0; background: transparent; border: 0; }
  .study-entry .study-work-list { grid-template-columns: minmax(0,1fr); }
  .study-entry .study-work-row { padding-inline: 0; min-height: 74px; }
  .study-entry .study-work-price { grid-column: auto; }
  .study-entry .study-topic-form { order: -1; }
  .study-entry .study-order-summary { position: static; margin-top: 8px; }
  .study-entry .study-back { min-height: 44px; }
  .study-edition .result-ready .paper-spread { display: flex; flex-direction: column; align-items: stretch; gap: 12px; }
  .study-edition .result-ready .paper-controls { display: contents; }
  .study-edition .result-ready .study-paper-column { order: 2; }
  .study-edition .result-ready :is(.review-disclosure,#diplomaCompletion,.study-format-panel,.study-checkout-card) { order: 3; }
  .study-edition .result-actions:not([hidden]) { margin: 0; gap: 6px; }
  .study-edition .result-actions :is(.result-primary,.result-kit) { grid-column: auto; }
  .study-edition .result-actions a { padding-inline: 6px; font-size: 14px; }
  .study-edition .study-document-tools { flex-direction: row; align-items: baseline; justify-content: space-between; gap: 6px; margin-bottom: 4px; }
  .study-edition .study-document-tools p { font-size: 13px; }
  .study-edition .study-document-tools button { max-width: none; min-height: 44px; }
  .study-edition .study-document-navigation { gap: 4px; padding: 6px; flex-wrap: nowrap; }
  .study-edition .study-document-navigation > :is(#documentPrev,#documentNext) { min-width: 44px; }
  .study-edition .study-document-navigation > label { margin-left: auto; min-width: 0; }
  .study-edition .study-document-navigation > label > span, .study-edition .edition-page-jump label { display: none; }
  .study-edition .study-document-navigation select { min-width: 0; max-width: 100%; padding: 5px 2px; font-size: 13px; }
  .study-edition .edition-page-jump { white-space: nowrap; }
  .study-edition .study-document-navigation > label { width: auto; font-size: 13px; }
  .study-edition .study-document-navigation :is(button,select) { min-height: 44px; }
  .study-edition .edition-page-jump { font-size: 13px; }
  .study-edition .kit-export { position: static; }
  .kit-export-jump { display: inline-flex; align-items: center; min-height: 44px; color: var(--cobalt); font-size: 14px; }
  .study-edition .kit-fields > fieldset { padding: 12px 14px; }
  .study-edition .pg-setup { gap: 0 12px; }
  .study-edition .pg-disclosure > summary span { display: block; max-width: 100%; margin-left: 13px; }
  .study-edition .pg #code { height: 11em; }
  .study-edition .pg #example { padding: 8px; min-height: 44px; font-size: 13px; }
  .study-edition .pg #language { padding: 8px; font-size: 14px; }
  .study-edition .pg-editor > .pg-actions { margin-top: 8px; }
  .study-edition .pg-editor .pg-code-help { margin-bottom: 0; }
  .study-edition .pg-panel { padding: 14px; }
  .study-edition .pg-panel-head { gap: 8px; }
  .study-edition .pg-panel-head label { gap: 5px; }
}
@media (max-width: 355px) {
  .study-edition .study-document-navigation { flex-wrap: wrap; }
  .study-edition .study-document-navigation > label { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .study-edition .study-wizard-step.is-active, .study-edition .study-outline-card.is-just-selected { animation: none; }
}
