.header-nav { display: flex; align-items: center; gap: 24px; }
.header-nav a { color: #526074; font-size: 14px; font-weight: 750; text-decoration: none; }
.header-nav a:hover { color: var(--blue); }
.hero-badges { margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.hero-badges li { padding: 8px 12px; border: 1px solid rgba(1,98,247,.12); border-radius: 999px; color: #0759b5; background: rgba(255,255,255,.72); font-size: 11px; font-weight: 800; }
.card-heading, .result-top, .structure-head, .table-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.card-heading { margin-bottom: 22px; }
.card-heading .section-title { margin: 0; font-size: 25px; }
.card-heading > span, .table-heading > span { padding-top: 3px; color: #7a8494; font-size: 11px; }
.result-top > span { padding: 6px 9px; border-radius: 999px; color: #d9eaff; background: rgba(121,189,246,.2); font-size: 9px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }

.field-range { --range-progress: 10%; width: calc(100% - 6px); height: 4px; margin: 2px 3px 0; border-radius: 999px; appearance: none; background: linear-gradient(to right, var(--sky) 0 var(--range-progress), #cbd1d9 var(--range-progress) 100%); cursor: pointer; }
.field-range::-webkit-slider-thumb { width: 17px; height: 17px; border: 3px solid #fff; border-radius: 50%; appearance: none; background: var(--sky); box-shadow: 0 1px 5px rgba(8,29,59,.22); }
.field-range::-moz-range-thumb { width: 12px; height: 12px; border: 3px solid #fff; border-radius: 50%; background: var(--sky); box-shadow: 0 1px 5px rgba(8,29,59,.22); }
.range-meta { display: flex; justify-content: space-between; gap: 12px; color: #778195; font-size: 10px; }
.range-meta strong { color: var(--ink); text-align: center; }
.mode-choice .choice span { min-height: 50px; }

.owners-field { margin-top: 4px; }
.owners-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; }
.owners-heading > div { display: grid; gap: 4px; }
.owners-heading small { color: #778195; font-size: 10px; }
.equal-button { min-height: 35px; padding: 7px 12px; border: 1px solid #cbd4df; border-radius: 999px; color: var(--blue); background: #fff; font-size: 10px; font-weight: 800; cursor: pointer; }
.equal-button:hover { border-color: var(--sky); background: #eef6ff; }
.dynamic-list { display: grid; gap: 9px; }
.owner-row { padding: 11px; border: 1px solid #d9dee5; border-radius: 16px; display: grid; grid-template-columns: minmax(125px, 1.35fr) 118px 108px 76px 34px; align-items: center; gap: 8px; background: #fff; }
.owner-row input { min-width: 0; width: 100%; height: 42px; border: 1px solid #d5dbe3; border-radius: 10px; color: var(--ink); background: #fff; font: inherit; font-size: 12px; font-weight: 750; }
.owner-row input:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 3px rgba(41,152,255,.11); }
.owner-identity { min-width: 0; display: grid; gap: 4px; }
.owner-identity > span { color: #778195; font-size: 9px; font-weight: 750; }
.owner-name { padding: 0 10px; }
.fraction-inputs { display: grid; grid-template-columns: 1fr 12px 1fr; align-items: center; gap: 3px; }
.fraction-inputs input { padding: 0 6px; text-align: center; }
.fraction-inputs span { color: #687486; text-align: center; }
.percent-input { position: relative; }
.percent-input input { padding: 0 28px 0 9px; }
.percent-input > span { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); color: #687486; font-size: 11px; font-weight: 750; }
.fraction-mode .percent-input { display: none; }
.percentage-mode .fraction-inputs { display: none; }
.fraction-mode .owner-row { grid-template-columns: minmax(125px, 1.35fr) 118px 76px 34px; }
.percentage-mode .owner-row { grid-template-columns: minmax(125px, 1.35fr) 108px 76px 34px; }
.owner-preview { min-width: 0; display: grid; gap: 2px; text-align: right; }
.owner-preview strong { font-size: 12px; white-space: nowrap; }
.owner-preview span { color: #7a8494; font-size: 8px; text-transform: uppercase; }
.remove-button { width: 34px; height: 34px; border: 1px solid #d8dee6; border-radius: 10px; color: #8b95a4; background: #fff; font-size: 19px; line-height: 1; cursor: pointer; }
.remove-button:hover { border-color: #ff9e93; color: #e4574a; background: #fff4f2; }
.add-button { width: 100%; min-height: 46px; margin-top: 1px; border: 1px dashed #aeb9c7; border-radius: 14px; color: var(--blue); background: rgba(255,255,255,.55); font-size: 11px; font-weight: 800; cursor: pointer; }
.add-button span { margin-right: 5px; font-size: 17px; font-weight: 500; vertical-align: -1px; }
.add-button:hover { border-color: var(--sky); background: #eef6ff; }

.summary-bar, .structure-bar { height: 13px; border-radius: 999px; display: flex; overflow: hidden; background: rgba(255,255,255,.09); }
.summary-bar { margin-top: 24px; }
.summary-bar span, .structure-bar span { height: 100%; display: block; transition: width .35s ease; }
.remainder-segment { background: repeating-linear-gradient(135deg, #dfe5ec 0 7px, #f2f5f8 7px 14px) !important; }
.compact-results { margin-top: 20px; }
.microshare-warning { margin-top: 16px; padding: 13px; border-left: 2px solid #ffb35c; display: grid; gap: 3px; color: #dce7f4; background: rgba(255,181,92,.12); }
.microshare-warning strong { font-size: 11px; }
.microshare-warning span { color: #aab9ca; font-size: 9px; line-height: 1.45; }

.structure-section, .table-section, .meaning-section, .seo-content { margin-top: 24px; border: 1px solid #e0e5eb; border-radius: 30px; background: #fff; box-shadow: 0 18px 45px rgba(8,29,59,.05); }
.structure-section { padding: 36px; }
.structure-head h2, .table-heading h2, .meaning-section h2, .seo-content h2 { margin: 0; font-size: 32px; letter-spacing: -.04em; }
.structure-head p:not(.eyebrow) { max-width: 720px; margin: 9px 0 0; color: #5f6b7d; font-size: 13px; line-height: 1.55; }
.structure-summary { min-width: 168px; padding: 14px 16px; border-radius: 17px; display: grid; gap: 4px; color: #b7c5d6; background: var(--navy); }
.structure-summary span { font-size: 8px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; }
.structure-summary strong { color: #fff; font-size: 23px; }
.owner-cards { margin-top: 24px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.owner-card { min-width: 0; padding: 16px; border: 1px solid #dfe4ea; border-radius: 17px; background: #f8fafc; }
.owner-card > div:first-child { display: grid; grid-template-columns: 9px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.owner-card i { width: 9px; height: 9px; border-radius: 50%; }
.owner-card b { font-size: 13px; }
.owner-card > div:last-child { margin-top: 14px; display: grid; grid-template-columns: .7fr .9fr 1.2fr; gap: 8px; }
.owner-card span { min-width: 0; display: grid; gap: 4px; }
.owner-card small { color: #7c8796; font-size: 8px; text-transform: uppercase; }
.owner-card span strong { overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.structure-bar { height: 18px; margin-top: 24px; background: #eef1f5; }
.structure-legend { margin-top: 10px; display: flex; flex-wrap: wrap; gap: 12px; color: #697487; font-size: 9px; }
.structure-legend span { display: inline-flex; align-items: center; gap: 5px; }
.structure-legend i { width: 7px; height: 7px; border-radius: 50%; }
.structure-legend b { font-weight: 650; }
.remainder-legend i { border: 1px solid #c5cdd7; background: #eef1f5; }

.table-section { padding: 30px; }
.table-heading { align-items: end; margin-bottom: 20px; }
.table-scroll { overflow-x: auto; border: 1px solid #dde3ea; border-radius: 18px; }
table { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 11px; }
th, td { padding: 13px 16px; border-bottom: 1px solid #e3e7ec; text-align: right; white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
thead th { color: #647084; background: #f7f9fb; font-size: 9px; text-transform: uppercase; letter-spacing: .05em; }
tbody th { font-size: 11px; }
tfoot th { border-bottom: 0; color: var(--ink); background: #edf5ff; font-weight: 850; }

.calculation-actions { margin-top: 18px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 9px; }
.calculation-actions button, .calculation-actions a { min-height: 48px; padding: 10px 13px; border: 1px solid #d5dbe3; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: #536074; background: #fff; font-size: 11px; font-weight: 750; text-decoration: none; cursor: pointer; }
.calculation-actions button:hover, .calculation-actions a:hover { border-color: var(--sky); color: var(--blue); }
.calculation-actions .report-error { color: #e94f4f; }
.action-icon { position: relative; width: 20px; height: 20px; flex: 0 0 20px; display: inline-block; color: var(--sky); }
.icon-save { border: 1.7px solid currentColor; border-radius: 2px; }
.icon-save::before { content: ""; position: absolute; top: 1px; left: 4px; width: 8px; height: 5px; border: 1.5px solid currentColor; border-top: 0; }
.icon-save::after { content: ""; position: absolute; right: 3px; bottom: 2px; left: 3px; height: 6px; border: 1.5px solid currentColor; border-radius: 1px; }
.icon-link::before, .icon-link::after { content: ""; position: absolute; width: 11px; height: 7px; border: 1.7px solid currentColor; border-radius: 5px; transform: rotate(-38deg); }
.icon-link::before { top: 3px; right: 0; }
.icon-link::after { bottom: 3px; left: 0; }
.icon-print::before { content: ""; position: absolute; top: 6px; left: 1px; width: 18px; height: 10px; border: 1.7px solid currentColor; border-radius: 3px; }
.icon-print::after { content: ""; position: absolute; top: 1px; left: 5px; width: 10px; height: 16px; border: 1.7px solid currentColor; background: #fff; box-shadow: 0 7px 0 -5px currentColor; }
.icon-pdf { width: 17px; height: 20px; border: 1.7px solid currentColor; border-radius: 2px; }
.icon-pdf::before { content: "PDF"; position: absolute; right: -4px; bottom: 2px; padding: 1px 2px; border-radius: 2px; color: #fff; background: var(--sky); font-size: 6px; font-weight: 900; line-height: 1.2; }
.icon-pdf::after { content: ""; position: absolute; top: -2px; right: -2px; width: 6px; height: 6px; border-bottom: 1.5px solid currentColor; border-left: 1.5px solid currentColor; background: #fff; }
.icon-error { width: 20px; height: 20px; border: 1.7px solid currentColor; border-radius: 50%; }
.icon-error::before { content: "!"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 12px; font-weight: 900; line-height: 1; }
.action-status { min-height: 17px; margin: 8px 0 0; color: #687486; font-size: 10px; text-align: center; }

.meaning-section { padding: 34px; display: grid; grid-template-columns: .8fr 1.2fr; align-items: center; gap: 34px; }
.meaning-section > div:first-child p:not(.eyebrow) { color: #5c6879; font-size: 13px; line-height: 1.6; }
.meaning-facts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; }
.meaning-facts article { padding: 16px; border-radius: 17px; background: #f1f6fc; }
.meaning-facts span { color: var(--blue); font-size: 20px; font-weight: 850; }
.meaning-facts strong { margin-top: 8px; display: block; font-size: 12px; }
.meaning-facts p { margin: 6px 0 0; color: #687486; font-size: 9px; line-height: 1.45; }

.seo-content { padding: 48px; box-shadow: none; }
.seo-content-intro { max-width: 860px; }
.seo-content p, .seo-content li { color: #4f5d70; font-size: 14px; line-height: 1.68; }
.seo-content a { color: var(--blue); }
.seo-section { margin-top: 42px; }
.seo-columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 34px; }
.formula-section { padding: 30px; border-radius: 24px; display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; background: #f1f6fc; }
.formula { margin: 8px 0; padding: 12px 14px; border-radius: 12px; color: var(--ink) !important; background: #fff; font-weight: 800; }
.formula-example { padding: 20px; border-radius: 18px; display: grid; align-content: center; gap: 7px; color: #fff; background: var(--navy); }
.formula-example span { color: #9eb0c4; font-size: 9px; text-transform: uppercase; }
.formula-example strong { font-size: 18px; }
.formula-example b { color: #79bdf6; font-size: 30px; }
.formula-example small { color: #aab9ca; font-size: 10px; }
.legal-section { padding: 30px; border-radius: 24px; display: grid; grid-template-columns: 1.25fr .75fr; align-items: center; gap: 30px; background: linear-gradient(115deg, #fff0ec, #eef5ff); }
.legal-card { padding: 20px; border-radius: 18px; display: grid; gap: 7px; background: rgba(255,255,255,.78); }
.legal-card span { color: var(--blue); font-size: 9px; font-weight: 850; text-transform: uppercase; }
.legal-card strong { font-size: 20px; }
.legal-card p { margin: 0; font-size: 11px; }
.sale-section { padding: 30px; border-radius: 24px; display: flex; align-items: end; justify-content: space-between; gap: 28px; color: #fff; background: linear-gradient(145deg, #071b38, #0b2d55); }
.sale-section h2 { color: #fff; }
.sale-section p { color: #bcc8d6; }
.text-cta { flex: 0 0 auto; padding: 13px 17px; border-radius: 999px; color: #fff !important; background: var(--sky); font-size: 11px; font-weight: 800; text-decoration: none; }
.faq-section { margin-top: 44px; }
.faq-list { margin-top: 20px; border-top: 1px solid #e1e5ea; }
.faq-list details { border-bottom: 1px solid #e1e5ea; }
.faq-list summary { padding: 18px 0; color: var(--ink); font-size: 14px; font-weight: 800; cursor: pointer; }
.faq-list details p { margin: -3px 0 18px; }
.sources { margin-top: 34px; padding-top: 22px; border-top: 1px solid #e2e6eb; font-size: 11px !important; }
.legal-note { font-size: 11px !important; }

@media (max-width: 980px) {
  .owner-row, .fraction-mode .owner-row, .percentage-mode .owner-row { grid-template-columns: minmax(125px, 1.4fr) 110px 72px 34px; }
  .owner-cards { grid-template-columns: 1fr 1fr; }
  .calculation-actions { grid-template-columns: repeat(3, 1fr); }
  .meaning-section { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .header-nav a:first-child { display: none; }
  .hero-badges { gap: 6px; }
  .hero-badges li { padding: 7px 9px; font-size: 9px; }
  .card-heading > span, .table-heading > span { display: none; }
  .owners-heading { align-items: center; }
  .owner-row, .fraction-mode .owner-row, .percentage-mode .owner-row { grid-template-columns: minmax(0, 1fr) 98px 64px 32px; padding: 9px; gap: 6px; }
  .owner-row input { height: 40px; font-size: 11px; }
  .owner-identity > span { display: none; }
  .owner-name { padding-inline: 8px; }
  .remove-button { width: 32px; height: 32px; }
  .structure-section, .table-section, .meaning-section, .seo-content { padding: 24px 20px; }
  .structure-head { display: grid; }
  .structure-summary { width: 100%; }
  .structure-head h2, .table-heading h2, .meaning-section h2, .seo-content h2 { font-size: 27px; }
  .owner-cards, .seo-columns, .formula-section, .legal-section { grid-template-columns: 1fr; }
  .owner-card > div:last-child { grid-template-columns: .7fr .8fr 1.3fr; }
  .meaning-facts { grid-template-columns: 1fr; }
  .sale-section { display: grid; }
  .text-cta { text-align: center; }
  .calculation-actions { grid-template-columns: 1fr 1fr; }
  .calculation-actions #saveButton, .calculation-actions #printButton, .calculation-actions #pdfButton { display: none; }
  .calculation-actions a, .calculation-actions button { min-width: 0; padding-inline: 8px; font-size: 10px; }
}
@media (max-width: 430px) {
  .owner-row, .fraction-mode .owner-row, .percentage-mode .owner-row { grid-template-columns: minmax(0, 1fr) 88px 56px 30px; }
  .fraction-inputs { grid-template-columns: 1fr 8px 1fr; }
  .owner-preview strong { font-size: 10px; }
  .equal-button { padding-inline: 9px; }
}
@media print {
  .site-header, .breadcrumbs, .result-actions, .calculation-actions, .meaning-section, .site-footer { display: none !important; }
  body { background: #fff; }
  .page { width: 100%; padding: 0; }
  .hero, .input-card, .result-card, .structure-section, .table-section, .seo-content { break-inside: avoid; box-shadow: none; }
  .result-card { position: static; color-adjust: exact; -webkit-print-color-adjust: exact; }
}
