/* Calc page layout — page.html parity */
.cx-calc-page { font-family: Inter, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; color: #1e293b; font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; padding: 0 0 48px; }
.cx-calc-layout { max-width: 1880px; margin: 0 auto; padding: 0; display: flex; flex-direction: column; gap: 32px; align-items: flex-start; }
@media (min-width: 640px) { .cx-calc-layout { padding: 32px 24px; } }
@media (min-width: 1280px) { .cx-calc-layout { flex-direction: row; } }
.cx-calc-debug { max-width: 1880px; margin: 0 auto 48px; border: 1px solid #bfdbfe; border-radius: 14px; background: #f8fafc; overflow: hidden; }
.cx-calc-debug__head { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-bottom: 1px solid #dbeafe; background: #eff6ff; color: #0f172a; }
.cx-calc-debug__head span { display: block; margin-top: 2px; font-size: 12px; color: #64748b; font-weight: 500; }
.cx-calc-debug__head button { border: 1px solid #93c5fd; background: #fff; color: #1d4ed8; border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer; }
.cx-calc-debug pre { margin: 0; padding: 16px; max-height: 520px; overflow: auto; font-size: 12px; line-height: 1.45; color: #0f172a; background: #fff; }
.cx-calc-inner { flex: 1; display: flex; flex-direction: column; gap: 32px; min-width: 0; width: 100%; }
@media (min-width: 1024px) { .cx-calc-inner { flex-direction: row; } }
.cx-calc-main { flex: 1; min-width: 0; order: 2; width: 100%; }
@media (min-width: 1024px) { .cx-calc-main { order: 1; } }
.cx-calc-sidebar { width: 100%; flex-shrink: 0; order: 1; display: flex; flex-direction: column; gap: 20px; }
@media (min-width: 1024px) { .cx-calc-sidebar { width: 380px; min-width: 380px; order: 2; position: sticky; top: 64px; align-self: flex-start; } }
.cx-calc-sidebar__mobile-head { padding: 20px 16px 0; }
@media (min-width: 1024px) { .cx-calc-sidebar__mobile-head { display: none; } }
.cx-calc-sidebar__mobile-title { margin: 0; font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -0.025em; line-height: 1.25; }
.cx-calc-sidebar__mobile-intro { margin: 4px 0 0; font-size: 0.875rem; color: #64748b; }
.cx-calc-layout--wide-top .cx-calc-inner { flex-direction: column; }
.cx-calc-layout--wide-top .cx-calc-sidebar { width: 100%; min-width: 0; order: 2; position: static; top: auto; align-self: stretch; }
.cx-calc-layout--wide-top .cx-calc-main { order: 3; width: 100%; }
.cx-calc-hero { width: 100%; order: 1; padding: 20px 16px 0; }
@media (min-width: 640px) { .cx-calc-hero { padding: 0 0 8px; } }
.cx-calc-hero h1 { margin: 0 0 12px; font-size: 1.5rem; font-weight: 800; color: #0f172a; letter-spacing: -0.025em; line-height: 1.25; }
@media (min-width: 640px) { .cx-calc-hero h1 { font-size: 2.25rem; line-height: 1.1; margin-bottom: 16px; } }
.cx-calc-hero__intro { margin: 0; font-size: 0.875rem; color: #64748b; font-style: italic; line-height: 1.5; }
@media (min-width: 640px) { .cx-calc-hero__intro { font-size: 1rem; } }
.cx-calc-layout--wide-top .cx-calc-article > h1,
.cx-calc-layout--wide-top .cx-calc-article__intro { display: none; }
.cx-calc-widget { border: 1px solid #dbeafe; border-top: 2px solid #3b82f6; border-radius: 0; overflow: hidden; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1); }
@media (min-width: 640px) { .cx-calc-widget { border-radius: 16px; } }
.cx-calc-acc { border-bottom: 1px solid #f1f5f9; }
.cx-calc-acc__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border: 0; background: transparent; font-size: 0.875rem; font-weight: 700; color: #0f172a; cursor: pointer; transition: background 150ms; }
.cx-calc-acc__btn:hover { background: #f8fafc; }
.cx-calc-acc--static .cx-calc-acc__head { cursor: default; pointer-events: none; }
.cx-calc-acc--static .cx-calc-acc__head:hover { background: #f8fafc; }
.cx-calc-acc--static .acc-body,
.cx-calc-acc--static .acc-body.closed { grid-template-rows: 1fr !important; }
.cx-calc-acc__btn .acc-chevron { color: #2563eb; flex-shrink: 0; }
.cx-calc-acc__body { padding: 4px 20px 20px; }
.cx-calc-fields-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}
.cx-calc-fields-stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
  align-items: stretch;
}
.cx-calc-fields-grid > .calc-field,
.cx-calc-fields-grid > .cx-calc-field,
.cx-calc-fields-stack > .calc-field,
.cx-calc-fields-stack > .cx-calc-field {
  min-width: 0;
}
.cx-calc-fields-stack > .calc-field,
.cx-calc-fields-stack > .cx-calc-field {
  width: 100%;
}
.cx-calc-span-1 { grid-column: span 1; }
.cx-calc-span-2 { grid-column: span 2; }
.cx-calc-span-3 { grid-column: span 3; }
.cx-calc-span-4 { grid-column: span 4; }
.cx-calc-span-5 { grid-column: span 5; }
.cx-calc-span-6 { grid-column: span 6; }
.cx-calc-span-7 { grid-column: span 7; }
.cx-calc-span-8 { grid-column: span 8; }
.cx-calc-span-9 { grid-column: span 9; }
.cx-calc-span-10 { grid-column: span 10; }
.cx-calc-span-11 { grid-column: span 11; }
.cx-calc-span-12 { grid-column: span 12; }
.cx-calc-field__row { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; }
.cx-calc-field__label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #94a3b8; margin: 0; line-height: 1; }
.cx-calc-field__info { border: 0; background: transparent; color: #cbd5e1; padding: 0; cursor: pointer; display: flex; align-items: center; }
.cx-calc-field__info:hover { color: #3b82f6; }
.cx-calc-help { font-size: 11px; color: #475569; background: #fffbeb; border: 1px solid #fde68a; border-radius: 8px; padding: 8px 12px; margin: 0 0 8px; line-height: 1.5; }
.cx-calc-select-wrap { position: relative; border: 1px solid #e2e8f0; border-radius: 8px; background: #fff; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); overflow: hidden; }
.cx-calc-select-wrap select { width: 100%; border: 0; padding: 10px 36px 10px 16px; font-size: 0.875rem; font-weight: 700; background: transparent; outline: none; cursor: pointer; color: #0f172a; }
.cx-calc-select-wrap .icon { position: absolute; right: 16px; top: 50%; transform: translateY(-50%); color: #2563eb; pointer-events: none; }
.cx-calc-input { width: 100%; border: 1px solid #e2e8f0; border-radius: 8px; padding: 10px 12px; font-size: 0.875rem; font-weight: 700; outline: none; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); color: #0f172a; }
.cx-calc-input:focus { border-color: #3b82f6; }
.cx-calc-range-wrap { display: flex; align-items: center; gap: 12px; }
.cx-calc-input--range { padding: 0; border: 0; box-shadow: none; accent-color: #2563eb; cursor: pointer; }
.cx-calc-input--color { min-height: 42px; padding: 4px; cursor: pointer; }
.cx-calc-range-value { flex-shrink: 0; min-width: 3.5rem; padding: 6px 10px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 0.8125rem; font-weight: 800; text-align: center; }
.cx-calc-input-wrap { display: flex; align-items: stretch; border: 1px solid #e2e8f0; border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); background: #fff; }
.cx-calc-input-wrap:focus-within { border-color: #3b82f6; }
.cx-calc-input--grouped { border: 0; border-radius: 0; box-shadow: none; flex: 1; min-width: 0; }
.cx-calc-input::placeholder { color: #94a3b8; opacity: 1; font-weight: 500; }
.cx-calc-section { border-bottom: 1px solid #f1f5f9; }
.cx-calc-section__title { padding: 16px 20px 0; font-size: 0.875rem; font-weight: 700; color: #0f172a; }
.cx-calc-unit-select { position: relative; flex-shrink: 0; border-left: 1px solid #e2e8f0; background: #f8fafc; }
.cx-calc-unit-select select { border: 0; background: transparent; padding: 10px 26px 10px 10px; font-size: 0.8125rem; font-weight: 700; color: #2563eb; text-transform: none; outline: none; cursor: pointer; appearance: none; width: 65px; min-width: 65px; max-width: 65px; box-sizing: border-box; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cx-calc-unit-select .icon { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); color: #94a3b8; pointer-events: none; }
.cx-calc-field--invalid .cx-calc-input-wrap, .cx-calc-field--invalid > .cx-calc-input { border-color: #ef4444; }
.cx-calc-field__error { margin: 6px 0 0; font-size: 0.6875rem; color: #dc2626; line-height: 1.4; }
.cx-calc-input__addon { flex-shrink: 0; display: flex; align-items: center; padding: 10px 12px; font-size: 0.75rem; font-weight: 700; color: #64748b; background: #f8fafc; }
.cx-calc-input__addon--prefix { border-right: 1px solid #e2e8f0; }
.cx-calc-input__addon--suffix { border-left: 1px solid #e2e8f0; color: #2563eb; font-size: 0.6875rem; }
.cx-unit-toggle { display: flex; background: #f1f5f9; padding: 4px; border-radius: 8px; gap: 4px; }
.cx-unit-toggle button { flex: 1; border: 0; background: transparent; padding: 6px 8px; font-size: 0.75rem; font-weight: 700; border-radius: 6px; color: #64748b; cursor: pointer; transition: color 150ms, background 150ms; }
.cx-unit-toggle button.is-active { background: #fff; color: #2563eb; box-shadow: 0 1px 2px rgb(0 0 0 / 0.08); }
.cx-calc-field__diagram { margin-top: 8px; max-width: 100%; display: flex; justify-content: center; text-align: center; }
.cx-calc-field__diagram[hidden] { display: none !important; }
.cx-calc-field__diagram:not([hidden]) { cursor: zoom-in; }
.cx-calc-field__diagram svg, .cx-calc-field__diagram .calc-diagram-img, .cx-calc-field__diagram .calc-diagram-media { max-width: min(100%, 300px); width: auto; height: auto; display: block; margin-inline: auto; color: #0f172a; }
.cx-calc-diagram-lightbox { position: fixed; inset: 0; z-index: 10000; display: flex; align-items: center; justify-content: center; padding: 56px 16px 16px; box-sizing: border-box; background: rgb(8 10 14 / 0.96); cursor: zoom-out; }
.cx-calc-diagram-lightbox[hidden] { display: none !important; }
.cx-calc-diagram-lightbox__close { position: fixed; top: 12px; right: 12px; z-index: 10001; border: 0; background: transparent; color: #fff; padding: 8px; border-radius: 8px; cursor: pointer; opacity: 0.9; line-height: 0; transition: opacity 150ms, background 150ms; }
.cx-calc-diagram-lightbox__close:hover { opacity: 1; background: rgb(255 255 255 / 0.12); }
.cx-calc-diagram-lightbox__content { position: relative; z-index: 1; width: min(92vw, 960px); max-height: calc(100vh - 72px); margin: 0; padding: 20px; background: #eceff3; border-radius: 4px; cursor: default; overflow: auto; color: #0f172a; box-sizing: border-box; }
.cx-calc-diagram-lightbox__media { display: block; width: 100%; max-width: 100%; height: auto; max-height: calc(100vh - 112px); margin: 0 auto; object-fit: contain; }
.cx-calc-diagram-lightbox__content svg.cx-calc-diagram-lightbox__media { height: auto; overflow: visible; }
.cx-calc-radio-group { display: flex; flex-direction: column; gap: 6px; margin: 0; padding: 0; }
.cx-calc-radio { display: flex; align-items: center; gap: 8px; margin: 0; padding: 1px 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; font-size: 0.875rem; font-weight: 700; color: #0f172a; line-height: 1.35; }
.cx-calc-radio input[type=radio] { width: 15px; height: 15px; margin: 0; flex-shrink: 0; accent-color: #2563eb; cursor: pointer; }
.cx-calc-radio span { flex: 1; min-width: 0; font-size: inherit; font-weight: inherit; color: inherit; text-transform: none; letter-spacing: normal; }
.cx-calc-check { display: flex; align-items: center; gap: 8px; margin: 0; padding: 1px 0; border: 0; background: transparent; box-shadow: none; cursor: pointer; font-size: 0.875rem; font-weight: 700; color: #0f172a; line-height: 1.35; }
.cx-calc-check input[type=checkbox] { width: 15px; height: 15px; margin: 0; flex-shrink: 0; accent-color: #2563eb; cursor: pointer; }
.cx-calc-check > span { flex: 1; min-width: 0; font-size: inherit; font-weight: inherit; color: inherit; text-transform: none; letter-spacing: normal; }
.cx-calc-field--compact + .cx-calc-field--compact { margin-top: 0; }
.cx-calc-fields-stack .cx-calc-field--compact + .cx-calc-field--compact { margin-top: -10px; }
.cx-calc-fields-grid .cx-calc-span-12.cx-calc-field--compact + .cx-calc-span-12.cx-calc-field--compact { margin-top: -10px; }
.cx-calc-field:has(.cx-calc-radio-group) .cx-calc-field__row { margin-bottom: 6px; }
.cx-calc-computed__value { font-size: 0.875rem; font-weight: 700; color: #0f172a; font-variant-numeric: tabular-nums; }
.cx-calc-computed .cx-calc-field__label { margin-bottom: 8px; }
.cx-calc-result { background: linear-gradient(to bottom right, #2563eb, #1d4ed8); padding: 24px; color: #fff; }
.cx-calc-result-block + .cx-calc-result-block { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgb(255 255 255 / 0.15); }
.cx-calc-result-block--secondary .cx-calc-result__value { font-size: 1rem; font-weight: 700; letter-spacing: 0; opacity: 0.9; }
.cx-calc-result__head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.cx-calc-result__label { font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; opacity: 0.7; margin: 0; }
.cx-calc-result__icon { opacity: 0.5; flex-shrink: 0; }
.cx-calc-result__value-row { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; margin: 4px 0 0; }
.cx-calc-result__value { font-size: 3rem; font-weight: 900; line-height: 1; letter-spacing: -0.025em; font-variant-numeric: tabular-nums; }
.cx-calc-result__prefix, .cx-calc-result__suffix { font-size: 1.25rem; font-weight: 700; opacity: 0.9; text-transform: uppercase; }
.cx-calc-result__unit-select { position: relative; flex-shrink: 0; }
.cx-calc-result__unit-select select { border: 0; background: transparent; color: #fff; font-size: 1.25rem; font-weight: 700; text-transform: none; opacity: 0.9; padding: 0 20px 0 4px; cursor: pointer; appearance: none; outline: none;  width: 65px; min-width: 65px; max-width: 65px; }
.cx-calc-result__unit-select select option { color: #0f172a; text-transform: none; }
.cx-calc-result__unit-select .icon { position: absolute; right: 0; top: 50%; transform: translateY(-50%); opacity: 0.6; pointer-events: none; }
.cx-calc-result__msg { margin: 12px 0 0; font-size: 11px; opacity: 0.8; line-height: 1.4; }
.cx-calc-result__msg b { color: #fff; font-weight: 700; }
.cx-calc-result__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.cx-calc-result__actions--with-save { grid-template-columns: 1fr 1fr 1fr; }
.cx-calc-result__share, .cx-calc-result__reset, .cx-calc-result__save { border: 0; border-radius: 8px; padding: 8px; font-size: 0.75rem; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background 150ms; position: relative; }
.cx-calc-result__share { background: #3b82f6; color: #fff; }
.cx-calc-result__share:hover { background: #60a5fa; }
.cx-calc-result__reset { background: rgb(255 255 255 / 0.1); color: #fff; }
.cx-calc-result__reset:hover { background: rgb(255 255 255 / 0.2); }
.cx-calc-result__save { background: rgb(255 255 255 / 0.1); color: #fff; font-family: inherit; width: 100%; }
.cx-calc-result__save:hover { background: rgb(255 255 255 / 0.2); }
.cx-calc-result__save.is-saved { background: rgb(255 255 255 / 0.18); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.35); }
.cx-calc-result__save-label { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cx-calc-result__save-badge {
  position: absolute; top: -6px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 999px; background: #fbbf24; color: #0f172a; font-size: 10px; font-weight: 800; line-height: 18px;
}
.cx-calc-save-modal__panel {
  max-height: min(32rem, calc(100vh - 32px)); display: flex; flex-direction: column; padding-bottom: 0;
}
.cx-calc-save-modal__body {
  padding: 0 24px 24px; display: flex; flex-direction: column; gap: 10px; min-height: 0; flex: 1 1 auto;
}
.cx-calc-save-modal__loading, .cx-calc-save-modal__empty { margin: 0; font-size: 12px; color: #64748b; }
.cx-calc-save-modal__lists {
  list-style: none; margin: 0; padding: 0; max-height: min(240px, calc(100vh - 280px));
  overflow-y: auto; display: grid; gap: 6px; flex-shrink: 1; min-height: 0;
}
.cx-calc-save-modal__item {
  display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center;
  padding: 8px 10px; border-radius: 8px; border: 1px solid #f1f5f9; background: #f8fafc; cursor: pointer; font-size: 13px;
}
.cx-calc-save-modal__item:hover { border-color: #bfdbfe; background: #eff6ff; }
.cx-calc-save-modal__item input { width: 16px; height: 16px; accent-color: #2563eb; }
.cx-calc-save-modal__item small { font-size: 11px; font-weight: 700; color: #94a3b8; }
.cx-calc-save-modal__create {
  display: grid; grid-template-columns: 1fr auto; gap: 8px; border-top: 1px solid #f1f5f9; padding-top: 10px; flex-shrink: 0;
}
.cx-calc-save-modal__create input {
  min-width: 0; padding: 8px 10px; border: 1px solid #e2e8f0; border-radius: 8px; font: inherit; font-size: 13px;
}
.cx-calc-save-modal__create-btn {
  border: 0; border-radius: 8px; padding: 8px 12px; background: #0f172a; color: #fff; font-size: 12px; font-weight: 700; cursor: pointer; font-family: inherit;
}
.cx-calc-save-modal__create-btn:hover { background: #2563eb; }
@media (max-width: 380px) {
  .cx-calc-result__actions--with-save { grid-template-columns: 1fr 1fr; }
  .cx-calc-result__save { grid-column: 1 / -1; }
}
.cx-calc-article { background: #fff; padding: 24px 16px; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; margin-bottom: 24px; }
@media (min-width: 640px) { .cx-calc-article { padding: 32px; border: 1px solid #e2e8f0; border-radius: 16px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); margin-bottom: 40px; } }
.cx-calc-article > h1 { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
@media (min-width: 1024px) {
  .cx-calc-article > h1 {
    position: static; width: auto; height: auto; margin: 0 0 16px; overflow: visible; clip: auto; white-space: normal;
    display: block; font-size: 2.25rem; font-weight: 800; color: #0f172a; letter-spacing: -0.025em; line-height: 1.1;
  }
}
.cx-calc-article__intro { font-size: 1rem; font-weight: 500; color: #64748b; font-style: italic; margin: 0 0 24px; line-height: 1.5; }
.cx-calc-summary { margin: 0 0 24px; padding: 16px 18px; border: 1px solid #bfdbfe; border-left: 4px solid #2563eb; border-radius: 12px; background: #eff6ff; color: #1e3a8a; }
.cx-calc-summary__label { margin: 0 0 8px; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.1em; color: #2563eb; }
.cx-calc-summary p:last-child { margin: 0; font-size: 0.9375rem; line-height: 1.65; font-weight: 600; }
.cx-calc-test-notes { padding: 0 16px 24px; margin-bottom: 0; }
@media (min-width: 640px) { .cx-calc-test-notes { padding: 0 0 40px; } }
.cx-calc-test-notes h2 { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #0f172a; }
.cx-calc-test-notes h2 .icon { color: #2563eb; }
.cx-calc-test-notes__box { background: #fff; border: 1px solid #dbeafe; border-radius: 16px; padding: 18px 20px; color: #475569; font-size: 0.875rem; line-height: 1.7; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
@media (max-width: 639px) { .cx-calc-test-notes__box { border-left: 0; border-right: 0; border-radius: 0; } }
.cx-calc-faq { margin-bottom: 24px; padding: 0 16px; }
@media (min-width: 640px) { .cx-calc-faq { padding: 0; margin-bottom: 40px; } }
.cx-calc-faq h2, .cx-calc-related h2, .cx-calc-refs h2 { font-size: 1.25rem; font-weight: 900; letter-spacing: -0.01em; display: flex; align-items: center; gap: 10px; margin: 0 0 20px; color: #0f172a; }
.cx-calc-faq h2 .icon, .cx-calc-related h2 .icon { color: #2563eb; }
.cx-calc-faq details { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; margin-bottom: 12px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
@media (max-width: 639px) { .cx-calc-faq details { border-left: 0; border-right: 0; border-radius: 0; } }
.cx-calc-faq summary { padding: 20px; font-weight: 700; font-size: 1rem; color: #1e293b; cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; transition: color 150ms; }
.cx-calc-faq__question { flex: 1 1 auto; min-width: 0; }
.cx-calc-faq__question mjx-container[jax="SVG"] { display: inline-block; width: auto; max-width: 100%; margin: 0; vertical-align: -0.15em; }
.cx-calc-faq summary:hover { color: #2563eb; }
.cx-calc-faq summary::-webkit-details-marker { display: none; }
.cx-calc-faq details[open] summary .acc-chevron { transform: rotate(180deg); }
.cx-calc-faq details > div { padding: 0 20px 20px; font-size: 0.875rem; color: #475569; line-height: 1.625; border-top: 1px solid #f1f5f9; padding-top: 16px; }
.cx-calc-related { padding: 0 16px 40px; margin-bottom: 0; }
@media (min-width: 640px) { .cx-calc-related { padding: 0 0 40px; } }
.cx-calc-related__grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
@media (min-width: 640px) { .cx-calc-related__grid { grid-template-columns: 1fr 1fr; } }
.cx-calc-related__card { display: flex; gap: 16px; padding: 16px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; text-decoration: none; color: inherit; transition: border-color 150ms, box-shadow 150ms; }
@media (max-width: 639px) { .cx-calc-related__card { border-left: 0; border-right: 0; border-radius: 0; } }
.cx-calc-related__card:hover { border-color: #60a5fa; box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1); }
.cx-calc-related__card h3 { margin: 0; font-size: 0.875rem; font-weight: 700; line-height: 1.25; color: #0f172a; transition: color 150ms; }
.cx-calc-related__card:hover h3 { color: #2563eb; }
.cx-calc-related__card p { margin: 4px 0 0; font-size: 0.75rem; line-height: 1.5; color: #64748b; }
.cx-calc-refs { padding: 0 16px 40px; }
@media (min-width: 640px) { .cx-calc-refs { padding: 0 0 40px; } }
.cx-calc-refs__box { background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; overflow: hidden; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
@media (max-width: 639px) { .cx-calc-refs__box { border-left: 0; border-right: 0; border-radius: 0; } }
.cx-calc-refs__banner { display: flex; align-items: center; gap: 8px; padding: 12px 20px; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.cx-calc-refs__banner p { margin: 0; font-size: 10px; font-weight: 900; text-transform: uppercase; letter-spacing: 0.08em; color: #94a3b8; line-height: 1.4; }
.cx-calc-refs__banner .icon { color: #94a3b8; flex-shrink: 0; }
.cx-calc-refs__list { list-style: none; margin: 0; padding: 0; }
.cx-calc-refs__list > li { display: flex; gap: 16px; padding: 16px 20px; border-bottom: 1px solid #f1f5f9; transition: background 150ms; }
.cx-calc-refs__list > li:last-child { border-bottom: 0; }
.cx-calc-refs__list > li:hover { background: #f8fafc; }
.cx-calc-refs__num { flex-shrink: 0; width: 24px; height: 24px; border-radius: 999px; background: #eff6ff; color: #2563eb; font-size: 11px; font-weight: 900; display: flex; align-items: center; justify-content: center; margin-top: 2px; }
.cx-calc-refs__body { min-width: 0; }
.cx-calc-refs__title { margin: 0; font-size: 0.875rem; font-weight: 600; color: #1e293b; line-height: 1.375; }
.cx-calc-refs__desc { margin: 4px 0 0; font-size: 0.75rem; color: #64748b; line-height: 1.5; }
.cx-calc-refs__body .cx-ext-link { display: inline-flex; align-items: center; gap: 4px; margin-top: 6px; font-size: 0.75rem; font-weight: 600; color: #2563eb; text-decoration: none; }
.cx-calc-refs__body .cx-ext-link:hover { text-decoration: underline; }
.cx-calc-updated { padding: 0 16px 32px; font-size: 0.75rem; color: #64748b; display: flex; align-items: center; gap: 6px; }
@media (min-width: 640px) { .cx-calc-updated { padding: 0 0 32px; } }
.cx-calc-meta { margin: 0 16px 32px; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 16px 20px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; box-shadow: 0 1px 2px rgb(0 0 0 / 0.05); }
@media (max-width: 639px) { .cx-calc-meta { border-left: 0; border-right: 0; border-radius: 0; } }
@media (min-width: 640px) { .cx-calc-meta { margin: 0 0 32px; } }
.cx-calc-meta__row { display: flex; align-items: center; gap: 8px; font-size: 0.75rem; color: #64748b; line-height: 1.5; }
.cx-calc-meta__row .icon { color: #94a3b8; flex-shrink: 0; }
.cx-calc-meta__date { font-weight: 600; color: #334155; }
.cx-calc-meta__sep { display: none; width: 1px; height: 12px; background: #e2e8f0; }
@media (min-width: 640px) { .cx-calc-meta__sep { display: block; } }
.cx-calc-field__info.is-active { color: #2563eb; }
.cx-calc-partner { margin-top: 12px; font-size: 0.8125rem; opacity: 0.9; line-height: 1.45; }
.cx-calc-partner a { color: #bfdbfe; font-weight: 600; text-decoration: none; }
.cx-calc-partner a:hover { text-decoration: underline; }
.cx-calc-partner strong { font-weight: 700; }
.cx-calc-partner small { opacity: 0.85; }
.cx-ad-slot { display: none; flex-shrink: 0; background: #fff; border: 1px solid #e2e8f0; align-items: center; justify-content: center; color: #cbd5e1; font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; text-align: center; }
.cx-ad-slot--left, .cx-ad-slot--right { width: 300px; height: 600px; border-radius: 12px; }
@media (min-width: 1536px) { .cx-ad-slot--left { display: flex; } }
@media (min-width: 1280px) { .cx-ad-slot--right { display: flex; } }
.cx-ad-slot__vlabel { writing-mode: vertical-lr; transform: rotate(180deg); }
.cx-ad-slot--banner { display: flex; width: 100%; height: 250px; border-radius: 16px; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
@media (min-width: 640px) { .cx-ad-slot--banner { border: 1px solid #e2e8f0; } }
.cx-ad-slot--inline { display: flex; width: 100%; height: 100px; margin: 32px 0; border-radius: 12px; background: #f8fafc; color: #94a3b8; }
