.study-figure .tech-sequence{
  display:grid;grid-template-columns:minmax(0,1fr) 30px minmax(0,1fr) 30px minmax(0,1fr);
  align-items:center;gap:10px;margin:24px auto 14px;max-width:890px;
}
.tech-sequence>.flow-arrow{width:100%}
.tech-sequence h3,.tech-sequence p{margin:0;text-align:center}
.tech-sequence h3{font-size:1.03rem}.tech-sequence p{font-size:.82rem}
.tech-sequence>div{min-width:0}
.study-figure .tech-table{width:100%;border-collapse:collapse;background:#fffdf4;font-size:.88rem}
.tech-table :is(th,td){padding:.28em .5em;text-align:center;border:1px solid var(--ink)}
.tech-table thead th{background:var(--cyan);font-weight:700}
.tech-table .focus-row :is(th,td){background:#fff099}
.tech-table .focus-field{background:var(--pink)}
.macro-paper,.db-page,.cert-sheet{overflow:hidden;border:2px solid var(--ink);border-radius:4px;background:#fffdf4;box-shadow:3px 3px var(--ink)}
.macro-paper>span,.db-page>strong,.cert-sheet>strong{display:block;padding:4px;background:var(--cyan);border-bottom:1px solid var(--ink);text-align:center;font-size:.83rem;font-weight:700}
.macro-paper th,.db-page th{border-top:0}.macro-paper td:first-child,.db-page :is(th,td):first-child{border-left:0}.macro-paper td:last-child,.db-page :is(th,td):last-child{border-right:0}
.macro-paper tr:last-child td,.db-page tbody tr:last-child td{border-bottom:0}
.macro-paper tr>:first-child{width:20%;border-left:0;background:#eaf6f3}
.macro-paper tr>:last-child{border-right:0}.macro-paper tbody th{border-bottom:0}
.macro-ribbon{list-style:none;margin:0;padding:0;border:2px solid var(--ink);border-radius:3px;background:#fff2b4}
.macro-ribbon li{padding:4px .52em;font-weight:700;font-size:.85rem}
.macro-ribbon li+li{border-top:1px dashed #746337}
.macro-record{color:#902945;font-weight:800}
.macro-view h3,.db-structure h3{margin-bottom:7px}.macro-view p,.db-structure p{margin-top:8px}
.db-shelf{display:flex;justify-content:center;align-items:center;gap:7px;min-height:100px;border-inline:2px solid var(--ink);border-bottom:2px solid var(--ink);border-radius:0 0 50% 50% / 0 0 12% 12%;background:var(--cyan)}
.db-shelf::before{content:"";position:absolute;inset:-11px -2px auto;height:22px;border:2px solid var(--ink);background:#e9f7f4;border-radius:50%}
.db-shelf{position:relative}.db-shelf span{position:relative;padding:2px .46em;border:1px solid var(--ink);background:#fffdf4;font-weight:700;font-size:.86rem}
.db-shelf .db-picked{background:#fff099}
.db-row-piece{align-self:center;padding:0 2px}.db-row-piece p b{padding:0 .23em;background:var(--pink)}
.study-figure .cookie-map{display:grid;grid-template-columns:minmax(0,1fr) minmax(180px,1.85fr) minmax(0,1fr);align-items:center;gap:8px 15px;max-width:900px;margin:16px auto}
.cookie-map h3,.cookie-map p{margin:0;text-align:center}
.cookie-map .cookie-party img{width:98px;height:auto;display:block;margin:0 auto -7px}
.cookie-map .cookie-party{display:grid;justify-items:center;align-content:end;align-self:stretch}
.cookie-map .cookie-site{grid-column:3}.cookie-map h3{font-size:1rem}
.cookie-map .cookie-state{padding:5px .5em;text-align:center;background:var(--cyan);border:1.5px solid var(--ink);border-radius:4px;font-size:.89rem}
.cookie-state b,.cookie-aim b{display:block}.cookie-state code{font-size:.93rem}
.cookie-map .cookie-aim{padding:4px .4em;text-align:center;font-size:.89rem}
.cookie-lane{align-self:center;text-align:center}.cookie-lane .flow-arrow{margin:5px 3px 4px;color:#155558}
.cookie-lane .flow-arrow.back{transform:rotate(180deg)}
.cookie-lane code{display:inline-block;max-width:100%;font:700 .88rem/1.5 Consolas,monospace;background:#fff2b4;padding:0 .36em;white-space:normal}
.cookie-repeat{grid-column:1/-1;border-top:1px dashed #8b7d60;text-align:center;font-size:.82rem;font-weight:700;margin-top:4px;padding-top:5px}
.study-figure .convert-tape{margin:20px auto 12px;width:min(100%,760px);table-layout:fixed}
.convert-tape th:first-child{width:22%}.convert-tape thead th:not(:first-child){background:#e7f4f3}
.convert-tape td{font-family:Consolas,monospace;font-weight:700}
.convert-tape .convert-check td{background:#e8f5ef}.convert-tape .convert-digit td{background:#fff099}.convert-tape .convert-built td{background:#f7deeb}
.convert-built span{background:#fff099;color:#763652;border-bottom:1px solid currentColor}
.study-figure .convert-output{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:12px;font-size:.92rem}
.convert-output .flow-arrow{width:34px}.convert-output strong{background:#fff099;border:2px solid var(--ink);padding:3px 12px;border-radius:4px;font:700 1.2rem Consolas,monospace}
.cert-cue img,.cert-site img{display:block;width:112px;height:auto;margin:0 auto -6px}.cert-cue p,.cert-site p{margin-top:4px}
.cert-sheet dl{display:grid;grid-template-columns:max-content minmax(0,1fr);gap:4px 12px;font-size:.88rem;margin:10px 12px}
.cert-sheet dt{font-weight:700}.cert-sheet dd{margin:0}.cert-sheet dd:last-child{background:#fff099;font-weight:700}
.cert-note{text-align:center}
.study-figure .cert-revocation{position:relative;row-gap:4px;margin-block:20px 0;padding:8px;background:var(--pink);border:1px solid var(--wine);text-align:center}
.cert-revocation::before{content:"";position:absolute;left:85%;bottom:100%;height:16px;border-left:2px dashed var(--wine)}
.cert-revocation h3{grid-column:1 / -1;justify-self:start;color:var(--wine)}
.cert-leak{display:flex;align-items:center;justify-content:center;gap:5px}
.cert-revocation b,.cert-revocation span{display:block}
.cert-revocation span{font-size:.875rem}
.cert-leak img{display:block;width:60px;height:auto}
.cert-revocation .flow-arrow{color:var(--wine)}
.study-figure .method-panels{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;max-width:940px;margin:17px auto 12px}
.method-panel{min-width:0;border-top:2px solid var(--ink);padding-top:8px}
.method-panel p{margin:5px 0 0;font-size:.83rem}.method-panel h3{margin-top:5px;font-size:1.06rem}
.method-panel>span{display:inline-block;padding:1px .5em;border:1px solid var(--ink);font-size:.78rem;background:var(--cyan);font-weight:700}
.method-panel:last-child>span{background:var(--mint)}
.method-cards{height:120px;display:flex;align-items:center;justify-content:center;gap:6px;background:#f3f6e7;overflow:hidden;margin-top:6px}
.method-cards .class-item{padding:5px;text-align:center;border:1.5px solid var(--ink);background:#fffdf4;font-size:.76rem;min-width:52px;border-radius:3px}
.method-cards .class-item b{display:block;white-space:nowrap}.class-item i{display:block;width:23px;height:23px;margin:0 auto 4px;background:var(--pink);border:1.5px solid var(--ink);border-radius:50% 50% 40% 40%}
.class-item.class-lemon i{border-radius:42% 42% 50% 50% / 60% 60% 40% 40%;background:var(--lemon);width:20px;height:29px;transform:rotate(35deg);margin-top:-3px;margin-bottom:1px}
.class-item i::before{content:"";display:block;width:7px;height:4px;margin:-3px auto 0;border:1px solid var(--ink);border-radius:80% 0;background:#88b887;transform:rotate(-22deg)}
.class-item .unknown-fruit{outline:2px dashed #905277;outline-offset:2px}
.method-cards .flow-arrow{width:13px;flex:none}.method-cards .class-target{background:#f7deeb}
.class-samples,.class-new{display:grid;justify-items:center;gap:3px;font-size:.72rem;font-weight:700}.class-samples>div{display:flex;gap:6px}
.method-cards .class-samples+.flow-arrow{margin-top:17px}
.method-cards .class-target i{width:23px;height:23px;border-radius:50% 50% 40% 40%;background:var(--pink)}
.method-chart{margin-top:6px;font-size:.875rem}
.method-plot{position:relative;height:94px;margin-left:.35em;background:#f3f6e7;border-left:2px solid var(--teal);border-bottom:2px solid var(--teal)}
.method-plot .trend{position:absolute;inset:0;clip-path:polygon(0 93%,100% 1%,100% 6%,0 98%);background:#236375}
.method-plot .plot-point{position:absolute;top:var(--y);left:var(--x);width:9px;height:9px;border:1px solid var(--ink);border-radius:50%;transform:translate(-50%,-50%);background:var(--cyan)}
.method-plot .forecast{background:var(--lemon);border-radius:0;transform:translate(-50%,-50%) rotate(45deg)}
.method-x{display:block;text-align:right}
.method-legend{display:flex;flex-wrap:wrap;gap:.25rem .75rem;margin-top:.25rem}
.cluster-map .cluster-group{position:absolute;top:var(--y);left:var(--x);width:30%;height:40%;transform:translate(-50%,-50%);border:1.5px dashed #627046;border-radius:50%;background:#d4ecdf80}
.cluster-map .plot-point{background:#fff0a9}
@media(max-width:680px){
  .study-figure .tech-sequence,.study-figure .method-panels{grid-template-columns:minmax(0,1fr);gap:9px}
  .tech-sequence>.flow-arrow{width:16px;justify-self:center;transform:rotate(90deg)}
  .study-figure .cookie-map{grid-template-columns:minmax(0,1fr) minmax(96px,1.5fr) minmax(0,1fr);gap:5px}
  .cookie-map .cookie-party img{width:65px}.cookie-map .cookie-state,.cookie-lane code,.cookie-map .cookie-aim{font-size:.75rem}
}
.mixed-demo { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: clamp(.5rem, 3vw, 1.75rem); align-items: center; max-width: 51rem; margin: .75rem auto; }
.product-copy-grid { display: grid; grid-template-columns: minmax(0, 2.5fr) minmax(12rem, 1fr); gap: 1rem; align-items: center; }
.product-copy-grid .tech-table { font-size: 1rem; }
.product-copy-grid .tech-table .copy-input { background: var(--diagram-green); }
.product-copy-grid .tech-table .copy-output-cell { background: var(--diagram-highlight); }
.product-copy-result { margin-top: .65rem; }
.product-copy-note { display: grid; justify-items: center; text-align: center; gap: .25rem; }
.product-copy-note img { width: 80px; height: auto; }
@media (max-width: 650px) { .product-copy-grid { grid-template-columns: 1fr; } }
.mixed-demo .mixed-sheet { table-layout: fixed; width: 100%; }
.mixed-sheet tr :first-child { width: 12%; }
.mixed-sheet td { height: 2rem; background: var(--white); }
.mixed-sheet .mixed-formula { background: var(--cyan); font-weight: 750; }
.mixed-formula code { font-size: 1rem; }
.mixed-sheet .mixed-original { background: var(--mint); }
.mixed-sheet .mixed-result { background: var(--yellow); box-shadow: inset 0 0 0 2px var(--teal); font-weight: 750; }
.mixed-reading p { margin: 0 0 .45rem; }
.mixed-reading dl { margin: .45rem 0; }
.mixed-reading dl div { display: grid; grid-template-columns: 2.2em 1fr; padding-block: .2rem; border-top: 1px solid var(--line); }
.mixed-reading dt { font-weight: 750; }
.mixed-reading dd { margin: 0; }
.mixed-reading .mixed-value { padding: .38rem .52rem; border-left: 3px solid var(--teal); background: var(--white); }
.mixed-value strong { color: var(--teal); }
@media(max-width:600px) { .mixed-demo { grid-template-columns: 1fr; } }
