.studio-name + .lang{margin-left:auto}
.trade-demo{min-width:0;width:100%;max-width:490px;justify-self:end;background:#fff;border:1px solid #dce7f4;border-radius:16px;overflow:hidden;color:#14263d;text-align:left;font-variant-numeric:tabular-nums}
.trade-demo-head{padding:22px 26px 16px;border-bottom:1px solid #dce7f4}
.trade-demo-head h2{font-size:19px;line-height:1.5;margin:0;font-weight:700;color:#002a5c}
.trade-demo-head p{font-size:12px;line-height:1.6;color:#5f7288;margin:5px 0 0}
.trade-demo-route{padding:16px 26px 8px}
.trade-demo-route>span{display:block;color:#5f7288;font-size:11px;margin-bottom:6px}
.trade-demo-route strong{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:14px;line-height:1.5}
.trade-demo-route svg{width:20px;height:20px;color:#0064cf;flex-shrink:0}
.trade-demo-costs{padding:0 26px;margin:8px 0 14px}
.demo-line{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px solid #dce7f4;animation:demo-cost-1 8s ease-out infinite}
.demo-line-2{animation-name:demo-cost-2}.demo-line-3{animation-name:demo-cost-3}
.demo-line dt{font-size:13px}.demo-line dd{margin:0;white-space:nowrap;font-size:15px;font-weight:600}.demo-line small{font-size:10px;color:#5f7288;font-weight:400}
.trade-demo-total{margin:0 16px;padding:16px 10px;display:flex;justify-content:space-between;align-items:center;gap:10px;background:#f4f9ff;border-radius:8px;animation:demo-total 8s ease-out infinite}
.trade-demo-total span{display:block;font-size:12px;color:#002a5c}.trade-demo-total strong{display:block;font-size:28px;line-height:1.4;color:#002a5c}.trade-demo-total small{font-size:12px;font-weight:500}.trade-demo-total p{margin:0;text-align:right;font-size:11px;line-height:1.8;color:#5f7288}.trade-demo-total b{font-size:12px;color:#002a5c}
.trade-demo-docs{padding:16px 26px 0}.trade-demo-docs h3{font-size:13px;margin:0 0 8px;line-height:1.6;font-weight:600}
.demo-document{display:flex;gap:10px;align-items:center;padding:6px 0;font-size:12px;animation:demo-document-0 8s ease-out infinite}
.demo-document-1{animation-name:demo-document-1}.demo-document-2{animation-name:demo-document-2}
.demo-doc-code{display:grid;place-items:center;width:27px;height:30px;border:1px solid #dce7f4;border-radius:3px;color:#0064cf;font-size:10px;font-weight:700;flex-shrink:0}
.demo-doc-check{margin-left:auto;color:#13755a}.demo-doc-check svg{display:block;width:17px;height:17px}
.trade-demo-foot{display:flex;gap:7px;align-items:center;margin:12px 26px 20px;font-size:11px;color:#5f7288}.trade-demo-foot svg{width:15px;height:15px}
.trade-demo-foot{justify-content:space-between;flex-wrap:wrap}.trade-demo-foot>span{display:flex;align-items:center;gap:7px}.trade-demo-foot button{border:0;background:transparent;color:#0064cf;font-size:11px;padding:8px 0;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.demo-paused .demo-line,.demo-paused .trade-demo-total,.demo-paused .demo-document{animation-play-state:paused}
@keyframes demo-cost-1{0%,2%,98%,100%{transform:translateX(8px);opacity:.3}10%,90%{transform:none;opacity:1}}
@keyframes demo-cost-2{0%,6%,98%,100%{transform:translateX(8px);opacity:.3}14%,90%{transform:none;opacity:1}}
@keyframes demo-cost-3{0%,10%,98%,100%{transform:translateX(8px);opacity:.3}18%,90%{transform:none;opacity:1}}
@keyframes demo-total{0%,18%,98%,100%{opacity:.3;background:#f4f9ff}26%{opacity:1;background:#fff2cc}38%,90%{opacity:1;background:#f4f9ff}}
@keyframes demo-document-0{0%,24%,98%,100%{transform:translateY(7px);opacity:.3}32%,90%{transform:none;opacity:1}}
@keyframes demo-document-1{0%,28%,98%,100%{transform:translateY(7px);opacity:.3}36%,90%{transform:none;opacity:1}}
@keyframes demo-document-2{0%,32%,98%,100%{transform:translateY(7px);opacity:.3}40%,90%{transform:none;opacity:1}}
@media(max-width:800px){.trade-demo{justify-self:center;max-width:490px;margin-top:8px}}
@media(max-width:400px){.trade-demo-head{padding:18px}.trade-demo-head h2{font-size:17px}.trade-demo-route{padding:14px 18px 6px}.trade-demo-costs{padding:0 18px}.trade-demo-docs{padding:14px 18px 0}.trade-demo-total strong{font-size:25px}.trade-demo-total{margin:0 8px}.trade-demo-foot{margin:12px 18px 18px}.demo-line dt{font-size:12px}.demo-line dd{font-size:14px}}
@media(prefers-reduced-motion:reduce){.demo-line,.demo-document,.trade-demo-total{animation:none;transform:none;opacity:1}.trade-demo-foot button{display:none}}

/* Header language picker follows the supplied flag / label dropdown. */
.lang.language-dropdown{position:relative;display:block;flex:none;padding:0;background:transparent;border-radius:0;z-index:50}
.language-dropdown summary{display:flex;align-items:center;gap:8px;min-height:44px;padding:8px 12px;color:var(--blue);font-size:16px;font-weight:700;cursor:pointer;list-style:none}
.language-dropdown summary::-webkit-details-marker{display:none}
.language-dropdown summary>span:nth-child(2){text-decoration:underline;text-underline-offset:4px}
.language-dropdown summary svg{margin-left:5px}
.language-dropdown summary:focus-visible,.lang .language-options button:focus-visible{outline:2px solid var(--blue);outline-offset:3px}
.language-options{position:absolute;top:100%;right:0;width:150px;padding:10px 0;background:#fff;border-top:4px solid var(--blue);box-shadow:0 10px 24px #16324f1c}
.lang .language-options button{display:flex;align-items:center;gap:8px;width:100%;min-height:48px;padding:12px 24px;border-radius:0;color:#4b5055;text-align:left;font-size:16px;font-weight:600}
.lang .language-options button:hover,.lang .language-options button:focus-visible{background:#eff6ff;color:var(--blue)}

/* Guided costing: readable inputs, explicit units and a single comparison table. */
.required-mark{color:#b3222c;font-style:normal;font-weight:700}
.required-legend{font-size:13px;color:var(--muted);margin:0 0 24px}
.cost-workspace .field{font-size:14px;line-height:1.6;min-width:0}
.cost-workspace .field input,.cost-workspace .field select{min-height:46px;font-size:16px;width:100%;min-width:0}
.cost-workspace .field small{font-size:12px;line-height:1.7;font-weight:400}
.cost-inline-help{font-size:13px;line-height:1.8;color:var(--muted)}
.cost-details{border:0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);border-radius:0;padding:0;margin:24px 0;background:#fff}
.cost-details>summary{cursor:pointer;padding:18px 0;font-size:16px;font-weight:600;color:var(--navy);line-height:1.6}
.cost-details>.fields{padding:0 0 20px}
.cost-details>p{margin:0 0 18px;line-height:1.8}
.cost-details .section-title{display:none}
.selling-section{margin:0 0 28px}
.selling-section h3,.profit-comparison h3{font-size:20px;margin:0 0 8px;color:var(--navy)}
.selling-section>p,.profit-comparison>p{font-size:14px;line-height:1.8;margin:0 0 18px}
.selling-section .fields{margin-top:20px}
.comparison-scroll{overflow-x:auto}
.comparison-table{width:100%;border-collapse:collapse;font-variant-numeric:tabular-nums}
.comparison-table th,.comparison-table td{padding:18px 12px;border-bottom:1px solid var(--line)}
.comparison-table thead th{font-size:13px;background:#f4f9ff;color:var(--navy)}
.comparison-table th:first-child{text-align:left;width:46%}
.comparison-table th:not(:first-child),.comparison-table td{text-align:right;white-space:nowrap}
.comparison-table tbody th{font-size:15px;font-weight:600;line-height:1.6}
.comparison-table small{display:block;font-size:12px;font-weight:400;color:var(--muted);margin-top:4px}
.comparison-table td{font-size:18px;font-weight:600}
.comparison-table .profit-row{background:#f4f9ff}
.comparison-table .is-profit{background:#edf8f2;color:#116445}
.comparison-table .is-loss{background:#fff1ef;color:#a52c27}
.profit-comparison .comparison-help{margin:14px 0;color:var(--blue);font-size:14px}
.profit-comparison>.cost-inline-help{font-size:12px;color:var(--muted)}
.target-result{padding:0 0 20px;color:var(--navy)}
.target-result strong{display:block;font-size:24px;color:var(--blue);font-variant-numeric:tabular-nums}
.target-result small{font-size:12px;color:var(--muted);line-height:1.8}
.live-profit{padding:16px 0;border-bottom:1px solid var(--line);font-size:13px}
.live-profit>div{display:flex;justify-content:space-between;gap:12px;margin-bottom:12px}
.live-profit b{font-variant-numeric:tabular-nums;color:var(--navy);white-space:nowrap}
.live-profit .is-loss b{color:#a52c27}
.live-profit small{display:block;color:var(--muted);line-height:1.7}
.cost-workspace summary:focus-visible{outline:2px solid var(--blue);outline-offset:4px}
@media(max-width:700px){.cost-workspace .form-body{padding:22px 16px}.comparison-table th,.comparison-table td{padding:14px 8px}.comparison-table td{font-size:15px}.comparison-table tbody th{font-size:13px}.comparison-table small{font-size:11px}.selling-section h3,.profit-comparison h3{font-size:18px}.cost-workspace .steps .step{font-size:11px}.cost-workspace .section-head h2{font-size:22px}}
