.greeks-values {
  grid-template-columns: 1fr 1fr;
  font-variant-numeric: tabular-nums;
}
.greeks-result {
  display: flex;
  align-items: baseline;
  gap: 15px;
  margin: 20px 0;
}
.greeks-result strong {
  font-size: 30px;
  color: #24765b;
}
.greeks-result span {
  font-size: 13px;
  color: #698078;
}
.formula {
  font-size: 13px;
  line-height: 1.9;
  padding: 14px;
  background: #f3f8f5;
  border-radius: 12px;
  overflow-wrap: anywhere;
}
.metrics small {
  font-size: 11px;
  color: #698078;
  max-width: 180px;
}
.invalid #greeks-card,
.invalid table {
  opacity: 0.25;
}
:root {
  font-family: "Segoe UI", "Malgun Gothic", sans-serif;
  color: #253d36;
  background: #f4f9f7;
  font-synthesis: none;
  --mint: #d9f2e9;
  --green: #24765b;
  --muted: #698078;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea {
  font: inherit;
}
button,
a,
label.file-button {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
  border: 1px solid #d9e6e0;
  background: white;
  border-radius: 12px;
  padding: 11px 16px;
  color: #344c42;
}
button:hover {
  background: #eff8f3;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible {
  outline: 3px solid #73bb9f;
  outline-offset: 3px;
}
a {
  color: var(--green);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
header {
  max-width: 1180px;
  margin: auto;
  padding: 25px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  font-size: 18px;
  font-weight: 700;
  color: #254637;
  display: flex;
  gap: 10px;
  align-items: center;
}
.brand span {
  background: var(--mint);
  padding: 8px 11px;
  border-radius: 12px;
}
nav {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
main {
  max-width: 1180px;
  margin: auto;
  padding: 30px 32px 40px;
}
.eyebrow {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  color: #3d8d70;
  margin: 0 0 10px;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  margin: 0 0 12px;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.6px;
  margin: 0 0 20px;
}
p {
  line-height: 1.7;
}
.topline {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 25px;
}
#meta {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}
.badge {
  display: inline-block;
  background: #e7f5ee;
  color: #31795c;
  padding: 7px 12px;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.card {
  background: white;
  border: 1px solid #e2ebe6;
  border-radius: 23px;
  padding: 28px;
  box-shadow: 0 5px 22px #426b4f04;
}
.layout {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
}
.controls {
  align-self: start;
}
.move-label {
  font-size: 13px;
  color: var(--muted);
}
.percent-input {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 9px;
}
.percent-input input {
  width: 165px;
  min-width: 0;
  font-size: 40px;
  color: var(--green);
  font-weight: 700;
  border: 0;
  border-bottom: 2px solid #e3f1e9;
  padding: 4px 0;
}
.percent-input span {
  font-size: 27px;
  color: var(--green);
}
input[type="range"] {
  width: 100%;
  accent-color: #69b697;
  margin-top: 23px;
}
.range-label {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
  margin-top: 2px;
}
.presets {
  display: flex;
  gap: 6px;
  margin-top: 19px;
}
.presets button {
  font-size: 12px;
  padding: 10px 9px;
  flex: 1;
}
.presets button.active {
  background: var(--mint);
  border-color: #9dccb6;
  font-weight: 700;
}
.hint {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  margin-top: 22px;
}
.field input {
  border: 1px solid #dce7e0;
  padding: 12px;
  border-radius: 10px;
  width: 100%;
}
.reset {
  margin-top: 15px;
  width: 100%;
  background: #f5f9f7;
  font-size: 13px;
}
.local-note {
  font-size: 12px;
  line-height: 1.9;
  color: #597869;
  margin-bottom: 0;
}
.results {
  display: grid;
  gap: 22px;
}
.result-card {
  background: linear-gradient(115deg, #e5f6ee, #f7fcf9);
  border-color: #d0e8dc;
}
.result-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  font-size: 12px;
  color: #637f70;
}
.small-title {
  font-size: 14px;
  color: #607e6c;
  margin: 26px 0 0;
}
.hero-number {
  font-size: 64px;
  letter-spacing: -2px;
  font-weight: 700;
  line-height: 1.3;
  color: #236e52;
}
.negative {
  color: #416b95 !important;
}
.metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 25px;
  margin-top: 25px;
}
.metrics div {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 145px;
}
.metrics span {
  font-size: 12px;
  color: #698275;
}
.metrics strong {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.6px;
}
.comparison {
  border-top: 1px solid #d6e8dd;
  padding-top: 17px;
  font-size: 13px;
  margin: 22px 0 0;
  color: #577262;
}
.table-scroll {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: right;
  padding: 13px 9px;
  border-bottom: 1px solid #edf2ef;
  white-space: nowrap;
  font-size: 13px;
}
th {
  font-size: 11px;
  color: #708478;
  font-weight: 500;
}
th:first-child,
td:first-child {
  text-align: left;
}
tr.selected {
  background: #edf8f2;
  font-weight: 700;
}
.analysis {
  margin-top: 24px;
}
.analysis #summary {
  white-space: pre-wrap;
  font-size: 14px;
  line-height: 1.9;
  color: #486052;
}
#sources {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
  margin: 18px 0;
}
#sources a,
#sources span {
  font-size: 12px;
  padding: 7px 10px;
  border-radius: 7px;
  background: #f2f7f4;
}
details {
  margin-top: 20px;
  color: #607268;
  font-size: 13px;
}
summary {
  cursor: pointer;
  font-weight: 600;
}
dl {
  display: grid;
  grid-template-columns: 160px 1fr;
  gap: 11px;
}
dt {
  color: #72867a;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.bottom-actions {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 25px 0 8px;
  font-size: 13px;
}
.button {
  border: 0;
  border-radius: 12px;
  background: #337d5f;
  color: white;
  padding: 13px 20px;
  display: inline-block;
  font-size: 13px;
}
.button:hover {
  background: #276c50;
  color: white;
}
.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin: 0 0 25px;
  font-size: 12px;
}
.demo-toolbar > span {
  color: #76877e;
  margin-right: 10px;
}
.demo-toolbar button,
.file-button {
  padding: 9px 13px;
  font-size: 12px;
  background: white;
  border: 1px solid #dce6df;
  border-radius: 10px;
  cursor: pointer;
}
.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}
.file-button:focus-within {
  outline: 3px solid #73bb9f;
}
.error {
  background: #fff1ec;
  padding: 15px;
  border-radius: 12px;
  color: #964d3b;
  margin-bottom: 20px;
}
.paste {
  padding: 15px 0;
}
.paste label {
  display: block;
  margin: 14px 0 8px;
}
.paste textarea {
  width: 100%;
  border: 1px solid #d9e4dd;
  border-radius: 10px;
  padding: 12px;
  resize: vertical;
}
.paste button {
  margin-top: 12px;
}
footer {
  text-align: center;
  font-size: 11px;
  color: #8a9990;
  margin-top: 50px;
}
#saved-list {
  display: grid;
  gap: 13px;
  margin: 25px 0;
}
.saved {
  display: block;
  padding: 22px;
  background: white;
  border: 1px solid #e0eae3;
  border-radius: 16px;
}
.saved strong {
  display: block;
}
.saved small {
  display: block;
  color: #819185;
  margin-top: 10px;
}
[hidden] {
  display: none !important;
}
.invalid .hero-number,
.invalid .metrics {
  opacity: 0.25;
}
@media (max-width: 850px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .controls {
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 25px;
  }
  .controls > h2,
  .controls > .eyebrow,
  .move-label,
  .percent-input,
  .controls > input,
  .range-label,
  .presets,
  .controls > .hint,
  .controls > .local-note,
  .reset {
    grid-column: 1/-1;
  }
  .hero-number {
    font-size: 54px;
  }
  .topline {
    flex-direction: column;
  }
  header,
  main {
    padding-left: 20px;
    padding-right: 20px;
  }
}
@media (max-width: 500px) {
  h1 {
    font-size: 25px;
  }
  .card {
    padding: 22px;
  }
  .brand {
    font-size: 15px;
  }
  nav {
    gap: 12px;
    font-size: 12px;
  }
  .bottom-actions {
    align-items: flex-start;
    flex-direction: column;
  }
  .controls {
    display: block;
  }
  .metrics {
    gap: 18px;
  }
  .hero-number {
    font-size: 48px;
  }
  dl {
    grid-template-columns: 1fr;
  }
  dd {
    margin-bottom: 8px;
  }
  .range-label {
    margin-top: 5px;
  }
}

.purchase-card {
  margin-bottom: 20px;
}
.purchase-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.purchase-heading h2 {
  margin: 0;
}
.purchase-values {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.purchase-values div {
  min-width: 0;
}
.purchase-values dt {
  font-size: 14px;
  margin-bottom: 7px;
}
.purchase-values dd {
  font-size: 18px;
  font-weight: 600;
}
.purchase-fields {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0 18px;
}
.purchase-fields .field {
  font-size: 14px;
}
.purchase-fields select {
  font: inherit;
  padding: 12px;
  border: 1px solid #dce7e0;
  border-radius: 10px;
  width: 100%;
  background: white;
  color: inherit;
}
.purchase-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
#contract-info {
  font-size: 16px;
}
#purchase-editor > summary {
  font-size: 16px;
  color: #24765b;
}
.source-note,
#purchase-changed,
#purchase-help {
  font-size: 14px;
  line-height: 1.8;
}
.source-note {
  color: #597869;
  margin: 0 0 24px;
}
.analysis-note {
  padding: 12px;
  background: #f2f7f4;
  font-size: 14px;
}
.purchase-fields input {
  min-width: 0;
}
@media (max-width: 850px) {
  .purchase-values,
  .purchase-fields {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 500px) {
  .purchase-values,
  .purchase-fields {
    grid-template-columns: 1fr;
  }
  .purchase-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Report readability and scenario controls */
body {
  font-size: 16px;
  background: #f5faf8;
  color: #223e35;
}
header,
main {
  max-width: 1240px;
}
header {
  padding-top: 20px;
  padding-bottom: 15px;
}
main {
  padding-top: 16px;
}
.preview-notice {
  text-align: center;
  padding: 10px 20px;
  background: #d9f2e9;
  color: #285f4d;
  font-size: 14px;
}
h1 {
  font-size: 30px;
  line-height: 1.4;
  letter-spacing: -0.7px;
}
.topline {
  margin-bottom: 18px;
}
.eyebrow {
  font-size: 12px;
  letter-spacing: 1px;
}
.badge {
  font-size: 14px;
  white-space: normal;
}
.takeaway {
  padding: 0 0 20px;
  max-width: 860px;
}
.takeaway p {
  font-size: 18px;
  line-height: 1.8;
  margin: 7px 0;
}
.takeaway a {
  font-size: 14px;
  text-decoration: underline;
}
.freshness-note {
  font-size: 14px !important;
  line-height: 1.6;
  padding: 10px 14px !important;
  margin: 0 0 16px !important;
}
.purchase-card {
  padding: 20px 24px;
}
.purchase-heading h2 {
  font-size: 17px;
}
#contract-info {
  font-size: 14px;
  color: #64796f;
  margin: 10px 0;
}
.purchase-values {
  margin: 16px 0 0;
}
.purchase-values dt {
  font-size: 14px;
}
.purchase-values dd {
  font-size: 20px;
}
.purchase-card details {
  margin-top: 15px;
}
#purchase-editor > summary {
  font-size: 14px;
}
#purchase-changed:empty {
  display: none;
}
.source-note {
  font-size: 14px;
  margin: 16px 0 4px;
}
.essential-risk {
  font-size: 14px;
  color: #805732;
  margin: 0 0 18px;
  line-height: 1.7;
}
.layout {
  grid-template-columns: 350px minmax(0, 1fr);
  gap: 24px;
}
.card {
  border-radius: 18px;
  box-shadow: none;
  padding: 25px;
}
.controls .eyebrow {
  margin-bottom: 8px;
}
.controls h2 {
  font-size: 19px;
}
.field,
.move-label {
  font-size: 14px;
}
.hint,
.local-note,
.reset,
.range-label {
  font-size: 14px;
}
.percent-input input {
  font-size: 36px;
}
.presets button {
  font-size: 14px;
}
.controls > .hint {
  display: none;
}
.field {
  margin-top: 17px;
}
.iv-control {
  margin-top: 22px;
  padding: 17px;
  background: #eff8f3;
  border-radius: 14px;
  border: 1px solid #d7eade;
}
.iv-heading {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.iv-heading strong {
  font-size: 15px;
}
.iv-heading span {
  font-size: 13px;
  color: #60796c;
}
.iv-values {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
}
.iv-values > div {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.iv-values span {
  font-size: 13px;
  color: #60796c;
}
.iv-values strong {
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  color: #286b51;
}
.iv-values > div:last-child {
  align-items: flex-end;
}
.iv-control .field {
  margin-top: 16px;
}
.iv-control .hint {
  font-size: 13px;
  margin-bottom: 0;
}
.result-heading {
  font-size: 14px;
}
.small-title {
  font-size: 16px;
}
.hero-number {
  font-size: 58px;
  letter-spacing: -1px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.metrics div {
  min-width: 0;
}
.metrics span {
  font-size: 14px;
  line-height: 1.6;
}
.metrics strong {
  font-size: 24px;
  overflow-wrap: anywhere;
}
.metrics small {
  font-size: 13px;
}
.result-extra {
  border-top: 1px solid #d6e8dd;
  padding-top: 18px;
}
.result-extra .metrics {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.result-extra summary {
  font-size: 14px;
}
#greeks-card {
  order: 3;
}
.comparison-card {
  order: 2;
}
.results {
  align-content: start;
}
th,
td {
  font-size: 14px;
  padding: 13px 8px;
}
th {
  font-weight: 600;
}
.table-scroll {
  max-width: 100%;
}
.scenario-choice {
  font-size: 14px;
}
.disclosure {
  margin-top: 18px;
}
.results > .disclosure {
  margin-top: 0;
}
.disclosure > summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  font-size: 16px;
  line-height: 1.6;
  color: #294e3c;
  list-style: none;
}
.disclosure > summary:after {
  content: "＋";
  font-size: 21px;
  color: #628270;
}
.disclosure[open] > summary:after {
  content: "−";
}
.disclosure > summary > span {
  font-size: 13px;
  font-weight: 400;
  color: #6a8075;
  margin-left: auto;
}
.disclosure-body {
  padding-top: 22px;
  overflow-wrap: anywhere;
}
details {
  font-size: 16px;
  line-height: 1.8;
}
summary {
  line-height: 1.7;
}
.disclosure-body p,
.disclosure-body li,
.analysis #summary {
  font-size: 16px;
  line-height: 1.9;
}
.audit-views {
  display: block !important;
}
.audit-views > details {
  padding: 15px 0;
  border-bottom: 1px solid #e4ece7;
}
.audit-views > details p {
  max-width: 80ch;
}
.analysis {
  margin-top: 25px;
}
#summary {
  white-space: normal !important;
}
#summary p {
  white-space: pre-line;
  overflow-wrap: anywhere;
}
#sources a,
#sources span {
  font-size: 14px;
}
.formula {
  font-size: 14px;
}
.bottom-actions {
  font-size: 14px;
  flex-wrap: wrap;
}
.bottom-actions ~ .hint {
  max-width: 90ch;
  font-size: 14px;
}
footer {
  font-size: 13px;
}
.local-note {
  margin-top: 18px;
}
.purchase-fields {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.button {
  font-size: 14px;
}
.result-card .hint {
  margin-bottom: 0;
}
@media (max-width: 900px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .controls {
    display: block;
  }
  .iv-control {
    max-width: none;
  }
  .purchase-values {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .results {
    gap: 18px;
  }
  .topline {
    flex-direction: row;
  }
  h1 {
    font-size: 26px;
  }
  .hero-number {
    font-size: 48px;
  }
  .disclosure > summary > span {
    display: none;
  }
}
@media (max-width: 500px) {
  header,
  main {
    padding-left: 16px;
    padding-right: 16px;
  }
  .card {
    padding: 20px;
  }
  .topline {
    flex-direction: column;
    gap: 9px;
  }
  h1 {
    font-size: 24px;
  }
  .takeaway p {
    font-size: 17px;
  }
  .metrics {
    grid-template-columns: 1fr 1fr;
  }
  .metrics strong {
    font-size: 22px;
  }
  .hero-number {
    font-size: 46px;
  }
  .purchase-values {
    grid-template-columns: 1fr 1fr;
    gap: 16px;
  }
  .purchase-values dd {
    font-size: 18px;
    margin: 0;
  }
  .purchase-fields {
    grid-template-columns: 1fr;
  }
  .result-heading {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .presets {
    flex-wrap: wrap;
  }
  .presets button {
    min-width: 45px;
  }
  .disclosure > summary {
    font-size: 16px;
  }
  .result-extra .metrics {
    grid-template-columns: 1fr;
  }
  .preview-notice {
    font-size: 13px;
  }
}
