/* ROBERIN baseball OPS calculator v9 - readable compact Chart.js radar tool */
.ops-calculator-container,
.ops-calculator-container *,
.ops-calculator-container *::before,
.ops-calculator-container *::after {
  box-sizing: border-box;
}

.ops-calculator-container {
  --ops-paper: #fff7e8;
  --ops-paper-soft: #fbf0dc;
  --ops-paper-deep: #f4e2c6;
  --ops-input: #fff8ed;
  --ops-ink: #2b2119;
  --ops-muted: #67584a;
  --ops-line: #6b5745;
  --ops-line-soft: rgba(107, 87, 69, .28);
  --ops-green: #e3efd2;
  --ops-green-ink: #2f4e2e;
  --ops-blue: #dfeef8;
  --ops-blue-ink: #28455a;
  --ops-amber: #f4d58a;
  --ops-brick: #a94b35;
  --ops-shadow: 4px 4px 0 rgba(72, 55, 40, .20);
  --ops-shadow-soft: 2px 2px 0 rgba(72, 55, 40, .13);
  width: min(1040px, calc(100vw - 32px));
  max-width: 1040px;
  margin: 18px auto 24px;
  color: var(--ops-ink);
  font-family: inherit;
  -webkit-text-fill-color: currentColor;
}

.ops-tool-shell {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 2.2vw, 28px);
  border: 2px solid var(--ops-line);
  border-radius: 18px;
  background:
    linear-gradient(90deg, rgba(107, 87, 69, .034) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(107, 87, 69, .03) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--ops-paper);
  box-shadow: var(--ops-shadow);
}

.ops-tool-header {
  margin: 0 0 14px;
  padding-bottom: 14px;
  border-bottom: 2px dashed var(--ops-line-soft);
  text-align: left;
}

.ops-kicker {
  display: inline-flex;
  width: fit-content;
  margin: 0 0 8px;
  padding: 5px 9px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  background: var(--ops-green);
  color: var(--ops-green-ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .055em;
  text-transform: uppercase;
}

.ops-tool-header h2 {
  margin: 0;
  color: var(--ops-ink);
  font-size: clamp(28px, 3.5vw, 44px);
  line-height: 1.08;
  font-weight: 950;
  letter-spacing: -.055em;
  -webkit-text-fill-color: currentColor;
}

.ops-tool-header .subtitle {
  margin: 8px 0 0;
  max-width: 720px;
  color: var(--ops-muted);
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.62;
  font-weight: 750;
}

.ops-helper-strip,
.ops-quick-actions,
.ops-main-grid,
.ops-guide-grid,
.ops-stat-grid,
.ops-input-grid {
  display: grid;
  gap: 10px;
}

.ops-helper-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.ops-helper-strip span {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--ops-line-soft);
  border-radius: 12px;
  background: rgba(255, 248, 237, .72);
  color: var(--ops-muted);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.45;
}

.ops-quick-actions {
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: end;
  margin: 0 0 14px;
}

.ops-main-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .95fr);
  align-items: start;
}

.ops-panel,
.ops-info-section {
  min-width: 0;
  border: 2px solid var(--ops-line);
  border-radius: 16px;
  background: rgba(255, 253, 247, .82);
  box-shadow: var(--ops-shadow-soft);
}

.ops-panel {
  padding: clamp(14px, 1.7vw, 20px);
}

.section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: var(--ops-ink);
  font-size: 18px;
  line-height: 1.2;
  font-weight: 950;
  letter-spacing: -.025em;
  -webkit-text-fill-color: currentColor;
}

.ops-section-mark {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  border: 1px solid var(--ops-line);
  border-radius: 9px;
  background: var(--ops-amber);
  color: var(--ops-ink);
  font-size: 12px;
  font-weight: 950;
}

.ops-panel-note {
  margin: 0 0 12px;
  color: var(--ops-muted);
  font-size: 13px;
  font-weight: 760;
  line-height: 1.45;
}

.ops-fieldset {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed var(--ops-line-soft);
  border-radius: 14px;
  background: rgba(251, 240, 220, .62);
}

.ops-fieldset__title {
  margin-bottom: 9px;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .045em;
  text-transform: uppercase;
}

.ops-input-grid--four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.input-group {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 6px;
}

.input-group span,
.input-group label,
.ops-calculator-container label {
  color: var(--ops-ink);
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  -webkit-text-fill-color: currentColor;
}

.number-input,
.ops-calculator-container input,
.ops-calculator-container select {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 45px;
  padding: 10px 11px;
  border: 2px solid var(--ops-line);
  border-radius: 12px;
  background: var(--ops-input);
  color: var(--ops-ink);
  font: inherit;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.2;
  outline: none;
  box-shadow: inset 2px 2px 0 rgba(107, 87, 69, .08);
  -webkit-text-fill-color: var(--ops-ink);
}

.number-input::placeholder,
.ops-calculator-container input::placeholder {
  color: rgba(103, 88, 74, .52);
  font-weight: 600;
  opacity: 1;
  -webkit-text-fill-color: rgba(103, 88, 74, .52);
}

.number-input:focus,
.ops-calculator-container input:focus,
.ops-calculator-container select:focus {
  border-color: #4f7d94;
  box-shadow: 0 0 0 3px rgba(79, 125, 148, .18), inset 2px 2px 0 rgba(107, 87, 69, .10);
}

.btn-calculate,
.btn-quick,
.btn-reset {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  border: 2px solid var(--ops-line);
  border-radius: 12px;
  color: var(--ops-ink);
  font: inherit;
  font-size: 14px;
  font-weight: 950;
  line-height: 1.1;
  cursor: pointer;
  box-shadow: var(--ops-shadow-soft);
  -webkit-text-fill-color: currentColor;
}

.btn-calculate {
  width: 100%;
  margin-top: 14px;
  background: var(--ops-amber);
}

.btn-quick,
.btn-reset {
  padding: 9px 14px;
  background: var(--ops-green);
}

.btn-reset {
  background: var(--ops-paper-soft);
}

.btn-calculate:hover,
.btn-quick:hover,
.btn-reset:hover {
  transform: translate(-1px, -1px);
  box-shadow: 3px 3px 0 rgba(72, 55, 40, .22);
}

.btn-calculate:active,
.btn-quick:active,
.btn-reset:active {
  transform: translate(1px, 1px);
  box-shadow: 1px 1px 0 rgba(72, 55, 40, .18);
}

.ops-error {
  display: none;
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid rgba(169, 75, 53, .42);
  border-radius: 12px;
  background: rgba(169, 75, 53, .10);
  color: var(--ops-brick);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.45;
}

.ops-error.is-visible { display: block; }

.ops-result-panel {
  background:
    linear-gradient(135deg, rgba(226, 237, 216, .78), rgba(255, 253, 247, .92));
}

.ops-main-result {
  display: grid;
  gap: 3px;
  padding: clamp(14px, 1.8vw, 20px);
  border: 2px solid var(--ops-line);
  border-radius: 15px;
  background: var(--ops-input);
  text-align: center;
  box-shadow: inset 2px 2px 0 rgba(107, 87, 69, .07);
}

.ops-main-result .result-label {
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: .08em;
}

.big-number,
.ops-value {
  color: var(--ops-ink);
  font-size: clamp(42px, 6vw, 72px);
  line-height: .98;
  font-weight: 950;
  letter-spacing: -.06em;
  font-variant-numeric: tabular-nums;
  -webkit-text-fill-color: currentColor;
}

.ops-grade {
  color: var(--ops-muted);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.35;
  -webkit-text-fill-color: currentColor;
}

.ops-grade[data-grade="elite"],
.ops-grade[data-grade="excellent"] { color: #7a412f; }
.ops-grade[data-grade="strong"] { color: #2f4e2e; }
.ops-grade[data-grade="poor"],
.ops-grade[data-grade="below"] { color: #8a3c2d; }

.ops-meter { margin: 13px 0; }

.ops-meter__track {
  --ops-ratio: 0;
  position: relative;
  display: block;
  height: 16px;
  overflow: hidden;
  border: 2px solid var(--ops-line);
  border-radius: 999px;
  background: var(--ops-paper-deep);
}

.ops-meter__fill {
  display: block;
  width: calc(var(--ops-ratio) * 100%);
  height: 100%;
  background: linear-gradient(90deg, #d99b70, #ddbf6f, #9fbd85);
  transition: width .24s ease;
}

.ops-indicator {
  position: absolute;
  left: calc(var(--ops-ratio) * 100%);
  top: 50%;
  width: 6px;
  height: 24px;
  border: 1px solid var(--ops-line);
  border-radius: 999px;
  background: var(--ops-ink);
  transform: translate(-50%, -50%);
  transition: left .24s ease;
}

.ops-meter__labels {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 850;
}

.ops-equation {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin: 0 0 12px;
  padding: 9px 10px;
  border: 1px dashed var(--ops-line-soft);
  border-radius: 12px;
  background: rgba(255, 248, 237, .7);
  color: var(--ops-muted);
  font-size: 13px;
  font-weight: 850;
}

.ops-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.result-item {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--ops-line-soft);
  border-radius: 12px;
  background: rgba(255, 253, 247, .82);
}

.result-label-text {
  display: block;
  color: var(--ops-muted);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.result-value {
  display: block;
  margin-top: 4px;
  color: var(--ops-ink);
  font-size: 20px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
  -webkit-text-fill-color: currentColor;
}

.ops-info-section {
  margin-top: 14px;
  padding: clamp(14px, 1.7vw, 20px);
}

.ops-guide-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.info-card {
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--ops-line-soft);
  border-radius: 13px;
  background: rgba(255, 248, 237, .76);
}

.info-card strong,
.ops-note-card strong,
.ops-formula-box h4 {
  display: block;
  color: var(--ops-ink);
  font-size: 13px;
  font-weight: 950;
  line-height: 1.25;
  -webkit-text-fill-color: currentColor;
}

.info-card span,
.ops-note-card span,
.ops-formula-box p {
  display: block;
  margin-top: 5px;
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.ops-formula-box {
  display: grid;
  grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr);
  gap: 12px;
  margin-top: 12px;
  padding: 13px;
  border: 1px dashed var(--ops-line-soft);
  border-radius: 14px;
  background: rgba(226, 237, 216, .46);
}

.ops-formula-box h4,
.ops-formula-box p { margin: 0; }

.formula-content {
  display: grid;
  gap: 7px;
}

.formula-item {
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 253, 247, .76);
  color: var(--ops-muted);
  font-size: 12px;
  font-weight: 800;
}

.formula-item strong { color: var(--ops-ink); }

.ops-note-card {
  display: grid;
  gap: 5px;
  margin-top: 12px;
  padding: 12px 13px;
  border: 1px solid rgba(122, 65, 47, .28);
  border-radius: 14px;
  background: rgba(244, 213, 138, .28);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 9999;
  display: grid;
  gap: 3px;
  max-width: min(320px, calc(100vw - 36px));
  padding: 12px 14px;
  border: 2px solid var(--ops-line);
  border-radius: 14px;
  background: var(--ops-input);
  color: var(--ops-ink);
  box-shadow: var(--ops-shadow);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

.toast-title { font-size: 14px; font-weight: 950; }
.toast-value { color: var(--ops-muted); font-size: 12px; font-weight: 800; }

.baseball-ops-ad.roberin-ad {
  width: min(728px, calc(100vw - 32px));
  max-width: 728px;
  min-height: 90px;
  margin: 24px auto !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: hidden;
  text-align: center;
}

.baseball-ops-ad.roberin-ad ins.adsbygoogle {
  display: block !important;
  width: 100% !important;
  min-height: 90px;
  margin: 0 auto;
  background: transparent !important;
}

.baseball-ops-ad--after-tool + article,
.baseball-ops-ad--after-tool + .roberin-article-body,
.baseball-ops-ad--after-tool + .content1,
.baseball-ops-ad--after-tool + article .content1 {
  margin-top: 0 !important;
}

body[data-scheme="dark"] .ops-calculator-container,
body[data-scheme="inverse"] .ops-calculator-container {
  --ops-paper: #2b2119;
  --ops-paper-soft: #33271d;
  --ops-paper-deep: #3a2c20;
  --ops-input: #241c15;
  --ops-ink: #f2e4cf;
  --ops-muted: #f0dfc5;
  --ops-line: #a98b6b;
  --ops-line-soft: rgba(169, 139, 107, .34);
  --ops-green: #344a32;
  --ops-green-ink: #f2e4cf;
  --ops-blue: #263c48;
  --ops-blue-ink: #f2e4cf;
  --ops-amber: #d2aa55;
  --ops-brick: #f0a08a;
  --ops-shadow: 4px 4px 0 rgba(0, 0, 0, .34);
  --ops-shadow-soft: 2px 2px 0 rgba(0, 0, 0, .26);
}

body[data-scheme="dark"] .ops-tool-shell,
body[data-scheme="inverse"] .ops-tool-shell {
  background:
    linear-gradient(90deg, rgba(169, 139, 107, .035) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(169, 139, 107, .03) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--ops-paper);
}

body[data-scheme="dark"] .ops-helper-strip span,
body[data-scheme="dark"] .ops-panel,
body[data-scheme="dark"] .ops-info-section,
body[data-scheme="dark"] .result-item,
body[data-scheme="dark"] .info-card,
body[data-scheme="dark"] .formula-item,
body[data-scheme="dark"] .ops-main-result,
body[data-scheme="inverse"] .ops-helper-strip span,
body[data-scheme="inverse"] .ops-panel,
body[data-scheme="inverse"] .ops-info-section,
body[data-scheme="inverse"] .result-item,
body[data-scheme="inverse"] .info-card,
body[data-scheme="inverse"] .formula-item,
body[data-scheme="inverse"] .ops-main-result {
  background: rgba(51, 39, 29, .82);
}

body[data-scheme="dark"] .ops-result-panel,
body[data-scheme="inverse"] .ops-result-panel {
  background: linear-gradient(135deg, rgba(52, 74, 50, .62), rgba(43, 33, 25, .96));
}

body[data-scheme="dark"] .number-input,
body[data-scheme="dark"] .ops-calculator-container input,
body[data-scheme="dark"] .ops-calculator-container select,
body[data-scheme="inverse"] .number-input,
body[data-scheme="inverse"] .ops-calculator-container input,
body[data-scheme="inverse"] .ops-calculator-container select {
  background: var(--ops-input);
  color: #fff5df;
  border-color: var(--ops-line);
  -webkit-text-fill-color: #fff5df;
}

body[data-scheme="dark"] .number-input::placeholder,
body[data-scheme="dark"] .ops-calculator-container input::placeholder,
body[data-scheme="inverse"] .number-input::placeholder,
body[data-scheme="inverse"] .ops-calculator-container input::placeholder {
  color: rgba(240, 223, 197, .48);
  font-weight: 600;
  opacity: 1;
  -webkit-text-fill-color: rgba(240, 223, 197, .48);
}

body[data-scheme="dark"] .btn-calculate,
body[data-scheme="inverse"] .btn-calculate {
  color: #241c15;
  -webkit-text-fill-color: #241c15;
}

body[data-scheme="dark"] .btn-quick,
body[data-scheme="dark"] .btn-reset,
body[data-scheme="inverse"] .btn-quick,
body[data-scheme="inverse"] .btn-reset {
  color: var(--ops-ink);
  -webkit-text-fill-color: currentColor;
}

@media (max-width: 900px) {
  .ops-calculator-container {
    width: min(100% - 24px, 720px);
    margin-top: 14px;
  }
  .ops-main-grid,
  .ops-formula-box {
    grid-template-columns: 1fr;
  }
  .ops-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .ops-calculator-container {
    width: calc(100% - 20px);
    margin: 12px auto 20px;
  }
  .ops-tool-shell,
  .ops-panel,
  .ops-info-section {
    border-radius: 14px;
  }
  .ops-helper-strip,
  .ops-input-grid--four,
  .ops-stat-grid,
  .ops-guide-grid,
  .ops-quick-actions {
    grid-template-columns: 1fr;
  }
  .ops-quick-actions {
    justify-content: stretch;
  }
  .btn-quick,
  .btn-reset {
    width: 100%;
  }
  .big-number,
  .ops-value {
    font-size: clamp(40px, 16vw, 58px);
  }
  .toast {
    left: 10px;
    right: 10px;
    bottom: 12px;
    max-width: none;
  }
  .baseball-ops-ad.roberin-ad {
    width: calc(100% - 20px);
    margin-top: 20px !important;
    margin-bottom: 20px !important;
  }
}


/* ROBERIN baseball OPS article v3 - target namespace body rhythm */
body.single-sight-projects .baseball-ops-article {
  --ops-article-panel: #f8efe2;
  --ops-article-card: #fff8ed;
  --ops-article-accent: #e2edd8;
  --ops-article-ink: #34281f;
  --ops-article-muted: #574838;
  --ops-article-line: #6b5745;
  --ops-article-line-soft: rgba(107, 87, 69, .34);
  --ops-article-mustard: #d2aa55;
  --ops-article-mustard-soft: rgba(210, 170, 85, .24);
  --ops-article-focus: #4f7d94;
  --ops-article-shadow: rgba(82, 65, 50, .22);
  --ops-article-soft-shadow: rgba(82, 65, 50, .13);
}

body.single-sight-projects[data-scheme="dark"] .baseball-ops-article,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article {
  --ops-article-panel: #33271d;
  --ops-article-card: #2b2119;
  --ops-article-accent: #344a32;
  --ops-article-ink: #f2e4cf;
  --ops-article-muted: #f0dfc5;
  --ops-article-line: #a98b6b;
  --ops-article-line-soft: rgba(169, 139, 107, .46);
  --ops-article-mustard: #d2aa55;
  --ops-article-mustard-soft: rgba(210, 170, 85, .22);
  --ops-article-focus: #d2aa55;
  --ops-article-shadow: rgba(0, 0, 0, .32);
  --ops-article-soft-shadow: rgba(0, 0, 0, .2);
}

body.single-sight-projects .entry-content article.roberin-article-body.baseball-ops-article,
body.single-sight-projects .baseball-ops-article {
  position: relative !important;
  z-index: 0 !important;
  display: grid !important;
  gap: 18px !important;
  box-sizing: border-box !important;
  width: min(980px, calc(100vw - 32px)) !important;
  max-width: 980px !important;
  min-width: 0 !important;
  margin: clamp(24px, 4vw, 42px) auto 42px !important;
  padding: clamp(16px, 3vw, 28px) !important;
  color: var(--ops-article-ink) !important;
  -webkit-text-fill-color: var(--ops-article-ink) !important;
  background:
    linear-gradient(rgba(107, 87, 69, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(107, 87, 69, .04) 1px, transparent 1px),
    var(--ops-article-panel) !important;
  background-size: 28px 28px, 28px 28px, auto !important;
  border: 2px solid var(--ops-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 5px 5px 0 var(--ops-article-shadow) !important;
  overflow: hidden !important;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", -apple-system, BlinkMacSystemFont, sans-serif !important;
  line-height: 1.72 !important;
  word-break: keep-all !important;
}

body.single-sight-projects .entry-content > .baseball-ops-ad.baseball-ops-ad--after-tool + article.roberin-article-body.baseball-ops-article,
body.single-sight-projects .baseball-ops-ad--after-tool + article.roberin-article-body.baseball-ops-article {
  margin-top: 0 !important;
}

body.single-sight-projects .baseball-ops-article,
body.single-sight-projects .baseball-ops-article *,
body.single-sight-projects .baseball-ops-article *::before,
body.single-sight-projects .baseball-ops-article *::after {
  box-sizing: border-box !important;
  min-width: 0 !important;
}

body.single-sight-projects .baseball-ops-article :is(p, li, td, th, summary, span, strong, code, h2, h3) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__hero,
body.single-sight-projects .baseball-ops-article .baseball-ops-article__section {
  display: grid !important;
  gap: 13px !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border-right: 0 !important;
  border-bottom: 0 !important;
  border-left: 0 !important;
  box-shadow: none !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__hero {
  padding: 0 0 22px !important;
  border-top: 0 !important;
  border-bottom: 1px dashed var(--ops-article-line-soft) !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__section + .baseball-ops-article__section {
  margin-top: 6px !important;
  padding-top: 22px !important;
  border-top: 1px dashed var(--ops-article-line-soft) !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__kicker {
  display: inline-flex !important;
  align-items: center !important;
  width: fit-content !important;
  max-width: 100% !important;
  min-height: 26px !important;
  margin: 0 !important;
  padding: 5px 9px !important;
  color: var(--ops-article-ink) !important;
  -webkit-text-fill-color: var(--ops-article-ink) !important;
  background: var(--ops-article-accent) !important;
  border: 1px solid var(--ops-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 2px 2px 0 var(--ops-article-soft-shadow) !important;
  font-size: 12px !important;
  font-weight: 950 !important;
  line-height: 1.2 !important;
  letter-spacing: .01em !important;
}

body.single-sight-projects .baseball-ops-article h2,
body.single-sight-projects .baseball-ops-article h3 {
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ops-article-ink) !important;
  -webkit-text-fill-color: var(--ops-article-ink) !important;
  background: transparent !important;
  border: 0 !important;
  border-left: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  text-shadow: none !important;
  letter-spacing: -.02em !important;
  word-break: keep-all !important;
}

body.single-sight-projects .baseball-ops-article h2 {
  font-size: clamp(25px, 3vw, 30px) !important;
  font-weight: 950 !important;
  line-height: 1.18 !important;
}

body.single-sight-projects .baseball-ops-article h3 {
  font-size: 19px !important;
  font-weight: 900 !important;
  line-height: 1.3 !important;
}

body.single-sight-projects .baseball-ops-article p,
body.single-sight-projects .baseball-ops-article li,
body.single-sight-projects .baseball-ops-article summary {
  margin: 0 !important;
  color: var(--ops-article-muted) !important;
  -webkit-text-fill-color: var(--ops-article-muted) !important;
  font-size: 15px !important;
  font-weight: 680 !important;
  line-height: 1.72 !important;
  overflow-wrap: anywhere !important;
}

body.single-sight-projects .baseball-ops-article strong {
  color: var(--ops-article-ink) !important;
  -webkit-text-fill-color: var(--ops-article-ink) !important;
  font-weight: 920 !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__nav {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
  margin: 0 !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__nav a {
  display: inline-flex !important;
  align-items: center !important;
  min-height: 34px !important;
  padding: 6px 10px !important;
  color: var(--ops-article-ink) !important;
  -webkit-text-fill-color: var(--ops-article-ink) !important;
  text-decoration: none !important;
  background: var(--ops-article-card) !important;
  border: 1px solid var(--ops-article-line) !important;
  border-radius: 0 !important;
  font-size: 13px !important;
  font-weight: 900 !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__nav a:hover,
body.single-sight-projects .baseball-ops-article .baseball-ops-article__nav a:focus-visible {
  background: var(--ops-article-mustard-soft) !important;
  outline: 2px solid var(--ops-article-focus) !important;
  outline-offset: 2px !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__grid,
body.single-sight-projects .baseball-ops-article .baseball-ops-article__process-grid,
body.single-sight-projects .baseball-ops-article .baseball-ops-article__use-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 10px !important;
  min-width: 0 !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__use-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__card,
body.single-sight-projects .baseball-ops-article .baseball-ops-article__process,
body.single-sight-projects .baseball-ops-article .baseball-ops-article__use,
body.single-sight-projects .baseball-ops-article .baseball-ops-article__notice,
body.single-sight-projects .baseball-ops-article details {
  display: grid !important;
  gap: 7px !important;
  min-width: 0 !important;
  padding: 12px !important;
  color: var(--ops-article-muted) !important;
  -webkit-text-fill-color: var(--ops-article-muted) !important;
  background: var(--ops-article-card) !important;
  border: 1px solid var(--ops-article-line) !important;
  border-radius: 0 !important;
  box-shadow: 3px 3px 0 var(--ops-article-soft-shadow) !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__notice {
  background: rgba(239, 225, 188, .64) !important;
  border-style: dashed !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__process {
  background: rgba(226, 237, 216, .70) !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__use span,
body.single-sight-projects .baseball-ops-article .baseball-ops-article__process span {
  color: var(--ops-article-muted) !important;
  -webkit-text-fill-color: var(--ops-article-muted) !important;
  font-size: 12px !important;
  font-weight: 900 !important;
  line-height: 1.4 !important;
}

body.single-sight-projects .baseball-ops-article code {
  display: block !important;
  width: fit-content !important;
  max-width: 100% !important;
  padding: 5px 8px !important;
  color: var(--ops-article-ink) !important;
  -webkit-text-fill-color: var(--ops-article-ink) !important;
  background: var(--ops-article-card) !important;
  border: 1px solid var(--ops-article-line-soft) !important;
  border-radius: 0 !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace !important;
  font-size: .92em !important;
  font-weight: 780 !important;
  line-height: 1.48 !important;
  white-space: normal !important;
  overflow-wrap: anywhere !important;
}

body.single-sight-projects .baseball-ops-article :is(ul, ol) {
  display: grid !important;
  gap: 8px !important;
  margin: 0 !important;
  padding-left: 0 !important;
  list-style: none !important;
}

body.single-sight-projects .baseball-ops-article ol,
body.single-sight-projects .baseball-ops-article ol.baseball-ops-article__steps {
  counter-reset: baseball-ops-article-step !important;
}

body.single-sight-projects .baseball-ops-article :is(ul, ol) > li {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  min-height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  color: var(--ops-article-muted) !important;
  -webkit-text-fill-color: var(--ops-article-muted) !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  list-style: none !important;
  overflow-wrap: anywhere !important;
}

body.single-sight-projects .baseball-ops-article :is(ul, ol) > li::before {
  position: static !important;
  inset: auto !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  flex: 0 0 auto !important;
  align-self: center !important;
  box-sizing: border-box !important;
  color: var(--ops-article-ink) !important;
  -webkit-text-fill-color: var(--ops-article-ink) !important;
  border-radius: 0 !important;
}

body.single-sight-projects .baseball-ops-article ul > li::before {
  content: "" !important;
  display: inline-block !important;
  width: 9px !important;
  height: 9px !important;
  background: var(--ops-article-mustard) !important;
  border: 1px solid var(--ops-article-line) !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, .22) !important;
  line-height: 1 !important;
}

body.single-sight-projects .baseball-ops-article ol > li,
body.single-sight-projects .baseball-ops-article ol.baseball-ops-article__steps > li {
  counter-increment: baseball-ops-article-step !important;
}

body.single-sight-projects .baseball-ops-article ol > li::before,
body.single-sight-projects .baseball-ops-article ol.baseball-ops-article__steps > li::before {
  content: counter(baseball-ops-article-step) !important;
  display: inline-grid !important;
  place-items: center !important;
  width: 20px !important;
  height: 20px !important;
  background: var(--ops-article-mustard-soft) !important;
  border: 1px solid var(--ops-article-line) !important;
  box-shadow: 1px 1px 0 rgba(82, 65, 50, .22) !important;
  font-size: 11px !important;
  font-weight: 920 !important;
  line-height: 1 !important;
}

body.single-sight-projects .baseball-ops-article .baseball-ops-article__li-text {
  display: block !important;
  min-width: 0 !important;
  align-self: center !important;
}

body.single-sight-projects .baseball-ops-article details {
  margin: 0 !important;
}

body.single-sight-projects .baseball-ops-article summary {
  display: list-item !important;
  list-style-position: inside !important;
  cursor: pointer !important;
  color: var(--ops-article-ink) !important;
  -webkit-text-fill-color: var(--ops-article-ink) !important;
  font-weight: 950 !important;
  line-height: 1.45 !important;
}

body.single-sight-projects .baseball-ops-article summary::after {
  content: none !important;
  display: none !important;
}

body.single-sight-projects .baseball-ops-article details[open] summary {
  margin-bottom: 8px !important;
}

body.single-sight-projects[data-scheme="dark"] .entry-content article.roberin-article-body.baseball-ops-article,
body.single-sight-projects[data-scheme="inverse"] .entry-content article.roberin-article-body.baseball-ops-article,
body.single-sight-projects[data-scheme="dark"] .baseball-ops-article,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article,
html[data-scheme="dark"] body.single-sight-projects .entry-content article.roberin-article-body.baseball-ops-article,
html[data-scheme="inverse"] body.single-sight-projects .entry-content article.roberin-article-body.baseball-ops-article,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background-image:
    linear-gradient(rgba(169, 139, 107, .075) 1px, transparent 1px),
    linear-gradient(90deg, rgba(169, 139, 107, .06) 1px, transparent 1px) !important;
  background-color: #33271d !important;
  border-color: #a98b6b !important;
}

body.single-sight-projects[data-scheme="dark"] .baseball-ops-article :is(h2, h3, strong, summary),
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article :is(h2, h3, strong, summary),
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article :is(h2, h3, strong, summary),
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article :is(h2, h3, strong, summary) {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.single-sight-projects[data-scheme="dark"] .baseball-ops-article :is(p, li, span),
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article :is(p, li, span),
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article :is(p, li, span),
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article :is(p, li, span) {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
}

body.single-sight-projects[data-scheme="dark"] .baseball-ops-article .baseball-ops-article__card,
body.single-sight-projects[data-scheme="dark"] .baseball-ops-article .baseball-ops-article__process,
body.single-sight-projects[data-scheme="dark"] .baseball-ops-article .baseball-ops-article__use,
body.single-sight-projects[data-scheme="dark"] .baseball-ops-article .baseball-ops-article__notice,
body.single-sight-projects[data-scheme="dark"] .baseball-ops-article details,
body.single-sight-projects[data-scheme="dark"] .baseball-ops-article .baseball-ops-article__nav a,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article .baseball-ops-article__card,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article .baseball-ops-article__process,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article .baseball-ops-article__use,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article .baseball-ops-article__notice,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article details,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article .baseball-ops-article__nav a,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__card,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__process,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__use,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__notice,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article details,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__nav a,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__card,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__process,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__use,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__notice,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article details,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__nav a {
  background-color: #33271d !important;
  border-color: rgba(169, 139, 107, .72) !important;
  box-shadow: 3px 3px 0 rgba(32, 24, 17, .52) !important;
}

body.single-sight-projects[data-scheme="dark"] .baseball-ops-article .baseball-ops-article__notice,
body.single-sight-projects[data-scheme="dark"] .baseball-ops-article .baseball-ops-article__process,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article .baseball-ops-article__notice,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article .baseball-ops-article__process,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__notice,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__process,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__notice,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article .baseball-ops-article__process {
  background-color: rgba(36, 28, 21, .56) !important;
}

body.single-sight-projects[data-scheme="dark"] .baseball-ops-article code,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article code,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article code,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article code {
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
  background: #241c15 !important;
  border-color: rgba(169, 139, 107, .56) !important;
}

body.single-sight-projects[data-scheme="dark"] .baseball-ops-article :is(ul, ol) > li::before,
body.single-sight-projects[data-scheme="inverse"] .baseball-ops-article :is(ul, ol) > li::before,
html[data-scheme="dark"] body.single-sight-projects .baseball-ops-article :is(ul, ol) > li::before,
html[data-scheme="inverse"] body.single-sight-projects .baseball-ops-article :is(ul, ol) > li::before {
  border-color: #a98b6b !important;
}

@media (max-width: 920px) {
  body.single-sight-projects .baseball-ops-article .baseball-ops-article__use-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (max-width: 640px) {
  body.single-sight-projects .entry-content > .baseball-ops-ad.baseball-ops-ad--after-tool + article.roberin-article-body.baseball-ops-article,
  body.single-sight-projects .baseball-ops-ad--after-tool + article.roberin-article-body.baseball-ops-article {
    margin-top: 0 !important;
  }

  body.single-sight-projects .entry-content article.roberin-article-body.baseball-ops-article,
  body.single-sight-projects .baseball-ops-article {
    width: calc(100vw - 24px) !important;
    max-width: calc(100vw - 24px) !important;
    padding: 12px !important;
    box-shadow: 4px 4px 0 rgba(82, 65, 50, .16) !important;
  }

  body.single-sight-projects .baseball-ops-article .baseball-ops-article__grid,
  body.single-sight-projects .baseball-ops-article .baseball-ops-article__process-grid,
  body.single-sight-projects .baseball-ops-article .baseball-ops-article__use-grid {
    grid-template-columns: 1fr !important;
  }

  body.single-sight-projects .baseball-ops-article h3 {
    font-size: 18px !important;
  }
}

@media (max-width: 370px) {
  body.single-sight-projects .baseball-ops-article h2 {
    font-size: 25.2px !important;
  }
}

/* ROBERIN baseball OPS calculator v4 - square date-difference reference correction */
.ops-calculator-container {
  width: min(1080px, calc(100vw - 32px)) !important;
  max-width: 1080px !important;
  margin: 18px auto 24px !important;
}

.ops-tool-shell {
  padding: 16px !important;
  border: 2px solid var(--ops-line) !important;
  border-radius: 0 !important;
  background:
    linear-gradient(90deg, rgba(107, 87, 69, .03) 1px, transparent 1px) 0 0 / 18px 18px,
    linear-gradient(0deg, rgba(107, 87, 69, .026) 1px, transparent 1px) 0 0 / 18px 18px,
    var(--ops-paper) !important;
  box-shadow: none !important;
}

.ops-tool-header {
  margin: 0 0 12px !important;
  padding-bottom: 12px !important;
  border-bottom: 2px solid var(--ops-line) !important;
}

.ops-kicker {
  display: none !important;
}

.ops-tool-header h2 {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin: 0 !important;
  font-size: clamp(30px, 3.1vw, 38px) !important;
  line-height: 1.1 !important;
  letter-spacing: -.045em !important;
}

.ops-tool-header h2::before {
  content: "⚾";
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid var(--ops-line);
  background: var(--ops-green);
  color: var(--ops-ink);
  font-size: 19px;
  line-height: 1;
  -webkit-text-fill-color: currentColor;
}

.ops-tool-header .subtitle {
  margin: 6px 0 0 !important;
  max-width: none !important;
  font-size: 16px !important;
  font-weight: 760 !important;
}

.ops-helper-strip {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-top: 10px !important;
}

.ops-helper-strip span {
  padding: 7px 9px !important;
  border: 1px dashed var(--ops-line-soft) !important;
  border-radius: 0 !important;
  background: rgba(255, 248, 237, .56) !important;
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.ops-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  justify-content: stretch !important;
  margin: 0 0 10px !important;
}

.btn-calculate,
.btn-quick,
.btn-reset {
  min-height: 42px !important;
  border-radius: 0 !important;
  border-width: 1px !important;
  box-shadow: none !important;
}

.btn-quick {
  width: 100% !important;
  background: var(--ops-green) !important;
}

.btn-reset {
  width: 100% !important;
  background: #f0d8ca !important;
}

.btn-calculate {
  margin-top: 10px !important;
  background: #3f2c20 !important;
  color: #fff8ed !important;
  -webkit-text-fill-color: #fff8ed !important;
}

.ops-main-grid {
  grid-template-columns: minmax(0, 1.08fr) minmax(0, .96fr) minmax(0, .96fr) !important;
  align-items: stretch !important;
  gap: 12px !important;
}

.ops-panel,
.ops-info-section {
  border: 1px solid var(--ops-line) !important;
  border-radius: 0 !important;
  background: rgba(255, 253, 247, .62) !important;
  box-shadow: none !important;
}

.ops-panel,
.ops-info-section {
  padding: 12px !important;
}

.section-title {
  gap: 7px !important;
  margin-bottom: 10px !important;
  padding-bottom: 8px !important;
  border-bottom: 1px solid var(--ops-line-soft) !important;
  font-size: 18px !important;
}

.ops-section-mark {
  width: 22px !important;
  height: 22px !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  background: var(--ops-green) !important;
}

.ops-panel-note {
  margin-bottom: 10px !important;
  font-size: 12px !important;
}

.ops-fieldset {
  margin-top: 10px !important;
  padding: 10px !important;
  border-radius: 0 !important;
  border: 1px dashed var(--ops-line-soft) !important;
  background: rgba(255, 248, 237, .46) !important;
}

.ops-input-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.input-group { gap: 5px !important; }
.input-group span,
.input-group label,
.ops-calculator-container label {
  font-size: 12px !important;
}

.number-input,
.ops-calculator-container input,
.ops-calculator-container select {
  min-height: 42px !important;
  padding: 9px 10px !important;
  border-width: 1px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  font-size: 15px !important;
}

.ops-result-panel {
  background: rgba(255, 253, 247, .62) !important;
}

.ops-main-result {
  min-height: 176px !important;
  border-radius: 0 !important;
  border: 1px dashed var(--ops-line-soft) !important;
  background: rgba(255, 248, 237, .50) !important;
  box-shadow: none !important;
}

.result-label { font-size: 12px !important; }
.big-number,
.ops-value {
  font-size: clamp(40px, 6vw, 58px) !important;
  letter-spacing: -.06em !important;
}

.ops-meter__track,
.ops-meter__fill,
.ops-indicator,
.ops-equation,
.result-item,
.info-card,
.formula-item,
.ops-note-card,
.ops-formula-box {
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ops-equation {
  padding: 9px !important;
  border: 1px dashed var(--ops-line-soft) !important;
}

.ops-stat-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

.result-item {
  min-height: 64px !important;
  padding: 9px !important;
  border-width: 1px !important;
  background: rgba(255, 248, 237, .50) !important;
}

.result-label-text { font-size: 11px !important; }
.result-value { font-size: 18px !important; }

.ops-info-section {
  display: grid !important;
  align-content: start !important;
  gap: 10px !important;
}

.ops-guide-grid {
  grid-template-columns: 1fr !important;
  gap: 8px !important;
}

.info-card {
  min-height: auto !important;
  padding: 9px !important;
  border-width: 1px !important;
  background: rgba(255, 248, 237, .50) !important;
}

.info-card strong,
.info-card span {
  font-size: 12px !important;
  line-height: 1.35 !important;
}

.ops-formula-box {
  grid-template-columns: 1fr !important;
  padding: 10px !important;
  border-width: 1px !important;
  background: rgba(226, 237, 216, .42) !important;
}

.formula-section h4,
.ops-formula-box h4 {
  margin: 0 0 4px !important;
  font-size: 13px !important;
}

.formula-section p,
.ops-formula-box p {
  margin: 0 !important;
  font-size: 12px !important;
  line-height: 1.45 !important;
}

.formula-content { gap: 6px !important; }
.formula-item {
  padding: 7px 8px !important;
  font-size: 12px !important;
}

.ops-note-card {
  padding: 9px !important;
  border-width: 1px !important;
  background: rgba(244, 213, 138, .22) !important;
  font-size: 12px !important;
}

body[data-scheme="dark"] .ops-tool-header h2::before,
body[data-scheme="inverse"] .ops-tool-header h2::before {
  background: var(--ops-green) !important;
  color: var(--ops-ink) !important;
  -webkit-text-fill-color: var(--ops-ink) !important;
}

body[data-scheme="dark"] .btn-calculate,
body[data-scheme="inverse"] .btn-calculate {
  background: #d2aa55 !important;
  color: #241c15 !important;
  -webkit-text-fill-color: #241c15 !important;
}

body[data-scheme="dark"] .btn-reset,
body[data-scheme="inverse"] .btn-reset {
  background: #3a2a20 !important;
}

body[data-scheme="dark"] .ops-panel,
body[data-scheme="dark"] .ops-info-section,
body[data-scheme="dark"] .ops-main-result,
body[data-scheme="dark"] .result-item,
body[data-scheme="dark"] .info-card,
body[data-scheme="dark"] .formula-item,
body[data-scheme="inverse"] .ops-panel,
body[data-scheme="inverse"] .ops-info-section,
body[data-scheme="inverse"] .ops-main-result,
body[data-scheme="inverse"] .result-item,
body[data-scheme="inverse"] .info-card,
body[data-scheme="inverse"] .formula-item {
  background: rgba(51, 39, 29, .70) !important;
}

body[data-scheme="dark"] .ops-helper-strip span,
body[data-scheme="dark"] .ops-fieldset,
body[data-scheme="dark"] .ops-equation,
body[data-scheme="dark"] .ops-formula-box,
body[data-scheme="inverse"] .ops-helper-strip span,
body[data-scheme="inverse"] .ops-fieldset,
body[data-scheme="inverse"] .ops-equation,
body[data-scheme="inverse"] .ops-formula-box {
  background: rgba(36, 28, 21, .48) !important;
}

@media (max-width: 980px) {
  .ops-main-grid {
    grid-template-columns: 1fr 1fr !important;
  }
  .ops-info-section {
    grid-column: 1 / -1 !important;
  }
  .ops-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 640px) {
  .ops-calculator-container {
    width: calc(100% - 20px) !important;
    margin: 12px auto 20px !important;
  }
  .ops-tool-shell {
    padding: 12px !important;
  }
  .ops-tool-header h2 {
    font-size: 30px !important;
  }
  .ops-helper-strip,
  .ops-main-grid,
  .ops-input-grid--four,
  .ops-stat-grid,
  .ops-guide-grid,
  .ops-quick-actions {
    grid-template-columns: 1fr !important;
  }
  .ops-info-section {
    grid-column: auto !important;
  }
}

/* v4 strict square cleanup */
.ops-kicker,
.toast {
  border-radius: 0 !important;
}


/* v6 compact Chart.js radar correction: compact first-screen density + visual result */
.ops-calculator-container {
  width: min(980px, calc(100vw - 28px)) !important;
  max-width: 980px !important;
  margin: 12px auto 18px !important;
}

.ops-tool-shell {
  padding: clamp(10px, 1.25vw, 14px) !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ops-tool-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 5px 10px !important;
  margin: 0 0 8px !important;
  padding-bottom: 8px !important;
  border-bottom-style: solid !important;
}

.ops-tool-header h2 {
  font-size: clamp(24px, 2.4vw, 32px) !important;
  line-height: 1.02 !important;
}

.ops-tool-header h2::before {
  width: 24px !important;
  height: 24px !important;
  font-size: 13px !important;
}

.ops-tool-header .subtitle {
  margin-top: 3px !important;
  font-size: 12.5px !important;
  line-height: 1.38 !important;
  max-width: 520px !important;
}

.ops-kicker {
  display: none !important;
}

.ops-helper-strip {
  grid-column: 1 / -1 !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin-top: 4px !important;
}

.ops-helper-strip span {
  min-height: 30px !important;
  padding: 6px 8px !important;
  border-radius: 0 !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.ops-quick-actions {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
  margin: 0 0 8px !important;
}

.btn-quick,
.btn-reset,
.btn-calculate,
.calculate-btn {
  min-height: 34px !important;
  padding: 8px 10px !important;
  font-size: 12px !important;
}

.ops-main-grid {
  grid-template-columns: minmax(0, 1.02fr) minmax(330px, 1fr) minmax(218px, .62fr) !important;
  gap: 8px !important;
}

.ops-panel,
.ops-info-section {
  border-width: 1px !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}

.ops-panel {
  padding: 10px !important;
}

.section-title {
  gap: 6px !important;
  margin-bottom: 7px !important;
  font-size: 14px !important;
}

.ops-section-mark {
  width: 20px !important;
  height: 20px !important;
  font-size: 10px !important;
}

.ops-panel-note {
  margin-bottom: 7px !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}

.ops-fieldset {
  margin-top: 7px !important;
  padding: 7px !important;
}

.ops-fieldset__title {
  margin-bottom: 5px !important;
  font-size: 11px !important;
}

.ops-input-grid--four {
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 6px !important;
}

.input-group { gap: 3px !important; }
.input-group span,
.input-group label,
.ops-calculator-container label {
  font-size: 11px !important;
  line-height: 1.2 !important;
}

.number-input,
.ops-calculator-container input,
.ops-calculator-container select {
  min-height: 32px !important;
  padding: 6px 8px !important;
  font-size: 13px !important;
  line-height: 1.15 !important;
}

.ops-error {
  min-height: 16px !important;
  margin-top: 5px !important;
  font-size: 11px !important;
}

.ops-result-display {
  display: grid !important;
  gap: 7px !important;
}

.ops-result-visual {
  display: grid !important;
  grid-template-columns: minmax(0, .82fr) minmax(142px, .72fr) !important;
  align-items: stretch !important;
  gap: 7px !important;
}

.ops-main-result {
  min-height: 122px !important;
  padding: 8px !important;
  display: grid !important;
  align-content: center !important;
  gap: 4px !important;
}

.result-label { font-size: 10px !important; }
.big-number,
.ops-value {
  font-size: clamp(31px, 3.4vw, 44px) !important;
  line-height: .96 !important;
}

.ops-grade {
  font-size: 11px !important;
  line-height: 1.3 !important;
}

.ops-chart-card {
  min-width: 0;
  min-height: 122px;
  display: grid;
  grid-template-rows: auto minmax(104px, 1fr);
  gap: 4px;
  padding: 7px;
  border: 1px dashed var(--ops-line-soft);
  border-radius: 0;
  background: rgba(226, 237, 216, .34);
  color: var(--ops-ink);
  -webkit-text-fill-color: currentColor;
}

.ops-chart-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  border-bottom: 1px solid var(--ops-line-soft);
  padding-bottom: 3px;
}

.ops-chart-head strong {
  flex: 0 0 auto;
  font-size: 11px;
  line-height: 1.1;
  font-weight: 950;
}

.ops-chart-head span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--ops-muted);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.1;
}

.ops-radar-wrap {
  position: relative;
  min-width: 0;
  height: clamp(112px, 11vw, 146px);
}

.ops-radar-chart {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

.ops-meter {
  margin-top: 0 !important;
}

.ops-meter__track {
  height: 8px !important;
}

.ops-meter__labels {
  margin-top: 3px !important;
  font-size: 9px !important;
}

.ops-equation {
  padding: 6px 8px !important;
  font-size: 11px !important;
}

.ops-stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 5px !important;
}

.result-item {
  min-height: 46px !important;
  padding: 6px !important;
}

.result-label-text { font-size: 9.5px !important; }
.result-value { font-size: 15px !important; }

.ops-info-section {
  gap: 6px !important;
  padding: 10px !important;
}

.ops-guide-grid { gap: 5px !important; }
.info-card {
  padding: 6px 7px !important;
  min-height: 43px !important;
}
.info-card strong,
.info-card span {
  font-size: 10.5px !important;
  line-height: 1.25 !important;
}

.ops-formula-box {
  gap: 6px !important;
  padding: 7px !important;
}

.formula-section h4,
.ops-formula-box h4 {
  font-size: 11px !important;
}

.formula-section p,
.ops-formula-box p,
.formula-item,
.ops-note-card {
  font-size: 10.5px !important;
  line-height: 1.32 !important;
}

.formula-item,
.ops-note-card {
  padding: 6px !important;
}

body[data-scheme="dark"] .ops-chart-card,
body[data-scheme="inverse"] .ops-chart-card {
  background: rgba(52, 74, 50, .28) !important;
  color: #f2e4cf !important;
  -webkit-text-fill-color: #f2e4cf !important;
}

body[data-scheme="dark"] .ops-chart-head span,
body[data-scheme="inverse"] .ops-chart-head span {
  color: #f0dfc5 !important;
  -webkit-text-fill-color: #f0dfc5 !important;
}

@media (max-width: 1080px) and (min-width: 981px) {
  .ops-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(315px, .96fr) minmax(200px, .58fr) !important;
  }
  .ops-result-visual {
    grid-template-columns: 1fr !important;
  }
  .ops-radar-wrap {
    height: 126px !important;
  }
}

@media (max-width: 980px) {
  .ops-main-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
  }
  .ops-result-visual {
    grid-template-columns: minmax(0, 1fr) minmax(142px, .7fr) !important;
  }
}

@media (max-width: 640px) {
  .ops-calculator-container {
    width: calc(100% - 18px) !important;
  }
  .ops-tool-header,
  .ops-helper-strip,
  .ops-main-grid,
  .ops-input-grid--four,
  .ops-quick-actions {
    grid-template-columns: 1fr !important;
  }
  .ops-tool-header h2 {
    font-size: 24px !important;
  }
  .ops-result-visual {
    grid-template-columns: minmax(0, 1fr) !important;
  }
  .ops-radar-wrap {
    height: 170px !important;
  }
  .ops-stat-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}


/* v7 compactness gate: remove stretched blank panel height and compress guide copy */
.ops-main-grid {
  align-items: start !important;
}

.ops-info-section {
  align-self: start !important;
  gap: 5px !important;
}

.ops-guide-grid {
  gap: 4px !important;
}

.info-card {
  min-height: 0 !important;
  padding: 5px 6px !important;
  display: grid !important;
  gap: 1px !important;
}

.info-card strong {
  font-size: 10px !important;
  line-height: 1.18 !important;
}

.info-card span {
  font-size: 9.5px !important;
  line-height: 1.15 !important;
}

.ops-formula-box {
  padding: 6px !important;
  gap: 4px !important;
}

.ops-formula-box > div:first-child p {
  display: none !important;
}

.formula-content {
  gap: 4px !important;
}

.formula-item {
  padding: 5px 6px !important;
  font-size: 10px !important;
  line-height: 1.22 !important;
}

.ops-note-card {
  padding: 6px !important;
  gap: 3px !important;
}

.ops-note-card strong,
.ops-note-card span {
  font-size: 10px !important;
  line-height: 1.22 !important;
}

@media (min-width: 981px) {
  .ops-info-section .section-title {
    margin-bottom: 4px !important;
  }
  .ops-guide-grid {
    grid-template-columns: 1fr !important;
  }
}


/* v8: make guide panel compact enough for desktop first-screen flow */
@media (min-width: 981px) {
  .ops-info-section {
    padding: 8px !important;
  }
  .ops-info-section .section-title {
    margin-bottom: 3px !important;
  }
  .ops-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 4px !important;
  }
  .info-card {
    padding: 5px !important;
    min-height: 28px !important;
  }
  .info-card span {
    display: none !important;
  }
  .info-card strong {
    font-size: 9.5px !important;
    line-height: 1.18 !important;
  }
  .ops-formula-box {
    padding: 5px !important;
  }
  .formula-content {
    grid-template-columns: 1fr !important;
  }
  .formula-item {
    padding: 4px 5px !important;
    font-size: 9.5px !important;
  }
  .ops-note-card {
    padding: 5px !important;
  }
  .ops-note-card span {
    font-size: 9.5px !important;
  }
}


/* v9 readability correction: keep compact grid but raise tool typography */
.ops-calculator-container {
  width: min(1040px, calc(100vw - 28px)) !important;
  max-width: 1040px !important;
}

.ops-tool-header h2 {
  font-size: clamp(28px, 2.75vw, 36px) !important;
}

.ops-tool-header .subtitle {
  font-size: 14px !important;
  line-height: 1.45 !important;
}

.ops-helper-strip span {
  font-size: 12.5px !important;
  line-height: 1.4 !important;
}

.btn-quick,
.btn-reset,
.btn-calculate,
.calculate-btn {
  font-size: 13.5px !important;
  min-height: 38px !important;
}

.section-title {
  font-size: 15.5px !important;
}

.ops-section-mark {
  width: 22px !important;
  height: 22px !important;
  font-size: 11px !important;
}

.ops-panel-note {
  font-size: 12.5px !important;
  line-height: 1.42 !important;
}

.ops-fieldset__title,
.input-group span,
.input-group label,
.ops-calculator-container label {
  font-size: 12.5px !important;
  line-height: 1.28 !important;
}

.number-input,
.ops-calculator-container input,
.ops-calculator-container select {
  min-height: 37px !important;
  padding: 7px 9px !important;
  font-size: 15px !important;
  line-height: 1.2 !important;
}

.ops-error {
  font-size: 12px !important;
}

.ops-main-result {
  min-height: 132px !important;
}

.result-label {
  font-size: 11.5px !important;
}

.big-number,
.ops-value {
  font-size: clamp(36px, 3.8vw, 48px) !important;
}

.ops-grade {
  font-size: 12.5px !important;
  line-height: 1.38 !important;
}

.ops-chart-head strong {
  font-size: 12px !important;
}

.ops-chart-head span {
  font-size: 11.5px !important;
}

.ops-radar-wrap {
  height: clamp(122px, 12vw, 154px) !important;
}

.ops-equation {
  font-size: 12.5px !important;
}

.result-label-text {
  font-size: 11px !important;
}

.result-value {
  font-size: 17px !important;
}

@media (min-width: 981px) {
  .ops-guide-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .info-card strong {
    font-size: 11.5px !important;
    line-height: 1.22 !important;
  }
  .info-card span {
    display: none !important;
  }
  .formula-section h4,
  .ops-formula-box h4 {
    font-size: 12px !important;
  }
  .formula-item {
    font-size: 11.2px !important;
    line-height: 1.28 !important;
  }
  .ops-note-card strong,
  .ops-note-card span {
    font-size: 11.2px !important;
    line-height: 1.3 !important;
  }
}

@media (max-width: 640px) {
  .ops-tool-header h2 {
    font-size: 28px !important;
  }
  .ops-tool-header .subtitle,
  .ops-helper-strip span,
  .ops-panel-note,
  .ops-fieldset__title,
  .input-group span,
  .input-group label,
  .ops-calculator-container label {
    font-size: 13px !important;
  }
  .number-input,
  .ops-calculator-container input,
  .ops-calculator-container select {
    min-height: 42px !important;
    font-size: 16px !important;
  }
  .btn-quick,
  .btn-reset,
  .btn-calculate,
  .calculate-btn {
    min-height: 42px !important;
    font-size: 14px !important;
  }
  .result-label-text {
    font-size: 11.5px !important;
  }
}
