/* ScholarOS V10 · 论文排版页专属样式
   统一标题换行、产品界面字号与模块对齐，不影响其他能力页。 */

.v10-formatting-page .capx-shell {
  width: min(1200px, calc(100% - 64px));
}

.v10-formatting-page .eyebrow {
  font-size: 11px;
  font-weight: 650;
  letter-spacing: .1em;
  line-height: 1;
}

.v10-formatting-page .capx-hero {
  padding-bottom: 88px;
}

.v10-formatting-page .capx-writing-rhythm-hero::before {
  top: 35px;
  right: auto;
  left: 50%;
  width: 760px;
  height: 520px;
  transform: translateX(-50%);
  background: radial-gradient(circle,rgba(13,76,232,.075),rgba(13,76,232,0) 70%);
}

/* English formatting reuses the Chinese V11 composition with a tighter,
   language-aware type rhythm. The page structure and breakpoints stay shared. */
body.v10-formatting-page .capx-writing-rhythm-hero .capx-shell {
  position: relative;
  width: min(1180px,calc(100% - 48px));
}

body.v10-formatting-page .capx-writing-rhythm-hero .breadcrumb { min-height: 17px; margin-bottom: 0; }
body.v10-formatting-page .capx-writing-rhythm-copy { position: relative; margin-top: 44px; }

body.v10-formatting-page .capx-writing-rhythm-copy h1 {
  max-width: 1120px;
  margin: 0;
  color: var(--cap-ink);
  font-size: clamp(50px,4.75vw,68px);
  font-weight: 670;
  letter-spacing: -.052em;
  line-height: 1.04;
  text-wrap: balance;
  animation: writingRise .72s cubic-bezier(.22,1,.36,1) both;
}

body.v10-formatting-page .capx-writing-rhythm-copy h1 span {
  display: block;
  margin-top: 5px;
  color: var(--cap-blue);
}

body.v10-formatting-page .capx-writing-rhythm-side {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 48px;
  margin-top: 34px;
  padding-top: 25px;
  border-top: 1px solid rgba(17,31,56,.13);
  animation: writingRise .72s .08s cubic-bezier(.22,1,.36,1) both;
}

body.v10-formatting-page .capx-writing-rhythm-side p {
  max-width: 860px;
  margin: 0;
  color: #5f6774;
  font-size: 16px;
  line-height: 1.7;
}

body.v10-formatting-page .capx-writing-rhythm-side p span { display: block; }
body.v10-formatting-page .capx-writing-rhythm-side p span + span { margin-top: 5px; }
body.v10-formatting-page .capx-writing-rhythm-side .button { flex: 0 0 auto; margin-top: 0; }
body.v10-formatting-page .capx-writing-rhythm-visual { position: relative; margin-top: 64px; animation: writingWorkbenchIn .9s .16s cubic-bezier(.22,1,.36,1) both; }

@media (max-width: 980px) {
  body.v10-formatting-page .capx-writing-rhythm-side { flex-direction: column; gap: 22px; }
  body.v10-formatting-page .capx-writing-rhythm-side p { max-width: 74ch; }
}

@media (max-width: 680px) {
  body.v10-formatting-page .capx-writing-rhythm-hero { padding: 126px 0 76px; }
  body.v10-formatting-page .capx-writing-rhythm-hero .capx-shell { width: min(100% - 36px,1180px); }
  body.v10-formatting-page .capx-writing-rhythm-copy { margin-top: 38px; }
  body.v10-formatting-page .capx-writing-rhythm-copy h1 { max-width: none; font-size: 42px; line-height: 1.07; }
  body.v10-formatting-page .capx-writing-rhythm-copy h1 span { margin-top: 7px; }
  body.v10-formatting-page .capx-writing-rhythm-side { gap: 20px; margin-top: 27px; padding-top: 22px; }
  body.v10-formatting-page .capx-writing-rhythm-side p { font-size: 15px; line-height: 1.68; }
  body.v10-formatting-page .capx-writing-rhythm-visual { margin-top: 48px; }
}

.v10-formatting-page .v8-formatting-hero .capx-shell {
  width: min(1280px, calc(100% - 64px));
}

.v10-formatting-page .v8-formatting-hero .capx-hero-grid {
  grid-template-columns: 420px minmax(0, 1fr);
  gap: 42px;
}

.v10-formatting-page .v8-formatting-hero .capx-hero-copy h1 {
  max-width: 590px;
  font-size: 52px;
  line-height: 1.06;
}

.v10-formatting-page .v10-title-line {
  display: block;
  color: var(--cap-ink);
  white-space: nowrap;
}

.v10-formatting-page .v10-title-line.v10-title-accent {
  color: var(--cap-blue);
}

.v10-formatting-page .capx-hero-copy > p {
  max-width: 410px;
  font-size: 16px;
  line-height: 1.8;
}

.v10-formatting-page .capx-section {
  padding: 104px 0;
}

.v10-formatting-page .capx-section-head {
  max-width: 1040px;
}

.v10-formatting-page .capx-section-head h2 {
  max-width: none;
  font-size: 44px;
  line-height: 1.16;
  white-space: nowrap;
}

.v10-formatting-page .capx-section-head h2 span,
.v10-formatting-page .capx-final h2 span {
  display: inline;
}

.v10-formatting-page .capx-section-head p {
  max-width: 760px;
  margin-top: 20px;
  font-size: 16px;
  line-height: 1.8;
}

.v10-formatting-page .capx-final {
  padding: 92px 0 100px;
  background: var(--cap-blue);
}

.v10-formatting-page .capx-final h2 {
  max-width: none;
  font-size: 48px;
  line-height: 1.16;
  white-space: nowrap;
}

.v10-formatting-page .capx-final p {
  font-size: 16px;
  line-height: 1.8;
}

/* Hero product preview — one coherent type scale */
.v10-formatting-page .v8-format-studio > header {
  min-height: 64px;
  padding: 12px 20px;
}

.v10-formatting-page .v8-format-studio > header small {
  font-size: 10px;
  line-height: 1.25;
}

.v10-formatting-page .v8-format-studio > header strong {
  margin-top: 5px;
  font-size: 13px;
  line-height: 1.35;
}

.v10-formatting-page .v8-format-studio > header > span {
  font-size: 10.5px;
  line-height: 1.4;
}

.v10-formatting-page .v8-format-main {
  min-height: 416px;
}

.v10-formatting-page .v8-format-page {
  padding: 34px 34px 30px;
}

.v10-formatting-page .v8-format-page > small {
  font-size: 8px;
  line-height: 1.3;
}

.v10-formatting-page .v8-format-page h2 {
  font-size: 18px;
  line-height: 1.25;
}

.v10-formatting-page .v8-format-page h3 {
  font-size: 12px;
  line-height: 1.45;
}

.v10-formatting-page .v8-format-page p {
  font-size: 9px;
  line-height: 1.8;
}

.v10-formatting-page .v8-format-rule {
  padding: 28px 24px;
}

.v10-formatting-page .v8-format-rule > small,
.v10-formatting-page .v8-format-rule dt,
.v10-formatting-page .v8-format-rule dd {
  font-size: 10px;
  line-height: 1.45;
}

.v10-formatting-page .v8-format-rule h3 {
  margin: 9px 0 21px;
  font-size: 17px;
  line-height: 1.35;
}

.v10-formatting-page .v8-format-rule dl div {
  align-items: baseline;
  min-height: 43px;
  padding: 10px 0;
}

.v10-formatting-page .v8-format-rule p {
  font-size: 10px;
  line-height: 1.6;
}

.v10-formatting-page .v8-format-tabs button {
  min-height: 58px;
  font-size: 11px;
}

.v10-formatting-page .v8-format-tabs button b {
  font-size: 10px;
}

/* Hero formatting studio — simplified from the real formatting interface */
.v10-format-studio {
  min-width: 0;
  border-color: #cfd9e6;
  background: #e9eef5;
  box-shadow: 0 32px 80px rgba(34, 51, 84, .15), 0 2px 8px rgba(34, 51, 84, .06);
}

.v10-format-studio > header {
  background: rgba(255, 255, 255, .98);
}

.v10-format-progress {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  min-height: 56px;
  margin: 0;
  padding: 0;
  border-bottom: 1px solid #dce3ed;
  background: #f8fafc;
  list-style: none;
}

.v10-format-progress li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 0 16px;
  border-right: 1px solid #e2e7ee;
  color: #788598;
  font-size: 10px;
  line-height: 1.35;
}

.v10-format-progress li:last-child {
  border-right: 0;
}

.v10-format-progress li b {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border: 1px solid #cbd5e2;
  border-radius: 50%;
  color: #7f8b9c;
  background: #fff;
  font-size: 8px;
  font-weight: 650;
}

.v10-format-progress li.done {
  color: #617086;
}

.v10-format-progress li.done b {
  border-color: #b9e2cf;
  color: #23855b;
  background: #eef9f3;
}

.v10-format-progress li.active {
  color: var(--cap-blue);
  background: #f0f5ff;
  box-shadow: inset 0 -2px var(--cap-blue);
  font-weight: 620;
}

.v10-format-progress li.active b {
  border-color: var(--cap-blue);
  color: #fff;
  background: var(--cap-blue);
}

.v10-format-main {
  grid-template-columns: minmax(0, 1.22fr) minmax(300px, .78fr);
  min-height: 500px;
}

.v10-format-document-stage {
  position: relative;
  min-width: 0;
  padding: 56px 20px 18px;
  border-right: 1px solid #dce3ed;
  background: #e9eef5;
}

.v10-document-toolbar {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 40px;
  padding: 0 16px;
  border-bottom: 1px solid #d5dee9;
  background: #f7f9fc;
  color: #6f7c8e;
  font-family: Inter, sans-serif;
  font-size: 9px;
}

.v10-document-toolbar > div,
.v10-document-toolbar > p {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.v10-document-toolbar > div > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c3ccd8;
}

.v10-document-toolbar > div > span:first-child { background: #e0a29c; }
.v10-document-toolbar > div > span:nth-child(2) { background: #dfc27c; }
.v10-document-toolbar > div > span:nth-child(3) { background: #8fc7a8; }

.v10-document-toolbar strong {
  margin-left: 4px;
  color: #536175;
  font-size: 9.5px;
  font-weight: 620;
}

.v10-document-toolbar button {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  padding: 0;
  border: 1px solid #d4dde8;
  border-radius: 5px;
  color: #657387;
  background: #fff;
  font: inherit;
}

.v10-document-toolbar b,
.v10-document-toolbar em {
  font-size: 8.5px;
  font-style: normal;
  font-weight: 550;
}

.v10-document-toolbar i {
  width: 1px;
  height: 14px;
  margin: 0 3px;
  background: #d7dfe9;
}

.v10-formatting-page .v10-format-page {
  width: min(100%, 342px);
  min-height: 426px;
  margin: 0 auto;
  padding: 32px 30px 28px;
  border-color: #d6dde7;
  box-shadow: 0 12px 28px rgba(39, 54, 82, .1), 0 1px 2px rgba(39, 54, 82, .06);
  animation: v10-format-view-in .18s ease-out both;
}

.v10-formatting-page .v10-format-page h2 {
  margin: 20px 0 18px;
  font-size: 18px;
  font-weight: 650;
}

.v10-formatting-page .v10-format-page h3 {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 620;
}

.v10-formatting-page .v10-format-page p {
  margin-bottom: 11px;
  color: #566171;
  font-size: 9px;
  line-height: 1.82;
}

.v10-format-page .v10-format-focus {
  position: relative;
  margin-right: -9px;
  margin-left: -9px;
  padding: 7px 9px;
  background: #edf3ff;
  box-shadow: inset 2px 0 var(--cap-blue), 0 0 0 1px rgba(13, 76, 232, .04);
}

.v10-format-page h2.v10-format-focus {
  margin-top: 12px;
  margin-bottom: 11px;
}

.v10-format-page h3.v10-format-focus {
  margin-bottom: 9px;
}

.v10-format-page p.v10-format-focus {
  margin-bottom: 4px;
}

.v10-format-page .v10-format-figure {
  min-height: 72px;
  margin-top: 14px;
}

.v10-format-page .v10-format-equation {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 50px;
  margin-top: 8px;
  color: #354055;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 12px;
  text-align: center;
}

.v10-format-page .v10-format-equation small {
  color: #8791a0;
  font-family: Inter, sans-serif;
  font-size: 8px;
}

.v10-paper-note {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  min-height: 38px !important;
  margin-top: 16px !important;
  padding: 0 12px;
  border: 1px solid #dbe4f4 !important;
  background: #f8faff !important;
  font-family: Inter, sans-serif;
}

.v10-paper-note span {
  color: #748195;
  font-size: 8px;
}

.v10-paper-note strong {
  color: var(--cap-blue);
  font-size: 8px;
  font-weight: 620;
}

.v10-citation-mark {
  margin-left: 2px;
  padding: 1px 2px;
  border-radius: 3px;
  color: var(--cap-blue);
  background: #eaf1ff;
  font-family: Inter, sans-serif;
  font-size: .8em;
  font-weight: 650;
}

.v10-paper-references {
  margin: 0;
  padding: 0;
  color: #66707e;
  font-family: Georgia, "Songti SC", serif;
  font-size: 8px;
  line-height: 1.68;
  list-style: none;
}

.v10-paper-references li {
  margin-top: 5px;
  padding-left: 18px;
  text-indent: -18px;
}

.v10-paper-references li::before {
  margin-right: 4px;
  color: var(--cap-blue);
  content: "[" counter(list-item) "]";
}

.v10-formatting-page .v10-format-rule {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 0;
  border-left: 0;
  background: #fff;
  animation: v10-format-view-in .18s ease-out both;
}

.v10-format-rule > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 72px;
  padding: 16px 20px;
  border-bottom: 1px solid #e3e8ef;
}

.v10-format-rule > header small {
  display: block;
  color: #758297;
  font-size: 9px;
  line-height: 1.2;
}

.v10-format-rule > header h3 {
  margin: 6px 0 0;
  color: #29364a;
  font-size: 16px;
  font-weight: 650;
  line-height: 1.35;
}

.v10-format-rule > header > span {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #5f6d80;
  font-size: 9.5px;
  white-space: nowrap;
}

.v10-format-rule > header > span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #31ad78;
  box-shadow: 0 0 0 4px #e8f7ef;
}

.v10-setting-category {
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 40px;
  padding: 0 20px;
  overflow: hidden;
  border-bottom: 1px solid #e6ebf1;
  color: #8793a5;
  background: #fbfcfe;
  font-size: 9.5px;
  white-space: nowrap;
}

.v10-setting-category b {
  color: #243248;
  font-weight: 650;
}

.v10-setting-category b::after {
  display: block;
  width: 100%;
  height: 2px;
  margin-top: 5px;
  background: var(--cap-blue);
  content: "";
}

.v10-reference-category {
  gap: 24px;
}

.v10-setting-scope {
  display: flex;
  align-items: center;
  gap: 16px;
  min-height: 40px;
  padding: 0 20px;
  overflow: hidden;
  border-bottom: 1px solid #e7ebf1;
  color: #8a96a7;
  font-size: 9px;
  white-space: nowrap;
}

.v10-setting-scope b {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  color: var(--cap-blue);
  font-weight: 620;
}

.v10-setting-scope b::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 1.5px;
  background: var(--cap-blue);
  content: "";
}

.v10-formatting-page .v10-format-rule dl {
  margin: 0;
  padding: 10px 20px 8px;
}

.v10-formatting-page .v10-format-rule dl div {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-height: 50px;
  padding: 6px 0;
  border-bottom: 0;
}

.v10-formatting-page .v10-format-rule dt {
  color: #647286;
  font-size: 9.5px;
  font-weight: 520;
}

.v10-formatting-page .v10-format-rule dd {
  min-width: 0;
  margin: 0;
  min-height: 34px;
  padding: 8px 10px;
  overflow: hidden;
  border: 1px solid #d9e2ef;
  border-radius: 6px;
  color: #253349;
  background: #fff;
  font-size: 10px;
  font-weight: 550;
  line-height: 1.35;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v10-formatting-page .v10-format-rule dd::after {
  float: right;
  margin-left: 7px;
  color: #8b98aa;
  content: "⌄";
}

.v10-change-record {
  margin: 4px 20px 0;
  padding: 10px 12px;
  border: 1px solid #dbe4f2;
  border-left: 2px solid #6f95ef;
  border-radius: 0 6px 6px 0;
  background: #f6f9ff;
}

.v10-change-record small {
  display: block;
  color: #6d7a8e;
  font-size: 8.5px;
  font-weight: 620;
}

.v10-change-record p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 0 !important;
  padding: 0 !important;
  border-left: 0 !important;
  color: #687589 !important;
  background: transparent !important;
  font-size: 9px !important;
  line-height: 1.35 !important;
}

.v10-change-record p span {
  color: #9aa4b2;
  text-decoration: line-through;
}

.v10-change-record p i {
  color: #9aa8ba;
  font-style: normal;
}

.v10-change-record p b {
  color: #2e3d53;
  font-weight: 630;
}

.v10-format-rule > footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 50px;
  margin-top: auto;
  padding: 12px 20px;
  border-top: 1px solid #e3e8ef;
  color: #657286;
  background: #fbfcfe;
  font-size: 9px;
}

.v10-format-rule > footer strong {
  color: var(--cap-blue);
  font-size: 9.5px;
  font-weight: 620;
  text-align: right;
}

.v10-format-studio .v8-format-tabs button {
  gap: 8px;
  padding-inline: 16px;
  color: #5d6a7e;
  background: #fff;
  font-weight: 540;
  transition: color .14s ease-out, background-color .14s ease-out, box-shadow .14s ease-out, transform .1s ease-out;
}

.v10-format-studio .v8-format-tabs button span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v10-format-studio .v8-format-tabs button:hover {
  color: #26364d;
  background: #f8fafc;
}

.v10-format-studio .v8-format-tabs button:active {
  transform: translateY(1px);
}

.v10-format-studio .v8-format-tabs button:focus-visible,
.v10-document-toolbar button:focus-visible {
  position: relative;
  z-index: 2;
  outline: 2px solid rgba(13, 76, 232, .5);
  outline-offset: -3px;
}

.v10-format-studio .v8-format-tabs button.active {
  color: var(--cap-blue);
  background: #f0f5ff;
  font-weight: 650;
  box-shadow: inset 0 -3px var(--cap-blue);
}

@keyframes v10-format-view-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Two equivalent entry states */
.v10-formatting-page .v8-format-entry {
  gap: 48px;
  margin-top: 48px;
}

.v10-formatting-page .v8-format-entry article {
  padding: 30px 0 32px;
}

.v10-formatting-page .v8-format-entry small,
.v10-formatting-page .v8-format-delivery-flow article small {
  font-size: 11px;
  line-height: 1.35;
}

.v10-formatting-page .v8-format-entry strong {
  margin-top: 15px;
  font-size: 18px;
  line-height: 1.4;
}

.v10-formatting-page .v8-format-entry span {
  max-width: 480px;
  margin-top: 9px;
  font-size: 13px;
  line-height: 1.7;
}

/* Requirement workbench */
.v10-rule-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  margin-top: 56px;
  overflow: hidden;
  border: 1px solid #d6deea;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 50px rgba(40, 56, 88, .08);
}

.v10-rule-nav {
  min-width: 0;
  padding: 22px 14px;
  border-right: 1px solid #dce3ed;
  background: #f7f9fc;
}

.v10-rule-nav header {
  padding: 8px 10px 20px;
}

.v10-rule-nav header small {
  display: block;
  color: #8a95a5;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  line-height: 1.2;
}

.v10-rule-nav header strong {
  display: block;
  margin-top: 7px;
  color: #28364b;
  font-size: 15px;
  font-weight: 630;
  line-height: 1.35;
}

.v10-rule-nav button {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 78px;
  padding: 12px 10px;
  border: 0;
  border-top: 1px solid #e1e7ef;
  border-radius: 8px;
  color: #5f6d81;
  background: transparent;
  text-align: left;
  cursor: pointer;
  transition: color .18s ease, background .18s ease, box-shadow .18s ease;
}

.v10-rule-nav button:hover {
  color: #26364d;
  background: rgba(255, 255, 255, .72);
}

.v10-rule-nav button.active {
  color: var(--cap-blue);
  background: #fff;
  box-shadow: inset 2px 0 var(--cap-blue), 0 5px 18px rgba(47, 67, 105, .07);
}

.v10-rule-nav button > small {
  color: #9aa5b4;
  font-size: 9px;
  font-weight: 600;
  line-height: 1;
}

.v10-rule-nav button.active > small {
  color: var(--cap-blue);
}

.v10-rule-nav button span {
  min-width: 0;
}

.v10-rule-nav button strong {
  display: block;
  font-size: 13.5px;
  font-weight: 620;
  line-height: 1.35;
}

.v10-rule-nav button em {
  display: block;
  margin-top: 4px;
  overflow: hidden;
  color: #8a95a5;
  font-size: 10.5px;
  font-style: normal;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v10-rule-stage {
  min-width: 0;
  background: #fff;
}

.v10-rule-stage > article {
  min-height: 548px;
}

.v10-rule-stage > article:not([hidden]) {
  animation: v10-format-stage-in .22s ease both;
}

.v10-rule-stage-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
  padding: 13px 28px;
  border-bottom: 1px solid #dfe5ed;
}

.v10-rule-stage-head small {
  display: block;
  color: #8b96a6;
  font-size: 9px;
  line-height: 1.2;
}

.v10-rule-stage-head strong {
  display: block;
  margin-top: 5px;
  color: #28364b;
  font-size: 16px;
  font-weight: 630;
  line-height: 1.35;
}

.v10-rule-stage-head > span {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #657286;
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.v10-rule-stage-head > span i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #36a776;
  box-shadow: 0 0 0 4px #e8f6ef;
}

.v10-rule-source {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 22px 28px;
  border-bottom: 1px solid #e4e9f0;
  background: #fbfcfe;
}

.v10-rule-source > b {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #ccd8e8;
  border-radius: 9px;
  color: var(--cap-blue);
  background: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .05em;
}

.v10-rule-source div {
  min-width: 0;
}

.v10-rule-source small {
  display: block;
  color: #8b96a6;
  font-size: 9px;
  line-height: 1.2;
}

.v10-rule-source h3 {
  margin: 5px 0 0;
  overflow: hidden;
  color: #303e52;
  font-size: 15px;
  font-weight: 620;
  line-height: 1.4;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v10-rule-source p {
  margin: 5px 0 0;
  color: #748094;
  font-size: 11px;
  line-height: 1.55;
}

.v10-rule-source > span {
  padding: 6px 9px;
  border: 1px solid #d6e1f2;
  border-radius: 999px;
  color: var(--cap-blue);
  background: #f2f6ff;
  font-size: 10px;
  line-height: 1;
  white-space: nowrap;
}

.v10-rule-preview {
  padding: 24px 28px 21px;
}

.v10-rule-preview > header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 14px;
}

.v10-rule-preview > header small {
  display: block;
  color: #8b96a6;
  font-size: 9px;
  line-height: 1.2;
}

.v10-rule-preview > header h3 {
  margin: 5px 0 0;
  color: #26354a;
  font-size: 18px;
  font-weight: 620;
  line-height: 1.35;
}

.v10-rule-preview > header > span {
  color: var(--cap-blue);
  font-size: 11px;
  line-height: 1.4;
  white-space: nowrap;
}

.v10-rule-rows {
  border-bottom: 1px solid #e4e9f0;
}

.v10-rule-rows > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr) 72px;
  align-items: center;
  gap: 14px;
  min-height: 48px;
  border-top: 1px solid #e4e9f0;
}

.v10-rule-rows small {
  color: #8591a3;
  font-size: 11px;
  line-height: 1.4;
}

.v10-rule-rows strong {
  min-width: 0;
  color: #344156;
  font-size: 13px;
  font-weight: 590;
  line-height: 1.45;
}

.v10-rule-rows span {
  color: #7e8999;
  font-size: 11px;
  line-height: 1.4;
  text-align: right;
  white-space: nowrap;
}

.v10-rule-rows .needs small,
.v10-rule-rows .needs strong,
.v10-rule-rows .needs span {
  color: #a86d08;
}

.v10-rule-stage-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  padding: 15px 28px;
  border-top: 1px solid #e3e8ef;
  color: #727f91;
  background: #fbfcfe;
  font-size: 11px;
  line-height: 1.45;
}

.v10-rule-stage-foot span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.v10-rule-stage-foot span i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d99a2b;
  box-shadow: 0 0 0 4px #fff2d8;
}

.v10-rule-stage-foot strong {
  color: var(--cap-blue);
  font-weight: 620;
  white-space: nowrap;
}

/* Final delivery rail */
.v10-formatting-page .v8-format-delivery-flow {
  margin-top: 52px;
}

.v10-formatting-page .v8-format-delivery-flow article {
  min-height: 150px;
  padding-top: 22px;
}

.v10-formatting-page .v8-format-delivery-flow article strong {
  margin-top: 18px;
  font-size: 17px;
  line-height: 1.4;
}

.v10-formatting-page .v8-format-delivery-flow article span {
  margin-top: 9px;
  font-size: 12px;
  line-height: 1.65;
}

@keyframes v10-format-stage-in {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1100px) {
  .v10-formatting-page .v8-formatting-hero .capx-hero-grid {
    grid-template-columns: 1fr;
  }

  .v10-formatting-page .v8-formatting-hero .capx-hero-copy {
    max-width: 650px;
  }

  .v10-formatting-page .capx-section-head h2 {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  .v10-formatting-page .capx-section-head h2 {
    font-size: 36px;
  }

  .v10-formatting-page .capx-final h2 {
    font-size: 42px;
  }

  .v10-rule-workspace {
    grid-template-columns: 1fr;
  }

  .v10-rule-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    padding: 14px;
    border-right: 0;
    border-bottom: 1px solid #dce3ed;
  }

  .v10-rule-nav header {
    grid-column: 1 / -1;
    padding: 6px 8px 14px;
  }

  .v10-rule-nav button {
    min-height: 68px;
    border-radius: 6px;
  }

  .v10-rule-nav button.active {
    box-shadow: inset 0 -2px var(--cap-blue), 0 4px 14px rgba(47, 67, 105, .06);
  }

  .v10-rule-stage > article {
    min-height: 0;
  }
}

@media (max-width: 820px) {
  .v10-formatting-page .capx-shell {
    width: min(100% - 40px, 720px);
  }

  .v10-formatting-page .v8-formatting-hero .capx-shell {
    width: min(100% - 40px, 720px);
  }

  .v10-formatting-page .capx-section {
    padding: 84px 0;
  }

  .v10-formatting-page .capx-section-head p {
    max-width: 680px;
  }

  .v10-formatting-page .v8-format-delivery-flow {
    gap: 28px;
  }
}

@media (max-width: 680px) {
  .v10-format-main {
    grid-template-columns: 1fr;
  }

  .v10-format-document-stage {
    border-right: 0;
    border-bottom: 1px solid #dce3ed;
  }

  .v10-formatting-page .v10-format-rule {
    border-top: 0;
  }
}

@media (max-width: 560px) {
  .v10-formatting-page .capx-shell {
    width: calc(100% - 32px);
  }

  .v10-formatting-page .v8-formatting-hero .capx-shell {
    width: calc(100% - 32px);
  }

  .v10-formatting-page .capx-hero {
    padding-bottom: 70px;
  }

  .v10-formatting-page .v8-formatting-hero .capx-hero-copy h1 {
    max-width: none;
    font-size: 36px;
    line-height: 1.1;
  }

  .v10-formatting-page .v10-title-line {
    white-space: nowrap;
  }

  .v10-formatting-page .capx-hero-copy > p,
  .v10-formatting-page .capx-section-head p,
  .v10-formatting-page .capx-final p {
    font-size: 15px;
    line-height: 1.75;
  }

  .v10-formatting-page .capx-section {
    padding: 72px 0;
  }

  .v10-formatting-page .capx-section-head h2,
  .v10-formatting-page .capx-final h2 {
    font-size: 32px;
    line-height: 1.2;
    white-space: normal;
  }

  .v10-formatting-page .capx-section-head h2 span,
  .v10-formatting-page .capx-final h2 span {
    display: block;
  }

  .v10-formatting-page .capx-final {
    padding: 76px 0 84px;
  }

  .v10-formatting-page .v8-format-studio > header {
    min-height: 0;
  }

  .v10-formatting-page .v8-format-studio > header > span {
    font-size: 9px;
  }

  .v10-format-progress li {
    justify-content: center;
    gap: 5px;
    padding-inline: 5px;
    font-size: 8px;
    text-align: center;
  }

  .v10-format-progress li b {
    font-size: 7px;
  }

  .v10-format-main {
    grid-template-columns: 1fr;
  }

  .v10-format-document-stage {
    padding: 56px 10px 10px;
    border-right: 0;
    border-bottom: 1px solid #dce3ed;
  }

  .v10-formatting-page .v8-format-page {
    padding: 28px 22px 25px;
  }

  .v10-formatting-page .v10-format-page {
    min-height: 342px;
  }

  .v10-formatting-page .v10-format-page h2 {
    font-size: 16px;
  }

  .v10-formatting-page .v10-format-rule {
    min-height: 365px;
    border-top: 0;
  }

  .v10-formatting-page .v10-format-rule dl div {
    grid-template-columns: 92px minmax(0, 1fr);
  }

  .v10-format-studio .v8-format-tabs button {
    min-height: 50px;
    padding-inline: 9px;
    font-size: 9px;
  }

  .v10-format-studio .v8-format-tabs button b {
    font-size: 8px;
  }

  .v10-formatting-page .v8-format-entry {
    margin-top: 40px;
  }

  .v10-formatting-page .v8-format-entry strong {
    margin-top: 12px;
    font-size: 17px;
  }

  .v10-formatting-page .v8-format-entry span {
    font-size: 12.5px;
  }

  .v10-rule-workspace {
    margin-top: 42px;
    border-radius: 14px;
  }

  .v10-rule-nav {
    padding: 10px;
  }

  .v10-rule-nav header {
    padding: 5px 6px 12px;
  }

  .v10-rule-nav button {
    grid-template-columns: 22px minmax(0, 1fr);
    min-height: 60px;
    padding: 9px 7px;
  }

  .v10-rule-nav button strong {
    font-size: 12px;
  }

  .v10-rule-nav button em {
    display: none;
  }

  .v10-rule-stage-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    min-height: 0;
    padding: 18px;
  }

  .v10-rule-stage-head strong {
    font-size: 15px;
  }

  .v10-rule-source {
    grid-template-columns: 40px minmax(0, 1fr);
    gap: 12px;
    padding: 18px;
  }

  .v10-rule-source > b {
    width: 38px;
    height: 38px;
  }

  .v10-rule-source h3 {
    font-size: 13px;
  }

  .v10-rule-source p {
    font-size: 10.5px;
  }

  .v10-rule-source > span {
    grid-column: 2;
    justify-self: start;
  }

  .v10-rule-preview {
    padding: 20px 18px 18px;
  }

  .v10-rule-preview > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 7px;
  }

  .v10-rule-preview > header h3 {
    font-size: 16px;
  }

  .v10-rule-rows > div {
    grid-template-columns: 74px minmax(0, 1fr) 46px;
    gap: 8px;
    min-height: 51px;
  }

  .v10-rule-rows small,
  .v10-rule-rows span {
    font-size: 10px;
  }

  .v10-rule-rows strong {
    font-size: 12px;
    line-height: 1.4;
  }

  .v10-rule-stage-foot {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    min-height: 0;
    padding: 16px 18px;
    font-size: 10.5px;
  }

  .v10-rule-stage-foot strong {
    white-space: normal;
  }

  .v10-formatting-page .v8-format-delivery-flow {
    margin-top: 42px;
  }

  .v10-formatting-page .v8-format-delivery-flow article {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v10-rule-stage > article:not([hidden]),
  .v10-format-page,
  .v10-format-rule {
    animation: none;
  }
}

/* ScholarOS V12 · 论文排版实时预览
   真实文稿画布与 B1 单列横排设置栏；设置结果直接呈现在文稿中，不叠加区域底色。 */

.v12-format-editor,
.v12-format-editor * {
  box-sizing: border-box;
}

.v12-format-editor button,
.v12-format-editor input,
.v12-format-editor select,
.v12-format-editor a {
  font-family: inherit;
}

.v12-format-editor button,
.v12-format-editor select {
  -webkit-tap-highlight-color: transparent;
}

.v12-format-editor .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  margin: -1px;
  padding: 0;
  border: 0;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.v12-format-editor {
  --editor-blue: #285fd7;
  --editor-blue-strong: #174bad;
  --editor-blue-soft: #edf3ff;
  --editor-ink: #18243a;
  --editor-muted: #71809a;
  --editor-line: #d9e2ee;
  position: relative;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #ccd7e6;
  border-radius: 18px;
  background: #edf1f6;
  box-shadow: 0 34px 88px rgba(27, 46, 78, .16), 0 3px 10px rgba(27, 46, 78, .06);
  color: var(--editor-ink);
  text-align: left;
}

.v12-format-editor:focus-visible {
  outline: 3px solid rgba(40, 95, 215, .2);
  outline-offset: 4px;
}

.v12-interaction-hint {
  position: absolute;
  z-index: 30;
  top: 68px;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(232, 237, 244, .22);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .16s ease, background-color .16s ease;
}

.v12-interaction-hint span {
  max-width: min(360px, calc(100% - 32px));
  padding: 10px 14px;
  border: 1px solid rgba(182, 197, 217, .88);
  border-radius: 999px;
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(29, 47, 76, .12);
  color: #42536e;
  font-size: 11px;
  font-weight: 680;
  line-height: 1.4;
  text-align: center;
}

.v12-format-editor.is-interaction-idle:hover .v12-interaction-hint,
.v12-format-editor.is-interaction-idle:focus-visible .v12-interaction-hint {
  opacity: 1;
}

.v12-format-editor.is-interaction-idle .v12-interaction-hint {
  pointer-events: auto;
}

.v12-format-editor.is-interaction-idle .v12-pdf-canvas,
.v12-format-editor.is-interaction-idle .v12-settings-scroll {
  scrollbar-width: none;
}

.v12-format-editor.is-interaction-idle .v12-pdf-canvas {
  overflow: hidden;
}

.v12-format-editor.is-interaction-idle .v12-settings-scroll {
  overflow: clip;
}

.v12-format-editor.is-interaction-idle .v12-pdf-canvas::-webkit-scrollbar,
.v12-format-editor.is-interaction-idle .v12-settings-scroll::-webkit-scrollbar {
  display: none;
}

.v12-format-editor.is-interaction-active .v12-pdf-canvas,
.v12-format-editor.is-interaction-active .v12-settings-scroll {
  overscroll-behavior: contain;
}

body.v12-workspace-fullscreen-fallback {
  overflow: hidden;
}

.v12-format-editor.is-fullscreen,
.v12-format-editor:fullscreen,
.v12-format-editor:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  margin: 0 !important;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #edf1f6;
  box-shadow: none;
}

.v12-format-editor.is-fullscreen {
  position: fixed;
  z-index: 20000;
  inset: 0;
}

.v12-format-editor.is-fullscreen .v12-editor-main,
.v12-format-editor:fullscreen .v12-editor-main,
.v12-format-editor:-webkit-full-screen .v12-editor-main {
  height: calc(100vh - 68px);
  height: calc(100dvh - 68px);
}

/* Application bar */
.v12-appbar {
  position: relative;
  z-index: 8;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr);
  align-items: center;
  min-height: 68px;
  padding: 10px 16px;
  border-bottom: 1px solid #d8e0eb;
  background: rgba(255, 255, 255, .98);
}

.v12-document-state {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.v12-document-state > b {
  display: grid;
  width: 34px;
  height: 38px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid #c9d7ef;
  border-radius: 7px;
  background: #eef4ff;
  color: #2358c7;
  font-family: Inter, Arial, sans-serif;
  font-size: 11px;
  font-weight: 800;
}

.v12-document-state > span,
.v12-app-title {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.v12-document-state strong {
  overflow: hidden;
  color: #29354a;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-document-state small {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 3px;
  color: #8793a8;
  font-size: 9px;
  line-height: 1;
}

.v12-document-state small i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #16b983;
  box-shadow: 0 0 0 3px rgba(22, 185, 131, .1);
}

.v12-app-title {
  align-items: center;
  text-align: center;
}

.v12-app-title strong {
  color: #315c9c;
  font-size: 17px;
  font-weight: 760;
  letter-spacing: -.01em;
}

.v12-app-title small {
  margin-top: 3px;
  color: #8a96aa;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: .015em;
  line-height: 1.1;
}

.v12-app-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.v12-app-actions button,
.v12-app-actions a {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  border: 1px solid #cfdcf0;
  border-radius: 10px;
  background: #fff;
  color: #31588f;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  transition: border-color .18s ease, background .18s ease, color .18s ease;
}

.v12-app-actions button:hover {
  border-color: #9cb6e5;
  background: #f6f9ff;
}

.v12-app-actions .v12-fullscreen-button {
  gap: 7px;
}

.v12-fullscreen-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.v12-fullscreen-button[aria-pressed="true"] svg {
  transform: rotate(180deg);
}

.v12-app-actions a,
.v12-app-actions [data-full-feature-action] {
  border-color: #315f9f;
  background: #315f9f;
  color: #fff;
}

.v12-app-actions [data-full-feature-action]:hover {
  border-color: #315f9f;
  background: #315f9f;
  color: #fff;
}

/* Workbench */
.v12-editor-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  height: 670px;
  min-height: 0;
}

.v12-document-workspace {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid #d5deea;
  background: #e9eef4;
}

.v12-document-toolbar {
  position: relative;
  z-index: 3;
  display: flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border-bottom: 1px solid #dbe3ed;
  background: rgba(248, 250, 253, .96);
}

.v12-page-tools {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #78869b;
}

.v12-page-tools button {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #53627a;
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.v12-page-tools button:hover,
.v12-page-tools button:focus-visible {
  outline: none;
  background: #e8eef8;
  color: #2858ad;
}

.v12-page-tools button:disabled {
  cursor: default;
  opacity: .32;
  background: transparent;
  color: #7d899a;
}

.v12-page-tools em {
  min-width: 48px;
  color: #8793a6;
  font-size: 10px;
  font-style: normal;
  text-align: center;
}

.v12-page-tools em b {
  color: #38485f;
  font-weight: 760;
}

.v12-zoom-field {
  display: flex;
  width: 54px;
  height: 28px;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border: 1px solid transparent;
  border-radius: 7px;
  color: #768399;
  transition: border-color .16s ease, background .16s ease;
}

.v12-zoom-field:hover,
.v12-zoom-field:focus-within {
  border-color: #cad5e4;
  background: #fff;
}

.v12-zoom-field input {
  width: 28px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #44536a;
  font-size: 10px;
  font-weight: 650;
  text-align: right;
  appearance: textfield;
}

.v12-zoom-field input::-webkit-outer-spin-button,
.v12-zoom-field input::-webkit-inner-spin-button {
  margin: 0;
  appearance: none;
}

.v12-zoom-field b {
  font-size: 9px;
  font-weight: 500;
}

.v12-page-tools .v12-fit-width {
  width: auto;
  padding: 0 8px;
  color: #5f6f86;
  font-size: 9px;
  font-weight: 650;
}

.v12-page-tools .v12-fit-width.active {
  background: #e8effd;
  color: #285fcf;
}

.v12-page-tools > i {
  width: 1px;
  height: 15px;
  margin: 0 3px;
  background: #d5dde8;
}

.v12-zoom-label {
  color: #66758c;
  font-size: 9px;
  font-weight: 700;
}

.v12-zoom-range {
  --zoom-progress: 38.46%;
  width: 92px;
  height: 18px;
  margin: 0 1px;
  border: 0;
  outline: 0;
  background: transparent;
  cursor: pointer;
  accent-color: #285fd7;
  appearance: none;
}

.v12-zoom-range::-webkit-slider-runnable-track {
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(to right, #285fd7 0 var(--zoom-progress), #cbd5e2 var(--zoom-progress) 100%);
}

.v12-zoom-range::-webkit-slider-thumb {
  width: 12px;
  height: 12px;
  margin-top: -4.5px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #285fd7;
  box-shadow: 0 1px 4px rgba(31, 66, 126, .28);
  appearance: none;
}

.v12-zoom-range::-moz-range-track {
  height: 3px;
  border-radius: 999px;
  background: #cbd5e2;
}

.v12-zoom-range::-moz-range-progress {
  height: 3px;
  border-radius: 999px;
  background: #285fd7;
}

.v12-zoom-range::-moz-range-thumb {
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: #285fd7;
  box-shadow: 0 1px 4px rgba(31, 66, 126, .28);
}

.v12-zoom-range:focus-visible::-webkit-slider-thumb {
  box-shadow: 0 0 0 3px rgba(40, 95, 215, .18);
}

.v12-pdf-canvas {
  position: relative;
  display: flex;
  min-height: 0;
  flex: 1;
  align-items: flex-start;
  justify-content: flex-start;
  overflow: auto;
  padding: 17px 24px 92px;
  background:
    radial-gradient(circle at 45% 18%, rgba(255, 255, 255, .6), transparent 42%),
    #e9eef4;
  scrollbar-color: #b8c3d1 transparent;
  scrollbar-width: thin;
}

.v12-pdf-canvas::-webkit-scrollbar {
  width: 7px;
  height: 7px;
}

.v12-pdf-canvas::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: #b8c3d1;
}

.v12-paper-stage {
  --paper-width: 500px;
  --paper-height: 707px;
  --paper-scale: 1;
  position: relative;
  width: calc(var(--paper-width) * var(--paper-scale));
  height: calc(var(--paper-height) * var(--paper-scale));
  flex: 0 0 auto;
  margin: 0 auto;
  transition: width .18s ease, height .18s ease;
}

.v12-paper {
  --paper-pad-top: 82px;
  --paper-pad-right: 70px;
  --paper-pad-bottom: 72px;
  --paper-pad-left: 72px;
  position: absolute;
  top: 0;
  left: 0;
  width: var(--paper-width);
  height: var(--paper-height);
  overflow: hidden;
  transform: scale(var(--paper-scale));
  transform-origin: top left;
  border: 1px solid #d5d8dc;
  background: #fff;
  box-shadow: 0 18px 42px rgba(42, 54, 73, .18), 0 2px 6px rgba(42, 54, 73, .08);
  color: #17191d;
  transition: width .24s ease, height .24s ease, transform .18s ease;
}

.v12-paper[data-pdf-preview] .v12-paper-view {
  display: none !important;
}

.v12-pdf-page-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #fff;
  opacity: 1;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: opacity .16s ease;
}

.v12-paper.is-landscape {
  --paper-width: 654px;
  --paper-height: 463px;
}

.v12-paper.is-b5 {
  --paper-width: 470px;
  --paper-height: 668px;
}

.v12-paper.is-a3 {
  --paper-width: 558px;
  --paper-height: 789px;
}

.v12-paper-stage:has(.v12-paper.is-landscape) {
  --paper-width: 654px;
  --paper-height: 463px;
}

.v12-paper-stage:has(.v12-paper.is-b5) {
  --paper-width: 470px;
  --paper-height: 668px;
}

.v12-paper-stage:has(.v12-paper.is-a3) {
  --paper-width: 558px;
  --paper-height: 789px;
}

.v12-paper-view {
  position: absolute;
  inset: 0;
  display: block;
  overflow: hidden;
  padding: var(--paper-pad-top) var(--paper-pad-right) var(--paper-pad-bottom) var(--paper-pad-left);
  background: #fff;
  font-family: "Times New Roman", serif;
  opacity: 1;
  transform: none;
  transition: padding .25s ease;
}

.v12-paper-view.active {
  opacity: 1;
  transform: none;
}

.v12-paper-view[hidden] {
  display: none;
}

.v12-page-content {
  position: relative;
  min-height: 100%;
}

.v12-paper.is-landscape .v12-page-content {
  width: 136%;
  transform: scale(.735);
  transform-origin: top left;
}

.v12-running-head,
.v12-running-foot {
  position: absolute;
  right: var(--paper-pad-right);
  left: var(--paper-pad-left);
  color: #71767e;
  font-family: "Times New Roman", serif;
  font-size: 8px;
  letter-spacing: .05em;
}

.v12-running-head {
  top: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #c9ccd1;
  text-align: center;
}

.v12-running-head > span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-running-head > b {
  position: absolute;
  right: 0;
  color: #33373d;
  font-weight: 400;
}

.v12-running-head.is-no-line {
  border-bottom-color: transparent;
}

.v12-running-head.is-double-line {
  border-bottom: 3px double #9ea4ad;
}

.v12-running-foot {
  bottom: 28px;
  display: flex;
  justify-content: space-between;
  min-height: 16px;
  padding-top: 7px;
  border-top: 1px solid #c9ccd1;
}

.v12-running-foot > span {
  position: absolute;
  top: 7px;
  right: 0;
  left: 0;
  overflow: hidden;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-running-foot.is-footer-left > span {
  text-align: left;
}

.v12-running-foot.is-footer-right > span {
  text-align: right;
}

.v12-running-foot.has-footer-text b {
  top: 19px;
}

.v12-running-foot.is-no-line {
  border-top-color: transparent;
}

.v12-running-foot.is-double-line {
  border-top: 3px double #9ea4ad;
}

.v12-running-foot b {
  color: #33373d;
  font-weight: 400;
}

.v12-running-foot.is-page-center b {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.v12-running-foot.is-page-right b {
  margin-left: auto;
}

.v12-running-foot.is-page-outer b {
  margin-left: auto;
}

.v12-running-foot.is-page-header b {
  position: absolute;
  right: 0;
  transform: translateY(-625px);
}

.v12-paper-view h1,
.v12-paper-view h2,
.v12-paper-view p,
.v12-paper-view figure {
  margin-top: 0;
}

.v12-latin {
  font-family: var(--latin-font, inherit);
}

.v12-page-chapter-title,
.v12-chapter-heading,
.v12-media-heading,
.v12-abstract-title,
.v12-toc-title,
.v12-reference-title,
.v12-ack-title,
.v12-appendix-title {
  margin-bottom: 23px;
  font-family: Arial, sans-serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.45;
  text-align: center;
}

.v12-paper-view h2,
.v12-chapter-subheading {
  margin-bottom: 14px;
  font-family: Arial, sans-serif;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.45;
}

.v12-paper-view > p,
.v12-body-copy p,
.v12-ack-body p,
.v12-appendix-intro,
.v12-reference-intro {
  margin-bottom: 10px;
  font-size: 10.5px;
  line-height: 1.75;
  text-align: justify;
  text-indent: 2em;
}

.v12-document-title {
  margin: 2px 0 27px;
  font-family: "Times New Roman", serif;
  font-size: 20px;
  line-height: 1.5;
  text-align: center;
}

.v12-abstract-title,
.v12-toc-title,
.v12-reference-title,
.v12-ack-title {
  margin-top: 16px;
  margin-bottom: 28px;
}

.v12-abstract-body {
  font-size: 10.5px;
  line-height: 1.8;
}

.v12-abstract-body p {
  margin: 0 0 12px;
  font: inherit;
}

.v12-keywords {
  display: grid;
  grid-template-columns: max-content minmax(0, 1fr);
  align-items: baseline;
  column-gap: 2px;
  margin-top: 20px;
  font-family: "Times New Roman", serif;
  font-size: 12.5px;
  line-height: 1.5;
  text-indent: 0 !important;
}

.v12-keywords b {
  white-space: nowrap;
}

.v12-keywords span {
  min-width: 0;
}

.v12-toc-list {
  font-size: 10.5px;
  line-height: 1.5;
}

.v12-toc-list p {
  display: flex;
  align-items: baseline;
  margin-bottom: 9px;
  text-indent: 0;
}

.v12-toc-list p > span {
  min-width: 0;
  padding-left: 2em;
  text-indent: -2em;
  overflow-wrap: anywhere;
}

.v12-toc-list p[data-toc-level="2"] {
  padding-left: 16px;
}

.v12-toc-list p[data-toc-level="3"] {
  padding-left: 32px;
}

.v12-toc-list p[data-toc-level="4"] {
  padding-left: 48px;
}

.v12-toc-list.no-wrap-indent p > span {
  padding-left: 0;
  text-indent: 0;
}

.v12-toc-list p i {
  display: block;
  height: 8px;
  min-width: 12px;
  flex: 1;
  align-self: center;
  margin: 0 6px;
  font-style: normal;
  background-position: left center;
  background-repeat: repeat-x;
}

.v12-toc-list p i.is-leader-dot {
  background-image: radial-gradient(circle, #777 0 1px, transparent 1.2px);
  background-size: 7px 7px;
}

.v12-toc-list p i.is-leader-dash {
  background-image: repeating-linear-gradient(90deg, #777 0 8px, transparent 8px 14px);
  background-size: 100% 1px;
  background-repeat: no-repeat;
}

.v12-toc-list.is-page-after p i {
  display: none;
}

.v12-toc-list.is-page-after p b {
  width: auto;
  min-width: 0;
  margin-left: 6px;
  padding-left: 0;
  text-align: left;
}

.v12-toc-list p b {
  min-width: 18px;
  font-weight: 400;
  text-align: right;
}

.v12-paper-figure {
  position: relative;
  display: flex;
  width: 86%;
  flex-direction: column;
  margin: 16px auto 28px;
  gap: 7px;
}

.v12-figure-framework {
  display: grid;
  min-height: 76px;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  align-items: center;
  gap: 7px;
}

.v12-figure-framework > span {
  display: grid;
  min-height: 57px;
  grid-template-columns: auto 1fr;
  align-content: center;
  gap: 3px 7px;
  padding: 8px;
  border: 1px solid #cbd1d7;
  border-radius: 6px;
  background: #f6f7f8;
}

.v12-figure-framework > span:nth-of-type(2) {
  border-color: #aeb7c2;
  background: #f1f3f5;
}

.v12-figure-framework b {
  grid-row: 1 / 3;
  align-self: start;
  color: #4f5966;
  font: 700 7px/1 Arial, sans-serif;
}

.v12-figure-framework strong {
  color: #172033;
  font-size: 8px;
}

.v12-figure-framework small {
  color: #6f7780;
  font-size: 7px;
}

.v12-figure-framework > i {
  color: #8d959e;
  font-size: 9px;
  font-style: normal;
}

.v12-figure-network {
  position: relative;
  height: 105px;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: transparent;
}

.v12-figure-network::before,
.v12-figure-network::after,
.v12-figure-network > i {
  position: absolute;
  top: 50%;
  left: 13%;
  width: 74%;
  height: 1px;
  transform: rotate(14deg);
  background: #b8bec6;
  content: "";
}

.v12-figure-network::after {
  transform: rotate(-15deg);
}

.v12-figure-network > i {
  transform: rotate(0);
}

.v12-figure-network span {
  position: absolute;
  z-index: 1;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border-radius: 50%;
  background: #747f8c;
  color: #fff;
  font-size: 6.5px;
}

.v12-figure-network .center { top: 31px; left: calc(50% - 23px); width: 46px; height: 46px; background: #3f4854; }
.v12-figure-network .economic { top: 11px; left: 10%; background: #687983; }
.v12-figure-network .identity { bottom: 8px; left: 20%; }
.v12-figure-network .marriage { top: 10px; right: 10%; }
.v12-figure-network .practice { right: 20%; bottom: 8px; background: #687983; }

.v12-figure-chart {
  display: flex;
  box-sizing: border-box;
  height: 124px;
  align-items: flex-end;
  justify-content: center;
  gap: 16px;
  padding: 14px 20px 20px;
  border-bottom: 1px solid #39465c;
  background: repeating-linear-gradient(to top, #eef1f5 0, #eef1f5 1px, transparent 1px, transparent 23px);
}

.v12-figure-chart span {
  position: relative;
  display: block;
  width: 28px;
  height: var(--bar);
  border-radius: 2px 2px 0 0;
  background: linear-gradient(#8a939e, #58626d);
}

.v12-figure-chart span b {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  color: #4e5863;
  font: 600 7px/1 Arial, sans-serif;
}

.v12-figure-chart span small {
  position: absolute;
  bottom: -15px;
  left: 50%;
  transform: translateX(-50%);
  color: #626b75;
  font-size: 7px;
  white-space: nowrap;
}

.v12-paper-figure figcaption,
.v12-paper-table-wrap > strong {
  display: block;
  font-size: 9.5px;
  font-weight: 400;
  text-align: center;
}

.v12-paper-figure figcaption.is-bilingual::after {
  content: none;
}

.v12-caption-en {
  display: none;
  margin-top: 2px;
  font-family: "Times New Roman", serif;
  font-size: .9em;
  font-weight: 400;
}

.v12-paper-figure figcaption.is-bilingual .v12-caption-en {
  display: block;
}

.v12-paper-table-wrap {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 18px auto 28px;
}

.v12-paper-table-wrap table,
.v12-appendix-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 9px;
  line-height: 1.25;
  text-align: center;
}

.v12-paper-table-wrap th,
.v12-paper-table-wrap td,
.v12-appendix-table th,
.v12-appendix-table td {
  padding: 5px 7px;
  border: 1px solid #555d69;
}

.v12-paper-table-wrap.is-three-line th,
.v12-paper-table-wrap.is-three-line td,
.v12-appendix-table.is-three-line th,
.v12-appendix-table.is-three-line td {
  border: 0;
}

.v12-paper-table-wrap.is-three-line table,
.v12-appendix-table.is-three-line {
  border-top: 1.5px solid #343a42;
  border-bottom: 1.5px solid #343a42;
}

.v12-paper-table-wrap.is-three-line thead,
.v12-appendix-table.is-three-line thead {
  border-bottom: 1px solid #555d69;
}

.v12-paper-table-wrap.is-no-line th,
.v12-paper-table-wrap.is-no-line td,
.v12-appendix-table.is-no-line th,
.v12-appendix-table.is-no-line td {
  border-color: transparent;
}

.v12-paper-table-wrap.is-normal-table th {
  background: #f1f3f6;
}

.v12-paper-table-wrap.is-grid-table th,
.v12-paper-table-wrap.is-grid-table td {
  border: 1px solid #555d69;
}

.v12-continued-prefix:empty {
  display: none;
}

.v12-equation {
  position: relative;
  display: grid;
  align-items: center;
  justify-items: center;
  min-height: 0;
  margin: 22px 0 25px;
  padding: 0;
  row-gap: 14px;
  font-family: "Times New Roman", serif;
  font-size: 15px;
  font-style: italic;
}

.v12-equation > span {
  max-width: 78%;
  white-space: nowrap;
}

.v12-equation > small {
  position: static;
  width: 90%;
  color: #6f7780;
  font-family: "Times New Roman", serif;
  font-size: 7px;
  font-style: normal;
  text-align: center;
}

.v12-equation b {
  position: absolute;
  right: 0;
  font-family: "Times New Roman", serif;
  font-size: 9px;
  font-style: normal;
  font-weight: 400;
}

.v12-equation.allow-wrap span {
  max-width: 76%;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  line-height: 1.45;
}

.v12-reference-list {
  margin: 0;
  padding-left: 0;
  counter-reset: reference-item;
  font-size: 9.5px;
  line-height: 1.55;
  list-style: none;
}

.v12-reference-intro {
  margin-bottom: 22px;
}

.v12-reference-list li {
  position: relative;
  margin-bottom: 8px;
  padding-left: 24px;
}

.v12-reference-list li::before {
  position: absolute;
  left: 0;
  counter-increment: reference-item;
  content: "[" counter(reference-item) "]";
}

.v12-reference-list.is-unnumbered li::before {
  display: none;
  content: none;
}

.v12-appendix-title {
  text-align: left;
}

.v12-appendix-intro {
  text-indent: 0;
}

.v12-appendix-table-caption {
  display: block;
  margin: 16px 0 7px;
  font-size: 9.5px;
  font-weight: 400;
  text-align: center;
}

.v12-appendix-image-caption {
  margin: 12px 0 4px !important;
  font-size: 9px !important;
  line-height: 1.4 !important;
  text-align: center !important;
  text-indent: 0 !important;
}

.v12-appendix-diagram {
  display: grid;
  height: 76px;
  grid-template-columns: 54px 1fr 54px 1fr 54px;
  align-items: center;
  gap: 8px;
  padding: 0 28px;
}

.v12-appendix-diagram span {
  display: grid;
  width: 48px;
  height: 48px;
  place-items: center;
  border-radius: 50%;
  background: #747f8c;
  color: #fff;
  font-size: 8px;
}

.v12-appendix-diagram span:nth-of-type(2) { background: #3f4854; }
.v12-appendix-diagram span:nth-of-type(3) { background: #687983; }
.v12-appendix-diagram i { height: 1px; background: #afc2df; }

.v12-appendix-equation {
  margin-top: 18px;
}

.v12-paper.is-page-break .v12-appendix-title::before {
  content: "Nova página · ";
  color: #7b8798;
  font-size: .7em;
  font-weight: 500;
}

/* Prompt bar */
.v12-command-bar {
  position: absolute;
  z-index: 6;
  right: 22px;
  bottom: 16px;
  left: 22px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 36px;
  min-height: 54px;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid #d3dce9;
  border-radius: 17px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 12px 28px rgba(45, 60, 86, .12);
}

.v12-command-add,
.v12-command-send {
  display: grid;
  border: 0;
  cursor: pointer;
  place-items: center;
}

.v12-command-add {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: transparent;
  color: #71809a;
  font-size: 19px;
}

.v12-command-add:hover {
  background: #eef3fa;
  color: #315c9d;
}

.v12-command-add[aria-expanded="true"] {
  background: #f1f4f8;
  color: #34445b;
}

.v12-upload-menu {
  position: absolute;
  z-index: 12;
  bottom: calc(100% + 10px);
  left: 0;
  width: min(310px, calc(100% - 12px));
  padding: 7px;
  border: 1px solid #d8e0ea;
  border-radius: 14px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 18px 42px rgba(34, 49, 74, .17), 0 3px 10px rgba(34, 49, 74, .06);
  animation: v12-upload-menu-in .16s cubic-bezier(.22, 1, .36, 1) both;
}

.v12-upload-menu::after {
  position: absolute;
  bottom: -6px;
  left: 18px;
  width: 11px;
  height: 11px;
  transform: rotate(45deg);
  border-right: 1px solid #d8e0ea;
  border-bottom: 1px solid #d8e0ea;
  background: #fff;
  content: "";
}

.v12-upload-menu[hidden] {
  display: none;
}

.v12-upload-menu > button {
  display: grid;
  width: 100%;
  min-height: 60px;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 7px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #26364e;
  cursor: pointer;
  text-align: left;
  transition: background .15s ease, color .15s ease;
}

.v12-upload-menu > button:hover,
.v12-upload-menu > button:focus-visible {
  outline: 0;
  background: #f3f6fa;
  color: #1f3353;
}

.v12-upload-icon {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 9px;
  background: #f1f4f8;
  color: #53647c;
}

.v12-upload-icon svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.45;
}

.v12-upload-menu > button > span:nth-child(2) {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 3px;
}

.v12-upload-menu strong {
  color: inherit;
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.25;
}

.v12-upload-menu small {
  overflow: hidden;
  color: #8997aa;
  font-size: 9.5px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-upload-menu em {
  align-self: start;
  padding-top: 4px;
  color: #93a2b7;
  font-size: 8.5px;
  font-style: normal;
  line-height: 1;
  white-space: nowrap;
}

@keyframes v12-upload-menu-in {
  from { opacity: 0; transform: translateY(5px) scale(.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.v12-command-bar label {
  min-width: 0;
}

.v12-command-bar input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: #29384e;
  font-size: 11px;
}

.v12-command-bar input::placeholder {
  color: #98a5b8;
}

.v12-command-send {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: #315f9f;
  color: #fff;
  font-family: Inter, Arial, sans-serif;
  font-size: 19px;
  font-weight: 400;
  line-height: 1;
  transition: background .18s ease, transform .18s ease;
}

.v12-command-send:hover {
  background: #234e8d;
  transform: translateY(-1px);
}

.v12-command-send:disabled,
.v12-command-send:disabled:hover {
  background: #d8dde5;
  color: #99a3b1;
  cursor: not-allowed;
  transform: none;
}

.v12-demo-toast {
  position: absolute;
  z-index: 10;
  right: 28px;
  bottom: 84px;
  left: 28px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto 24px;
  max-width: 510px;
  min-height: 62px;
  align-items: center;
  gap: 10px;
  margin: 0 auto;
  padding: 9px 10px;
  border: 1px solid #cbd7e8;
  border-radius: 14px;
  background: rgba(255, 255, 255, .98);
  box-shadow: 0 18px 42px rgba(32, 49, 77, .2), 0 2px 8px rgba(32, 49, 77, .08);
  animation: v12-toast-in .22s ease both;
}

.v12-demo-toast[hidden] {
  display: none;
}

.v12-demo-toast-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  background: #edf3ff;
  color: #285fcf;
  font-family: Georgia, serif;
  font-size: 13px;
  font-weight: 700;
}

.v12-demo-toast > div {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 2px;
}

.v12-demo-toast strong {
  color: #26364e;
  font-size: 11.5px;
  font-weight: 720;
}

.v12-demo-toast small {
  color: #7c899c;
  font-size: 10px;
  line-height: 1.4;
}

.v12-demo-toast a {
  display: inline-flex;
  height: 30px;
  align-items: center;
  padding: 0 10px;
  border-radius: 8px;
  background: #285fd7;
  color: #fff;
  font-size: 9.5px;
  font-weight: 680;
  text-decoration: none;
  white-space: nowrap;
}

.v12-demo-toast > button {
  display: grid;
  width: 24px;
  height: 24px;
  place-items: center;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #9aa5b5;
  cursor: pointer;
  font-size: 15px;
}

.v12-demo-toast > button:hover {
  background: #f0f3f7;
  color: #5f6d82;
}

@keyframes v12-toast-in {
  from { opacity: 0; transform: translateY(7px) scale(.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Settings sidebar */
.v12-settings-sidebar {
  display: flex;
  min-width: 0;
  min-height: 0;
  flex-direction: column;
  background: #fff;
}

.v12-settings-sidebar > header {
  display: flex;
  min-height: 60px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: flex-start;
  padding: 10px 16px;
  border-bottom: 1px solid #e1e7ef;
}

.v12-settings-sidebar > header strong {
  color: #243149;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
}

.v12-settings-scroll {
  min-height: 0;
  flex: 1;
  overflow-x: hidden;
  overflow-y: auto;
  scrollbar-color: #cbd5e2 transparent;
  scrollbar-width: thin;
}

.v12-settings-scroll::-webkit-scrollbar {
  width: 6px;
}

.v12-settings-scroll::-webkit-scrollbar-thumb {
  border-radius: 10px;
  background: #cbd5e2;
}

.v12-setting-section {
  border-bottom: 1px solid #e7ebf1;
}

.v12-accordion-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border: 0;
  background: #fff;
  color: #53627a;
  cursor: pointer;
  font-size: 12px;
  font-weight: 620;
  line-height: 1;
  text-align: left;
  transition: background .16s ease, color .16s ease;
}

.v12-accordion-button:hover {
  background: #f7f9fc;
  color: #28374e;
}

.v12-accordion-button.active {
  background: #f0f4ff;
  color: #1b2d51;
}

.v12-accordion-button.active::before {
  position: absolute;
  top: 9px;
  bottom: 9px;
  left: 0;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #285fd7;
  content: "";
}

.v12-accordion-button i {
  color: #94a2b6;
  font-size: 12px;
  font-style: normal;
}

.v12-accordion-content {
  padding: 0 14px 16px;
  background: #fff;
}

.v12-accordion-content[hidden] {
  display: none;
}

.v12-object-tabs {
  display: flex;
  min-height: 38px;
  align-items: flex-end;
  gap: 20px;
  overflow-x: auto;
  border-bottom: 1px solid #edf0f4;
  scrollbar-width: none;
}

.v12-object-tabs::-webkit-scrollbar {
  display: none;
}

.v12-object-tabs button,
.v12-scope-tabs button {
  position: relative;
  flex: 0 0 auto;
  border: 0;
  background: transparent;
  color: #91a0b5;
  cursor: pointer;
  font-size: 10px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
}

.v12-toc-range {
  padding-top: 12px;
}

.v12-toc-range > div {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
}

.v12-toc-range label {
  display: grid;
  min-height: 46px;
  grid-template-columns: minmax(0, 1fr) 20px;
  align-items: center;
  gap: 12px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid #edf1f6;
  border-radius: 0;
  background: transparent;
  color: #53627a;
  cursor: pointer;
  font-size: 10.5px;
  font-weight: 620;
}

.v12-toc-range label:last-child {
  border-bottom: 0;
}

.v12-toc-range label > span {
  grid-column: 1;
  grid-row: 1;
  text-align: left;
}

.v12-toc-range input {
  grid-column: 2;
  grid-row: 1;
  width: 13px;
  height: 13px;
  margin: 0;
  justify-self: end;
  accent-color: #2f66dd;
}

.v12-object-tabs button {
  height: 38px;
  padding: 0;
}

.v12-object-tabs button::after,
.v12-scope-tabs button::after {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  transform: scaleX(0);
  border-radius: 2px;
  background: #2f66dd;
  content: "";
  transition: transform .16s ease;
}

.v12-object-tabs button.active,
.v12-scope-tabs button.active {
  color: #2860d4;
  font-weight: 720;
}

.v12-object-tabs button.active::after,
.v12-scope-tabs button.active::after {
  transform: scaleX(1);
}

.v12-scope-tabs {
  display: flex;
  min-height: 38px;
  align-items: center;
  gap: 18px;
  overflow-x: auto;
  border-bottom: 1px dashed #e1e6ed;
  scrollbar-width: none;
}

.v12-scope-tabs::-webkit-scrollbar {
  display: none;
}

.v12-scope-tabs button {
  height: 38px;
  padding: 0;
  font-size: 10px;
}

.v12-control-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  padding-top: 8px;
}

.v12-control-grid.two-col {
  grid-template-columns: 1fr;
  column-gap: 0;
}

.v12-control-grid label {
  display: grid;
  min-height: 54px;
  min-width: 0;
  grid-template-columns: 104px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f6;
}

.v12-control-grid label:last-child {
  border-bottom: 0;
}

.v12-control-grid label.v12-control-wide {
  grid-column: auto;
}

.v12-control-grid label > span {
  grid-column: 1;
  grid-row: 1;
  min-width: 0;
  color: #66758a;
  font-size: 10.5px;
  font-weight: 620;
  line-height: 1.4;
  text-align: left;
}

.v12-control-grid select {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
}

.v12-setting-input {
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  height: 38px;
  min-width: 0;
  padding: 0 12px;
  border: 1px solid #cbd6e5;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #2d3f59;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.3;
  box-shadow: 0 1px 2px rgba(31, 50, 79, .035);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.v12-setting-input::placeholder {
  color: #9aa8ba;
  font-size: 10px;
  font-weight: 450;
}

.v12-setting-input:hover {
  border-color: #9fb1c9;
  background-color: #fcfdff;
}

.v12-setting-input:focus {
  border-color: #4f78ce;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 102, 221, .1);
}

.v12-native-select {
  position: absolute;
  width: 1px !important;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.v12-select-shell {
  position: relative;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  min-width: 0;
}

.v12-select-trigger {
  display: flex;
  width: 100%;
  height: 38px;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 12px;
  border: 1px solid #cbd6e5;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #2d3f59;
  cursor: pointer;
  font-size: 11px;
  font-weight: 560;
  line-height: 1.3;
  text-align: left;
  box-shadow: 0 1px 2px rgba(31, 50, 79, .035);
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}

.v12-select-trigger > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.v12-select-trigger > i {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  transform: rotate(45deg) translateY(-2px);
  border-right: 1px solid #718097;
  border-bottom: 1px solid #718097;
  transition: transform .16s ease;
}

.v12-select-trigger:hover {
  border-color: #9fb1c9;
  background-color: #fcfdff;
}

.v12-select-trigger:focus-visible,
.v12-select-trigger[aria-expanded="true"] {
  border-color: #4f78ce;
  background-color: #fff;
  box-shadow: 0 0 0 3px rgba(47, 102, 221, .1);
}

.v12-select-trigger[aria-expanded="true"] > i {
  transform: rotate(225deg) translate(-1px, -1px);
}

.v12-select-menu {
  position: fixed;
  z-index: 10050;
  max-height: 206px;
  overflow-y: auto;
  padding: 4px;
  border: 1px solid #cad5e4;
  border-radius: 9px;
  background: rgba(255, 255, 255, .99);
  box-shadow: 0 14px 30px rgba(31, 48, 75, .18), 0 2px 7px rgba(31, 48, 75, .08);
  scrollbar-color: #c5cfdd transparent;
  scrollbar-width: thin;
  animation: v12-select-in .12s ease both;
}

.v12-select-menu[hidden] {
  display: none;
}

.v12-select-option {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 32px;
  align-items: center;
  padding: 0 28px 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #415068;
  cursor: pointer;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  text-align: left;
}

.v12-select-option:hover,
.v12-select-option:focus-visible {
  outline: 0;
  background: #f1f5fb;
  color: #263a5e;
}

.v12-select-option[aria-selected="true"] {
  background: #f3f6fb;
  color: #285fcf;
  font-weight: 680;
}

.v12-select-option[aria-selected="true"]::after {
  position: absolute;
  right: 9px;
  content: "✓";
  font-size: 10px;
  font-weight: 720;
}

@keyframes v12-select-in {
  from { opacity: 0; transform: translateY(-3px); }
  to { opacity: 1; transform: translateY(0); }
}

.v12-style-row {
  display: grid;
  min-height: 54px;
  grid-template-columns: 104px repeat(2, minmax(0, 1fr));
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-bottom: 1px solid #edf1f6;
}

.v12-style-row > span {
  min-width: 0;
  margin-right: 4px;
  color: #66758a;
  font-size: 10.5px;
  font-weight: 620;
  line-height: 1.4;
  text-align: left;
}

.v12-style-row button {
  display: grid;
  width: 100%;
  height: 38px;
  place-items: center;
  border: 1px solid #cbd6e5;
  border-radius: 8px;
  background: #fff;
  color: #4f5d72;
  cursor: pointer;
  font-family: Georgia, serif;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(31, 50, 79, .035);
  transition: border-color .16s ease, background-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.v12-style-row button:hover {
  border-color: #9fb1c9;
  background-color: #fcfdff;
}

.v12-style-row button:focus-visible {
  outline: 0;
  border-color: #4f78ce;
  box-shadow: 0 0 0 3px rgba(47, 102, 221, .1);
}

.v12-style-row button.active {
  border-color: #9db4e2;
  background: #f3f6fb;
  color: #285fcf;
}

html[lang="pt-PT"] .v12-control-grid label {
  grid-template-columns: 122px minmax(0, 1fr);
  gap: 10px;
}

html[lang="pt-PT"] .v12-style-row {
  grid-template-columns: 122px repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.v10-formatting-hero-cta {
  --v10-hero-cta-opacity: 1;
  --v10-hero-cta-shift: 0px;
  --v10-hero-cta-scale: 1;
  opacity: var(--v10-hero-cta-opacity);
  transform: translateY(var(--v10-hero-cta-shift)) scale(var(--v10-hero-cta-scale));
  transform-origin: center right;
  transition: opacity .14s linear, transform .14s linear, background .18s ease, border-color .18s ease;
  will-change: opacity, transform;
}

.v10-formatting-hero-cta:hover {
  transform: translateY(calc(var(--v10-hero-cta-shift) - 1px)) scale(var(--v10-hero-cta-scale));
}

.v10-formatting-hero-cta.is-collision-hidden {
  pointer-events: none;
}

@media (prefers-reduced-motion: reduce) {
  .v10-formatting-hero-cta {
    transition: none;
  }
}

.v12-format-editor.preview-only .v12-editor-main {
  grid-template-columns: 1fr;
}

.v12-format-editor.preview-only .v12-settings-sidebar {
  display: none;
}

@media (max-width: 1120px) {
  .v12-editor-main {
    grid-template-columns: minmax(0, 1fr) 326px;
  }

  .v12-control-grid.two-col {
    grid-template-columns: 1fr;
  }

}

@media (max-width: 860px) {
  .v12-appbar {
    grid-template-columns: minmax(170px, 1fr) auto;
  }

  .v12-app-title {
    display: none;
  }

  .v12-editor-main {
    grid-template-columns: minmax(0, 1fr) 320px;
  }

  .v12-zoom-range {
    width: 70px;
  }

}

@media (max-width: 720px) {
  .v12-format-editor {
    border-radius: 14px;
  }

  .v12-appbar {
    min-height: 60px;
    padding: 8px 10px;
  }

  .v12-interaction-hint {
    top: 60px;
  }

  .v12-fullscreen-button span {
    display: none;
  }

  .v12-app-actions .v12-fullscreen-button {
    width: 32px;
    padding: 0;
  }

  .v12-document-state > b {
    width: 30px;
    height: 34px;
  }

  .v12-document-state strong {
    max-width: 140px;
    font-size: 10px;
  }

  .v12-app-actions button,
  .v12-app-actions a {
    min-height: 32px;
    padding: 0 10px;
    font-size: 9px;
  }

  .v12-editor-main {
    display: flex;
    height: auto;
    flex-direction: column;
  }

  .v12-document-workspace {
    height: 560px;
    border-right: 0;
    border-bottom: 1px solid #d5deea;
  }

  .v12-pdf-canvas {
    padding-right: 10px;
    padding-left: 10px;
  }

  .v12-zoom-label {
    display: none;
  }

  .v12-zoom-range {
    width: 86px;
  }

  .v12-command-bar {
    right: 10px;
    bottom: 10px;
    left: 10px;
  }

  .v12-settings-sidebar {
    height: 600px;
  }

  .v12-format-editor.is-fullscreen,
  .v12-format-editor:fullscreen,
  .v12-format-editor:-webkit-full-screen {
    overflow-y: auto;
  }

  .v12-format-editor.is-fullscreen .v12-appbar,
  .v12-format-editor:fullscreen .v12-appbar,
  .v12-format-editor:-webkit-full-screen .v12-appbar {
    position: sticky;
    top: 0;
  }

  .v12-format-editor.is-fullscreen .v12-editor-main,
  .v12-format-editor:fullscreen .v12-editor-main,
  .v12-format-editor:-webkit-full-screen .v12-editor-main {
    height: auto;
  }

  .v12-format-editor.is-fullscreen .v12-document-workspace,
  .v12-format-editor:fullscreen .v12-document-workspace,
  .v12-format-editor:-webkit-full-screen .v12-document-workspace,
  .v12-format-editor.is-fullscreen .v12-settings-sidebar,
  .v12-format-editor:fullscreen .v12-settings-sidebar,
  .v12-format-editor:-webkit-full-screen .v12-settings-sidebar {
    height: calc(100dvh - 60px);
  }

  .v12-control-grid.two-col {
    grid-template-columns: 1fr;
  }

  .v12-demo-toast {
    right: 12px;
    bottom: 74px;
    left: 12px;
  }
}

@media (max-width: 430px) {
  .v12-app-actions button:not(.v12-fullscreen-button) {
    display: none;
  }

  .v12-document-workspace {
    height: 520px;
  }

  .v12-document-toolbar {
    justify-content: flex-start;
    overflow-x: auto;
    padding: 0 8px;
  }

  .v12-page-tools {
    min-width: max-content;
  }

  .v12-zoom-range {
    width: 74px;
  }

  .v12-control-grid.two-col {
    grid-template-columns: 1fr;
  }

  .v12-control-grid label,
  html[lang="pt-PT"] .v12-control-grid label {
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 8px;
  }

  .v12-style-row,
  html[lang="pt-PT"] .v12-style-row {
    grid-template-columns: 96px repeat(2, minmax(0, 1fr));
    gap: 6px;
  }

  .v12-settings-sidebar {
    height: 640px;
  }

  .v12-demo-toast {
    grid-template-columns: 26px minmax(0, 1fr) 22px;
  }

  .v12-demo-toast a {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .v12-format-editor *,
  .v12-format-editor *::before,
  .v12-format-editor *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* pt-PT: keep long labels and options readable within the inherited workspace. */
body .v12-control-grid label > span{white-space:normal;line-height:1.35;min-height:2.5em}
body .v12-select-option{white-space:normal;overflow-wrap:anywhere;line-height:1.35}
body .v12-app-title small{white-space:normal}
body .v12-scope-tabs button{white-space:normal}

/* Shared locale-sensitive typography. Structure and interaction stay common. */
body[data-locale="ja"]{--format-font:"Hiragino Kaku Gothic ProN","Yu Gothic",Meiryo,sans-serif;line-break:strict}
body[data-locale="ko"]{--format-font:"Noto Sans KR","Apple SD Gothic Neo","Malgun Gothic",sans-serif;word-break:keep-all}
body[data-locale="ar"]{--format-font:"Noto Sans Arabic","Geeza Pro",Tahoma,Arial,sans-serif;letter-spacing:normal}
.v12-format-editor,.v12-settings-sidebar,.v12-command-bar{font-family:var(--format-font,inherit)}
.v12-settings-sidebar label>span,.v12-settings-sidebar select,.v12-custom-select-trigger{white-space:normal;overflow-wrap:anywhere;min-width:0}
[dir="rtl"] .v12-settings-sidebar,[dir="rtl"] .v12-appbar,[dir="rtl"] .v12-command-bar,[dir="rtl"] .v12-demo-toast{text-align:start;direction:rtl}
[dir="rtl"] .v12-paper,[dir="rtl"] .v12-page-content{text-align:right;direction:rtl}
[dir="rtl"] .v12-latin,[dir="rtl"] .v12-reference-entry{direction:ltr;unicode-bidi:isolate}
[dir="rtl"] .v12-figure-network span{letter-spacing:normal}
@media(max-width:720px){.v12-format-editor{max-width:100%;min-width:0}.v12-appbar,.v12-document-toolbar,.v12-settings-sidebar{min-width:0}.v12-app-actions button{white-space:normal}.v12-command-bar{min-width:0}.v12-command-bar label{min-width:0}}

/* Preserved necessary ar typography and bidi adaptation, within one shared sheet. */
/* Arabic adaptation of the V13 formatting layout. No transform/mirroring of source charts. */
:root:lang(ar) .v12-format-editor { text-align: start; direction: rtl; }
:root:lang(ar) .v12-format-editor *, :root:lang(ar) .v12-select-menu * { letter-spacing: normal; text-transform: none; }
:root:lang(ar) .v12-document-workspace { border-right: 0; border-inline-end: 1px solid #d5deea; }
:root:lang(ar) .v12-settings-sidebar { direction: rtl; }
:root:lang(ar) .v12-control-grid label, :root:lang(ar) .v12-select-trigger, :root:lang(ar) .v12-select-option, :root:lang(ar) .v12-setting-input, :root:lang(ar) .v12-upload-menu button { text-align: start; }
:root:lang(ar) .v12-control-grid label { line-height: 1.65; }
:root:lang(ar) .v12-select-trigger { min-height: 30px; }
:root:lang(ar) .v12-control-grid label > span { white-space: normal; }
:root:lang(ar) .v12-accordion-button, :root:lang(ar) .v12-scope-tabs button, :root:lang(ar) .v12-object-tabs button { line-height: 1.6; }
:root:lang(ar) .v12-object-tabs, :root:lang(ar) .v12-scope-tabs { flex-wrap: wrap; }
:root:lang(ar) .v12-paper { direction: rtl; font-family: Tahoma, Arial, sans-serif; }
:root:lang(ar) .v12-paper-view, :root:lang(ar) .v12-page-content { direction: rtl; }
:root:lang(ar) .v12-running-head, :root:lang(ar) .v12-running-foot { font-family: Tahoma, Arial, sans-serif; letter-spacing: normal; }
:root:lang(ar) .v12-running-head > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
:root:lang(ar) .v12-toc-list p[data-toc-level="2"] { padding-left: 0; padding-inline-start: 16px; }
:root:lang(ar) .v12-toc-list p[data-toc-level="3"] { padding-left: 0; padding-inline-start: 32px; }
:root:lang(ar) .v12-toc-list p[data-toc-level="4"] { padding-left: 0; padding-inline-start: 48px; }
:root:lang(ar) .v12-toc-list p > b, :root:lang(ar) .v12-page-tools em, :root:lang(ar) .v12-zoom-field, :root:lang(ar) .v12-zoom-field input, :root:lang(ar) .v12-zoom-range, :root:lang(ar) .v12-latin { direction: ltr; unicode-bidi: isolate; }
:root:lang(ar) .v12-reference-list { direction: ltr; text-align: left; }
:root:lang(ar) .v12-reference-list li { direction: ltr; unicode-bidi: isolate; text-align: left; overflow-wrap: anywhere; }
:root:lang(ar) .v12-figure-framework, :root:lang(ar) .v12-figure-network, :root:lang(ar) .v12-figure-chart, :root:lang(ar) .v12-appendix-diagram { direction: ltr; }
:root:lang(ar) .v12-figure-framework strong, :root:lang(ar) .v12-figure-framework small, :root:lang(ar) .v12-figure-network span, :root:lang(ar) .v12-figure-chart small, :root:lang(ar) .v12-appendix-diagram span { direction: rtl; unicode-bidi: isolate; }
:root:lang(ar) .v12-figure-network span { font-size: 7.5px; line-height: 1.35; }
:root:lang(ar) .v12-figure-network .center { width: 50px; height: 50px; }
:root:lang(ar) .v12-figure-framework strong { font-size: 9px; }
:root:lang(ar) .v12-figure-framework small { font-size: 7px; }
:root:lang(ar) .v12-equation { direction: ltr; unicode-bidi: isolate; }
:root:lang(ar) .v12-equation > span, :root:lang(ar) .v12-equation > b { direction: ltr; unicode-bidi: isolate; }
:root:lang(ar) .v12-equation small { direction: rtl; text-align: start; font-family: Tahoma, Arial, sans-serif; }
:root:lang(ar) .v12-paper-table-wrap td, :root:lang(ar) .v12-paper-table-wrap th { line-height: 1.55; }
:root:lang(ar) .v12-paper-table-wrap td:not(:first-child) { unicode-bidi: plaintext; }
:root:lang(ar) .v12-upload-menu { left: auto; right: 0; }
:root:lang(ar) .v12-upload-menu em { direction: ltr; unicode-bidi: isolate; }
:root:lang(ar) .v12-demo-toast { text-align: start; }
:root:lang(ar) .v10-rule-nav button, :root:lang(ar) .v10-rule-rows > div, :root:lang(ar) .v10-rule-stage-head, :root:lang(ar) .v10-rule-source, :root:lang(ar) .v10-rule-preview, :root:lang(ar) .v10-rule-stage-foot { text-align: start; }
:root:lang(ar) .v10-rule-source b { direction: ltr; unicode-bidi: isolate; }
:root:lang(ar) .v10-rule-rows strong { line-height: 1.7; }
:root:lang(ar) .v12-paper .v12-caption-en { font-family: Tahoma, Arial, sans-serif; }
@media(min-width: 761px) {
 :root:lang(ar) .v12-control-grid label { grid-template-columns: 128px minmax(0,1fr); }
 :root:lang(ar) .v12-style-row { grid-template-columns: 128px repeat(2,minmax(0,1fr)); }
}
@media(max-width: 760px) {
 :root:lang(ar) .v12-document-workspace { border-inline-end: 0; }
 :root:lang(ar) .v12-page-tools { flex-wrap: wrap; }
 :root:lang(ar) .v12-page-tools em { white-space: nowrap; }
 :root:lang(ar) .v12-appbar { row-gap: 10px; }
 :root:lang(ar) .v12-document-state strong { max-width: 220px; }
 :root:lang(ar) .v10-rule-nav button em { white-space: normal; }
 :root:lang(ar) .v10-rule-rows > div { gap: 6px; }
}

:root:lang(ar) .v12-control-grid label > span, :root:lang(ar) .v12-style-row > span, :root:lang(ar) .v12-toc-range label > span { text-align: start; }

body[data-lang="ar"].v10-formatting-page .capx-writing-rhythm-copy h1 { line-height: 1.4; letter-spacing: normal; }
:root:lang(ar) .v10-formatting-page .eyebrow { letter-spacing: normal; line-height: 1.6; }
:root:lang(ar) .v12-caption-number { unicode-bidi: isolate; }

/* Preserved necessary ko typography and bidi adaptation, within one shared sheet. */
/* Korean typography adaptation; preserves the source document and controls. */
html[lang="ko"] .v10-formatting-page {
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  word-break: keep-all;
  overflow-wrap: break-word;
}
html[lang="ko"] .v10-formatting-page h1,
html[lang="ko"] .v10-formatting-page h2,
html[lang="ko"] .v10-formatting-page h3 {
  word-break: keep-all;
  overflow-wrap: break-word;
  letter-spacing: -.035em;
}
html[lang="ko"] .v12-paper {
  font-family: "Noto Serif KR", "AppleMyungjo", Batang, serif;
  word-break: keep-all;
  line-break: strict;
  overflow-wrap: break-word;
}
html[lang="ko"] .v12-caption-en {
  font-family: "Noto Serif KR", "AppleMyungjo", Batang, serif;
}
html[lang="ko"] .v12-reference-list {
  overflow-wrap: anywhere;
  word-break: normal;
}
html[lang="ko"] .v12-control-grid label > span,
html[lang="ko"] .v12-style-row > span,
html[lang="ko"] .v12-upload-menu small,
html[lang="ko"] .v12-object-tabs button,
html[lang="ko"] .v12-scope-tabs button {
  word-break: keep-all;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}
html[lang="ko"] .v12-select-trigger { height: auto; min-height: 38px; padding-top: 7px; padding-bottom: 7px; }
html[lang="ko"] .v12-select-trigger > span:first-child {
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
  overflow-wrap: anywhere;
}
html[lang="ko"] .v12-select-option { min-height: 34px; padding-top: 6px; padding-bottom: 6px; }
html[lang="ko"] .v12-app-actions button { flex-shrink: 0; }
html[lang="ko"] .v12-interaction-hint span { text-align: center; line-height: 1.5; }
html[lang="ko"] .v12-object-tabs button,
html[lang="ko"] .v12-scope-tabs button { min-height: 32px; height: auto; line-height: 1.4; }
html[lang="ko"] .v12-command-bar input::placeholder { font-size: 10px; }
html[lang="ko"] .v10-rule-rows strong { word-break: keep-all; }
@media (max-width: 680px) {
  html[lang="ko"] .v10-formatting-page .capx-writing-rhythm-copy h1 { font-size: clamp(32px, 8vw, 42px); line-height: 1.28; }
  html[lang="ko"] .v12-document-state strong { max-width: 112px; }
  html[lang="ko"] .v12-app-actions { gap: 4px; }
  html[lang="ko"] .v12-app-actions button { padding-left: 9px; padding-right: 9px; }
  html[lang="ko"] .v12-figure-framework strong,
  html[lang="ko"] .v12-figure-framework small { word-break: keep-all; }
}

html[lang="ja"] .v12-paper{font-family:"Hiragino Mincho ProN","Yu Mincho",serif;line-break:strict}html[lang="ja"] .v12-select-trigger>span:first-child,html[lang="ja"] .v12-control-grid label>span{white-space:normal;word-break:normal;overflow-wrap:anywhere}html[lang="ja"] .v12-caption-en{font-family:"Hiragino Mincho ProN","Yu Mincho",serif}

/* Review 2026-10-20: long translated labels stay inside their actual controls/cards. */
.v12-select-trigger{height:auto;min-height:32px;align-items:center;padding-top:6px;padding-bottom:6px}
.v12-select-trigger>span:first-child{min-width:0;white-space:normal;overflow-wrap:anywhere;text-overflow:clip}
.v12-select-option{min-height:32px;height:auto;white-space:normal;overflow-wrap:anywhere;line-height:1.4}
.v12-style-row>span,.v12-control-grid label>span,.v12-object-tabs button,.v12-scope-tabs button{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.v10-rule-nav button strong,.v10-rule-nav button em,.v10-rule-source b,.v10-rule-stage-head strong,.v10-rule-stage-foot strong,.v10-rule-rows strong,.v10-rule-preview>small{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.v10-rule-source,.v10-rule-stage-head,.v10-rule-stage-foot,.v10-rule-rows>div{min-width:0}
.v12-paper .v12-reference-list{overflow-wrap:anywhere}

.v12-select-menu{max-height:min(206px,calc(100dvh - 16px));overflow-y:auto;overscroll-behavior:contain}

/* Section titles keep their semantic black/blue split at every viewport. */
body.v10-formatting-page[data-page="formatting"] .capx-section:is(.v8-format-entry-section, .v8-rule-section, .v8-format-delivery) .capx-section-head > h2,
body.v10-formatting-page[data-page="formatting"] .capx-section:is(.v8-format-entry-section, .v8-rule-section, .v8-format-delivery) .capx-section-head > h2 > span {
  min-width: 0;
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.v10-formatting-page[data-page="formatting"] .capx-section:is(.v8-format-entry-section, .v8-rule-section, .v8-format-delivery) .capx-section-head > h2 > span {
  display: block;
}

/* The final CTA title is separate from the three section-head titles above. */
body.v10-formatting-page[data-page="formatting"] .capx-final h2,
body.v10-formatting-page[data-page="formatting"] .capx-final h2 > span {
  max-width: 100%;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
}

body.v10-formatting-page[data-page="formatting"] .capx-final h2 > span {
  display: block;
}

/* translation-review-20261125: hide duplicate-label options in the custom select menu */
.v12-select-option[hidden]{display:none!important}
