/* Native SC-ENZ field-guide diagrams; loaded only by the technical-guide layout. */
.sz-prose .kg {--kg-ink:#19251f;--kg-accent:#a64c32;--kg-paper:#f6f1e8;--kg-line:#cdc6b9;}
.sz-prose .kg-premium{font-family:'DM Sans','Noto Sans TC',sans-serif;background:linear-gradient(140deg,#f4efe5,#ede9de);border-color:#cdc5b8;box-shadow:0 14px 40px #273c2b08}
.kg .kg-photo-crop{position:relative;width:100%;overflow:hidden;background:#d8d8cd}
.sz-prose .kg .kg-photo-crop img{position:absolute;display:block;width:calc(100% * var(--photo-cols))!important;height:calc(100% * var(--photo-rows))!important;max-width:none!important;left:calc(-100% * var(--photo-x));top:calc(-100% * var(--photo-y));margin:0;border-radius:0;object-fit:fill}
.kg .kg-reference .kg-photo-crop{align-self:start;border-radius:4px}
.kg .kg-triple .kg-frame-body{border-top:1px solid #d4cebf}
.kg .kg-cost-visual{display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:center;margin:1.6rem 0}
.kg .kg-donut{position:relative;width:220px;height:220px}
.kg .kg-donut svg{display:block;width:100%;height:100%}
.kg .kg-donut-center{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.kg .kg-donut-center span{font-size:12px;color:#697260;letter-spacing:.06em}
.kg .kg-donut-center strong{font-size:35px;line-height:1.2;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.kg .kg-donut-center small{font-size:12px;color:#697260}
.kg .kg-cost-visual .kg-cost-legend{grid-template-columns:minmax(0,1fr);gap:8px}
.kg .kg-cost-visual .kg-cost-legend li{padding:.75rem 1rem;background:#f8f5ed;border-radius:3px;border-top:0;border-right:0;border-bottom:0}
.kg .kg-cost-visual .kg-cost-legend strong{font-size:24px}
.sz-prose .kg .kg-budget-legend{display:flex;flex-wrap:wrap;gap:10px 20px;margin-top:1.5rem;font-size:14px;line-height:1.8;color:#66705e}
.kg-budget-legend span:before{content:'';display:inline-block;width:10px;height:10px;margin-right:7px;border-radius:2px;background:#586b59}
.kg-budget-legend .kg-legend-variable:before{background:#bd7753}
.sz-prose .kg-premium .kg-bar-row{padding:16px 18px;border:1px solid #d5cfbf;background:#f8f5ed;border-radius:4px}
.sz-prose .kg-premium .kg-bar-row:nth-child(2){border-color:#bc7957;background:#f7efe4;box-shadow:0 4px 18px #9d604b08}
.sz-prose .kg-premium .kg-bar-caption{font-weight:500}
.sz-prose .kg-premium .kg-bar-track{height:34px;background:repeating-linear-gradient(to right,#e2e2d7 0,#e2e2d7 calc(25% - 1px),#c8cdbe calc(25% - 1px),#c8cdbe 25%)}
.sz-prose .kg-premium .kg-bar{display:flex;background:none!important;overflow:hidden}
.kg .kg-fixed-cost{display:block;height:100%;background:#586b59}
.kg .kg-variable-cost{display:block;height:100%;background:#bd7753;border-left:2px solid #f8f5ed}
.sz-prose .kg .sz-evidence-header {padding-right:0;}
.sz-prose .kg .sz-evidence-header h3 {max-width:24em;}
.kg .kg-intro {margin:.8rem 0 0!important;font-size:16px!important;line-height:1.85!important;max-width:42em;color:#555c51;}
.kg .kg-grid {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:1.4rem 0 0;padding:0;list-style:none;}
.kg .kg-frame {min-width:0;margin:0!important;background:var(--kg-paper);border:1px solid var(--kg-line);border-radius:5px;overflow:hidden;}
.kg .kg-drawing {display:block;width:100%;height:auto;background:#e1e3d8;aspect-ratio:16/9;}
.kg .kg-frame-body {padding:1rem 1.1rem 1.2rem;}
.sz-prose .kg .kg-label {display:block;margin:0 0 .5rem;color:var(--kg-accent);font-size:12px;line-height:1.8;font-weight:700;letter-spacing:.05em;}
.sz-prose .kg h4 {margin:.1rem 0 .55rem!important;font-size:20px!important;line-height:1.55!important;color:var(--kg-ink);}
.sz-prose .kg .kg-frame p,.sz-prose .kg .kg-frame dd {margin:.5rem 0 0;font-size:16px;line-height:1.8;}
.kg .kg-frame dl {margin:.8rem 0 0;display:grid;gap:.65rem;}
.kg .kg-frame dl>div {display:grid;grid-template-columns:2.5em minmax(0,1fr);gap:.6rem;padding-top:.6rem;border-top:1px solid #d9d3c7;}
.kg .kg-frame dt {font-size:12px;line-height:2.3;color:#657060;font-weight:700;}
.kg .kg-frame dd {margin:0!important;}
.sz-prose .kg footer {display:block;margin-top:1.5rem;padding-top:1rem;border-top:1px solid var(--kg-line);}
.kg .kg-brand {display:block;width:96px;height:auto;margin:0 0 .7rem;max-width:100%;}
.sz-prose .kg .kg-source {font-size:12px!important;line-height:1.8!important;color:#62685c;margin:.6rem 0 0;overflow-wrap:anywhere;}
.sz-prose .kg .kg-summary {font-size:16px!important;line-height:1.8!important;margin:.6rem 0 0;font-weight:650;}
.kg .kg-pair {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:1.4rem 0 0;}
.kg .kg-status {display:block;padding:.55rem .8rem;background:#233a2e;color:#f7f2e8;font-size:13px;font-weight:700;letter-spacing:.03em;}
.kg .kg-status--review {background:#a64c32;}
.kg .kg-checks {list-style:none;padding:0;margin:1.2rem 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;}
.kg .kg-checks li {margin:0!important;padding:1rem;border-top:2px solid #b67150;background:#f7f3eb;font-size:16px;line-height:1.8;}
.kg .kg-checks b {display:block;margin-bottom:.3rem;}
.kg .kg-reference {display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:1.4rem;margin-top:1.4rem;}
.kg .kg-reference .kg-drawing {height:100%;aspect-ratio:3/4;object-fit:contain;min-height:260px;background:#dfe2d7;border-radius:4px;}
.kg .kg-fields {margin:0;}
.kg .kg-fields>div {padding:.85rem 0;border-bottom:1px solid var(--kg-line);}
.kg .kg-fields dt {font-size:12px;color:var(--kg-accent);font-weight:700;letter-spacing:.06em;margin-bottom:.25rem;}
.kg .kg-fields dd {margin:0;font-size:16px;line-height:1.8;}
.kg .kg-swatches {display:flex;gap:.65rem;margin:.6rem 0 0;}
.kg .kg-swatches span {display:block;width:1.5rem;height:1.5rem;border:1px solid #a9afa0;border-radius:50%;}
.kg .kg-triple {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin-top:1.4rem;}
.sz-prose .kg .kg-triple h4 {font-size:18px!important;}
.sz-prose .kg .kg-triple .kg-frame-body {padding:.9rem;}
.kg .kg-cost-stack {display:flex;width:100%;height:40px;border-radius:4px;overflow:hidden;margin:1.5rem 0 1rem;}
.kg .kg-cost-stack span {display:block;border-right:2px solid #eee8dd;}
.kg .kg-cost-stack span:last-child {border-right:0;}
.kg .kg-cost-legend {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:0;padding:0;list-style:none;}
.kg .kg-cost-legend li {margin:0!important;padding:1rem;background:#f6f1e8;border:1px solid var(--kg-line);border-left:5px solid var(--swatch);font-size:16px;line-height:1.8;}
.kg .kg-cost-legend strong {display:block;font-size:22px;line-height:1.5;font-variant-numeric:tabular-nums;}
.kg .kg-total {display:flex;align-items:baseline;justify-content:space-between;gap:1rem;margin:1.25rem 0;padding-top:1rem;border-top:1px solid var(--kg-line);font-size:16px;line-height:1.8;}
.kg .kg-total strong {font-size:clamp(1.7rem,4vw,2.4rem);font-variant-numeric:tabular-nums;white-space:nowrap;}
.kg .kg-bar-chart {margin-top:1.5rem;}
.kg .kg-bar-row {margin:0 0 1.35rem;}
.kg .kg-bar-caption {display:flex;align-items:baseline;justify-content:space-between;gap:1rem;font-size:16px;line-height:1.8;margin-bottom:.5rem;}
.kg .kg-bar-caption strong {font-size:20px;white-space:nowrap;font-variant-numeric:tabular-nums;}
.kg .kg-bar-track {height:28px;background:#d8d8cb;border-left:1px solid #69735f;border-radius:0 3px 3px 0;}
.kg .kg-bar {height:100%;background:#36503f;border-radius:0 3px 3px 0;}
.kg .kg-bar-row:nth-child(2) .kg-bar {background:#a85d3f;}
.kg .kg-bar-row:nth-child(3) .kg-bar {background:#788570;}
.kg .kg-axis {display:flex;justify-content:space-between;font-size:12px;color:#65705e;padding-top:.35rem;border-top:1px solid var(--kg-line);}
.sz-prose .kg table {width:100%;min-width:0;margin:1.3rem 0 0;table-layout:fixed;}
.sz-prose .kg table th,.sz-prose .kg table td {padding:.6rem .5rem;font-size:16px;line-height:1.8;overflow-wrap:anywhere;}
.kg table th {text-align:left;}
.kg .kg-math {background:#f6f1e8;padding:.9rem 1rem;font-size:15px;line-height:1.9;margin-top:1rem;border-left:3px solid #a85d3f;}
.sz-prose .kg .kg-math p {font-size:15px;margin:0 0 .5rem;line-height:1.9;}
.sz-prose .kg .kg-math p:last-child {margin:0;}
.sz-prose .draft-note {padding:1rem 1.2rem;border-left:3px solid #a64c32;background:#ebe5d9;font-size:16px;line-height:1.9;}
.sz-prose .draft-table-wrap {max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain;margin:1.8rem 0;}
.sz-prose .draft-table-wrap table {min-width:580px;margin:0;}
.sz-prose .draft-table-wrap caption {text-align:left;font-weight:700;padding-bottom:.7rem;color:#24352a;}
.sz-prose .draft-table-wrap th {text-align:left;}
.sz-prose .draft-table-wrap td,.sz-prose .draft-table-wrap th {font-size:16px;line-height:1.85;vertical-align:top;}
.sz-prose .draft-table-hint {font-size:13px;line-height:1.8;color:#62685c;margin-top:.4rem;}
.sz-prose .draft-brief {white-space:pre-wrap;overflow-wrap:anywhere;font:inherit;font-size:16px;line-height:1.9;background:#f7f2e8;padding:1.2rem;border:1px solid #c7ccbe;border-radius:4px;}
.sz-prose .draft-action {padding:1.3rem 1.5rem;border:1px solid #c5c9bb;background:#e6e8dd;margin:2.5rem 0;}
.sz-prose .draft-action p {margin:.6rem 0;font-size:17px;line-height:1.9;}
.sz-prose .draft-action a {font-weight:700;}
@media(max-width:600px){
 .kg .kg-cost-visual{grid-template-columns:minmax(0,1fr);gap:16px}
 .kg .kg-donut{margin-inline:auto}
 .kg .kg-bar-row{padding:14px 12px}
 .kg .kg-grid,.kg .kg-pair,.kg .kg-reference,.kg .kg-triple {grid-template-columns:minmax(0,1fr);}
 .kg .kg-reference .kg-drawing {max-height:330px;aspect-ratio:4/3;min-height:220px;}
 .kg .kg-checks,.kg .kg-cost-legend {grid-template-columns:minmax(0,1fr);}
 .kg .kg-total {display:block;}
 .kg .kg-total strong {display:block;margin-top:.3rem;}
 .kg .kg-bar-caption {display:block;}
 .kg .kg-bar-caption strong {display:block;font-size:21px;}
 .sz-prose .kg table th,.sz-prose .kg table td {font-size:16px;padding:.55rem .3rem;}
 .sz-prose .kg h4 {font-size:20px!important;}
 .sz-prose .kg .kg-triple h4 {font-size:20px!important;}
 .sz-prose .draft-action {padding:1rem;}
}
