/* dB Gym — appearance only. Builds on shared/css and satellite-technologies/css/course.css
   (tokens --orbit, --orbit-dark, --orbit-pale, --sand, --ink, --muted, --line, --red, --green).
   1 Shell and navigation  2 Lobby and stations  3 Cards and equations  4 Panels and choices
   5 Feedback  6 Fields  7 Chain builder  8 Tables and details  9 Cheat sheet  10 Responsive */

/* ---------- 1. Shell and navigation ---------- */
.dg-app{max-width:1080px;padding-top:1.2rem;padding-bottom:2.2rem}
.dg-app [hidden]{display:none!important}
.dg-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.dg-top{display:flex;flex-wrap:wrap;align-items:flex-end;justify-content:space-between;gap:.7rem}
.dg-top h1{margin:.1rem 0 0;font-size:clamp(1.9rem,4.4vw,2.8rem)}
.dg-top h1 span{display:inline-block;margin-left:.35rem;color:var(--muted);font-size:.42em;font-weight:700;letter-spacing:0;vertical-align:middle}
.dg-top__actions{display:flex;flex-wrap:wrap;gap:.5rem}
.dg-pill{padding:.5rem .95rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--orbit-dark);font-size:.9rem;font-weight:750}
.dg-pill:hover{background:var(--orbit-pale)}
.dg-pill--cheat{border-color:#e7c98f;background:#fff8e8;color:#7c4a00}
.dg-pill:focus-visible,.dg-steps button:focus-visible,.dg-roadmap button:focus-visible{outline:3px solid #7ab4ff;outline-offset:2px}
.dg-progress-bar{margin:.9rem 0 .8rem;padding:.6rem .9rem;border:1px solid var(--line);border-radius:14px;background:#fff}
.dg-where{margin:0 0 .35rem;color:var(--muted);font-size:.86rem;font-weight:750}
.dg-steps{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem;margin:0;padding:0;list-style:none}
.dg-steps li{display:flex;align-items:center}
.dg-steps li+li::before{content:"";width:.8rem;height:2px;background:var(--line)}
.dg-steps button{display:inline-flex;align-items:center;gap:.25rem;min-width:2.9rem;min-height:2.2rem;padding:.2rem .55rem;border:1px solid transparent;border-radius:999px;background:transparent;color:var(--muted);font-size:.84rem;font-weight:800;cursor:pointer}
.dg-steps button:hover{background:var(--orbit-pale)}
.dg-steps .dg-mark{font-size:.95rem;line-height:1}
.dg-steps button.is-current{border-color:var(--orbit-dark);background:var(--orbit-pale);color:var(--orbit-dark)}
.dg-steps button.is-done .dg-mark{color:var(--green)}
.dg-workspace{min-width:0}
.dg-stationnav{display:flex;flex-wrap:wrap;gap:.6rem;justify-content:space-between;margin-top:1rem}
.dg-stationnav .button{min-width:9rem}
.dg-kicker{margin:0 0 .35rem;color:var(--orbit-dark);font-size:.8rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.dg-note{color:var(--muted);font-size:.95rem}
.dg-muted{color:var(--muted);font-size:.92em}
.dg-nowrap{white-space:normal}
.dg-attribution{margin:1.4rem 0 0;padding-top:.9rem;border-top:1px solid var(--line);color:var(--muted);font-size:.86rem}

/* ---------- 2. Lobby and stations ---------- */
.dg-js .dg-station{display:none}
.dg-js .dg-station.is-active{display:block}
.dg-station{padding:1.2rem 1.3rem 1.3rem;border:1px solid var(--line);border-radius:var(--radius);background:linear-gradient(180deg,#fff 0,#fcfbf8 100%);box-shadow:0 14px 34px rgba(31,50,81,.07)}
.dg-station h2{margin:0 0 .3rem;font-size:clamp(1.6rem,3.6vw,2.4rem)}
.dg-station h2:focus{outline:3px solid #7ab4ff;outline-offset:4px;border-radius:6px}
.dg-station__head{margin-bottom:.8rem}
.dg-task{margin:.3rem 0 0;color:var(--muted);font-size:1.05rem}
.dg-lobby{padding:clamp(1.4rem,3vw,2.2rem)}
.dg-lobby h2{font-size:clamp(2rem,5vw,3.3rem)}
.dg-lede{font-size:clamp(1.1rem,2.2vw,1.35rem);color:var(--muted)}
.dg-objective{margin:1rem 0;padding:1rem 1.3rem;border-left:5px solid var(--sand);border-radius:0 var(--radius) var(--radius) 0;background:#fffaf0}
.dg-objective p{margin:0}
.dg-roadmap{display:flex;flex-wrap:wrap;gap:.45rem;margin:1.1rem 0;padding:0;list-style:none}
.dg-roadmap li{display:flex;align-items:center}
.dg-roadmap li+li::before{content:"\2192";margin:0 .3rem;color:var(--muted);font-weight:800}
.dg-roadmap button{display:inline-flex;align-items:center;gap:.4rem;padding:.45rem .8rem;border:1px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:750;cursor:pointer}
.dg-roadmap button:hover{border-color:var(--orbit);background:var(--orbit-pale)}
.dg-roadmap button span{display:inline-grid;place-items:center;min-width:1.5rem;height:1.5rem;border-radius:50%;background:var(--orbit-dark);color:#fff;font-size:.78rem}
.dg-ref-link{display:inline-flex;align-items:center;gap:.3rem}
.dg-takeaway{margin:1rem 0 0;padding:1rem 1.2rem;border:1px solid var(--line);border-left:5px solid var(--sand);border-radius:0 var(--radius) var(--radius) 0;background:#fffaf0}
.dg-takeaway p{margin:.3rem 0}
.dg-bigrule{font-size:clamp(1.25rem,3vw,1.7rem);font-weight:850;line-height:1.3;color:#7c4a00}
.dg-claim{margin:0 0 1rem;padding:.9rem 1.2rem;border-left:6px solid var(--red);border-radius:0 12px 12px 0;background:#fff7f6;font-size:clamp(1.15rem,2.6vw,1.5rem);font-weight:800}
.dg-claim:focus{outline:3px solid #7ab4ff;outline-offset:4px}
.dg-complete{margin-top:1.2rem;padding:1.2rem 1.3rem;border:1px solid #b9e3d1;border-left:6px solid var(--green);border-radius:0 var(--radius) var(--radius) 0;background:#f1fbf6}
.dg-complete h3{margin:0 0 .3rem;font-size:1.6rem}
.dg-complete:focus{outline:3px solid #7ab4ff;outline-offset:3px}
.dg-reveal{margin-top:.9rem}

/* ---------- 3. Cards and equations ---------- */
.dg-two{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;margin:1rem 0}
.dg-card{padding:1.3rem;border:1px solid var(--line);border-top:5px solid var(--orbit);border-radius:var(--radius);background:#fff}
.dg-card--level{border-top-color:var(--sand);background:#fffdf8}
.dg-card h3{margin:.2rem 0 .5rem;font-size:1.5rem}
.dg-tag{display:inline-block;margin:0;padding:.2rem .6rem;border-radius:999px;background:var(--orbit-pale);color:var(--orbit-dark);font-size:.78rem;font-weight:800}
.dg-card--level .dg-tag{background:#fff1da;color:#7c4a00}
.dg-eq{margin:.7rem 0;overflow-x:auto;overflow-y:hidden;max-width:100%}
.dg-eq--lead{padding:.4rem 0;font-size:1.05em}
.dg-eq--small{margin:.4rem 0}
.dg-visual{display:flex;align-items:center;gap:.5rem;flex-wrap:wrap;margin:.9rem 0;padding:.8rem;border:1px dashed var(--line);border-radius:12px;background:rgba(255,255,255,.7)}
.dg-chip{padding:.35rem .7rem;border:2px solid var(--orbit);border-radius:10px;background:var(--orbit-pale);font-weight:800}
.dg-chip--ref{border-color:var(--sand);background:#fff1da}
.dg-arrow{color:var(--muted);font-weight:800}
.dg-arrow::before{content:"\2192\00a0"}
.dg-result{margin-left:auto;font-weight:900;color:var(--orbit-dark)}
.dg-card--level .dg-result{color:#7c4a00}
.dg-rule{margin:1rem 0;padding:1rem 1.3rem;border:1px solid var(--line);border-left:5px solid var(--sand);border-radius:0 var(--radius) var(--radius) 0;background:#fffaf0}
.dg-rule p{margin:.2rem 0}
.dg-caution{margin:1.2rem 0;padding:1rem 1.3rem;border:1px solid #f1c7c3;border-left:5px solid var(--red);border-radius:0 var(--radius) var(--radius) 0;background:#fff7f6}
.dg-caution p{margin:.2rem 0}
.dg-given{margin:1rem 0;padding:1rem 1.3rem;border:1px solid var(--line);border-left:5px solid var(--orbit);border-radius:0 var(--radius) var(--radius) 0;background:var(--orbit-pale)}
.dg-given p{margin:.2rem 0}
.dg-given--sub{margin-top:1.4rem}

/* ---------- 4. Panels and choices ---------- */
.dg-panel{margin:1rem 0;padding:1.3rem;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 10px 26px rgba(31,50,81,.06)}
.dg-panel--tool h3{margin-top:0}
.dg-progress{margin:0 0 .5rem;color:var(--muted);font-size:.84rem;font-weight:750;letter-spacing:.05em;text-transform:uppercase}
.dg-prompt{margin:0 0 1rem;font-size:clamp(1.3rem,3vw,1.8rem);font-weight:800;line-height:1.25}
.dg-prompt:focus{outline:3px solid #7ab4ff;outline-offset:4px}
.dg-prompt--math{font-variant-numeric:tabular-nums}
.dg-choices{display:flex;flex-wrap:wrap;gap:.7rem}
.dg-choices--list,.dg-choices--grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
.dg-choice{position:relative;min-height:3rem;padding:.7rem 1rem .7rem 1.1rem;border:2px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-weight:700;text-align:left;cursor:pointer;transition:border-color .12s,background .12s}
.dg-choice:hover:not(:disabled){border-color:var(--orbit);background:var(--orbit-pale)}
.dg-choice:disabled{cursor:default;color:var(--ink)}
.dg-choice.is-correct{border-color:var(--green);background:#eaf8f1;padding-right:2.4rem}
.dg-choice.is-correct::after{content:"\2713";position:absolute;right:.9rem;top:50%;transform:translateY(-50%);color:var(--green);font-size:1.2rem;font-weight:900}
.dg-choice.is-chosen:not(.is-correct){border-color:var(--red);background:#fff1f0;padding-right:2.4rem}
.dg-choice.is-chosen:not(.is-correct)::after{content:"\2717";position:absolute;right:.9rem;top:50%;transform:translateY(-50%);color:var(--red);font-size:1.2rem;font-weight:900}
.dg-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin-top:1rem}
.dg-actions .button[hidden]{display:none}
.dg-unitbar{display:flex;flex-wrap:wrap;gap:.5rem;margin-bottom:1rem}
.dg-unit{min-width:4rem;padding:.55rem .9rem;border:2px solid var(--line);border-radius:999px;background:#fff;color:var(--ink);font-weight:800}
.dg-unit:hover{border-color:var(--orbit)}
.dg-unit[aria-pressed="true"]{border-color:var(--orbit-dark);background:var(--orbit-dark);color:#fff}
.dg-bigref{display:flex;flex-direction:column;gap:.1rem;margin:0 0 .7rem;padding:.8rem 1.1rem;border-left:6px solid var(--sand);border-radius:0 12px 12px 0;background:#fff8e8}
.dg-bigref__label{color:var(--muted);font-size:.78rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase}
.dg-bigref__value{font-size:clamp(1.6rem,4vw,2.4rem);font-weight:900;color:#7c4a00;overflow-wrap:anywhere}
.dg-examples{margin:.4rem 0 0;padding-left:1.2rem}
.dg-examples li{margin:.25rem 0}

/* ---------- 5. Feedback ---------- */
.dg-feedback{margin:.9rem 0 0;min-height:0;padding:0;border-radius:10px}
.dg-feedback:empty{display:none}
.dg-feedback.is-right,.dg-feedback.is-wrong{padding:.8rem 1rem;border:1px solid var(--line);border-left-width:6px}
.dg-feedback.is-right{border-color:#b9e3d1;border-left-color:var(--green);background:#f1fbf6}
.dg-feedback.is-wrong{border-color:#f1c7c3;border-left-color:var(--red);background:#fff7f6}
.dg-msg{min-height:1.2em;margin:.6rem 0 0;color:var(--red);font-size:.92rem;font-weight:650}
.dg-msg:empty{display:none}
.dg-msg--note{color:var(--muted);font-weight:600}
.dg-readout p{margin:.3rem 0}
[data-rcheck] .dg-msg,.dg-readout .dg-msg{color:var(--muted)}

/* ---------- 6. Fields ---------- */
.dg-fields{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:.8rem;margin:.6rem 0}
.dg-fields--row{align-items:end}
.dg-fields--stack{grid-template-columns:1fr}
.dg-fields label,.dg-step>label,.dg-stage__ctl label{display:flex;flex-direction:column;gap:.3rem;font-size:.9rem;font-weight:700}
.dg-fields input,.dg-fields select,.dg-inline input,.dg-stage__ctl input{width:100%;min-height:2.6rem;padding:.5rem .7rem;border:2px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:1rem;font-variant-numeric:tabular-nums}
.dg-fields input:focus-visible,.dg-fields select:focus-visible,.dg-inline input:focus-visible,.dg-stage__ctl input:focus-visible,.dg-choice:focus-visible,.dg-unit:focus-visible,.dg-mini:focus-visible,.dg-jump a:focus-visible{outline:3px solid #7ab4ff;outline-offset:2px;border-color:var(--blue)}
input[aria-invalid="true"]{border-color:var(--red)!important;background:#fff7f6}
.dg-step{margin:1rem 0}
.dg-inline{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.dg-inline input{flex:0 1 11rem;width:auto}
.dg-inline span{font-weight:800;color:var(--muted)}

/* ---------- 7. Chain builder: the signal travels left to right ---------- */
.dg-station--wide{padding-left:1rem;padding-right:1rem}
.dg-eq--tight{margin:.2rem 0 .6rem}
.dg-chain-wrap{overflow-x:auto;padding:.3rem .1rem 1rem;margin:.4rem 0}
.dg-chain-wrap:focus-visible{outline:3px solid #7ab4ff;outline-offset:2px;border-radius:10px}
.dg-chain{display:flex;gap:1.9rem;margin:0;padding:0;list-style:none;align-items:stretch;width:max-content;min-width:100%}
.dg-stage{position:relative;flex:0 0 12rem;display:flex;flex-direction:column;padding:.8rem .85rem;border:1px solid var(--line);border-top:6px solid var(--orbit);border-radius:12px;background:#fff}
.dg-stage:not(:last-child)::after{content:"\2192";position:absolute;right:-1.65rem;top:42%;width:1.3rem;color:var(--orbit-dark);font-size:1.5rem;font-weight:900;text-align:center}
.dg-stage--source{border-top-color:var(--sand);background:#fffdf8}
.dg-stage--gain,.dg-stage--antenna{border-top-color:var(--green)}
.dg-stage--loss{border-top-color:var(--red)}
.dg-stage__head{display:flex;align-items:center;justify-content:space-between;gap:.4rem;margin-bottom:.5rem}
.dg-stage__name{font-weight:850}
.dg-badge{padding:.1rem .5rem;border-radius:999px;background:#fff1da;color:#7c4a00;font-size:.72rem;font-weight:800;white-space:nowrap}
.dg-badge--ratio{background:var(--orbit-pale);color:var(--orbit-dark)}
.dg-stage__ctl{display:flex;flex-direction:column;gap:.5rem}
.dg-stage__ctl label{font-size:.82rem}
.dg-stage__btns{display:flex;gap:.35rem}
.dg-mini{flex:1;min-width:2.4rem;height:2.4rem;border:2px solid var(--line);border-radius:10px;background:#fff;color:var(--ink);font-size:1.05rem;font-weight:800}
.dg-mini:hover:not(:disabled){border-color:var(--orbit);background:var(--orbit-pale)}
.dg-mini:disabled{opacity:.35;cursor:default}
.dg-mini:focus-visible{outline:3px solid #7ab4ff;outline-offset:2px}
.dg-stage__level{margin-top:auto;padding-top:.7rem;border-top:1px dashed var(--line)}
.dg-stage--source .dg-stage__level{border-top:0;padding-top:.2rem}
.dg-stage__hint{margin:0 0 .6rem;color:var(--muted);font-size:.82rem}
.dg-level{display:flex;flex-direction:column;gap:.1rem}
.dg-level__label{color:var(--muted);font-size:.72rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase}
.dg-level strong{font-size:1.45rem;font-variant-numeric:tabular-nums}
.dg-bar{height:.55rem;margin-top:.4rem;border-radius:999px;background:#eef2f6;overflow:hidden}
.dg-bar span{display:block;height:100%;border-radius:999px;background:var(--orbit);transition:width .2s}
.dg-stage__level.is-pending strong{color:var(--muted)}
.dg-stage__level.is-pending .dg-bar span{background:#cbd5df}
.dg-stage__level.is-eirp .dg-level__label{color:#7c4a00}
.dg-stage__level.is-eirp strong{color:#7c4a00}
.dg-stage__level.is-eirp .dg-bar span{background:var(--sand)}
.dg-stage__level.is-eirp{background:#fff8e8;margin:.7rem -.85rem -.8rem;padding:.7rem .85rem .8rem;border-radius:0 0 8px 8px}
.dg-summary{margin-top:.6rem;padding:.9rem 1.1rem;border:1px solid var(--line);border-left:6px solid var(--sand);border-radius:0 12px 12px 0;background:#fffaf0}
.dg-summary p{margin:.25rem 0}

/* ---------- 8. Tables and details ---------- */
.dg-table{width:100%;border-collapse:collapse;margin:1.1rem 0;background:#fff;border:1px solid var(--line);border-radius:12px}
.dg-table th,.dg-table td{padding:.65rem .8rem;border-bottom:1px solid var(--line);text-align:left;font-variant-numeric:tabular-nums}
.dg-table thead th{color:var(--orbit-dark);background:var(--orbit-pale)}
.dg-table tbody th{color:var(--orbit-dark)}
.dg-scroll{overflow-x:auto;margin:1.1rem 0}.dg-scroll:focus-visible{outline:3px solid #7ab4ff;outline-offset:2px}.dg-scroll .dg-table{margin:0;min-width:34rem}
.dg-table--center th,.dg-table--center td{text-align:center;white-space:nowrap}
.dg-table--center thead td{font-weight:800;background:var(--orbit-pale)}
.dg-mistakes{display:grid;gap:.6rem;margin-top:1rem}
.dg-mistake{border:1px solid var(--line);border-radius:12px;background:#fff}
.dg-mistake summary{padding:.9rem 1.1rem;cursor:pointer;list-style:none;font-weight:750}
.dg-mistake summary::-webkit-details-marker{display:none}
.dg-mistake summary::before{content:"\25B8";display:inline-block;width:1.2em;color:var(--red)}
.dg-mistake[open] summary::before{content:"\25BE"}
.dg-mistake summary:focus-visible,.dg-solution summary:focus-visible,.dg-ref summary:focus-visible{outline:3px solid #7ab4ff;outline-offset:-3px}
.dg-mistake p{margin:0;padding:0 1.1rem 1rem 2.3rem}
.dg-solution{margin-top:1.2rem;border:1px solid var(--line);border-radius:12px;background:#fbfdfd}
.dg-solution summary{padding:.8rem 1.1rem;cursor:pointer;font-weight:800;color:var(--orbit-dark)}
.dg-solution>*:not(summary){margin-left:1.1rem;margin-right:1.1rem}
.dg-solution ol{padding-left:1.2rem}

/* ---------- 9. Cheat sheet drawer ---------- */
.dg-cheat{position:fixed;z-index:60;top:0;right:0;bottom:0;width:min(340px,100%);padding:1rem 1.1rem 1.4rem;overflow:auto;border-left:5px solid var(--sand);background:#fffdf8;box-shadow:-18px 0 40px rgba(22,32,51,.18)}
.dg-cheat__head{display:flex;align-items:center;justify-content:space-between;gap:.6rem;margin-bottom:.4rem}
.dg-cheat h2{margin:0;font-size:1.5rem}
.dg-cheat h2:focus{outline:3px solid #7ab4ff;outline-offset:3px;border-radius:6px}
.dg-cheat h3{margin:.8rem 0 .2rem;color:var(--muted);font-size:.78rem;letter-spacing:.09em;text-transform:uppercase}
.dg-cheat ul{margin:0;padding-left:1.1rem;font-size:.94rem}
.dg-cheat li{margin:.18rem 0}
.dg-ref__rule{margin:.8rem 0 0;padding:.5rem .7rem;border-radius:8px;background:#fff1da;font-weight:850;text-align:center}
.dg-ref__rule--b{margin-top:.4rem;background:var(--orbit-pale);color:var(--orbit-dark)}

/* ---------- 10. Responsive ---------- */
@media(min-width:1180px){
  .dg-app.has-cheat{padding-right:340px}
}
@media(max-width:760px){
  .dg-two,.dg-choices--list,.dg-choices--grid{grid-template-columns:1fr}
  .dg-panel,.dg-card{padding:1rem}
  .dg-station{padding:1rem}
  .dg-chain{flex-direction:column}
  .dg-chain>.dg-stage{flex:1 1 auto;width:100%}
  .dg-chain>.dg-stage:not(:last-child)::after{content:"\2193";right:auto;left:1.3rem;top:auto;bottom:-1.35rem;transform:none}
}
@media(max-width:600px){
  .dg-top .dg-kicker,.dg-top h1 span{display:none}
  .dg-top{align-items:center;gap:.5rem}
  .dg-top h1{font-size:1.7rem}
  .dg-pill{padding:.4rem .75rem;font-size:.82rem}
  .dg-progress-bar{margin:.55rem 0;padding:.45rem .55rem}
  .dg-where{font-size:.8rem;margin-bottom:.2rem}
  .dg-steps{justify-content:space-between;gap:0}
  .dg-steps li+li::before{display:none}
  .dg-steps button{min-width:0;min-height:2.1rem;padding:.15rem .3rem;gap:.1rem;font-size:.8rem}
  .dg-app{padding-top:.7rem}
}
@media(max-width:480px){
  .dg-panel{padding:.85rem}
  .dg-solution>*:not(summary){margin-left:.6rem;margin-right:.6rem}
  .dg-solution ol{padding-left:1rem}
  .dg-choices{flex-direction:column}
  .dg-choice{width:100%}
  .dg-inline input{flex:1 1 100%}
  .dg-stage__ctl label{flex-basis:100%}
  .dg-actions .button{flex:1 1 100%;text-align:center}
  .dg-stationnav .button{flex:1 1 100%}
  .dg-steps button{min-width:2.4rem;padding:.2rem .35rem}
  .dg-roadmap li+li::before{margin:0 .15rem}
}
@media(prefers-reduced-motion:reduce){
  .dg-bar span,.dg-choice{transition:none}
  html{scroll-behavior:auto}
}

/* ---------- 11. Final workout: link budget machine ---------- */
.dg-note--tight{margin:.3rem 0 0;font-size:.9rem}
.dg-fw{display:grid;grid-template-columns:minmax(0,1fr);gap:1rem;margin-top:.4rem}
.dg-fw__work{min-width:0}
.dg-fw__where{margin:0 0 .35rem;color:var(--orbit-dark);font-size:.88rem;font-weight:850}
.dg-fw__dots{display:flex;gap:.35rem;margin:0 0 .6rem;padding:0;list-style:none}
.dg-fw__dots li{flex:1;height:.45rem;border-radius:999px;background:#e4e9ef}
.dg-fw__dots li.is-done{background:var(--green)}
.dg-fw__dots li.is-current{background:var(--sand)}
.dg-fw__card{padding:1rem 1.1rem;border:1px solid var(--line);border-radius:var(--radius);background:#fff;box-shadow:0 10px 26px rgba(31,50,81,.06)}
.dg-fw__type{display:inline-block;margin:0 0 .5rem;padding:.2rem .6rem;border-radius:999px;background:var(--orbit-pale);color:var(--orbit-dark);font-size:.78rem;font-weight:800}
.dg-fw__given{margin:.1rem 0 .7rem;font-size:clamp(1.25rem,3vw,1.7rem);font-weight:850;line-height:1.25}
.dg-fw__given sub{font-size:.65em}
.dg-fw__q{display:block;margin-bottom:.4rem;font-weight:750}
.dg-fw__eq{margin:.7rem 0 0;padding:.7rem .9rem;border-left:5px solid var(--sand);border-radius:0 10px 10px 0;background:#fffaf0;font-weight:800;font-variant-numeric:tabular-nums}
.dg-prompt--small{font-size:clamp(1.1rem,2.6vw,1.4rem)}
.dg-fw__chart{margin:0;min-width:0;padding:.7rem .6rem .5rem;border:1px solid var(--line);border-radius:var(--radius);background:#fff}
.dg-fw__chart svg{display:block;width:100%;height:auto;max-height:430px}
.dg-fw__chart figcaption{display:flex;flex-wrap:wrap;gap:.3rem .9rem;margin-top:.4rem;color:var(--muted);font-size:.8rem;font-weight:700}
.dg-key{display:inline-flex;align-items:center;gap:.35rem}
.dg-key::before{content:"";width:.9rem;height:.7rem;border:2px solid currentColor;border-radius:2px}
.dg-key--start{color:#013074}.dg-key--start::before{background:#013074}
.dg-key--gain{color:var(--green)}.dg-key--gain::before{background:var(--green)}
.dg-key--loss{color:var(--red)}.dg-key--loss::before{background:repeating-linear-gradient(45deg,#fdecea 0 3px,var(--red) 3px 5px)}
.dg-key--result{color:#7c4a00}.dg-key--result::before{background:#fff8e8;border-style:dashed}
.dg-fw__summary{font-weight:700}
@media(min-width:1000px){
  .dg-fw{grid-template-columns:minmax(300px,360px) minmax(0,1fr);align-items:start}
}
@media(max-width:640px){
  .dg-fw__card{padding:.85rem}
  .dg-fw__chart svg{max-height:none}
}
