/* v1.20: existing fixed blue/grey/white tokens, local business UI only. */
.inline-demo{min-width:0}.demo-context{max-width:72ch}.demo-app{border:1px solid #cbd5e1;border-radius:16px;overflow:hidden;background:#fff;margin-top:24px}.demo-app-header{display:flex;align-items:center;justify-content:space-between;gap:24px;background:#f8fafc;padding:24px 32px;border-bottom:1px solid #e2e8f0}.demo-app-header h4{font-size:20px;line-height:1.5;margin:4px 0 0}.demo-app-label{font-size:14px;color:#475569}.demo-app .tk-btn{min-height:44px;white-space:normal}.demo-reset{flex-shrink:0}.demo-boundary{font-size:14px;line-height:1.7;color:#475569;margin:0;padding:16px 32px}.demo-tabs{display:flex;overflow-x:auto;gap:0;border-block:1px solid #e2e8f0;padding:0 24px;scrollbar-width:thin}.demo-tab{border:0;border-bottom:3px solid transparent;background:#fff;color:#334155;display:flex;gap:8px;align-items:center;padding:16px;min-height:64px;min-width:128px;flex:1;cursor:pointer;text-align:left;font:inherit;font-size:14px;line-height:1.6}.demo-tab[aria-pressed=true]{border-bottom-color:#2563eb;color:#1d4ed8;background:#eff6ff;font-weight:700}.demo-tab-number{font-variant-numeric:tabular-nums;color:#64748b}.demo-stage{padding:32px;min-width:0}.demo-stage:focus{outline:3px solid #2563eb;outline-offset:-3px}.demo-screen-heading{margin-bottom:24px}.demo-screen-heading h5{font-size:20px;margin:0 0 8px;line-height:1.5}.demo-screen-heading p{font-size:14px;color:#475569;margin:0;line-height:1.75}.demo-field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}.demo-input-form{padding-bottom:32px;border-bottom:1px solid #e2e8f0;margin-bottom:32px}.demo-input-form>.tk-btn{margin-top:24px}.demo-field{display:flex;flex-direction:column;gap:8px;min-width:0}.demo-label{font-size:14px;line-height:1.6;font-weight:700;color:#334155}.demo-app input,.demo-app select,.demo-app textarea{font:inherit;font-size:16px;line-height:1.7;min-width:0;max-width:100%;box-sizing:border-box;color:#0f172a}.demo-input{width:100%;min-height:48px}.demo-app textarea{resize:vertical}.demo-app [aria-invalid=true]{outline:2px solid #b91c1c;outline-offset:2px}.demo-document{display:grid;gap:24px}.demo-document-section{border:1px solid #e2e8f0;border-radius:8px;padding:24px;display:grid;gap:16px;background:#fff}.demo-document-section>.demo-field:first-child input{font-weight:700}.demo-data-panel{margin-top:24px}.demo-data-tools{display:flex;align-items:flex-end;justify-content:space-between;gap:24px;margin-bottom:16px}.demo-data-tools>.demo-field{width:min(400px,100%)}.demo-row-count{white-space:nowrap;font-size:14px;color:#475569;padding-bottom:12px}.demo-table-scroll{overflow:auto;max-width:100%;border:1px solid #cbd5e1;border-radius:8px}.demo-table{min-width:760px;width:100%;border-collapse:collapse;table-layout:fixed}.demo-table th{background:#f1f5f9;text-align:left;font-size:14px;line-height:1.6;padding:16px;font-weight:700}.demo-table td{border-top:1px solid #e2e8f0;padding:12px;vertical-align:top}.demo-cell-input{width:100%;padding:8px;border:1px solid transparent;border-radius:4px;background:#fff;min-height:44px}.demo-cell-input:hover{border-color:#94a3b8}.demo-cell-input:focus{border-color:#2563eb;outline:2px solid #2563eb;outline-offset:1px}.demo-table tr:nth-child(even) td,.demo-table tr:nth-child(even) .demo-cell-input{background:#f8fafc}.demo-empty,.demo-pending{padding:16px;background:#eff6ff;color:#1e40af;font-size:14px;line-height:1.7}.demo-conversation{display:grid;gap:16px}.demo-bubble{border:1px solid #e2e8f0;border-radius:12px;padding:20px 24px;max-width:90%}.demo-bubble:nth-child(even){background:#eff6ff;margin-left:auto}.demo-bubble>.demo-field{margin-top:12px}.demo-chat-compose{border-top:1px solid #e2e8f0;padding-top:24px;margin-top:24px;display:grid;gap:16px}.demo-screen-actions{display:flex;flex-wrap:wrap;gap:16px;margin-top:32px;padding-top:24px;border-top:1px solid #e2e8f0}.demo-footer{display:flex;gap:16px;align-items:center;justify-content:space-between;padding:20px 32px;border-top:1px solid #e2e8f0;background:#f8fafc}.demo-footer span{font-size:14px;font-variant-numeric:tabular-nums}.demo-status{font-size:14px;line-height:1.75;padding:0 32px;color:#334155;min-height:24px}.demo-status:empty{display:none}.demo-app button:focus-visible,.demo-app a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}.demo-app button:disabled{cursor:default;opacity:.6}.demo-item-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:24px}.demo-item{border:1px solid #e2e8f0;border-radius:8px;padding:24px;display:grid;gap:16px}.demo-item h5{font-size:18px;margin:0}.demo-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.demo-metrics dt{font-size:14px}.demo-metrics dd{font-size:24px;margin:8px 0;font-weight:700;color:#1d4ed8}.demo-visual-example{margin-top:32px}.demo-no-js article{margin-top:24px}.industry-example{margin-top:32px;border-top:1px solid #e2e8f0;padding-top:24px}.industry-example h3{font-size:20px}.industry-example ol{display:grid;gap:16px;padding-left:24px}.industry-example li strong{display:block;color:#1e40af}.industry-example dl{display:grid;gap:16px}.industry-example dt{font-weight:700}.industry-example dd{margin:4px 0 0}.demo-app [hidden]{display:none!important}
@media(max-width:767px){.demo-app-header{padding:20px;align-items:flex-start;flex-direction:column;gap:16px}.demo-boundary{padding:16px 20px}.demo-tabs{padding:0 8px}.demo-tab{flex:0 0 160px;padding:12px;min-height:64px}.demo-stage{padding:24px 16px}.demo-field-grid,.demo-item-grid{grid-template-columns:1fr;gap:20px}.demo-document-section,.demo-item{padding:16px}.demo-footer{padding:16px;gap:12px;flex-wrap:wrap}.demo-footer .tk-btn{flex:1}.demo-status{padding:0 16px}.demo-bubble{max-width:100%;padding:16px}.demo-data-tools{gap:12px}.demo-table{min-width:720px}.demo-app-header h4,.demo-screen-heading h5{font-size:18px}.demo-metrics{grid-template-columns:1fr}.demo-screen-actions{flex-direction:column}.demo-screen-actions .tk-btn{width:100%}}
@media(forced-colors:active){.demo-tab[aria-pressed=true]{border-color:Highlight}.demo-app button:disabled{opacity:1;color:GrayText}.demo-cell-input{border:1px solid ButtonText}}
.demo-board-grid,.demo-calendar-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.demo-record-card{min-width:0;border:1px solid #cbd5e1;border-radius:8px;padding:20px;display:grid;align-content:start;gap:16px}.demo-record-card h6{font-size:18px;line-height:1.6;margin:0;color:#1e40af}.demo-calendar-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.demo-calendar-grid .demo-record-card{border-top:4px solid #2563eb}.demo-input-summary{margin-top:32px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;padding:24px;display:grid;gap:16px}.demo-input-summary dt{font-size:14px;font-weight:700}.demo-input-summary dd{margin:4px 0 0;overflow-wrap:anywhere}.demo-summary-title{font-weight:700}.demo-app dl>div{min-width:0}@media(max-width:1023px){.demo-board-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:767px){.demo-board-grid,.demo-calendar-grid{grid-template-columns:1fr}.demo-input-summary{padding:16px}}
.demo-stage{scroll-margin-top:112px}.domain-preview{margin:0 0 32px;padding:24px;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px}.domain-preview h6{font-size:18px;line-height:1.6;margin:0 0 20px}.domain-compare{display:grid;grid-template-columns:1fr 1fr;gap:24px;align-items:start}.domain-compare>*{min-width:0}.domain-preview figure{margin:0}.domain-preview svg{display:block;width:100%;height:auto;max-height:400px}.domain-preview figcaption,.domain-preview small{display:block;font-size:14px;line-height:1.7;color:#475569;margin-top:12px}.domain-findings{display:grid;gap:16px}.domain-findings>div{display:grid;gap:4px;padding-bottom:12px;border-bottom:1px solid #cbd5e1}.domain-findings span{font-size:16px}.domain-findings small{margin:0}.domain-location-buttons{display:flex;flex-wrap:wrap;gap:8px}.domain-location-buttons .tk-btn{font-size:14px;padding:8px}.domain-location-buttons [aria-pressed=true]{background:#dbeafe;border-color:#2563eb}.domain-crop-photo{width:100%;display:block;border-radius:8px;object-fit:contain;max-height:400px}.domain-crop-context{display:grid;gap:12px}.domain-crop-context p{margin:0}.domain-lp-preview{padding:32px;background:white;border:1px solid #cbd5e1;border-radius:8px}.domain-lp-brand{font-size:16px;font-weight:700;color:#2563eb}.domain-lp-preview h6{font-size:28px;max-width:24ch;margin-top:32px}.domain-lp-preview p{max-width:62ch}.domain-lp-preview .tk-btn{margin:16px 0}.demo-domain-host:empty{display:none}@media(max-width:767px){.domain-preview{padding:16px}.domain-compare{grid-template-columns:1fr;gap:24px}.domain-lp-preview{padding:24px 16px}.domain-lp-preview h6{font-size:24px}.demo-stage{scroll-margin-top:96px}}
/* Keep diagram labels at their authored size; scroll the local figure instead. */
.domain-compare>figure{overflow-x:auto;scrollbar-width:thin}.domain-compare>figure>svg{min-width:500px;max-height:none}.domain-rebar-detail{overflow-x:auto;scrollbar-width:thin}.domain-rebar-detail>svg{min-width:400px;max-height:none}.domain-preview [tabindex="0"]:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.demo-review-panel{margin:24px 0;padding:24px;border:1px solid #cbd5e1;border-radius:8px;background:#f8fafc}.demo-review-panel h6{font-size:18px;margin:0 0 12px}.demo-review-row{padding:20px 0;border-top:1px solid #e2e8f0}.demo-review-check{display:flex;align-items:center;gap:12px;min-height:44px;font-size:16px;cursor:pointer}.demo-review-check input{width:20px;height:20px}.demo-verified-output{display:grid;gap:16px}.demo-verified-output dt{font-weight:700}.demo-verified-output dd{margin:4px 0 0}.legacy-source-drawings{display:grid;gap:24px;overflow:auto}.legacy-source-drawings svg{display:block;min-width:400px;max-width:100%;height:auto;stroke:#475569;fill:none;stroke-width:2}.legacy-source-drawings svg .sample-metal{fill:#e2e8f0}.legacy-source-drawings svg .candidate-outline{stroke:#2563eb;stroke-width:3}.legacy-source-drawings svg text{fill:#334155;stroke:none;font:16px 'Noto Sans JP',sans-serif}.legacy-source-drawings:focus-visible{outline:3px solid #2563eb}.demo-domain-host .example-chart{max-width:100%;overflow:auto}.demo-domain-host .example-chart>div{min-width:400px}.demo-domain-host .paper-form{max-width:100%}@media(max-width:767px){.demo-review-panel{padding:16px}}
/* Reference records and labels stay fixed; only explicitly linked case values are editable. */
.demo-app .demo-readonly{border:0;border-radius:0;background:transparent;padding:0;box-shadow:none;resize:none;cursor:text;min-height:0}.demo-app .demo-readonly:hover{border-color:transparent}.demo-document-section>.demo-field:first-child:has(.demo-readonly)>.demo-label{display:none}.demo-document-section>.demo-field:first-child .demo-readonly{font-weight:700;color:#334155;font-size:14px}
.demo-value-heading{margin:0;font-size:14px;line-height:1.7;color:#334155}.demo-reference-text{margin:0;font-size:16px;line-height:1.75;white-space:pre-wrap;overflow-wrap:anywhere}.demo-sr-only{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}.demo-export-wait{flex-basis:100%;margin:0}
.inline-demo .demo-document-section,.inline-demo .demo-bubble,.inline-demo .demo-item,.inline-demo .demo-record-card{margin-block:0;gap:16px}
