/* Keep the text workbench separate from the shared site theme. */
body.page-tools .oao-tools .txt-workspace { align-items: stretch; }
body.page-tools .oao-tools .txt-editor {
  width: 100%; min-height: 310px; padding: 16px 18px;
  border: 1px solid #dce4ef !important; border-radius: 7px !important;
  color: #273d5d !important; background: #fff !important;
  box-shadow: none !important; font: 14px/1.9 'Segoe UI', 'Malgun Gothic', sans-serif;
  resize: vertical; overflow-wrap: anywhere; tab-size: 4;
}
body.page-tools .oao-tools .txt-editor::placeholder { color: #8694a8; }
.oao-tools .txt-editor-bar { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; padding-top: 6px; color: #6c7f99; font-size: 11px; }
.oao-tools .txt-editor-bar > div { display: flex; gap: 16px; }
.oao-tools .txt-editor-bar button:disabled { cursor: not-allowed; }
.oao-tools .txt-checks { padding: 0; margin: 0 0 22px; border: 0; }
.oao-tools .txt-checks legend { font-size: 12px; color: #54637a; font-weight: 650; padding: 0; margin: 0 0 10px; }
.oao-tools .txt-checks label, .oao-tools .txt-number-label { display: flex; align-items: flex-start; gap: 9px; color: #4e6484; font-size: 12px; padding: 5px 0; cursor: pointer; }
body.page-tools .oao-tools .txt-checks input[type="checkbox"], body.page-tools .oao-tools .txt-number-label input[type="checkbox"] { width: 16px; height: 16px; min-height: 0; flex: 0 0 auto; padding: 0; margin: 2px 0 0; accent-color: #2365ef; }
body.page-tools .oao-tools #txt-limit { border: 0 !important; border-radius: 0 !important; background: transparent !important; color: #253754 !important; min-height: 25px; box-shadow: none; }
.oao-tools .txt-limit-state { color: #4b6a95; background: #eef4ff; border: 1px solid #d5e3fb; border-radius: 6px; font-size: 12px; padding: 13px; line-height: 1.8; margin-bottom: 15px; }
.oao-tools .txt-limit-state.is-over { color: #a43d3d; background: #fff2f2; border-color: #f1d0d0; }
.oao-tools .txt-count-results { margin-top: 28px; padding-top: 24px; border-top: 1px solid #dfe5ee; }
.oao-tools .txt-section-heading { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: baseline; gap: 8px; margin-bottom: 14px; }
.oao-tools .txt-section-heading h2 { font-size: 20px; letter-spacing: -.6px; margin: 0; }
.oao-tools .txt-section-heading h3 { font-size: 14px; margin: 0; }
.oao-tools .txt-section-heading > span { color: #6d819d; font-size: 11px; }
.oao-tools .txt-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.oao-tools .txt-metric { padding: 17px 20px; border: 1px solid #e0e6ee; border-radius: 7px; background: #fff; min-width: 0; }
.oao-tools .txt-metric > span { display: block; color: #607594; font-size: 12px; }
.oao-tools .txt-metric strong { display: inline-block; color: #203350; font-size: 29px; line-height: 1.4; letter-spacing: -.8px; margin: 5px 6px 0 0; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.oao-tools .txt-metric small { color: #71849f; font-size: 11px; }
.oao-tools .txt-metric-primary { background: #f4f8ff; border-color: #bfd4fb; }
.oao-tools .txt-metric-primary strong { color: #2365ef; }
.oao-tools .txt-overflow-area { margin-top: 23px; border-top: 1px solid #e3e8ef; padding-top: 20px; }
body.page-tools .oao-tools .txt-overflow-content { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 300px; overflow: auto; padding: 16px 18px; border: 1px solid #e0e6ee; border-radius: 6px; background: #fff !important; color: #425b7d; font-size: 13px; line-height: 1.9; }
body.page-tools .oao-tools .txt-overflow-content mark { color: #a12630 !important; background: #ffe2e4 !important; border-radius: 2px; padding: 0; }
.oao-tools .txt-count-rules { border-top: 1px solid #e7ebf2; margin-top: 20px; padding: 16px 0; }
.oao-tools .txt-count-rules summary { font-size: 12px; color: #536986; cursor: pointer; }
.oao-tools .txt-count-rules p { font-size: 12px; color: #647997; line-height: 1.9; margin: 10px 0 0; }
.oao-tools .txt-result-actions { display: flex; flex-wrap: wrap; gap: 7px; justify-content: flex-end; }
.oao-tools .txt-summary { display: flex; gap: 12px 23px; flex-wrap: wrap; color: #6a7e99; font-size: 12px; padding: 13px 16px; margin-bottom: 16px; background: #f6f8fc; border: 1px solid #e4eaf2; border-radius: 5px; }
.oao-tools .txt-summary strong { color: #31557f; font-weight: 700; }
.oao-tools .txt-result-label { display: block; font-size: 12px; color: #54637a; margin: 0 0 8px; }
.oao-tools .txt-result-footer { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 7px; }
body.page-tools .oao-tools .txt-input-pane .pane-heading label { color: inherit; margin: 0; font: inherit; }
body.page-tools .oao-tools .txt-input-pane [aria-invalid="true"] { border-color: #dc9c9c !important; }
@media (max-width: 700px) {
  body.page-tools .oao-tools .txt-editor { font-size: 16px; min-height: 270px; padding: 13px 14px; }
  .oao-tools .txt-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  .oao-tools .txt-metric { padding: 14px; }
  .oao-tools .txt-metric strong { font-size: 25px; }
  .oao-tools .txt-metric > span { font-size: 11px; }
  .oao-tools .txt-summary { gap: 8px 16px; font-size: 11px; }
  .oao-tools .txt-results .results-heading { align-items: flex-start; flex-direction: column; gap: 10px; }
  .oao-tools .txt-result-actions { justify-content: flex-start; }
}
