/* Page composition only. The simulation and its generated artwork live in figures/. */
.tk-photo .pl-readouts{gap:0;background:var(--bg-c);border:1px solid var(--bd);border-radius:var(--r);box-shadow:var(--sh-e);overflow:hidden}
.tk-photo .pl-readouts .tk-stat{border:0;border-radius:0;box-shadow:none;min-height:116px;padding:1.1rem;align-content:start;column-gap:.75rem}
.tk-photo .pl-readouts .tk-stat+.tk-stat{border-left:1px solid var(--bd)}
.tk-photo .pl-readouts .tk-stat-val{font-size:1.5rem;line-height:1.35}
.tk-photo .pl-readouts .tk-stat-lbl{line-height:1.6;font-size:.81rem}
.tk-photo .pl-readouts .tk-stat-sub{font-size:.76rem;line-height:1.6}
.tk-photo .pl-readouts .tk-stat-ic{width:38px;height:38px;box-shadow:none}
.tk-photo .pl-readouts .tk-meter{margin-top:.5rem;max-width:190px}

.tk-photo .pl-experiment{min-width:0;scroll-margin-top:140px}
.tk-photo .pl-workspace{display:grid;grid-template-columns:minmax(0,1fr) 304px;align-items:stretch}
.tk-photo .pl-scene-panel{min-width:0;display:flex;flex-direction:column;justify-content:center;background:var(--bg-c)}
.tk-photo .pl-scene-panel .pl-stage{width:100%;flex:none}
.tk-photo .pl-scene-panel .pl-stage[data-renderer="3d"]{flex:1;min-height:390px;aspect-ratio:auto}
.tk-photo .pl-scene-panel .pl-viewbar{flex-shrink:0;min-height:64px;gap:.5rem;padding:.55rem 1rem;background:var(--bg-c)}
.tk-photo .pl-scene-panel .pl-viewbar button{min-height:44px}
.tk-photo .pl-scene-panel .pl-orbit button{min-width:44px}
.tk-photo .pl-scene-panel .pl-orbit button[data-pl-turn="-1"],.tk-photo .pl-scene-panel .pl-orbit button[data-pl-turn="1"]{font-size:1.2rem;line-height:1}
.tk-photo .pl-scene-panel .pl-view-title>svg{color:var(--c-500)}
.tk-photo .pl-scene-hint{flex-shrink:0;display:flex;align-items:center;justify-content:center;gap:.5rem;min-height:40px;margin:0;padding:.55rem 1rem;border-top:1px solid var(--bd);font-size:.8rem;line-height:1.6;color:var(--t2);background:var(--bg-m);text-align:center}
.tk-photo .pl-scene-hint i{color:var(--c-500)}
.tk-photo .pl-controls{min-width:0;display:flex;flex-direction:column;border-left:1px solid var(--bd);background:var(--bg-m)}
.tk-photo .pl-controls .lb-toolbar{display:grid;gap:1.1rem;padding:1.25rem;border-top:0;background:transparent}
.tk-photo .pl-control-intro h3{margin:0 0 .35rem;font:700 1rem/1.5 var(--f-b);color:var(--t1)}
.tk-photo .pl-control-intro p{margin:0;font-size:.86rem;line-height:1.7;color:var(--t2)}
.tk-photo .pl-controls .pl-dist{display:grid;gap:.65rem}
.tk-photo .pl-dist>span{display:flex;align-items:center;justify-content:space-between;gap:.5rem;color:var(--t1);font-weight:600}
.tk-photo .pl-dist small{font-size:.78rem;color:var(--t2);font-weight:400}
.tk-photo .pl-dist .tk-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px;padding:5px;background:var(--bg-c)}
.tk-photo .pl-dist .tk-seg button{min-width:0;min-height:44px;font-size:1rem;font-variant-numeric:tabular-nums;color:var(--t2)}
.tk-photo .pl-dist .tk-seg button[aria-pressed="true"]{background:var(--c-royal);color:#fff;box-shadow:0 3px 8px rgba(29,78,216,.18)}
[data-theme="dark"] .tk-photo .pl-dist .tk-seg button[aria-pressed="true"]{background:#2563eb;color:#fff}
.tk-photo .pl-count-actions{display:grid;gap:.6rem}
.tk-photo .pl-controls .tk-btn{width:100%;min-height:44px;font-size:.9rem;white-space:normal;line-height:1.45}
.tk-photo .pl-controls .tk-btn-primary{min-height:48px;box-shadow:0 4px 12px rgba(29,78,216,.18)}
.tk-photo .pl-utility-actions{display:grid;gap:.65rem;padding-top:.85rem;border-top:1px solid var(--bd)}
.tk-photo .pl-utility-actions .tk-switch{min-height:44px;justify-content:space-between;flex-direction:row-reverse;font-size:.86rem;color:var(--t2)}
.tk-photo .pl-controls .lb-status{margin:0;margin-top:auto;min-height:108px;padding:1rem 1.25rem;border-top:1px solid var(--bd);background:var(--bg-c);font-size:.82rem;line-height:1.75;color:var(--t2)}
.tk-photo .pl-controls .lb-status>i{margin-top:.3rem;color:var(--c-500)}
.tk-photo .pl-controls .lb-gl-note{font-size:.8rem;line-height:1.6;color:var(--t2)}

.tk-photo .pl-model .tk-fsheet{display:grid;grid-template-columns:1fr 1fr 1.15fr}
.tk-photo .pl-model .tk-frow{min-width:0;padding:1.25rem;border-bottom:0}
.tk-photo .pl-model .tk-frow+.tk-frow{border-left:1px solid var(--bd)}
.tk-photo .pl-model .tk-frow h3{margin-bottom:.8rem;color:var(--t1);font-size:.9rem;line-height:1.6}
.tk-photo .pl-model .tk-frow p{font-size:.85rem;line-height:1.8;color:var(--t2)}
.tk-photo .pl-model .tk-math{font-size:.9rem;line-height:1.9;overflow-wrap:anywhere}
.tk-photo .pl-model .tk-frow>h3+.tk-math{font-size:1.2rem;font-weight:600;line-height:1.6;letter-spacing:.01em}
.tk-photo .pl-model .tk-math+.tk-math{font-size:.82rem;margin:.5rem 0 .7rem;padding:.6rem .75rem;border-radius:8px;background:var(--bg-m)}
.tk-photo .pl-model .pl-vars{font-size:.85rem;line-height:1.7;row-gap:.65rem}
.tk-photo .pl-guides{display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1.15fr);border-top:1px solid var(--bd)}
.tk-photo .pl-guides details{min-width:0;padding:.4rem 1.25rem}
.tk-photo .pl-guides details+details{border-left:1px solid var(--bd)}
.tk-photo .pl-guides summary{min-height:44px;padding:.6rem 0;cursor:pointer;font:600 .86rem/1.7 var(--f-b);color:var(--t2)}
.tk-photo .pl-guides summary i{margin:0 .4rem;color:var(--c-500)}
.tk-photo .pl-guides summary:focus-visible{outline:3px solid var(--c-500);outline-offset:3px;border-radius:4px}
.tk-photo .pl-guides .pl-legend,.tk-photo .pl-guides .tk-keys{padding:.4rem 0 1rem;line-height:1.75}
.tk-photo .pl-results-intro{margin:0 0 1.2rem;font-size:.9rem;line-height:1.8;color:var(--t2)}
.tk-photo .pl-results-grid{grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:1.25rem;align-items:stretch}
.tk-photo .pl-results-grid .pl-chart{padding:1rem;border:1px solid var(--bd);border-radius:var(--rs);background:var(--bg-m)}
.tk-photo .pl-results-grid .pl-chart-hd>span{color:var(--t2)}
.tk-photo .pl-log{min-width:0;display:flex;flex-direction:column;border:1px solid var(--bd);border-radius:var(--rs);background:var(--bg-c);overflow:hidden}
.tk-photo .pl-log .tk-tbl-wrap{flex:1 1 auto;display:flex;flex-direction:column;min-width:0;border:0;border-radius:0}
.tk-photo .pl-log .tk-tbl{flex:none;margin:0;min-width:0}
.tk-photo .pl-log .tk-tbl thead th{white-space:normal;line-height:1.45;vertical-align:middle}
.tk-photo .pl-log .tk-tbl-wrap:has(.tk-tbl-empty) .tk-tbl{flex:1 1 auto}
.tk-photo .pl-log .tk-tbl tbody tr.tk-tbl-empty td{vertical-align:middle;padding:2rem 3.5rem;line-height:1.8}
.tk-photo .pl-log .tk-tbl-empty td>i{display:grid;place-items:center;width:48px;height:48px;margin:0 auto .75rem;border-radius:50%;background:var(--tk-tint);color:var(--tk-tint-ink);font-size:1.1rem}
.tk-photo .pl-log-note{flex:none;display:flex;align-items:flex-start;gap:.5rem;margin:0;padding:.75rem 1rem;border-top:1px solid var(--bd);background:var(--bg-m);font-size:.8rem;line-height:1.7;color:var(--t2)}
.tk-photo .pl-log-note>i{margin-top:.3rem;color:var(--c-500)}

@media(min-width:901px){
  .tk-photo .tk-why-it:last-child:nth-child(odd)>div{flex:1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:calc(3.65rem + 32px);align-content:start}
  .tk-photo .tk-why-it:last-child:nth-child(odd)>div>h3{grid-column:1/-1}
  .tk-photo .tk-why-it:last-child:nth-child(odd) p{margin:0}
}

.tk-photo #lbCard:fullscreen,.tk-photo #lbCard:-webkit-full-screen{justify-content:flex-start}
.tk-photo #lbCard:fullscreen .pl-workspace,.tk-photo #lbCard:-webkit-full-screen .pl-workspace{flex:1;min-height:0}
.tk-photo #lbCard:fullscreen .pl-stage[data-renderer="3d"],.tk-photo #lbCard:-webkit-full-screen .pl-stage[data-renderer="3d"]{width:100%;min-height:0;flex:1;margin:0}
.tk-photo #lbCard:fullscreen .pl-controls,.tk-photo #lbCard:-webkit-full-screen .pl-controls{overflow-y:auto}

@media(max-width:1180px){
  .tk-photo .pl-log .tk-tbl thead th,.tk-photo .pl-log .tk-tbl tbody td{padding-left:.55rem;padding-right:.55rem}
}
@media(max-width:1100px){
  .tk-photo .pl-workspace{grid-template-columns:minmax(0,1fr) 280px}
  .tk-photo .pl-controls .lb-toolbar{padding:1.1rem;gap:.9rem}
  .tk-photo .pl-controls .lb-status{padding:.9rem 1.1rem}
  .tk-photo .pl-model .tk-fsheet{grid-template-columns:1fr 1fr}
  .tk-photo .pl-model .tk-frow:first-child{grid-column:1/-1;border-bottom:1px solid var(--bd)}
  .tk-photo .pl-model .tk-frow:nth-child(2){border-left:0}
  .tk-photo .pl-guides{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .tk-photo .pl-readouts .tk-stat{min-height:110px}
  .tk-photo .pl-readouts .tk-stat:nth-child(3){border-left:0}
  .tk-photo .pl-readouts .tk-stat:nth-child(n+3){border-top:1px solid var(--bd)}
  .tk-photo .pl-workspace{grid-template-columns:minmax(0,1fr)}
  .tk-photo .pl-scene-panel .pl-stage[data-renderer="3d"]{height:clamp(280px,52vw,420px);min-height:0;flex:none}
  .tk-photo .pl-scene-panel .pl-view-title{flex-basis:auto}
  .tk-photo .pl-controls{border-left:0;border-top:1px solid var(--bd)}
  .tk-photo .pl-controls .lb-toolbar{grid-template-columns:1fr 1fr;gap:1rem 1.5rem;padding:1.25rem;align-items:start}
  .tk-photo .pl-control-intro{grid-column:1/-1}
  .tk-photo .pl-controls .pl-dist{align-content:start;grid-row:2/4}
  .tk-photo .pl-utility-actions{padding:0;border:0}
  .tk-photo .pl-controls .lb-status{min-height:0;padding:1rem 1.25rem}
  .tk-photo .pl-results-grid{grid-template-columns:minmax(0,1fr)}
  .tk-photo #lbCard:fullscreen .pl-controls,.tk-photo #lbCard:-webkit-full-screen .pl-controls{overflow:visible}
  .tk-photo #lbCard:fullscreen .pl-stage[data-renderer="3d"],.tk-photo #lbCard:-webkit-full-screen .pl-stage[data-renderer="3d"]{flex:none;min-height:280px}
}
@media(max-width:560px){
  .tk-photo .pl-readouts .tk-stat{display:flex;flex-direction:column;align-items:flex-start;gap:0;padding:.9rem;min-height:164px}
  .tk-photo .pl-readouts .tk-stat-ic{width:28px;height:28px;font-size:.78rem;border-radius:8px;margin-bottom:.5rem}
  .tk-photo .pl-readouts .tk-stat-val{font-size:1.35rem}
  .tk-photo .pl-readouts .tk-stat-val small{font-size:.72rem}
  .tk-photo .pl-readouts .tk-stat-lbl{font-size:.78rem}
  .tk-photo .pl-readouts .tk-stat-sub{font-size:.75rem}
  .tk-photo .pl-readouts .tk-meter{width:100%;margin-top:auto}
  .tk-photo .pl-scene-panel .pl-stage[data-renderer="3d"]{height:clamp(280px,83vw,380px)}
  .tk-photo .pl-scene-panel .pl-viewbar{gap:.5rem;padding:.65rem .8rem}
  .tk-photo .pl-scene-panel .pl-view-title{flex-basis:100%}
  .tk-photo .pl-scene-panel .pl-viewbar .tk-seg{margin-right:0}
  .tk-photo .pl-scene-panel .pl-orbit{margin-left:auto}
  .tk-photo .pl-scene-hint{font-size:.76rem;padding:.6rem .8rem}
  .tk-photo .pl-controls .lb-toolbar{grid-template-columns:minmax(0,1fr);padding:1rem;gap:1rem}
  .tk-photo .pl-controls .pl-dist{grid-row:auto}
  .tk-photo .pl-count-actions{grid-template-columns:1fr 1fr}
  .tk-photo .pl-controls .lb-toolbar .tk-btn{padding:.65rem .55rem;font-size:.85rem}
  .tk-photo .pl-utility-actions{grid-template-columns:1fr 1fr;padding-top:1rem;border-top:1px solid var(--bd);gap:.8rem}
  .tk-photo .pl-utility-actions .tk-switch{gap:.4rem;font-size:.78rem}
  .tk-photo .pl-controls .lb-status{padding:1rem}
  .tk-photo .pl-model .tk-fsheet,.tk-photo .pl-guides{grid-template-columns:minmax(0,1fr)}
  .tk-photo .pl-model .tk-frow{padding:1rem}
  .tk-photo .pl-model .tk-frow+.tk-frow{border-left:0;border-top:1px solid var(--bd)}
  .tk-photo .pl-model .tk-frow:first-child{border-bottom:0}
  .tk-photo .pl-guides details{padding:.3rem 1rem}
  .tk-photo .pl-guides details+details{border-left:0;border-top:1px solid var(--bd)}
  .tk-photo .pl-results-grid .pl-chart{padding:.75rem}
  .tk-photo .pl-log .tk-tbl thead th{padding:.6rem .35rem;font-size:.74rem}
  .tk-photo .pl-log .tk-tbl tbody td{padding:.6rem .35rem;font-size:.84rem}
  .tk-photo .pl-log .tk-tbl tbody tr.tk-tbl-empty td{padding:1.5rem 1rem}
}
