﻿/* Shared reference treatment for the article demo and standalone lab. */
.essay-tool, .om-shell {
  background: linear-gradient(135deg, transparent 74%, #8fc5eb 74%, #326eaa 81%, #103c69 81%), linear-gradient(155deg, #fff, #edf3fa);
  padding: 48px 24px 64px;
}
.essay-tool > .wrap, .om-shell > .wrap {
  max-width: 1440px; width: 100%; box-sizing: border-box;
  padding: clamp(24px, 3.3vw, 52px); border: 1px solid #e7edf4;
  border-radius: 20px; background: linear-gradient(120deg, #fff, #fbfdff);
  box-shadow: 0 16px 48px #12375f17;
}
.essay-tool-head, .om-intro { max-width: none; margin-bottom: 52px; }
.essay-tool-head .eyebrow, .om-intro .eyebrow { color: #30435e; font-size: 14px; letter-spacing: .16em; font-weight: 800; text-transform: uppercase; display: flex; align-items: center; gap: 18px; }
.essay-tool-head .eyebrow::after, .om-intro .eyebrow::after { content: ''; width: 64px; height: 3px; background: #0764b7; border-radius: 3px; }
.essay-tool-head h2, .om-intro h1 { font-size: clamp(28px, 3.3vw, 48px); line-height: 1.15; letter-spacing: -.035em; color: #081426; margin: 14px 0 10px; }
.essay-tool-head > p:last-child, .om-intro > p:not(.eyebrow):not(.om-disclaimer) { font-size: clamp(16px, 1.6vw, 22px); color: #64718a; line-height: 1.5; }
.om-grid { grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: stretch; }
.om-grid > .om-card { padding: 0; border: 0; box-shadow: none; background: transparent; }
.om-grid .om-lede { display: none; }
.om-grid .om-card h2, .om-grid .om-card-title { margin: 0 0 28px; color: #0c192e; font-size: 22px; letter-spacing: -.025em; }
.om-env { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.om-env-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 15px; min-height: 146px; padding: 18px 8px; border: 1px solid #dce3ed; border-radius: 14px; background: linear-gradient(#fff, #f4f7fa); text-align: center; color: #19324f; cursor: pointer; transition: background .15s, border-color .15s; }
.om-env-btn strong { font-size: clamp(12px, 1.25vw, 17px); line-height: 1.3; margin: 0; font-weight: 650; }
.om-env-icon { width: 42px; height: 42px; flex-shrink: 0; }
.om-env-btn.on { color: #0b213a; background: linear-gradient(#f4faff, #dceefb); border-color: #006fc7; box-shadow: inset 0 0 0 1px #006fc7; }
.om-env-btn.on .om-env-icon { color: #0074ce; }
.om-env-btn:hover { border-color: #268bd0; }
.om-sliders { margin-top: 36px; gap: 30px; }
.om-slider { font-size: 20px; color: #0c192e; gap: 18px; }
.om-slider-label b { color: #0c192e; font-size: 23px; }
.om-slider input[type=range] { appearance: none; height: 9px; border-radius: 20px; margin: 0; background: linear-gradient(to right, #007ec5, #00539d var(--range-fill, 40%), #dce1e8 var(--range-fill, 40%)); box-shadow: inset 0 0 0 1px #bac6d4; cursor: pointer; }
.om-slider input[type=range]::-webkit-slider-thumb { appearance: none; width: 22px; height: 22px; background: linear-gradient(#0088d1, #005197); border-radius: 50%; border: 1px solid #005caa; box-shadow: 0 2px 3px #11345625; }
.om-slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; background: #006cb5; border: 1px solid #005caa; border-radius: 50%; }
.om-subh { margin: 42px 0 18px; color: #0c192e; font-size: 20px; }
.om-modes { display: grid; grid-template-columns: 1fr .85fr 1.1fr; gap: 10px; }
.om-mode-btn { min-height: 54px; padding: 10px 8px; font-size: 16px; color: #253b56; border-color: #d1dbe8; background: linear-gradient(#fff, #f3f6fa); cursor: pointer; }
.om-mode-btn.on { background: linear-gradient(135deg, #1d3552, #11243b); border-color: #11243b; color: #fff; }
.om-grid .om-results { position: static; padding: 0 0 0 34px; border: 0; border-left: 1px solid #dfe5ed; border-radius: 0; background: transparent; color: #0c192e; }
.om-results-kicker { color: #0055a9; font-size: 14px; letter-spacing: .1em; }
.om-results #design-title { font-size: clamp(26px, 2.8vw, 39px); line-height: 1.14; color: #081426; margin: 18px 0 34px; letter-spacing: -.035em; }
.om-design-dl { gap: 24px; margin-bottom: 32px; }
.om-design-dl > div { padding-left: 56px; position: relative; }
.om-design-dl > div::before { position: absolute; left: 4px; top: 0; width: 36px; height: 36px; color: #0079cb; font-size: 32px; line-height: 1; }
.om-design-dl > div:nth-child(1)::before { content: '♧'; }
.om-design-dl > div:nth-child(2)::before { content: '⟳'; }
.om-design-dl > div:nth-child(3)::before { content: '▥'; }
.om-design-dl dt { text-transform: none; letter-spacing: -.02em; font-size: 18px; color: #0c192e; margin-bottom: 3px; }
.om-design-dl dd { color: #52617a; font-size: 16px; line-height: 1.45; }
.om-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid #dfe5ed; padding-top: 30px; gap: 0; }
.om-metric { flex-direction: column; align-items: flex-start; justify-content: flex-start; gap: 8px; padding: 0 16px; border: 0; border-left: 1px solid #d5dde8; color: #52617a; font-size: 16px; line-height: 1.4; }
.om-metric:first-child { padding-left: 0; border: 0; }
.om-metric b { order: -1; color: #081426; font-size: clamp(24px, 2.5vw, 36px); white-space: nowrap; letter-spacing: -.04em; }
.om-metric:nth-child(4) { grid-column: 1 / -1; border: 0; padding: 18px 0 0; flex-direction: row; align-items: baseline; font-size: 13px; }
.om-metric:nth-child(4) b { order: 0; font-size: 16px; }
.om-details { margin-top: 24px; color: #64748b; font-size: 12px; }
.om-details summary { cursor: pointer; }
.om-bar { background: #e2e8f0; }
.om-bar-row { color: #52617a; }
.om-env-btn:focus-visible, .om-mode-btn:focus-visible, .om-slider input:focus-visible, .om-details summary:focus-visible { outline: 3px solid #0085d0; outline-offset: 4px; }
@media (max-width: 1000px) {
  .om-grid { grid-template-columns: 1fr; gap: 36px; }
  .om-grid .om-results { border-left: 0; border-top: 1px solid #dfe5ed; padding: 30px 0 0; }
  .om-env-btn strong { font-size: 15px; }
}
@media (max-width: 540px) {
  .essay-tool, .om-shell { padding: 24px 12px; }
  .essay-tool > .wrap, .om-shell > .wrap { padding: 24px 18px; }
  .essay-tool-head, .om-intro { margin-bottom: 30px; }
  .om-env { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .om-env-btn { min-height: 132px; }
  .om-slider, .om-subh { font-size: 17px; }
  .om-mode-btn { font-size: 12px; }
  .om-metric { padding: 0 10px; font-size: 12px; }
  .om-metric b { font-size: 23px; }
  .om-design-dl dd { font-size: 14px; }
}

.om-design-dl > div::before { content: none; }
.om-result-icon { position: absolute; left: 0; top: 3px; width: 36px; height: 36px; color: #0079cb; }
