/* Responsive workspace; existing calculation and document styles remain shared. */
:root { color: #172d45; background: #f3f6f8; font-family: ui-sans-serif, system-ui, sans-serif; }
body { padding: 32px 24px; }
.app { max-width: 1040px; }
.hero { padding: 12px 0 24px; }
.hero h1 { font-size: clamp(2.5rem, 6vw, 3.75rem); line-height: 1.1; }
.hero > p:not(.eyebrow) { line-height: 1.65; color: #526476; max-width: 610px; }
.eyebrow { color: #08735b; font-size: .8rem; }
.workflow-nav { display: flex; gap: 8px; margin: 0 0 24px; }
.workflow-nav a { flex: 1; text-align: center; padding: 14px 10px; border: 1px solid #d5dfe6; border-radius: 12px; color: #244268; background: #fff; text-decoration: none; font-weight: 700; }
.panel { border-color: #dbe3e9; box-shadow: 0 5px 20px #172d4505; padding: 28px; }
.stage-heading p, .result-heading p { color: #526476; line-height: 1.55; }
.stage-number { background: #e6f4ee; color: #08735b; }
.dek-row { background: #f8fafb; padding: 16px; }
.operation-grid { grid-template-columns: minmax(150px, .9fr) minmax(160px, 1fr) minmax(150px, 1fr) 44px; }
label { font-size: .9375rem; line-height: 1.5; color: #344a60; }
input, select { font-size: 1rem; min-height: 48px; }
input[type=checkbox] { min-height: 20px; flex-shrink: 0; }
input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #08735b; outline-offset: 3px; }
#globalSettings > p, #paymentNote, .export-hint { color: #526476; font-size: .9375rem; line-height: 1.6; }
#reportRateLabel { display: grid; gap: 8px; }
#reportRate { border: 1px solid #cbd5e1; border-radius: 12px; background: #fff; }
.gross-total { background: #eaf5f0; }
.gross-total strong { color: #08735b; }
.result-heading { border-top: 1px solid #dbe3e9; padding-top: 28px; margin-top: 28px; scroll-margin-top: 20px; }
.result-heading h2 { margin: 8px 0; font-size: 1.5rem; }
.result-heading > p:last-child { margin-bottom: 0; }
.summary-list { margin-top: 16px; }
.summary-list .summary-total { background: #eaf5f0; border-color: #b7d8c8; }
.summary-total strong { color: #08735b; }
.advanced-options { border: 1px solid #dbe3e9; border-radius: 14px; margin-top: 24px; padding: 0 16px 16px; }
.advanced-options:not([open]) { padding-bottom: 0; }
.advanced-options summary { padding: 18px 0; cursor: pointer; font-weight: 700; color: #344a60; }
.settlement { margin-top: 8px; }
.settlement p, .swap-summary-heading small { font-size: .875rem; color: #526476; }
.report-actions { grid-template-columns: 1fr 1fr; }
#exportPdf { grid-column: 1 / -1; grid-row: 1; background: #08735b; font-size: 1rem; min-height: 52px; }
#exportBothPdf { grid-column: 1 / -1; border-color: #08735b; color: #08735b; }
button { min-height: 44px; font-size: .9375rem; }
button:disabled { opacity: .6; }
.skip-link { position: absolute; left: 16px; top: -100px; background: white; padding: 12px; z-index: 20; }
.skip-link:focus { top: 16px; }
#operations, #globalSettings { scroll-margin-top: 20px; }
@media (max-width: 760px) {
 body { padding: 20px 12px; }
 .hero { padding: 4px 6px 20px; }
 .panel { padding: 20px 16px; border-radius: 16px; }
 .stage-heading { align-items: flex-start; gap: 10px; }
 .stage-heading h2 { font-size: 1.2rem; }
 .stage-heading p { font-size: .9375rem; }
 .stage-number { flex-basis: 34px; height: 34px; border-radius: 10px; }
 .workflow-nav { gap: 6px; }
 .workflow-nav a { font-size: .875rem; padding: 12px 6px; }
 .operation-grid { grid-template-columns: minmax(0, 1fr) 44px; gap: 12px; }
 .operation-grid label { grid-column: 1 / -1; min-width: 0; }
 .operation-grid label:nth-of-type(3) { grid-row: 1; grid-column: 1; }
 .operation-grid button { grid-row: 1; grid-column: 2; }
 .dek-amount { font-size: 1.25rem; font-weight: 750; }
 .gross-total { padding: 16px; flex-direction: row; align-items: center; }
 .gross-total strong { font-size: 1.2rem; overflow-wrap: anywhere; }
 .summary-list > div, .swap-summary > div { gap: 10px; }
 .summary-list span { font-size: .9375rem; }
 .summary-list strong { overflow-wrap: anywhere; min-width: 0; }
 .summary-list .swap-summary { padding: 12px; }
 .summary-list .summary-total { padding: 16px; }
 .report-actions { position: static; background: #fff; padding: 12px 0 max(12px, env(safe-area-inset-bottom)); border-top: 1px solid #dbe3e9; }
 .advanced-options { padding-left: 12px; padding-right: 12px; }
 .settlement { padding: 12px; }
}
@media print { .skip-link { display: none; } }
