:root{color-scheme:dark;--bg:#121312;--panel:#1b1c19;--line:#393a32;--muted:#b6ad9f;--accent:#a67d43;--gold:#a67d43;--red:#ad0013;--text:#eee9df;--paper:#e9e6df}*{box-sizing:border-box}body{margin:0;background:var(--bg);color:var(--text);font-family:Arial,Helvetica,sans-serif;line-height:1.5}a{color:inherit;text-decoration:none}button,input{font:inherit}a:focus-visible,button:focus-visible,input:focus-visible{outline:2px solid #dcc293;outline-offset:4px}header{max-width:1440px;margin:auto;min-height:92px;padding:24px 48px;display:flex;justify-content:space-between;align-items:center;gap:28px;border-bottom:1px solid var(--line)}.brand{display:flex;gap:10px;align-items:center;flex-shrink:0}.brand-logo{width:26px;height:30px;object-fit:contain}.brand b{font-size:23px;letter-spacing:-1px}.brand span{display:none}nav{display:flex;flex-wrap:wrap;gap:24px;font-size:14px}nav a{padding:8px 0;border-bottom:1px solid transparent;color:var(--muted)}nav a:hover,nav a[aria-current=page]{color:var(--text);border-color:var(--gold)}.home{max-width:1344px;margin:auto;padding:0 48px}.intro{display:grid;grid-template-columns:1.6fr 1fr;align-items:center;gap:40px;padding:48px 0 40px;min-height:450px}.intro-copy{max-width:730px}.intro-label{font-size:13px;letter-spacing:.04em;color:var(--muted);margin:0 0 24px}.home h1{font-size:clamp(36px,4.3vw,62px);font-weight:500;letter-spacing:-2.5px;line-height:1.08;margin:0 0 24px}.home h1 span{color:#c39a60}.intro-description{color:var(--muted);font-size:18px;line-height:1.65;max-width:550px;margin:0}.engraving{margin:0;display:flex;justify-content:center;align-items:center}.engraving img{display:block;width:100%;max-width:260px;height:350px;object-fit:contain}.instruments{padding:24px 0 0}.section-heading{display:flex;align-items:center;justify-content:space-between;gap:24px;margin:0 0 18px}.section-heading h2{font-size:17px;font-weight:400;margin:0}.section-heading>span{font-size:12px;font-variant-numeric:tabular-nums;color:var(--muted)}.tools{display:grid;grid-template-columns:1fr 1fr;border-top:1px solid var(--line)}.tool{min-width:0;display:grid;grid-template-columns:28px 1fr 24px;gap:17px;padding:30px 28px 32px 0;border-bottom:1px solid var(--line);transition:background .2s}.tool:nth-child(even){padding-left:28px;border-left:1px solid var(--line)}.tool:hover{background:#1b1c1980}.tool-index{font-size:12px;padding-top:5px;color:var(--gold);font-variant-numeric:tabular-nums}.tool h3{font-size:22px;font-weight:500;letter-spacing:-.45px;line-height:1.3;margin:0 0 12px}.tool p{font-size:15px;line-height:1.65;color:var(--muted);margin:0;max-width:390px}.tool-arrow{font-size:24px;line-height:1.2;color:var(--gold)}.tool:hover h3,.tool:hover .tool-arrow{color:#dcc293}.privacy-note{font-size:13px;line-height:1.8;color:var(--muted);margin:30px 0 40px}footer{max-width:1440px;margin:auto;padding:26px 48px;border-top:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;gap:24px;color:var(--muted)}.footer-brand{font-size:19px;letter-spacing:-.5px}.footer-socials{display:flex;gap:24px;align-items:center}.footer-socials a{display:inline-flex;gap:8px;align-items:center;font-size:13px}.footer-socials a:hover{color:var(--text)}.footer-socials svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}
/* Calculator workspace */
.lab-masthead{max-width:1440px;margin:auto;display:flex;align-items:center;gap:30px;position:relative;height:130px;padding:24px 48px;overflow:hidden;border-bottom:1px solid var(--line);background:#151612}.lab-masthead>div{position:relative;z-index:1}.lab-masthead p{font-size:26px;font-weight:700;letter-spacing:-1px;margin:8px 0 0}.lab-masthead img{position:absolute;right:50px;top:-95px;width:420px;height:280px;object-fit:cover;opacity:.6}.masthead-number{margin-left:auto;color:var(--gold);font-weight:800;font-size:80px;letter-spacing:-7px;line-height:1;z-index:1}.container{display:grid;grid-template-columns:350px minmax(0,1fr);max-width:1440px;margin:auto;min-height:calc(100vh - 290px)}.sidebar{padding:34px 30px 34px 48px;border-right:1px solid var(--line)}h1{font-size:32px;font-weight:750;letter-spacing:-1px;line-height:1.12;margin:0 0 16px}.subtitle,.note{color:var(--muted);font-size:12px;line-height:1.8;margin-bottom:25px}label{display:block;font-size:12px;color:#d4ccbd;margin:23px 0 9px}input{width:100%;padding:14px 15px;border:1px solid #4b493e;border-radius:2px;background:#161713;color:var(--text);font:inherit;font-size:18px;font-variant-numeric:tabular-nums;transition:border-color .2s}input:hover{border-color:var(--gold)}input:focus{border-color:#d2aa6b}input[aria-invalid=true]{border-color:#db4054}.card,.result-item{padding:19px 20px;background:var(--panel);border:1px solid var(--line);border-left:2px solid var(--gold);border-radius:2px;margin-top:16px}.card h3,.result-label{color:var(--muted);font-size:11px;font-weight:400;margin:0 0 8px}.value,.result-value{font-size:30px;font-weight:600;letter-spacing:-1px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;color:#dcc293}.main{padding:34px 48px 34px 30px;min-width:0}.chart-box{height:560px;position:relative;padding:24px;background:var(--panel);border:1px solid var(--line);border-radius:2px}canvas{width:100%!important;height:100%!important}.table-title{font-size:13px;color:var(--muted);margin-bottom:20px}.table-wrapper{overflow:auto;max-height:465px}.prob-table{width:100%;border-collapse:collapse;min-width:350px;font-size:13px;font-variant-numeric:tabular-nums}.prob-table th{position:sticky;top:0;background:var(--panel);text-align:left;padding:12px 10px;color:var(--muted);font-weight:400}.prob-table td{padding:12px 10px;border-top:1px solid var(--line)}.prob-table tbody tr:hover{background:#29291f}.prob-bar{background:var(--line);height:4px;border-radius:2px;margin-top:7px}.prob-bar-fill{height:4px;border-radius:2px;background:#d46471}.prob-bar-fill.win{background:#bc985e}.calculator{max-width:670px;margin:40px auto;padding:36px 40px;background:var(--panel);border:1px solid var(--line);border-top:3px solid var(--gold);border-radius:2px}.calculator h1{font-size:36px}.results{display:grid;gap:4px}.error{color:#ff95a1;font-size:12px;line-height:1.6}.error:empty{display:none}button{width:100%;background:var(--red);color:var(--paper);border:0;border-radius:2px;padding:16px;margin:24px 0 12px;font:inherit;font-size:14px;font-weight:700;cursor:pointer;transition:background .2s}button:hover{background:#cc0b25}
[hidden]{display:none!important}.dispersion-switch{display:flex;align-items:center;gap:12px;font-size:16px;font-weight:700;cursor:pointer}.dispersion-switch input{width:22px;height:22px;accent-color:var(--gold)}.scenario-tabs{display:flex;gap:8px;flex-wrap:wrap}.scenario-tabs button{width:auto;flex:1;margin:0;padding:12px;background:var(--panel);border:1px solid var(--line)}.scenario-tabs button[aria-pressed=true]{background:var(--red);border-color:var(--red)}.simulation-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:16px 0 24px}.simulation-metrics .card{margin:0;padding:14px}.simulation-metrics .value{font-size:22px}.main>.note{margin-top:20px}@media(max-width:1050px){.simulation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}}

/* Readable dark navigation and social footer */
header{background:var(--bg);color:var(--text);border-bottom:1px solid var(--line)}nav{font-size:16px;gap:24px}nav a{padding:10px 0}nav a:hover,nav a[aria-current=page]{color:#dcc293;border-color:var(--gold)}.footer-socials{display:flex;gap:24px;align-items:center;margin-left:auto}.footer-socials a{display:inline-flex;align-items:center;gap:9px;font-size:14px}.footer-socials a:hover{color:#dcc293}.footer-socials svg{width:25px;height:25px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linejoin:round}.equity-summary{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:24px}.equity-summary .card{margin:0}#ludkaResult{white-space:pre-line;max-height:220px;overflow:auto}#ludkaSettings{border-left:2px solid var(--gold);padding-left:14px}@media(max-width:750px){nav{font-size:15px;gap:8px 18px}.footer-socials{flex-wrap:wrap;gap:18px}.equity-summary .value{font-size:24px}}

/* Equity results: controls, primary totals, compact details, chart */
#scenarioControls{margin-bottom:24px}.scenario-tabs{display:inline-flex;max-width:100%;gap:4px;padding:4px;border:1px solid var(--line);border-radius:4px;background:var(--panel)}.scenario-tabs button{flex:0 1 auto;padding:10px 18px;border:0;background:transparent;font-size:13px;font-weight:500;min-height:42px}.scenario-tabs button[aria-pressed=true]{background:#363025;color:#edd3aa}.scenario-tabs button:hover{background:#29291f}.equity-summary{gap:0;background:var(--panel);border:1px solid var(--line);border-radius:4px;margin-bottom:20px}.equity-summary .card{border:0;background:transparent;padding:22px 24px}.equity-summary .card+.card{border-left:1px solid var(--line)}.equity-summary .card h3{font-size:13px;margin-bottom:10px}.equity-summary .value{font-size:32px;line-height:1.2}.simulation-metrics{grid-template-columns:repeat(5,minmax(0,1fr));gap:0;margin:0 0 24px;padding:16px 0;border-bottom:1px solid var(--line)}.simulation-metrics .card{border:0;border-radius:0;background:transparent;padding:0 12px;min-width:0}.simulation-metrics .card:first-child{padding-left:0}.simulation-metrics .card+.card{border-left:1px solid var(--line)}.simulation-metrics .card h3{font-size:11px;min-height:33px;margin-bottom:6px;line-height:1.5}.simulation-metrics .value{font-size:19px;color:var(--text);letter-spacing:-.4px}.simulation-metrics .card:first-child .value{font-size:16px;line-height:1.8}#simulationExplanation .note{margin:18px 0 0;font-size:11px}.main .chart-box{border-radius:4px}@media(max-width:1050px){.simulation-metrics{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:20px}.simulation-metrics .card:nth-child(4){border-left:0;padding-left:0}}@media(max-width:750px){.equity-summary .card{padding:18px 14px}.equity-summary .value{font-size:25px}.scenario-tabs{display:flex}.scenario-tabs button{flex:1;padding:10px 9px;font-size:12px}.simulation-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.simulation-metrics .card:nth-child(odd){border-left:0;padding-left:0}.simulation-metrics .card:nth-child(even){border-left:1px solid var(--line);padding-left:12px}.simulation-metrics .card h3{min-height:0}}

/* Shared workspaces */
header{background:var(--bg);color:var(--text)}nav{font-size:14px}.lab-masthead{height:auto;min-height:180px;padding:30px 48px;background:transparent;align-items:center}.back-link{display:inline-block;font-size:13px;color:var(--muted);margin:0 0 18px}.back-link:hover{color:var(--text)}.lab-masthead h1{font-size:36px;line-height:1.15;letter-spacing:-1px;font-weight:500;margin:0 0 12px}.lab-masthead p{font-size:15px;font-weight:400;letter-spacing:0;color:var(--muted);max-width:670px;margin:0}.lab-masthead>div{padding-right:160px}.lab-masthead img{width:200px;height:150px;top:15px;right:40px;object-fit:contain;opacity:.65}.container{grid-template-columns:330px minmax(0,1fr);min-height:0}.sidebar{padding:32px 28px 40px 48px}.main{padding:32px 48px 40px 28px}.sidebar>label:first-of-type,.risk-inputs .input-group:first-of-type label{margin-top:0}label{font-size:14px;margin-top:22px;color:#d4ccbd}input{font-size:18px;border-radius:3px;padding:12px 14px;background:#171815}.note,.subtitle{font-size:13px;line-height:1.7}.card{border:0;border-top:1px solid var(--line);background:transparent;border-radius:0;padding:20px 0;margin-top:22px}.card h3,.result-label{font-size:13px;line-height:1.5}.value,.result-value{font-size:34px;font-weight:500}.chart-box{height:460px;background:#171815;border:1px solid var(--line);padding:20px}.calculator{display:grid;grid-template-columns:1fr 1fr;gap:56px;max-width:1050px;padding:40px 48px;margin:0 auto 24px;background:transparent;border:0}.calculator>.error{grid-column:1/-1;margin:0}.calculator h2{font-size:16px;font-weight:400;margin:0 0 24px;color:var(--muted)}.results{display:flex;flex-direction:column;gap:0;padding:28px 32px;background:var(--panel);align-self:start;border-top:2px solid var(--gold)}.result-item{border:0;border-top:1px solid var(--line);border-radius:0;background:none;margin:0;padding:20px 0}.result-item:last-child{padding-bottom:0}.result-item:has(#positionSize){order:-1;border-top:0;border-bottom:1px solid var(--line);padding-top:0;padding-bottom:24px;margin-bottom:24px}.result-item:has(#positionSize) .result-value{font-size:56px;color:#dcc293}.results h2{order:-2}.results .result-item:has(#riskAmount){border-top:0;padding-top:0}.dispersion-switch{font-size:14px;font-weight:400}.dispersion-switch input{width:18px;height:18px}.risk-inputs .note{margin:10px 0}.risk-inputs button{margin-bottom:0}button{border-radius:3px;font-size:15px;font-weight:500}.equity-summary .card{padding:24px}.equity-summary .value{font-size:36px}.error{font-size:13px}.table-title{font-size:15px}.table-wrapper{max-height:360px}.footer-socials svg{width:20px;height:20px}.footer-socials a{font-size:13px}
@media(max-width:1050px){header{padding:22px 32px;flex-wrap:wrap;gap:16px}nav{gap:20px}.home{padding:0 32px}.intro{gap:20px;min-height:390px;padding-top:32px}.engraving img{height:300px;max-width:220px}.container{grid-template-columns:300px minmax(0,1fr)}.sidebar{padding:28px 24px 32px 32px}.main{padding:28px 32px 32px 24px}.lab-masthead{padding:28px 32px}.calculator{gap:32px;padding:32px}.chart-box{height:410px}footer{padding:24px 32px}}
@media(max-width:700px){header{padding:20px;gap:16px}.brand b{font-size:22px}nav{width:100%;gap:4px 20px;font-size:13px}nav a{padding:6px 0}.home{padding:0 20px}.intro{position:relative;display:block;min-height:0;padding:36px 0 30px}.intro-copy{position:relative;z-index:1}.intro-label{font-size:12px;margin-bottom:20px}.home h1{font-size:clamp(33px,6.6vw,44px);letter-spacing:-1.2px;max-width:520px;padding-right:65px;margin-bottom:18px}.intro-description{font-size:16px;max-width:76%;line-height:1.65}.desktop-break{display:none}.engraving{position:absolute;right:-4px;bottom:26px;width:100px;pointer-events:none;opacity:.75}.engraving img{height:150px;width:100px}.instruments{padding-top:12px}.section-heading{margin-bottom:14px}.tools{grid-template-columns:1fr}.tool,.tool:nth-child(even){border-left:0;padding:24px 0;gap:12px;grid-template-columns:24px 1fr 20px}.tool h3{font-size:21px}.tool p{font-size:14px;max-width:460px}.privacy-note{font-size:12px;margin:26px 0 30px}footer{padding:24px 20px;gap:20px;flex-wrap:wrap}.footer-brand{font-size:18px}.footer-socials{gap:18px;margin-left:0}.footer-socials a{font-size:12px}.lab-masthead{padding:26px 20px;min-height:0}.lab-masthead>div{padding-right:0}.lab-masthead h1{font-size:29px;max-width:470px}.lab-masthead p{font-size:14px;max-width:510px}.lab-masthead img{display:none}.back-link{margin-bottom:16px}.container{display:block}.sidebar{padding:28px 20px;border-right:0;border-bottom:1px solid var(--line)}.main{padding:24px 20px 32px}.calculator{grid-template-columns:1fr;gap:28px;padding:28px 20px;margin-bottom:0}.calculator h2{margin-bottom:20px}.results{padding:24px;width:100%}.result-item:has(#positionSize) .result-value{font-size:48px}.chart-box{height:380px;padding:12px}.prob-table{min-width:320px;font-size:12px}.prob-table th,.prob-table td{padding:10px 6px}.table-wrapper{max-height:310px}.equity-summary .card{padding:18px 14px}.equity-summary .value{font-size:27px}.scenario-tabs button{font-size:12px}.simulation-metrics .value{font-size:19px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;transition:none!important}}

/* Front-facing golden lobster on the home page */
.engraving-lobster img{width:100%;max-width:440px;height:auto;aspect-ratio:3/2;object-fit:contain}
@media(max-width:1050px) and (min-width:701px){.engraving-lobster img{max-width:340px;height:auto}}
@media(max-width:700px){.homepage .intro h1{padding-right:0}.homepage .intro-description{max-width:100%}.engraving-lobster{position:static;width:100%;max-width:360px;margin:24px auto 0;opacity:1}.engraving-lobster img{width:100%;max-width:360px;height:auto}}

/* Footer: social icons only */
footer .footer-socials{margin-left:auto;gap:16px}footer .footer-socials a{display:flex;align-items:center;justify-content:center;width:44px;height:44px}footer .footer-socials svg{width:24px;height:24px}

/* Shared page masthead: calculator layout with the series page typography. */
.lab-masthead .masthead-eyebrow{color:#f17c67;font-size:11px;font-weight:400;line-height:1.5;text-transform:uppercase;letter-spacing:1.7px;margin:0 0 12px}
.lab-masthead h1{font:400 42px/1.1 Georgia,serif;letter-spacing:-1.5px;margin:0 0 12px}
@media(max-width:700px){.lab-masthead h1{font-size:34px}}

/* Consistent outer breathing room for all four calculator pages. */
body.tool-page{padding-inline:clamp(12px,2vw,24px)}

/* Shared H2 scale across the home page and all calculators. */
body h2,body .section-heading h2,body .calculator h2,body #ll-eval h2,body #ll-expectation h2,body #ll-series-v2 h2{font-size:24px}
@media(max-width:700px){body h2,body .section-heading h2,body .calculator h2,body #ll-eval h2,body #ll-expectation h2,body #ll-series-v2 h2{font-size:22px}}

/* Shared title-band heights follow the expectation page as its heading and
   subtitle wrap. A minimum leaves room for larger user fonts and translations. */
:root { --page-title-height: 182px; }
@media (max-width: 1050px) { :root { --page-title-height: 180px; } }
@media (max-width: 914px) { :root { --page-title-height: 201px; } }
@media (max-width: 700px) { :root { --page-title-height: 183px; } }
@media (max-width: 394px) {
  :root { --page-title-height: 204px; }
  .homepage .lab-masthead .back-link { margin-bottom: 6px; }
}
@media (max-width: 371px) { :root { --page-title-height: 241px; } }
.lab-masthead, .indicators-page .ll-hero {
  min-height: var(--page-title-height);
  padding-block: 4px;
}
nav a[aria-current="location"]{color:#dcc293;border-color:var(--gold)}
.home .instruments + .instruments{padding-top:clamp(28px,4vw,52px)}
.home .catalog-tools .tool{grid-template-columns:minmax(0,1fr) 24px}
.home .catalog-tools .tool:only-child{grid-column:1/-1}
