/* Shared Tessera palette: all interface colors resolve through these tokens. */
:root {
  --teal: #0b6d72;
  --mint: #80cbc6;
  --text: #182b32;
  --text-secondary: #526560;
  --paper-bg: #f7f9f8;
  --white: #ffffff;
  --surface: var(--white);
  --border: #dce5e3;
  --finding: #c47d12;
  --finding-text: #79500b;
  --finding-bg: #fce7c3;
  --done: #e5f3f0;
}
:root {
  --ink: var(--text);
  --muted: var(--text-secondary);
  --blue: var(--soft);
  --bluehover: var(--brand);
  --line: var(--border);
  --canvas: var(--paper-bg);
  --panel: 320px;
  --red: var(--finding-text);
  --green: var(--brand);
  color-scheme: light;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font:
    13px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  background: transparent;
  color: var(--ink);
  padding: 8px 11px;
  border-radius: 6px;
  cursor: pointer;
  transition:
    background 0.12s,
    color 0.12s;
}
button:hover:not(:disabled) {
  background: var(--canvas);
}
button:disabled {
  opacity: 0.38;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
}
svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  width: 17px;
  height: 17px;
  flex: none;
}
.symbols {
  position: absolute;
  height: 0;
  width: 0;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.platformbar {
  height: 44px;
  background: var(--ink);
  color: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  gap: 24px;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  font-size: 21px;
  letter-spacing: -0.8px;
  font-weight: 600;
  color: var(--surface);
  white-space: nowrap;
}
.wordmark span {
  font-size: 12px;
  letter-spacing: 0;
  font-weight: 400;
  color: var(--muted);
  border-left: 1px solid color-mix(in srgb, var(--ink) 19%, transparent);
  padding-left: 14px;
}
.formconnection {
  color: var(--muted);
  font-size: 12px;
  min-width: 0;
  max-width: 52%;
  padding: 7px 8px;
}
.formconnection span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.formconnection svg {
  width: 13px;
  height: 13px;
  color: var(--muted);
}
.formconnection:hover:not(:disabled) {
  background: color-mix(in srgb, var(--ink) 7%, transparent);
}
.appbar {
  height: 58px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 6;
}
.documentidentity {
  display: flex;
}
#docName {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 420px;
}
.demo-label {
  font-size: 9px;
  color: var(--muted);
  letter-spacing: 0.4px;
}
.headerfill {
  flex: 1;
}
.filemenu {
  position: relative;
  flex: none;
}
.filemenu > summary {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 8px 9px;
  list-style: none;
  color: var(--muted);
  cursor: pointer;
  border-radius: 4px;
  font-size: 12px;
}
.filemenu > summary::-webkit-details-marker {
  display: none;
}
.filemenu > summary:hover {
  background: var(--canvas);
}
.filemenu > summary svg {
  width: 12px;
  height: 12px;
}
.menupopup {
  position: absolute;
  top: 39px;
  left: 0;
  z-index: 30;
  min-width: 220px;
  padding: 5px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  box-shadow: 0 6px 22px color-mix(in srgb, var(--ink) 8%, transparent);
}
.menupopup button {
  min-height: 38px;
  width: 100%;
  justify-content: flex-start;
  padding: 10px;
  font-size: 12px;
}
.menuseparator {
  height: 1px;
  margin: 5px;
  background: var(--line);
}
.previewbutton {
  font-size: 12px;
  white-space: nowrap;
}
.primary {
  background: var(--blue);
  color: var(--surface);
  font-weight: 600;
  font-size: 12px;
  padding: 9px 14px;
  white-space: nowrap;
}
.primary:hover:not(:disabled) {
  background: var(--bluehover);
}
.primary:active:not(:disabled) {
  background: var(--brand);
}
.primary svg {
  width: 15px;
  height: 15px;
}
.primary:disabled {
  background: var(--canvas);
  color: var(--muted);
  opacity: 1;
}
.documenttools {
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 22px;
  height: 44px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: relative;
  z-index: 3;
}
.documenttools button {
  font-size: 12px;
  padding: 7px 10px;
  white-space: nowrap;
}
.documenttools button svg {
  width: 15px;
  height: 15px;
}
.documenttools button.selected {
  background: var(--canvas);
  color: var(--brand);
}
.toolgroup {
  display: flex;
  gap: 1px;
}
.iconbutton {
  width: 32px;
  height: 32px;
  padding: 7px;
  font-size: 22px;
  line-height: 1;
}
.tooldivider {
  height: 18px;
  width: 1px;
  background: var(--line);
  margin: 0 9px;
  flex: none;
}
.texticon {
  font:
    16px Georgia,
    serif;
  line-height: 1;
  width: 15px;
}
.checktool {
  gap: 7px !important;
}
#sideCount {
  font-size: 10px;
  line-height: 17px;
  min-width: 17px;
  text-align: center;
  border-radius: 3px;
  background: var(--canvas);
  color: var(--finding-text);
  padding: 0 4px;
  font-weight: 600;
}
#sideCount.zero {
  background: var(--canvas);
  color: var(--brand);
}
.workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-height: 360px;
  position: relative;
}
.workspace.panel-open {
  grid-template-columns: minmax(0, 1fr) var(--panel);
}
.documentarea {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.paperscroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 32px 38px 50px;
  scroll-behavior: smooth;
}
.paper {
  width: 100%;
  max-width: 794px;
  min-height: 1000px;
  margin: 0 auto;
  padding: 66px 67px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: 0 2px 5px color-mix(in srgb, var(--ink) 3%, transparent);
  color: var(--ink);
  font:
    13.5px/1.8 Arial,
    Helvetica,
    sans-serif;
  zoom: 1;
}
.paper p {
  margin: 0 0 15px;
  min-height: 18px;
  position: relative;
  overflow-wrap: anywhere;
  cursor: text;
}
.paper .docselected {
  position: relative;
  background: transparent;
  box-shadow: none;
}
.paper h1 {
  font-size: 19px;
  font-family: Arial, Helvetica, sans-serif;
  font-weight: 600;
  text-align: center;
  line-height: 1.5;
  margin: 0 0 24px;
}
.paper h2.smallheading {
  font:
    600 14px/1.5 Arial,
    Helvetica,
    sans-serif;
  margin: 30px 0 12px;
  text-align: left;
}
.paper .chip {
  font:
    12px/1.7 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
  color: var(--brand);
  border-bottom: 1px solid var(--line);
  padding: 1px 2px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  cursor: pointer;
}
.paper .chip:hover {
  background: var(--canvas);
}
.paper .chip.invalid {
  color: var(--finding-text);
  background: var(--canvas);
  border-bottom: 1px dashed var(--finding-bg);
}
.paper .chip.invalid::after {
  content: '!';
  display: inline-block;
  font-size: 9px;
  font-weight: 600;
  line-height: 12px;
  width: 12px;
  text-align: center;
  margin-left: 5px;
  border-radius: 2px;
}
.paper .chip.condition {
  font-size: 11px;
  color: var(--brand);
  border-color: var(--line);
}
.paper table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0;
  font-size: 12px;
}
.paper td {
  border: 1px solid var(--line);
  padding: 8px;
}
.paper td p {
  margin: 0;
}
.paper tr:first-child {
  background: var(--canvas);
}
.paper .conditionlabel {
  font:
    11px/1.7 Arial,
    sans-serif;
  color: var(--brand);
  padding: 6px 10px;
  border-left: 0;
}
.canvasfooter {
  min-height: 36px;
  flex: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 5px 22px;
  color: var(--muted);
  font-size: 10px;
}
.selectionstatus {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.selectionstatus > span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.canvasfooter button {
  font-size: 10px;
  color: var(--brand);
  padding: 1px 3px;
  white-space: nowrap;
}
.footerstatus {
  display: flex;
  align-items: center;
  gap: 18px;
  flex: none;
}
.engineLabel {
  font-size: 10px;
  white-space: nowrap;
  color: var(--muted);
}
.zoomcontrol select {
  font-size: 10px;
  color: var(--muted);
  border: 0;
  background: transparent;
  padding: 4px;
  cursor: pointer;
}
.previewnotice {
  padding: 9px 18px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  text-align: center;
  flex: none;
}
.inspector {
  background: var(--surface);
  min-width: 0;
  min-height: 0;
  border-left: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.panelheader {
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 17px 0 22px;
  flex: none;
}
.panelheader h2 {
  font-size: 14px;
  font-weight: 600;
  margin: 0;
}
.panelheader .iconbutton {
  font-size: 21px;
  color: var(--muted);
}
.inspectorview {
  flex: 1;
  min-height: 0;
  overflow: auto;
}
.summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 22px 20px;
  color: var(--muted);
  font-size: 12px;
}
.summary small {
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.summaryicon {
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  background: var(--canvas);
  color: var(--finding-text);
  border-radius: 3px;
  font-weight: 600;
  font-size: 11px;
}
.summaryicon.good {
  background: var(--canvas);
  color: var(--brand);
}
.summaryicon svg {
  width: 12px;
  height: 12px;
}
.reporttabs {
  display: flex;
  gap: 20px;
  border-bottom: 1px solid var(--line);
  padding: 0 22px;
}
.reporttabs button {
  font-size: 11px;
  color: var(--muted);
  border: 0;
  border-bottom: 2px solid transparent;
  border-radius: 0;
  padding: 8px 0;
  background: none;
}
.reporttabs button.selected {
  color: var(--brand);
  border-bottom-color: var(--soft);
}
#issues {
  padding: 0 22px 22px;
}
.issue {
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}
.issue:last-child {
  border-bottom: 0;
}
.issuetop {
  display: flex;
  align-items: center;
  gap: 8px;
}
.issueindex {
  display: grid;
  place-items: center;
  font-size: 10px;
  color: var(--finding-text);
  background: var(--canvas);
  width: 17px;
  height: 17px;
  border-radius: 3px;
  flex: none;
}
.issue h3 {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}
.issue p {
  font-size: 12px;
  line-height: 1.75;
  color: var(--muted);
  margin: 10px 0 13px;
}
.proposal {
  font-size: 12px;
  line-height: 1.7;
  color: var(--ink);
  display: flex;
  align-items: flex-start;
  gap: 7px;
}
.proposal svg {
  width: 13px;
  height: 13px;
  color: var(--brand);
  margin-top: 3px;
}
.issue details {
  margin-top: 14px;
  font-size: 11px;
  color: var(--muted);
}
.issue details summary {
  cursor: pointer;
}
.issue code {
  display: block;
  font:
    10px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  padding: 9px;
  background: var(--canvas);
  margin-top: 8px;
  overflow-wrap: anywhere;
}
.location {
  font-size: 10px;
  color: var(--muted);
  margin-top: 14px;
}
.issue .action {
  width: 100%;
  min-height: 38px;
  border-radius: 6px;
  background: var(--ink);
  color: var(--surface);
  font-size: 12px;
  padding: 9px 12px;
  margin-top: 14px;
}
.issue .action:hover {
  background: var(--ink);
}
.issue .action span {
  margin-left: auto;
}
.issue.warning .issueindex {
  background: var(--canvas);
  color: var(--finding-text);
}
.history {
  font-size: 12px;
  line-height: 1.7;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.history small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  overflow-wrap: anywhere;
}
.success {
  font-size: 12px;
  color: var(--muted);
  padding: 12px 0;
  line-height: 1.7;
}
.search {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 10px 11px;
  margin: 1px 20px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}
.search svg {
  width: 14px;
  height: 14px;
}
.search input {
  border: 0;
  background: none;
  outline: 0;
  width: 100%;
  font-size: 12px;
  color: var(--ink);
}
.search:focus-within {
  border-color: var(--blue);
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--ink) 9%, transparent);
}
#fields {
  padding: 0 14px 24px;
}
.fieldsection {
  font-size: 10px;
  color: var(--muted);
  margin: 18px 8px 8px;
}
.field {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  padding: 11px 8px;
  gap: 10px;
}
.field .typeicon svg {
  width: 17px;
  height: 17px;
}
.field .typeicon {
  display: grid;
  place-items: center;
  color: var(--muted);
  width: 20px;
  height: 24px;
  flex: none;
  font-size: 14px;
}
.field > span:nth-child(2) {
  font-size: 13px;
  line-height: 1.5;
  min-width: 0;
}
.field small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 210px;
}
.field .plus {
  margin-left: auto;
  color: var(--muted);
  font-size: 16px;
  opacity: 0;
}
.field:hover .plus,
.field:focus-visible .plus {
  opacity: 1;
}
.outlineitem {
  display: block;
  text-align: left;
  width: 100%;
  padding: 11px 22px;
  border-radius: 0;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  border-left: 2px solid transparent;
}
.outlineitem.active {
  color: var(--brand);
  background: var(--canvas);
  border-left-color: var(--soft);
}
.sourcerow {
  margin: 0 22px;
  padding: 17px 0;
  border-bottom: 1px solid var(--line);
}
.sourcetype {
  display: block;
  font-size: 11px;
  color: var(--muted);
}
.sourcetype span {
  float: right;
  font-size: 10px;
  color: var(--muted);
}
.sourcerow strong {
  display: block;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.7;
  margin: 7px 0;
  overflow-wrap: anywhere;
}
.sourcerow button {
  font-size: 11px;
  padding: 2px 0;
  color: var(--brand);
}
.advanced {
  margin: 20px 22px;
  font-size: 11px;
  color: var(--muted);
}
.advanced summary {
  cursor: pointer;
}
.advanced button {
  font-size: 11px;
  margin-top: 10px;
  color: var(--brand);
}
.advanced button.on {
  background: var(--canvas);
}
.sourcenote {
  font-size: 10px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
  padding: 0 22px 20px;
}
.empty {
  padding: 16px 22px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
dialog {
  width: 500px;
  max-width: calc(100vw - 28px);
  max-height: calc(100dvh - 48px);
  overflow: auto;
  padding: 30px;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 24px 80px color-mix(in srgb, var(--ink) 19%, transparent);
}
dialog::backdrop {
  background: color-mix(in srgb, var(--ink) 36%, transparent);
  backdrop-filter: blur(2px);
}
dialog h2 {
  font-size: 21px;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.4px;
  margin: 0 32px 12px 0;
}
dialog p {
  font-size: 13px;
  line-height: 1.7;
  color: var(--muted);
  margin: 12px 0;
}
dialog label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  margin: 20px 0 8px;
}
dialog select,
dialog input:not([type='checkbox']):not([type='radio']),
dialog textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 6px;
  padding: 10px 12px;
  color: var(--ink);
  font-size: 13px;
  transition:
    border-color 0.12s,
    box-shadow 0.12s;
}
dialog select {
  appearance: auto;
  padding-right: 12px;
}

dialog select:hover,
dialog input:not([type='checkbox']):not([type='radio']):hover,
dialog textarea:hover {
  border-color: var(--muted);
}
dialog select:focus-visible,
dialog input:not([type='checkbox']):not([type='radio']):focus-visible,
dialog textarea:focus-visible {
  outline: none;
  border-color: var(--soft);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 9%, transparent);
}
dialog input:disabled,
dialog select:disabled {
  color: var(--muted);
  background-color: var(--canvas);
  cursor: not-allowed;
}
dialog textarea {
  min-height: 96px;
  resize: vertical;
  line-height: 1.65;
}
dialog textarea::placeholder,
dialog input::placeholder {
  color: var(--muted);
}
dialog .close {
  position: absolute;
  right: 16px;
  top: 18px;
  width: 30px;
  height: 30px;
  padding: 6px;
  border: 0;
  border-radius: 5px;
  background: none;
  color: var(--muted);
}
dialog .close svg {
  width: 18px;
  height: 18px;
}
dialog .close:hover {
  background: var(--canvas);
  color: var(--ink);
}
dialog .eyebrow {
  display: none;
}
dialog code {
  font:
    11px/1.7 ui-monospace,
    SFMono-Regular,
    monospace;
  display: block;
  padding: 11px 12px;
  background: var(--canvas);
  border-radius: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
dialog details {
  font-size: 11px;
  color: var(--muted);
  margin: 17px 0;
}
dialog details summary {
  cursor: pointer;
  padding: 3px 0;
}
dialog details code {
  margin-top: 9px;
}
.modalactions {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  border-top: 1px solid var(--canvas);
}
.modalactions button {
  font-size: 12px;
  min-height: 38px;
  padding: 9px 15px;
  border-radius: 6px;
}
.modalactions #cancelModal {
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--surface);
}
.modalactions #cancelModal:hover {
  background: var(--canvas);
}
.modalactions .primary {
  padding: 9px 17px;
}
dialog .note {
  padding: 0 0 0 12px;
  border-left: 2px solid var(--line);
  background: none;
  font-size: 12px;
  line-height: 1.7;
  color: var(--muted);
}
.checkline {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  font-size: 12px !important;
  font-weight: 400 !important;
  line-height: 1.7;
  cursor: pointer;
}
input[type='checkbox'] {
  appearance: auto;
  accent-color: var(--brand);
  display: inline-block;
  width: 16px;
  height: 16px;
  flex: none;
  cursor: pointer;
  margin: 2px 0 0;
  vertical-align: middle;
}
input[type='checkbox']:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.checkline input {
  margin-top: 2px;
}
.repaircompare {
  display: grid;
  grid-template-columns: 1fr 20px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 0 5px;
}
.repaircompare small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-bottom: 7px;
}
.repaircompare b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.6;
}
.repaircompare .before b {
  color: var(--muted);
  text-decoration: line-through;
}
.repaircompare .after b {
  color: var(--brand);
}
.repaircompare > span {
  color: var(--muted);
}
dialog .checks label {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 400;
  font-size: 13px;
  margin: 0;
  padding: 10px 0;
  border-bottom: 1px solid var(--canvas);
  cursor: pointer;
}
.tableexample {
  border-collapse: collapse;
  width: 100%;
  margin-top: 22px;
  font-size: 11px;
}
.tableexample th,
.tableexample td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--canvas);
  text-align: left;
}
.tableexample th {
  font-weight: 600;
  background: var(--canvas);
  color: var(--muted);
}
.tableexample td {
  font-size: 11px;
  color: var(--muted);
}
.errorbox {
  color: var(--finding-text) !important;
  border-left: 2px solid var(--finding-bg);
  padding-left: 12px;
}
.micro {
  font-size: 10px !important;
  color: var(--muted) !important;
}
#toast {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: 90vw;
  border-radius: 6px;
  padding: 11px 16px;
  background: var(--ink);
  box-shadow: 0 5px 20px color-mix(in srgb, var(--ink) 13%, transparent);
  font-size: 12px;
  line-height: 1.6;
  color: var(--surface);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s;
}
#toast.show {
  opacity: 1;
}
@media (min-width: 1500px) {
  .paperscroll {
    padding-top: 40px;
  }
  :root {
    --panel: 340px;
  }
}
@media (max-width: 1000px) {
  .appbar,
  .platformbar {
    padding-left: 20px;
    padding-right: 20px;
  }
  .documenttools {
    padding: 0 15px;
  }
  .documenttools button {
    padding: 7px 8px;
  }
  .paperscroll {
    padding: 26px 25px 40px;
  }
  .workspace.panel-open .paper {
    padding: 42px 37px;
    font-size: 13px;
  }
  .workspace.panel-open .paper h1 {
    font-size: 17px;
  }
  .tooldivider {
    margin: 0 5px;
  }
  #docName {
    max-width: 290px;
  }
}
@media (max-width: 800px) {
  .workspace.panel-open {
    grid-template-columns: minmax(0, 1fr);
  }
  .inspector {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 320px;
    max-width: calc(100vw - 30px);
    z-index: 4;
    box-shadow: -6px 0 18px color-mix(in srgb, var(--ink) 5%, transparent);
  }
  .workspace.panel-open .paper {
    padding: 55px 57px;
  }
  .documenttools {
    gap: 0;
  }
  .documenttools button {
    font-size: 11px;
    padding: 7px;
  }
  .documenttools .tooldivider {
    margin: 0 3px;
  }
  .platformbar {
    padding: 0 18px;
  }
  .appbar {
    gap: 10px;
  }
  .demo-label {
    display: none;
  }
  .paper {
    padding: 55px 57px;
  }
  .canvasfooter {
    padding: 5px 15px;
  }
  .footerstatus {
    gap: 10px;
  }
}
@media (max-width: 600px) {
  .platformbar {
    height: 42px;
    padding: 0 14px;
    gap: 12px;
  }
  .wordmark {
    font-size: 20px;
  }
  .wordmark span {
    display: none;
  }
  .formconnection {
    font-size: 10px;
    max-width: 66%;
    padding: 6px 0;
  }
  .appbar {
    height: 90px;
    flex-wrap: wrap;
    padding: 11px 14px;
    gap: 4px 7px;
  }
  .documentidentity {
    flex: 0 0 100%;
  }
  #docName {
    font-size: 13px;
    max-width: calc(100vw - 40px);
  }
  .appbar .primary,
  .previewbutton {
    font-size: 11px;
    padding: 7px 9px;
  }
  .filemenu > summary {
    padding: 7px 0;
  }
  .documenttools {
    height: 42px;
    padding: 0 9px;
    overflow-x: auto;
  }
  .documenttools button {
    font-size: 11px;
    padding: 7px 8px;
  }
  .documenttools .tooldivider {
    margin: 0 4px;
  }
  .documenttools .headerfill {
    min-width: 4px;
  }
  .documenttools .toolgroup {
    display: none;
  }
  .workspace {
    height: calc(100dvh - 174px);
    min-height: 360px;
  }
  .paperscroll {
    padding: 19px 13px 30px;
  }
  .paper,
  .workspace.panel-open .paper {
    padding: 32px 26px;
    font-size: 12px;
    min-height: 780px;
  }
  .paper h1 {
    font-size: 16px;
  }
  .paper h2.smallheading {
    font-size: 13px;
  }
  .paper .chip {
    font-size: 11px;
  }
  .canvasfooter {
    padding: 5px 12px;
    font-size: 9px;
    gap: 7px;
  }
  .canvasfooter .engineLabel {
    font-size: 9px;
  }
  .selectionstatus > span {
    max-width: 150px;
  }
  .canvasfooter #clearSelection {
    font-size: 0;
  }
  .canvasfooter #clearSelection::after {
    content: '×';
    font-size: 16px;
  }
  .footerstatus {
    gap: 5px;
  }
  .previewnotice {
    font-size: 10px;
    padding: 8px 12px;
  }
  dialog {
    padding: 26px 22px;
  }
  #toast {
    left: 50%;
    max-width: calc(100vw - 24px);
    width: max-content;
    font-size: 11px;
  }
  .repaircompare {
    gap: 6px;
    grid-template-columns: 1fr 15px 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
[hidden] {
  display: none !important;
}
.toolmenu > summary {
  font-size: 12px;
  padding: 7px 10px;
}
.toolmenu .menupopup {
  top: 35px;
}
.toolmenu .menupopup button {
  font-size: 12px;
  padding: 10px;
  justify-content: flex-start;
}
#checkPane #issues {
  padding-top: 0;
}
@media (max-width: 600px) {
  .toolmenu > summary {
    font-size: 11px;
    padding: 7px;
  }
  .toolmenu .menupopup {
    position: fixed;
    top: 173px;
    left: 12px;
    right: 12px;
    min-width: 0;
  }
}

@media (forced-colors: active) {
  input[type='checkbox'] {
    appearance: auto;
  }
  .primary {
    border: 1px solid ButtonText;
  }
  .paper .chip {
    border-bottom: 1px solid LinkText;
  }
}
.fieldexample {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--canvas);
}
.fieldexample > span {
  font-size: 10px;
  color: var(--muted);
}
.fieldexample strong {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.6;
  color: var(--brand);
  overflow-wrap: anywhere;
}
.danger {
  background: var(--finding-text);
  color: var(--surface);
  font-weight: 600;
}
.danger:hover:not(:disabled) {
  background: var(--finding-text);
}
.deletepreview {
  padding: 13px 0 13px 14px;
  border-left: 2px solid var(--soft);
  font:
    13px/1.8 Arial,
    sans-serif;
  color: var(--muted);
  max-height: 200px;
  overflow: auto;
  white-space: pre-wrap;
}
.shortcutlist {
  margin: 20px 0 0;
}
.shortcutlist > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 11px 0;
  border-bottom: 1px solid var(--canvas);
}
.shortcutlist dt {
  font-size: 12px;
  color: var(--muted);
}
.shortcutlist dd {
  margin: 0;
}
kbd {
  font:
    11px/1.5 -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    sans-serif;
  color: var(--muted);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-bottom-width: 2px;
  border-radius: 4px;
  min-width: 34px;
  display: inline-block;
  text-align: center;
  padding: 3px 7px;
}
.quiet-fields .paper .chip:not(.invalid) {
  color: inherit;
  border-bottom-color: transparent;
}
:root[data-density='compact'] .field {
  padding-top: 7px;
  padding-bottom: 7px;
}
:root[data-density='compact'] .field small {
  display: none;
}
:root[data-density='compact'] .sourcerow {
  padding-top: 11px;
  padding-bottom: 11px;
}
:root[data-density='compact'] .issue {
  padding-top: 14px;
  padding-bottom: 14px;
}
.librarybutton {
  font-size: 12px;
  white-space: nowrap;
  color: var(--muted);
}
.librarybutton svg {
  width: 15px;
  height: 15px;
}
.templatelist {
  margin-top: 20px;
}
.templatelist > button {
  width: 100%;
  border: 0;
  border-bottom: 1px solid var(--canvas);
  border-radius: 0;
  justify-content: flex-start;
  padding: 17px 2px;
  gap: 13px;
  text-align: left;
}
.templatelist > button > svg {
  width: 20px;
  height: 20px;
  color: var(--muted);
}
.templatelist b {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.templatelist small {
  display: block;
  font-size: 11px;
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.5;
}
.templatelist .templateopen {
  margin-left: auto;
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.libraryupload {
  font-size: 12px;
  color: var(--brand);
  margin-top: 17px;
  padding: 8px 0;
}
@media (max-width: 600px) {
  .librarybutton {
    font-size: 11px;
    padding: 7px;
  }
  .librarybutton svg {
    display: none;
  }
  .templatelist > button {
    gap: 10px;
  }
  .templatelist .templateopen {
    font-size: 0;
  }
  .templatelist .templateopen::after {
    content: '→';
    font-size: 15px;
  }
}

.editable-text {
  white-space: pre-wrap;
  min-width: 2px;
  display: inline;
  outline: none;
  border-radius: 2px;
}
.editable-text:empty {
  display: inline-block;
  min-width: 4px;
  min-height: 1em;
}
.editable-text:focus {
  background: transparent;
  box-shadow: none;
}
.editable-text:hover {
  background: transparent;
}

.impactlist {
  max-height: 220px;
  overflow: auto;
  padding-left: 24px;
}
.impactlist li {
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}
.impactlist p {
  margin: 4px 0;
  font-size: 13px;
}
.impactlist small,
.migrationrow small {
  color: var(--muted);
}
.migrationlist {
  max-height: 360px;
  overflow: auto;
}
.migrationrow {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  gap: 5px;
}
.migrationrow p {
  margin: 0;
  font-size: 13px;
}
.migrationstatus {
  font-size: 11px;
  color: var(--muted);
}
.migrationstatus.removed {
  color: var(--finding-text);
}
.migrationstatus.changed {
  color: var(--finding-text);
}

.formatbar {
  height: 34px;
  display: flex;
  align-items: center;
  gap: 3px;
  padding: 0 24px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.formatbar > span {
  font-size: 11px;
  color: var(--muted);
  margin-right: 12px;
}
.formatbar button {
  width: 30px;
  height: 27px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  border-radius: 4px;
  font:
    14px Georgia,
    serif;
}
.formatbar button[aria-pressed='true'] {
  background: var(--canvas);
  color: var(--brand);
}
.formatbar button:disabled {
  opacity: 0.35;
}
@media (max-width: 600px) {
  .formatbar {
    padding: 0 14px;
  }
  .workspace {
    height: calc(100dvh - 208px);
  }
}

.scenariolist {
  display: grid;
  max-height: 340px;
  overflow: auto;
}
.scenariolist button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 0;
  background: transparent;
}
.scenariolist small {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.formatbar > span.headerfill {
  margin: 0;
  flex: 1;
}
.formatbar button:not([id^='format-']) {
  width: auto;
  padding: 0 10px;
  font-family: inherit;
  font-size: 11px;
  color: var(--muted);
}
.formatbar button:not([id^='format-']):hover {
  background: var(--canvas);
}
.formatbar button:focus-visible {
  outline: 2px solid var(--soft);
  outline-offset: 1px;
}

dialog.catalogdialog {
  width: 940px;
}
.cataloglayout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 28px;
  margin-top: 20px;
}
.catalogchoices {
  border-right: 1px solid var(--line);
  padding-right: 20px;
}
.catalogchoices > button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 10px;
  border: 0;
  border-radius: 5px;
  background: transparent;
  padding: 13px 10px;
  margin-bottom: 5px;
}
.catalogchoices > button[aria-pressed='true'] {
  background: var(--canvas);
  box-shadow: inset 3px 0 var(--soft);
}
.catalogchoices b {
  display: block;
  font-size: 13px;
  font-weight: 600;
}
.catalogchoices small {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.5;
}
.catalogchoices svg {
  width: 17px;
  height: 17px;
  flex: none;
  margin-top: 1px;
  color: var(--muted);
}
.catalogdetail {
  min-width: 0;
}
.catalogdetail #catalogSummary {
  display: grid;
  gap: 5px;
  margin-bottom: 12px;
  font-size: 13px;
}
.catalogdetail #catalogSummary span {
  font-size: 11px;
  color: var(--muted);
}
.catalogsheetwrap {
  background: var(--canvas);
  padding: 16px;
  max-height: 350px;
  overflow: auto;
  border: 1px solid var(--line);
}
.catalogsheet {
  background: var(--surface);
  padding: 30px 26px;
  min-height: 440px;
  color: var(--ink);
  font:
    10px/1.65 Arial,
    sans-serif;
  box-shadow: 0 1px 4px color-mix(in srgb, var(--ink) 7%, transparent);
}
.catalogsheet h3 {
  font-size: 13px;
  text-align: center;
  margin: 0 0 24px;
}
.catalogsheet h4 {
  font-size: 11px;
  margin: 18px 0 8px;
}
.catalogsheet p {
  font-size: 10px;
  margin: 9px 0;
}
.catalogsheet table {
  border-collapse: collapse;
  width: 100%;
  font-size: 9px;
}
.catalogsheet td {
  border: 1px solid var(--line);
  padding: 5px;
}
.catalogsheet td p {
  margin: 0;
}
.catalogunknown {
  color: var(--finding-text);
}
.catalogdetail > .primary {
  float: right;
}
.catalogchoices .libraryupload {
  margin-top: 20px;
  border-top: 1px solid var(--line);
  border-radius: 0;
  padding-top: 16px;
  font-size: 11px;
}
@media (max-width: 700px) {
  .cataloglayout {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .catalogchoices {
    border: 0;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px;
  }
  .catalogchoices > button {
    padding: 10px 8px;
  }
  .catalogchoices .libraryupload {
    grid-column: 1/-1;
    margin-top: 0;
  }
  .catalogsheetwrap {
    max-height: 250px;
  }
  .catalogchoices small {
    font-size: 10px;
  }
  .catalogchoices svg {
    display: none;
  }
}

.doctable {
  position: relative;
  margin: 20px 0;
}
.doctable .tableedit {
  font:
    11px Arial,
    sans-serif;
  border: 0;
  background: transparent;
  color: var(--muted);
  padding: 5px 0;
  margin-bottom: 3px;
}
.doctable table {
  margin: 0;
}
.columnedit {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 88px 28px 28px;
  align-items: center;
  gap: 6px;
  margin: 8px 0;
}
.columnedit input:not([type='checkbox']):not([type='radio']) {
  height: 36px;
  min-width: 0;
  width: 100%;
  padding: 5px 8px;
}
.columnedit label {
  margin: 0;
  min-width: 0;
}
.columnedit button {
  padding: 0;
  width: 28px;
  height: 30px;
}
.columnedit + .checkline {
  margin-top: 12px;
}

.columnedit select {
  height: 36px;
  padding: 4px 6px;
  min-width: 0;
  width: 100%;
  font-size: 11px;
}

dialog.tabledialog {
  padding: 24px;
}
.tabledialog label {
  margin-top: 12px;
}
.tabledialog .columnedit label {
  margin: 0;
}
.tabledialog .tableexample {
  margin-top: 14px;
}
.tabledialog .tableexample th,
.tabledialog .tableexample td {
  padding: 7px 8px;
}
.tabledialog .modalactions {
  margin-top: 16px;
  padding-top: 12px;
}
.tabledialog #tableColumns {
  max-height: 210px;
  overflow: auto;
}

.simpleheader {
  gap: 10px;
}
.simpleheader #docName {
  max-width: 300px;
}
.simpleheader #insertTab {
  font-size: 12px;
}
.simpleheader #insertTab.selected,
.simpleheader #navReport.selected {
  background: var(--canvas);
  color: var(--brand);
}
.simpleheader #navReport {
  font-size: 12px;
  white-space: nowrap;
}
.simpleheader #sideCount {
  font-size: 10px;
  background: var(--canvas);
  color: var(--finding-text);
  padding: 2px 5px;
  border-radius: 4px;
}
.simpleheader #sideCount.zero {
  background: var(--canvas);
  color: var(--brand);
}
.edittools {
  height: 38px;
  gap: 3px;
}
.edittools button {
  width: 30px;
  height: 28px;
}
.edittools button svg {
  width: 15px;
  height: 15px;
}
.edittools #paragraphStyle {
  width: 150px;
  height: 28px;
  padding: 3px 7px;
  margin-right: 8px;
  font-size: 11px;
  border-color: transparent;
  background-color: transparent;
}
.edittools #paragraphStyle:hover:not(:disabled) {
  background-color: var(--canvas);
}
.editseparator {
  width: 1px;
  height: 18px;
  background: var(--line);
  margin: 0 10px;
}
.insertchoices {
  display: grid;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  padding-bottom: 10px;
}
.insertchoices button {
  justify-content: flex-start;
  font-size: 12px;
  padding: 10px 6px;
}
.insertchoices svg {
  color: var(--muted);
}
.checkextras {
  display: grid;
  gap: 4px;
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 12px;
}
.checkextras button {
  justify-content: flex-start;
  font-size: 12px;
  color: var(--muted);
}
@media (max-width: 1000px) {
  .simpleheader #docName {
    max-width: 210px;
  }
  .simpleheader {
    gap: 5px;
  }
  .simpleheader button,
  .simpleheader .filemenu > summary {
    padding-left: 8px;
    padding-right: 8px;
  }
}
@media (max-width: 700px) {
  .simpleheader #docName {
    max-width: 140px;
  }
  .simpleheader .demo-label {
    display: none;
  }
  .simpleheader #navReport {
    font-size: 11px;
  }
  .simpleheader #export svg {
    display: none;
  }
}
@media (max-width: 600px) {
  .simpleheader {
    height: 88px;
    padding: 9px 14px;
  }
  .simpleheader .documentidentity {
    flex: 0 0 100%;
  }
  .simpleheader #docName {
    max-width: calc(100vw - 50px);
  }
  .simpleheader button,
  .simpleheader .filemenu > summary {
    font-size: 11px;
    padding: 7px;
  }
  .simpleheader .headerfill {
    min-width: 0;
  }
  .simpleheader .previewbutton svg {
    display: none;
  }
  .edittools {
    padding: 0 14px;
  }
  .edittools #paragraphStyle {
    width: 126px;
  }
  .workspace {
    height: calc(100dvh - 168px);
  }
}

.editable-text:empty::before {
  content: attr(data-placeholder);
  color: var(--muted);
  pointer-events: none;
}
.conditionrule {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(80px, 0.65fr) auto;
  gap: 7px;
  margin: 10px 0;
  align-items: center;
}
.conditionrule [data-rule-remove] {
  min-width: 28px;
  padding: 4px 6px;
}
.conditionrule [data-rule-remove][hidden] {
  display: none;
}
.conditionjoinrow {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 6px 0 14px;
}
.conditionjoinrow label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  margin: 0;
}
.conditionjoinrow label[hidden] {
  display: none;
}
.conditionrule select,
.conditionrule input {
  min-width: 0;
  margin: 0;
  font-size: 12px;
  padding: 8px;
}
.conditiondialog {
  width: 610px;
}
.conditiondialog textarea {
  min-height: 76px;
  resize: vertical;
}
.conditiontarget {
  font-size: 13px;
  line-height: 1.7;
  background: var(--canvas);
  border-left: 2px solid var(--soft);
  padding: 12px 14px;
  margin: 12px 0;
  max-height: 150px;
  overflow: auto;
}
.disclosurelink {
  font-size: 12px;
  color: var(--muted);
  padding: 10px 0;
  margin-top: 8px;
}
.tablesourceplain {
  margin: 10px 0;
  color: var(--muted);
  font-size: 12px;
}
.tableoptions {
  margin-top: 16px;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.tableoptions > summary {
  cursor: pointer;
  font-size: 12px;
  color: var(--brand);
  padding: 5px 0;
}
.tableoptions[open] > summary {
  margin-bottom: 10px;
}
@media (max-width: 600px) {
  .conditionrule {
    grid-template-columns: 1fr 1fr;
  }
  .conditionrule input,
  .conditionrule #conditionAnswer {
    grid-column: 1/-1;
  }
}

.documentidentity {
  gap: 0;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-width: 150px;
}
.docversion {
  font-size: 10px;
  color: var(--muted);
  margin-top: 3px;
}
.footerstatus .demo-label {
  font-size: 10px;
  letter-spacing: 0;
  color: var(--muted);
}
.selectionstatus #selectionInfo {
  display: none !important;
}
.conditiondialog .conditionrule {
  margin-top: 16px;
}
.platformbar .wordmark {
  font-size: 20px;
}
.documentidentity #docName {
  font-size: 14px;
}
@media (max-width: 600px) {
  .simpleheader .documentidentity {
    flex-direction: row;
    align-items: center;
    gap: 10px;
  }
  .docversion {
    margin: 0;
  }
  .footerstatus .demo-label {
    font-size: 9px;
  }
}

.canvasfooter #clearSelection {
  font-size: 16px;
  padding: 2px 6px;
  line-height: 1;
  width: 24px;
  height: 24px;
}

.compactheader {
  height: 64px;
  padding: 0 24px;
  gap: 14px;
}
.compactheader .wordmark {
  font-size: 21px;
  color: var(--ink);
  margin-right: 8px;
}
.compactheader .documentidentity {
  padding-left: 18px;
  border-left: 1px solid var(--line);
}
.compactheader #addTable {
  font-size: 12px;
  white-space: nowrap;
}
.compactheader #addTable svg {
  width: 15px;
  height: 15px;
}
.edittools .formconnection {
  max-width: 300px;
  min-width: 0;
  width: auto;
  height: 28px;
  padding: 3px 8px;
  color: var(--muted);
  font:
    11px -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    Arial,
    sans-serif;
}
.edittools .formconnection svg {
  color: var(--muted);
  width: 12px;
  height: 12px;
}
.edittools .formconnection:hover:not(:disabled) {
  background: var(--canvas);
}
.workspace {
  height: calc(100dvh - 102px);
}
@media (max-width: 1000px) {
  .compactheader {
    gap: 6px;
    padding: 0 18px;
  }
  .compactheader .documentidentity {
    min-width: 115px;
    padding-left: 12px;
  }
  .compactheader .wordmark {
    font-size: 18px;
  }
  .compactheader #docName {
    max-width: 150px;
  }
}
@media (max-width: 700px) {
  .compactheader .wordmark {
    font-size: 16px;
    margin-right: 0;
  }
  .compactheader .documentidentity {
    min-width: 90px;
  }
  .compactheader #docName {
    max-width: 110px;
  }
  .compactheader #addTable svg {
    display: none;
  }
  .compactheader button,
  .compactheader .filemenu > summary {
    font-size: 11px;
    padding: 7px;
  }
  .edittools .formconnection {
    max-width: 180px;
  }
}
@media (max-width: 600px) {
  .compactheader {
    height: auto;
    min-height: 96px;
    flex-wrap: wrap;
    gap: 5px;
    padding: 10px 14px;
  }
  .compactheader .wordmark {
    flex: none;
    font-size: 18px;
  }
  .compactheader .documentidentity {
    flex: 1 0 calc(100% - 90px);
    min-width: 0;
  }
  .compactheader .documentidentity #docName {
    max-width: 190px;
  }
  .compactheader .headerfill {
    display: none;
  }
  .compactheader #navReport {
    margin-left: auto;
  }
  .edittools .formconnection {
    max-width: 110px;
    font-size: 10px;
  }
  .edittools #paragraphStyle {
    width: 100px;
  }
  .edittools .editseparator {
    margin: 0 5px;
  }
  .workspace {
    height: calc(100dvh - 134px);
  }
}

.newformrow {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}
.newformrow span {
  font-size: 13px;
  font-weight: 500;
}
.newformrow button {
  font-size: 12px;
  color: var(--muted);
}
.newdocwarning {
  font-size: 12px;
  color: var(--finding-text);
  line-height: 1.6;
  margin-top: 18px;
}

/* Compact direct text controls; toolbar scrolls on narrow screens. */
.edittools #fontFamily + .selectcontrol {
  min-width: 120px;
}
.edittools #fontSize + .selectcontrol {
  width: 82px;
  min-width: 74px;
}

.colorpalette {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 10px 0 22px;
}
.colorpalette button {
  display: flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  padding: 8px 12px;
  border-radius: 5px;
  min-height: 40px;
}
.colorpalette button:hover {
  background: var(--canvas);
}
.colorpalette span {
  width: 16px;
  height: 16px;
  border: 1px solid var(--line);
  border-radius: 3px;
}
.edittools button[aria-pressed='true'] {
  background: var(--canvas);
  color: var(--brand);
}

.tableexample th .tableheadinput {
  width: 100%;
  min-width: 72px;
  padding: 6px 4px;
  border: 1px solid transparent;
  border-radius: 3px;
  background: transparent;
  font: inherit;
  color: inherit;
  box-sizing: border-box;
}
.tableexample th .tableheadinput:hover {
  border-color: var(--line);
  background: var(--surface);
}
.tableexample th .tableheadinput:focus {
  outline: 2px solid var(--soft);
  outline-offset: 0;
  background: var(--surface);
}
.columneditname {
  min-width: 0;
  overflow-wrap: anywhere;
  font-size: 13px;
}
.tableexample th {
  padding: 5px 7px;
}

.conditionfeedback {
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 0;
  border-top: 1px solid var(--canvas);
  color: var(--brand);
}
.conditionfeedback[data-result='invalid'],
.conditionfeedback[data-result='unknown'] {
  color: var(--finding-text);
}
.floatingformat #floatingCondition {
  width: auto;
  white-space: nowrap;
  padding: 0 8px;
  font-size: 11px;
}
.edittools #conditionParagraph {
  width: auto;
  white-space: nowrap;
  padding: 0 10px;
}
/* Word-like split actions: one click repeats the last color, arrow opens the palette. */
.edittools .colorsplit {
  display: inline-flex;
  align-items: center;
  flex: none;
  height: 32px;
  border: 1px solid transparent;
  border-radius: 5px;
  overflow: hidden;
}
.edittools .colorsplit:hover {
  border-color: var(--line);
}
.edittools .colorsplit button {
  position: relative;
  border: 0;
  border-radius: 0;
  height: 30px;
  min-width: 30px;
  width: 30px;
  padding: 3px 6px;
}
.edittools .colorsplit .colorarrow {
  width: 20px;
  min-width: 20px;
  padding: 3px;
}
.colorarrow svg {
  width: 13px;
  height: 13px;
}
.fontcoloricon {
  font:
    600 19px Georgia,
    serif;
  line-height: 21px;
}
.colorindicator {
  position: absolute;
  height: 3px;
  left: 6px;
  right: 6px;
  bottom: 2px;
  border-radius: 1px;
}
.highlighticon {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}
.colorpopover {
  position: fixed;
  z-index: 100;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 8px 28px color-mix(in srgb, var(--ink) 16%, transparent);
  box-sizing: border-box;
}
.colorpopover[hidden] {
  display: none;
}
.colorpopheading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
  font-size: 12px;
  color: var(--ink);
}
.colorpreview {
  font:
    600 17px Georgia,
    serif;
  border-radius: 3px;
  padding: 2px 6px;
}
.colorreset {
  display: block;
  width: 100%;
  text-align: left;
  min-height: 34px;
  padding: 7px 8px;
  background: var(--canvas);
  border-radius: 4px;
  font-size: 12px;
  margin-bottom: 12px;
}
.swatchgrid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 7px;
}
.colorswatch {
  background: var(--swatch);
  border: 1px solid color-mix(in srgb, var(--ink) 10%, transparent);
  width: 100%;
  aspect-ratio: 1;
  border-radius: 3px;
  min-height: 30px;
  display: grid;
  place-items: center;
  padding: 0;
}
.colorswatch span {
  font-size: 14px;
  color: var(--surface);
  text-shadow:
    0 1px 3px var(--ink),
    0 0 2px var(--ink);
}
.colorswatch:hover,
.colorswatch:focus-visible {
  outline: 2px solid var(--soft);
  outline-offset: 2px;
}
.colorswatch[aria-pressed='true'] {
  outline: 2px solid var(--muted);
  outline-offset: 2px;
}
.colorscope {
  font-size: 11px;
  color: var(--muted);
  border-top: 1px solid var(--canvas);
  margin-top: 12px;
  padding-top: 10px;
}
.edittools #paragraphStyle + .selectcontrol {
  width: 130px;
}
.edittools #fontFamily + .selectcontrol {
  width: 132px;
}
.edittools .selectcontrol {
  height: 30px;
  border-color: transparent;
  background: transparent;
}
.edittools .selectcontrol:hover {
  border-color: var(--line);
  background: var(--surface);
}
.edittools .selectcontrol:focus-visible {
  outline: 2px solid var(--soft);
  outline-offset: 1px;
}
@media (max-width: 760px) {
  .edittools .colorsplit {
    height: 42px;
  }
  .edittools .colorsplit button {
    height: 40px;
    width: 34px;
    min-width: 34px;
  }
  .edittools .colorsplit .colorarrow {
    width: 24px;
    min-width: 24px;
  }
  .colorswatch {
    min-height: 34px;
  }
}

.checkoverview {
  padding: 4px 0 20px;
  border-bottom: 1px solid var(--line);
}
.checkoverview strong,
.checkoverview span {
  display: block;
}
.checkoverview strong {
  font-size: 13px;
  line-height: 1.6;
}
.checkoverview span {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 6px;
}
.issuegroup > h2 {
  font-size: 13px;
  margin: 22px 0 4px;
  display: flex;
  justify-content: space-between;
}
.issuegroup > h2 span {
  font-weight: 400;
  color: var(--muted);
}
.issuegrouphelp {
  font-size: 11px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 14px;
}
.issueseverity {
  font-size: 10px;
  white-space: nowrap;
  color: var(--finding-text);
}
.issue.warning .issueseverity {
  color: var(--finding-text);
}
.issue .issuetop {
  display: block;
}
.issue .issuetop h3 {
  margin-top: 5px;
}
.issueactions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.issueactions .action {
  width: auto;
  font-size: 12px;
}
.exportcheckrow {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px solid var(--canvas);
  padding: 12px 0;
  font-size: 13px;
}
@keyframes issuefocus {
  0%,
  35% {
    background: var(--soft);
  }
  100% {
    background: transparent;
  }
}
@media (prefers-reduced-motion: reduce) {
  .paper .issuefocus {
    animation: none;
    outline: 2px solid var(--finding-text);
    outline-offset: 4px;
  }
}

.paper [data-p]:has(.emptyinsert) {
  position: relative;
  min-height: 1.6em;
}
.paper .emptyinsert {
  position: absolute;
  left: -30px;
  top: 0;
  width: 26px;
  height: 26px;
  padding: 0;
  min-height: 26px;
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 5px;
  color: var(--muted);
  font: 20px/24px Arial;
  opacity: 0.55;
}
.paper [data-p]:hover > .emptyinsert,
.paper [data-p]:focus-within > .emptyinsert {
  opacity: 1;
}
.paper .emptyinsert:hover {
  color: var(--brand);
  border-color: var(--soft);
  background: var(--canvas);
}
@media (max-width: 760px) {
  .paper .emptyinsert {
    left: -28px;
    width: 26px;
    height: 32px;
    opacity: 1;
  }
}

/* Keep the document name independent from secondary file metadata. */
.compactheader .documentidentity {
  gap: 0;
  min-width: 120px;
  max-width: 320px;
  flex: 0 1 260px;
  align-items: flex-start;
  flex-direction: column;
}
.compactheader .documentidentity #docName {
  display: block;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  max-width: 100%;
  width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.documentdetail {
  padding: 9px 12px 12px;
  margin-bottom: 5px;
  border-bottom: 1px solid var(--canvas);
  font-size: 11px;
  color: var(--muted);
}
.savestate {
  color: var(--finding-text);
}
@media (max-width: 1050px) {
  .compactheader .documentidentity {
    flex: 1;
    max-width: 220px;
  }
}
@media (max-width: 760px) {
  .compactheader .documentidentity {
    max-width: none;
    min-width: 0;
  }
  .compactheader .documentidentity #docName {
    font-size: 14px;
  }
}

/* Swatches retain their color under generic button hover styles. */
.colorpopover .colorswatch,
.colorpopover .colorswatch:hover,
.colorpopover .colorswatch:focus,
.colorpopover .colorswatch:active {
  background: var(--swatch);
  background-image: none;
  box-shadow: none;
}
.colorpopover {
  max-height: calc(100dvh - 24px);
  overflow-y: auto;
}
.colorpopover .colorswatch:hover {
  outline: 2px solid var(--soft);
  outline-offset: 2px;
}

.alignmenttools {
  display: inline-flex;
  gap: 1px;
  flex: none;
}
.alignmenttools svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
}
.edittools .alignmenttools button {
  width: 30px;
  min-width: 30px;
}
.edittools #pageMargins {
  width: auto;
  padding: 0 9px;
}
.marginpresets {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}
.marginpresets button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: 12px 8px;
  font-size: 13px;
}
.marginpresets button:hover {
  background: var(--canvas);
  border-color: var(--soft);
}
.marginpresets small {
  display: block;
  color: var(--muted);
  font-size: 11px;
  margin-top: 5px;
}
@media (max-width: 760px) {
  .edittools .alignmenttools button {
    width: 40px;
    min-width: 40px;
  }
}

.edittools {
  overflow-x: auto;
  overflow-y: hidden;
  flex-wrap: nowrap;
}
.edittools > .alignmenttools,
.edittools > .colorsplit {
  flex-shrink: 0;
}

/* Embedded in a host page: the host owns document storage and navigation. */
.embedded #newDocument,
.embedded #templateLibrary,
.embedded #uploadDoc,
.embedded #draftsMenu,
.embedded #saveAsTemplate,
.embedded #exportProject,
.embedded #prepareNewYear,
.embedded #saveState,
.embedded .studio-breadcrumb {
  display: none;
}
.embedded .wordmark {
  pointer-events: none;
  cursor: default;
}
