/* Workjigs. Printed-manual look: plain type, thin rules, dense tables. No gradients, no shadows. */
:root { --ink: #1b1d1f; --muted: #5f646b; --rule: #d5d8dc; --soft: #f4f5f6; --accent: #0b5cad; --flag: #8a4b00; --bg: #fff; }
@media (prefers-color-scheme: dark) { :root { --ink: #e7e9ec; --muted: #a2a8b0; --rule: #3a3f45; --soft: #1e2226; --accent: #6aa8ea; --flag: #e0a35a; --bg: #14171a; } }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 system-ui, -apple-system, "Segoe UI", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif; }
a { color: var(--accent); }
header.site, footer.site, main { max-width: 1040px; margin: 0 auto; padding: 0 20px; }
header.site { display: flex; align-items: baseline; gap: 20px; flex-wrap: wrap; border-bottom: 2px solid var(--ink); padding-top: 14px; padding-bottom: 10px; }
header.site .brand { font-weight: 700; font-size: 18px; color: var(--ink); text-decoration: none; letter-spacing: .02em; }
header.site nav { display: flex; gap: 16px; font-size: 14px; flex: 1; }
header.site nav a { color: var(--ink); text-decoration: none; }
header.site nav a:hover { text-decoration: underline; }
header.site details.lang { font-size: 14px; position: relative; }
header.site details.lang summary { cursor: pointer; list-style: none; color: var(--ink); }
header.site details.lang summary::-webkit-details-marker { display: none; }
header.site details.lang summary::after { content: ' \25BE'; font-size: 11px; }
header.site details.lang ul { position: absolute; inset-inline-end: 0; top: 1.8em; z-index: 5; margin: 0; padding: 6px 0; list-style: none; background: var(--bg); border: 1px solid var(--ink); columns: 2; column-gap: 0; width: 22em; }
header.site details.lang li a { display: block; padding: 3px 12px; color: var(--ink); text-decoration: none; }
header.site details.lang li a:hover { background: var(--soft); }
header.site details.lang li a[aria-current] { font-weight: 600; }
main { padding-top: 24px; padding-bottom: 48px; }
h1 { font-size: 28px; line-height: 1.25; margin: 8px 0 8px; }
.dek { font-size: 17px; color: var(--ink); max-width: 760px; margin: 0 0 20px; }
.crumb { font-size: 13px; color: var(--muted); }
.crumb a { color: var(--muted); }
h2 { font-size: 20px; margin: 36px 0 10px; padding-top: 10px; border-top: 1px solid var(--rule); }
article { max-width: 760px; }
article p, article li { margin: 0 0 12px; }
article table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 8px 0 16px; }
article th, article td { border: 1px solid var(--rule); padding: 6px 8px; text-align: start; vertical-align: top; }
article th { background: var(--soft); }
.formula { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; background: var(--soft); padding: 8px 12px; display: inline-block; }
.note { border-inline-start: 3px solid var(--flag); padding: 6px 12px; background: var(--soft); }
.muted { color: var(--muted); } .small { font-size: 13px; }
/* tool */
#app { border: 1px solid var(--ink); margin: 8px 0 32px; }
.step { padding: 14px 16px 16px; border-top: 1px solid var(--rule); }
.step:first-child { border-top: 0; }
.step h2 { border: 0; margin: 0 0 10px; padding: 0; font-size: 16px; display: flex; gap: 10px; align-items: center; }
.step h2 span { display: inline-grid; place-items: center; width: 22px; height: 22px; border: 1px solid var(--ink); font-size: 13px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; font-size: 14px; }
.drop { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 14px; border: 1px dashed var(--rule); }
.drop.over { border-color: var(--accent); background: var(--soft); }
.btn { font: inherit; font-size: 14px; padding: 6px 12px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); cursor: pointer; display: inline-block; }
.btn.primary { background: var(--ink); color: var(--bg); }
.btn.small { font-size: 13px; padding: 4px 10px; }
.btn:disabled { opacity: .4; cursor: default; }
select, input { font: inherit; font-size: 14px; padding: 4px 6px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); }
.status { font-size: 14px; min-height: 1.6em; margin-top: 6px; }
.summary { display: grid; grid-template-columns: max-content 1fr max-content 1fr max-content 1fr; gap: 2px 12px; font-size: 13px; margin: 6px 0 0; }
.summary dt { color: var(--muted); } .summary dd { margin: 0; font-variant-numeric: tabular-nums; }
.tablewrap { overflow-x: auto; }
table.data { border-collapse: collapse; width: 100%; font-size: 13px; font-variant-numeric: tabular-nums; }
table.data th, table.data td { border-bottom: 1px solid var(--rule); padding: 5px 8px; text-align: start; white-space: nowrap; }
table.data thead th { border-bottom: 1px solid var(--ink); font-weight: 600; }
table.data tfoot td { border-top: 1px solid var(--ink); border-bottom: 0; }
table.data .n { text-align: end; }
table.data input.p { text-align: end; width: 8em; }
.formula, table.data .n, .summary dd { unicode-bidi: plaintext; }
[dir="rtl"] table.data .n, [dir="rtl"] table.data input.p { text-align: left; }
td.flag { color: var(--flag); }
/* home */
ul.tools { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--ink); }
ul.tools li { border-bottom: 1px solid var(--rule); padding: 12px 0; }
ul.tools a { font-weight: 600; font-size: 17px; }
ul.tools .field { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
ul.tools p { margin: 4px 0 0; color: var(--ink); font-size: 15px; }
h3.fgroup { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; margin: 26px 0 0; padding: 0 0 6px; }
h2 + h3.fgroup { margin-top: 14px; }
h3.fgroup + ul.tools { border-top: 2px solid var(--ink); }
ul.tools .field-in { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; white-space: nowrap; }
footer.site { border-top: 1px solid var(--rule); padding-top: 14px; padding-bottom: 30px; font-size: 13px; color: var(--muted); }
footer.site nav { display: flex; gap: 14px; margin-bottom: 6px; }
footer.site nav a { color: var(--muted); }
@media (max-width: 640px) { header.site details.lang ul { width: 18em; }
  table.data thead { display: none; }
  table.data, table.data tbody { display: block; width: 100%; }
  table.data tfoot { display: table; width: 100%; }
  table.data tbody tr { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 12px; padding: 8px 0; border-bottom: 1px solid var(--rule); }
  table.data tbody td, table.data tbody td.n { border: 0; padding: 2px 0; white-space: normal; text-align: start; }
  table.data tbody td.lead { grid-column: 1 / -1; font-weight: 600; }
  table.data tbody td.no { display: none; }
  table.data tbody td[data-l]::before { content: attr(data-l); display: block; font-size: 11px; color: var(--muted); }
  table.data input.p { width: 100%; text-align: start; }
  table.data tfoot td { text-align: start; } h1 { font-size: 23px; } .dek { font-size: 16px; } .summary { grid-template-columns: max-content 1fr; } }
/* PDF takeoff workspace: full width, three columns, drawing in the middle */
#app.app-wide { width: calc(100vw - 32px); margin-inline-start: calc(50% - 50vw + 16px); border: 1px solid var(--ink); }
.tk { display: flex; flex-direction: column; height: max(600px, calc(100vh - 120px)); font-size: 13px; }
.tk-bar, .tk-tools { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 6px 8px; border-bottom: 1px solid var(--rule); }
.tk-gap { flex: 1; }
.tk-name { font-weight: 600; min-width: 12em; border-color: transparent; }
.tk-name:focus, .tk-name:hover { border-color: var(--rule); }
.tk-main { flex: 1; display: grid; grid-template-columns: 230px 1fr 320px; min-height: 0; }
.tk-left, .tk-right { overflow: auto; padding: 8px; border-inline-end: 1px solid var(--rule); }
.tk-right { border-inline-end: 0; border-inline-start: 1px solid var(--rule); }
.tk-left h3, .tk-right h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; margin: 10px 0 6px; display: flex; justify-content: space-between; align-items: center; }
.tk-filter { width: 100%; margin-bottom: 4px; }
.tk-sheets, .tk-conds { list-style: none; margin: 0; padding: 0; }
.tk-sheets li, .tk-conds li { display: flex; gap: 6px; align-items: center; padding: 4px 6px; cursor: pointer; border-bottom: 1px solid var(--rule); }
.tk-sheets li.on, .tk-conds li.on { background: var(--soft); outline: 1px solid var(--ink); }
.tk-sheets .nm, .tk-conds .nm { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-sheets .sc { color: var(--muted); font-size: 11px; } .tk-sheets .ct { font-size: 11px; background: var(--ink); color: var(--bg); padding: 0 5px; }
.warn { color: #c0392b !important; }
select.warn { border-color: #c0392b; }
.tk-conds i, .tk-tot i { display: inline-block; width: 10px; height: 10px; margin-inline-end: 6px; flex: none; }
.tk-conds .q { font-variant-numeric: tabular-nums; color: var(--muted); font-size: 12px; }
.tk-conds .ed { border: 0; background: none; cursor: pointer; color: var(--muted); font: inherit; }
.tk-center { display: flex; flex-direction: column; min-width: 0; }
.tk-tool { font: inherit; font-size: 12px; padding: 4px 8px; border: 1px solid var(--rule); background: var(--bg); color: var(--ink); cursor: pointer; }
.tk-tool.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
kbd { font: 10px ui-monospace, monospace; border: 1px solid var(--rule); padding: 0 3px; color: var(--muted); }
.tk-tool.on kbd { color: var(--bg); border-color: var(--bg); }
.tk-chk { display: inline-flex; gap: 4px; align-items: center; }
.tk-view { position: relative; flex: 1; overflow: hidden; background: #e9ebee; outline: none; touch-action: none; }
.tk-view canvas { position: absolute; inset: 0; }
.tk-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); padding: 20px; text-align: center; }
.tk-tip { position: absolute; background: var(--ink); color: var(--bg); padding: 2px 6px; font-size: 12px; pointer-events: none; font-variant-numeric: tabular-nums; }
.tk-status { display: flex; justify-content: space-between; padding: 3px 8px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 12px; min-height: 22px; }
.tk-tot td, .tk-tot th { white-space: normal !important; }
.tk-tot tr.it td:first-child { padding-inline-start: 22px; color: var(--muted); }
.tk-sel { border-top: 1px solid var(--ink); margin-top: 10px; padding-top: 6px; display: grid; gap: 6px; }
.tk-dlg { border: 1px solid var(--ink); padding: 16px 18px; max-width: 640px; width: 92vw; background: var(--bg); color: var(--ink); }
.tk-dlg::backdrop { background: rgba(0,0,0,.35); }
.tk-dlg h3 { margin: 0 0 10px; } .tk-dlg h4 { margin: 14px 0 4px; }
.tk-dlg .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; }
.tk-dlg label { display: grid; gap: 2px; font-size: 13px; grid-template-columns: minmax(0, 1fr); } .tk-dlg label > select { min-width: 0; max-width: 100%; }
.tk-dlg .row.end { justify-content: flex-end; margin-top: 14px; }
.tk-items input, .tk-items select { width: 100%; }
.tk-dlg.wide { max-width: 1180px; }
.tk-upa { display: grid; grid-template-columns: 230px 1fr; gap: 14px; align-items: start; }
.tk-upa-l li.on a { font-weight: 700; color: var(--ink); }
.tk-upa .grid4 { display: grid; grid-template-columns: 70px 2fr 1fr 70px; gap: 8px; margin-bottom: 8px; }
.tk-upa-t { table-layout: fixed; width: 100%; }
.tk-upa-t td, .tk-upa-t th { padding: 2px 3px; } .tk-upa-t input, .tk-upa-t select { min-width: 0; width: 100%; box-sizing: border-box; font-size: 13px; }
.tk-upa-t select { display: block; } .tk-upa-t .uref { margin-top: 2px; }
.tk-upa-t th:nth-child(1) { width: 19%; } .tk-upa-t th:nth-child(2) { width: 11%; } .tk-upa-t th:nth-child(3) { width: 6%; } .tk-upa-t th:nth-child(4) { width: 7%; } .tk-upa-t th:nth-child(5) { width: 6%; }
.tk-upa-t th:nth-child(6) { width: 14%; } .tk-upa-t th:nth-child(7), .tk-upa-t th:nth-child(8), .tk-upa-t th:nth-child(9) { width: 9%; } .tk-upa-t th:nth-child(10) { width: 10%; } .tk-upa-t th:nth-child(11) { width: 30px; }
.tk-upa-t .ub { margin-top: 2px; font-size: 12px; color: var(--muted); }
.tk-prc-t { table-layout: fixed; width: 100%; } .tk-prc-t td, .tk-prc-t th { padding: 2px 3px; } .tk-prc-t input, .tk-prc-t select { width: 100%; min-width: 0; box-sizing: border-box; font-size: 13px; }
.tk-prc-t th:nth-child(2) { width: 18%; } .tk-prc-t th:nth-child(3) { width: 11%; } .tk-prc-t th:nth-child(4) { width: 6%; } .tk-prc-t th:nth-child(12) { width: 30px; }
.tk-dlg label.inl { display: inline-flex; gap: 6px; align-items: center; }
.tk-tot tr.grp td { background: var(--rule); }
.tk-upa .grid4 input { width: 100%; box-sizing: border-box; }
.tk-dlg label.tk-chk { display: flex; gap: 6px; align-items: center; margin-top: 10px; }
@media (max-width: 820px) { .tk-upa { grid-template-columns: 1fr; } }
.btn.danger { border-color: #c0392b; color: #c0392b; }
.tk-plist { list-style: none; padding: 0; } .tk-plist li { padding: 4px 0; border-bottom: 1px solid var(--rule); }
@media (max-width: 900px) { .tk-main { grid-template-columns: 1fr; grid-template-rows: auto 60vh auto; } .tk { height: auto; } .tk-left, .tk-right { border: 0; max-height: 40vh; } }
.tk-empty[hidden], .tk-tip[hidden] { display: none; }
.tk-left h3 span { display: flex; gap: 4px; }
.tk-left h3 { flex-wrap: wrap; gap: 4px; }
.tk-tools label { white-space: nowrap; }
.tk-sel p, .tk-sel h3 { margin: 0; }
.tk-tot thead th { white-space: nowrap !important; }

/* construction schedule */
.sc { display: grid; gap: 6px; }
.sc-bar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.sc-bar .sc-name { font-weight: 600; min-width: 220px; flex: 1 1 24em; max-width: 34em; text-overflow: ellipsis; } /* project name: room for a sample name, … when longer (2026-11-22) */
@media (max-width: 600px) { .sc-bar .sc-name { flex-basis: 100%; max-width: none; } }
.sc-sep { width: 1px; height: 22px; background: var(--rule); }
.sc-menu { position: relative; } .sc-menu > summary { list-style: none; cursor: pointer; } .sc-menu > summary::-webkit-details-marker { display: none; }
.sc-menu > div { position: absolute; right: 0; z-index: 5; display: grid; gap: 4px; padding: 8px; background: var(--bg); border: 1px solid var(--ink); min-width: 200px; }
.sc-main { display: grid; grid-template-columns: minmax(320px, 46%) 1fr; height: 62vh; min-height: 380px; border: 1px solid var(--rule); }
.sc-grid { overflow: auto; position: relative; outline: none; border-right: 1px solid var(--rule); }
.sc-grid:focus .sc-c.cur { outline: 2px solid #2f6db5; outline-offset: -2px; }
.sc-ghead { position: sticky; top: 0; z-index: 2; display: flex; height: 44px; align-items: flex-end; background: var(--bg); border-bottom: 1px solid var(--rule); font-size: 12px; font-weight: 600; }
.sc-gbody { position: relative; }
.sc-row { position: absolute; left: 0; display: flex; height: 26px; border-bottom: 1px solid var(--rule); font-size: 13px; font-variant-numeric: tabular-nums; }
.sc-row.sel { background: color-mix(in srgb, var(--rule) 60%, transparent); }
.sc-row.crit .sc-c[data-c="2"] { color: #c0392b; } .sc-row.done { color: var(--muted); } .sc-row.new { color: var(--muted); }
.sc-c { flex: none; padding: 4px 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; border-right: 1px solid var(--rule); box-sizing: border-box; }
.sc-ghead .sc-c { padding: 4px 6px 6px; white-space: normal; line-height: 1.15; }
.sc-c.n { text-align: end; }
.sc-edit { width: 100%; height: 100%; border: 0; padding: 0; font: inherit; background: var(--bg); color: var(--ink); outline: 2px solid #2f6db5; }
.sc-gantt { overflow: auto; position: relative; }
.sc-sticky { position: sticky; top: 0; left: 0; width: 100%; height: 100%; }
.sc-sticky canvas { display: block; }
.sc-foot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.sc-tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--ink); }
.sc-tab { border: 1px solid var(--rule); border-bottom: 0; background: none; padding: 6px 12px; cursor: pointer; color: var(--ink); font: inherit; font-size: 13px; }
.sc-tab.on { border-color: var(--ink); font-weight: 600; }
.sc-panel { padding: 8px 2px 16px; min-height: 160px; }
.sc-det .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; }
.sc-det label, .sc-panel label { display: grid; gap: 2px; font-size: 13px; } .sc-panel .row label { display: inline-flex; align-items: center; gap: 4px; }
.sc-det input, .sc-det select, .sc-det textarea { width: 100%; box-sizing: border-box; }
.sc-curve { width: 100%; height: 220px; display: block; margin: 6px 0; }
.sc-twocol { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 900px) { .sc-main { grid-template-columns: 1fr; height: auto; } .sc-gantt { height: 50vh; } .sc-det .grid4, .sc-twocol { grid-template-columns: 1fr 1fr; } }
.sc-tl-box { overflow: auto; width: 100%; max-width: 100%; contain: inline-size; box-sizing: border-box; max-height: 72vh; border: 1px solid var(--rule); margin: 6px 0 10px; -webkit-overflow-scrolling: touch; } .sc-tl-box canvas { display: block; }
.sc-tl-conf td.lead { white-space: normal; }
/* 11/26 390 px: long axis choices (it) and the conflict table kept inside the panel */
.sc-panel { min-width: 0; max-width: 100%; } .sc-panel .row > label { min-width: 0; max-width: 100%; } .sc-panel select { max-width: 100%; min-width: 0; } .sc-panel table.sc-tl-conf { display: block; max-width: 100%; overflow-x: auto; }

/* conceptual estimate */
.es { display: grid; gap: 6px; }
.es-tabs { display: flex; gap: 2px; align-items: center; border-bottom: 1px solid var(--ink); flex-wrap: wrap; }
.es-main { display: grid; grid-template-columns: 290px minmax(0, 1fr) 360px; gap: 14px; align-items: start; }
.es-right { min-width: 0; overflow-x: auto; } .es-right table.data td, .es-right table.data th { padding: 4px 5px; } .es-right table.data { font-size: 12px; }
.es-left .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; } .es-left label, .es-right label { display: grid; gap: 2px; font-size: 13px; }
.es-left input, .es-left select, .es-left textarea, .es-right input { width: 100%; box-sizing: border-box; }
.es-left h3, .es-right h3 { margin: 4px 0 8px; } .es-left h4, .es-right h4 { margin: 14px 0 6px; }
.es-mid { min-width: 0; overflow-x: auto; }
.es-tbl input { width: 100%; box-sizing: border-box; text-align: end; font-size: 13px; } .es-tbl td { white-space: normal; vertical-align: top; padding: 3px 5px; } .es-tbl .en { text-align: start; }
.es-tbl tr.grp td, .es-right tr.grp td { background: color-mix(in srgb, var(--rule) 70%, transparent); }
.es-right .mkn { width: 9em; } .es-right .mkp { width: 3.5em; text-align: end; }
.es-bench-bar { position: relative; height: 10px; background: linear-gradient(90deg, #9db9de, #2f6db5); margin: 6px 0 4px; } .es-bench-bar i { position: absolute; top: -4px; width: 3px; height: 18px; background: var(--ink); }
.es-shares div { display: grid; grid-template-columns: 1fr 80px 44px; gap: 6px; align-items: center; font-size: 12px; } .es-shares b { display: block; height: 8px; background: #2f6db5; } .es-shares em { font-style: normal; text-align: end; }
@media (max-width: 1100px) { .es-main { grid-template-columns: 1fr; } }
/* first use (2026-11-05): required inputs on top, headline result first in the summary column, optional detail folded; on one column the summary comes before the element table */
.es-left .grid2 { align-items: end; } .es-left .span2 { grid-column: 1 / -1; } .es-left label > span, .es-right label > span { overflow-wrap: anywhere; }
.es-req { padding: 0 0 10px; } .es-more { padding: 10px 0 0; border-top: 1px solid var(--rule); }
.es-sec { border-top: 1px solid var(--rule); margin-top: 10px; } .es-sec > summary { cursor: pointer; font-weight: 600; padding: 8px 0; font-size: 15px; } .es-sec-b { padding: 0 0 8px; }
.es-mid > .es-sec { border-top: 0; margin-top: 0; } .es-mid > .es-sec > summary { padding-top: 0; }
.es-head { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px; border: 1px solid var(--ink); padding: 10px 12px; margin: 0 0 12px; }
.es-head div { display: grid; gap: 2px; align-content: start; } .es-head span { font-size: 12px; color: var(--muted); } .es-head b { font-size: 20px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.es-head div:first-child { grid-column: 1 / -1; } .es-head div:first-child b { font-size: 28px; }
.es-mk { display: grid; gap: 4px; margin: 0 0 10px; font-size: 13px; } .es-right .es-mk .mkn { width: 100%; } .es-mk > span { display: inline-flex; gap: 4px; align-items: center; white-space: nowrap; } .es-right .es-mk .mkp { width: 4.5em; }
@media (max-width: 1100px) { .es-left { order: 1; } .es-right { order: 2; } .es-mid { order: 3; } }

/* site and massing check */
.st { display: grid; gap: 6px; }
.st-main { display: grid; grid-template-columns: 330px minmax(0, 1fr); gap: 16px; align-items: start; }
.st-left label { display: grid; gap: 2px; font-size: 13px; margin-bottom: 6px; } .st-left input, .st-left select { width: 100%; box-sizing: border-box; }
.st-left label.tk-chk { display: flex; gap: 6px; align-items: center; } .st-left label.tk-chk input { width: auto; }
.st-left h3 { margin: 12px 0 6px; } .st-left .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; } .st-left .grid3 { display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 4px; margin-bottom: 4px; }
.st-poly input, .st-poly select { width: 100%; box-sizing: border-box; font-size: 12px; } .st-poly td { padding: 2px 3px; }
.st-mid { min-width: 0; } .st-views { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .st-views canvas { width: 100%; border: 1px solid var(--rule); display: block; }
.st .sc-panel input:not([type=checkbox]) { max-width: 9em; } .st .sc-panel table input { max-width: none; width: 100%; box-sizing: border-box; }
.st .sc-panel label.inl { display: inline-flex; gap: 4px; align-items: center; margin-right: 10px; }
@media (max-width: 1000px) { .st-main, .st-views { grid-template-columns: 1fr; } }
ol.tools.steps { counter-reset: step; padding-left: 0; } ol.tools.steps li { list-style: none; counter-increment: step; position: relative; padding-left: 2.2em; }
ol.tools.steps li::before { content: counter(step); position: absolute; left: 0; top: 0; font-weight: 700; width: 1.6em; text-align: center; border: 1px solid var(--ink); }
/* schedules */
.sd-opts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; font-size: 13px; } .sd-opts label.tk-chk { display: inline-flex; gap: 4px; align-items: center; }
.sd-empty { position: sticky; inset-inline-start: 6px; max-width: min(100%, calc(100vw - 56px)); white-space: normal; }
.sd-start { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 4px; } .sd-start .btn { font-size: 14px; }
.sd-wrap { overflow-x: auto; max-height: 70vh; overflow-y: auto; } .sd-t { min-width: 100%; } .sd-t thead th { position: sticky; top: 0; background: var(--bg); z-index: 1; }
.sd-t td { padding: 0; } .sd-t td select { min-width: 9.5em; } .sd-t td input, .sd-t td select { width: 100%; box-sizing: border-box; border: 0; background: transparent; padding: 5px 6px; font: inherit; color: inherit; }
.sd-t td.n input { text-align: end; } .sd-t td:not(:has(input,select)) { padding: 5px 6px; } .sd-t td.act { white-space: nowrap; padding: 2px; }
.sd-t td.mv, .sd-legend .mv { background: #eef4fb; } .sd-t td.blank, .sd-legend .blank { background: #fff6cc; } .sd-t td.bad, .sd-legend .bad { background: #fbe1e1; } .sd-t td.chg { outline: 2px solid #e0a800; outline-offset: -2px; }
.sd-t tr.gone td { text-decoration: line-through; color: var(--muted); } .sd-t td.rv { font-size: 12px; white-space: nowrap; } .sd-t td.rv.added { color: #1e7b34; } .sd-t td.rv.removed { color: #b3261e; } .sd-t td.el { padding: 2px 6px; color: var(--ink); }
.sd-legend span { padding: 1px 6px; border: 1px solid var(--rule); margin-right: 4px; } .sd-rev { padding: 2px 8px; border: 1px solid #e0a800; }
.sc-tab.warn { border-top: 2px solid #e0a800; } .sd-area { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; } .sd-hw { border: 1px solid var(--rule); padding: 8px; margin: 8px 0; } .sd-hw input { width: 100%; box-sizing: border-box; }
.sd-hw .row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; } .sd-hw .row input { width: 12em; } .sd-cols { padding-left: 1.4em; } .sd-cols li { display: flex; gap: 6px; align-items: center; } .sd-cols label.tk-chk { flex: 1; margin: 2px 0; }
@media (max-width: 800px) { .sd-area { grid-template-columns: 1fr; } }
@media (max-width: 640px) {
  .sd .sd-t { display: table; width: max-content; min-width: 100%; } .sd .sd-t thead { display: table-header-group; } .sd .sd-t tbody { display: table-row-group; width: auto; } .sd .sd-t tfoot { display: table-footer-group; }
  .sd .sd-t tbody tr { display: table-row; padding: 0; } .sd .sd-t tbody td, .sd .sd-t tbody td.n { display: table-cell; border-bottom: 1px solid var(--rule); padding: 0; white-space: nowrap; } .sd .sd-t tbody td.n input { text-align: end; } .sd .sd-t tbody td:not(:has(input,select)) { padding: 5px 6px; }
  .sd .sc-tabs { overflow-x: auto; flex-wrap: nowrap; } .sd .sc-tab { white-space: nowrap; flex: none; }
}
/* site diary */
.dy-date { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 8px 0; font-size: 13px; } .dy-date input[type=date] { font: inherit; padding: 3px 4px; }
.dy-main { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 16px; align-items: start; } .dy-side { position: sticky; top: 8px; font-size: 13px; }
.dy-sec { border-top: 1px solid var(--rule); padding: 8px 0 12px; } .dy-sec h3 { margin: 4px 0 8px; font-size: 15px; } .dy-sec textarea { width: 100%; box-sizing: border-box; font: inherit; }
.dy-sec label { display: grid; gap: 2px; font-size: 13px; margin-top: 6px; } .dy-sec label.tk-chk { display: flex; gap: 6px; align-items: center; }
.dy-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px 10px; } .dy-grid input { width: 100%; box-sizing: border-box; }
.dy-t td { padding: 2px 3px; } .dy-t input, .dy-t select { box-sizing: border-box; font: inherit; max-width: 100%; } .dy-t td.wide input { width: 100%; } .dy-t tr.muted td { color: var(--muted); }
.dy-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 10px; margin-top: 8px; } .dy-photo { margin: 0; border: 1px solid var(--rule); } .dy-photo img { width: 100%; height: 140px; object-fit: cover; display: block; background: #f2f2f2; }
.dy-photo figcaption { padding: 4px; display: grid; gap: 3px; } .dy-photo figcaption input { width: 100%; box-sizing: border-box; }
.dy-signs { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; } .dy-sign { display: grid; gap: 3px; border: 1px solid var(--rule); padding: 6px; } .dy-closed { color: #1e6b34; font-weight: 600; }
.dy-cal { border: 1px solid var(--rule); padding: 6px; } .dy-calh { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; } .dy-calg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.dy-calg button { border: 1px solid transparent; background: none; padding: 4px 0; font: inherit; font-size: 12px; cursor: pointer; color: var(--ink); } .dy-calg button.has { border-color: var(--ink); } .dy-calg button.closed { background: var(--ink); color: var(--bg); } .dy-calg button.on { outline: 2px solid #e0a800; } .dy-calg button.delay { border-bottom: 3px solid #b3261e; }
.dy-warn { color: #8a5a00; padding-left: 1.2em; } .dy-tag { font-size: 11px; border: 1px solid #b3261e; color: #b3261e; padding: 0 3px; } .dy-empty { padding: 24px 0; } .dy-range { display: flex; flex-wrap: wrap; gap: 8px 14px; }
@media (max-width: 900px) { .dy-main { grid-template-columns: minmax(0, 1fr); } .dy-side { position: static; } }
@media (max-width: 640px) { .dy .dy-t { display: table; width: max-content; min-width: 100%; } .dy .dy-t thead { display: table-header-group; } .dy .dy-t tbody { display: table-row-group; } .dy .dy-t tfoot { display: table-footer-group; } .dy .dy-t tbody tr { display: table-row; padding: 0; } .dy .dy-t tbody td, .dy .dy-t tbody td.n { display: table-cell; border-bottom: 1px solid var(--rule); white-space: nowrap; padding: 2px 3px; } .dy-sec { overflow-x: auto; } .dy .sc-tabs { overflow-x: auto; flex-wrap: nowrap; } .dy .sc-tab { white-space: nowrap; flex: none; } }
/* first use (2026-11-06): the day at a glance on top, optional sections folded and remembered per browser */
.dy-head { display: grid; grid-template-columns: repeat(4, minmax(0, auto)); justify-content: start; gap: 6px 22px; border: 1px solid var(--ink); padding: 8px 12px; margin: 0 0 6px; }
.dy-head div { display: grid; gap: 1px; align-content: start; } .dy-head span { font-size: 12px; color: var(--muted); } .dy-head b { font-size: 20px; font-variant-numeric: tabular-nums; } .dy-head b.dy-head-w { font-size: 14px; font-weight: 600; padding-top: 4px; overflow-wrap: anywhere; }
.dy-head p { grid-column: 1 / -1; margin: 0; } .dy-head:empty { display: none; }
details.dy-fold > summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 4px 0; } details.dy-fold[open] > summary { margin-bottom: 6px; }
details.dy-sub { margin-top: 8px; } details.dy-sub > summary { font-size: 13px; }
@media (max-width: 640px) { .dy-head { grid-template-columns: 1fr 1fr; } }
.dy input.dy-bad { border-color: #b3261e; background: #fdf0ef; outline-color: #b3261e; }
.dy-preview { margin: 14px 0 22px; padding: 12px; border: 1px solid var(--rule); background: #f4f4f2; max-width: 820px; } .dy-preview figcaption { margin-bottom: 8px; }
.dy-pv-page { background: #fff; color: #000; padding: 18px 20px 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-size: 12px; line-height: 1.35; }
.dy-pv-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; } .dy-pv-head { display: flex; flex-wrap: wrap; gap: 4px 22px; color: #444; font-size: 11px; margin: 0 0 8px; }
.dy-pv-page h4 { font-size: 12.5px; margin: 10px 0 3px; } .dy-pv-text { margin: 0 0 4px; white-space: normal; } .dy-pv-scroll { overflow-x: auto; }
.dy-pv-t { border-collapse: collapse; width: 100%; font-size: 11px; } .dy-pv-t th, .dy-pv-t td { border: 1px solid #555; padding: 2px 4px; text-align: start; vertical-align: top; } .dy-pv-t th { background: #eee; font-weight: 700; }
.dy-pv-t .n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; } .dy-pv-t tfoot td { font-weight: 700; background: #f6f6f6; }
.dy-pv-signs { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 12px; } .dy-pv-signs div { border: 1px solid #555; min-height: 52px; padding: 3px 5px; display: grid; align-content: space-between; font-size: 11px; } .dy-pv-signs span { color: #555; font-size: 10px; }
.dy-pv-foot { color: #777; font-size: 10px; margin: 10px 0 0; }
@media (max-width: 640px) { .dy-pv-page { padding: 10px; } .dy-pv-t { font-size: 10.5px; min-width: 560px; } .dy-pv-signs { grid-template-columns: 1fr; } }
.dy-t td.wide { min-width: 16em; } .dy-sec label.btn { display: inline-block; margin-top: 0; }
/* permit self-check */
@media (max-width: 600px) { .pm .sc-bar { position: relative; } .pm .sc-menu { position: static; } .pm .sc-menu > div { left: 0; right: auto; } }
.pm-opts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin: 8px 0; font-size: 13px; } .pm-old { color: #b3261e; }
.pm-q h3 { font-size: 15px; margin: 14px 0 6px; } .pm-qs { display: grid; gap: 6px; } .pm-qrow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; align-items: center; border-bottom: 1px solid var(--rule); padding: 4px 0; font-size: 13px; }
.pm-qrow details, .pm-qrow .pm-sug { grid-column: 1 / -1; } .pm-yn { display: flex; gap: 10px; } .pm-yn label { display: inline-flex; gap: 3px; align-items: center; } .pm-sug { color: #1e5f8a; }
.pm-jp { border: 1px solid var(--rule); padding: 4px 8px; margin: 4px 0; font-size: 13px; } .pm-jpl { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 2px 12px; max-height: 320px; overflow: auto; } .pm-jpl label.tk-chk { display: flex; gap: 6px; align-items: flex-start; }
.pm-sum { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 8px 0; border-bottom: 1px solid var(--ink); margin: 10px 0 4px; font-size: 13px; } .st-missing { color: #b3261e; } .st-check { color: #8a5a00; } .st-have { color: #1e6b34; }
.pm-t td { vertical-align: top; } .pm-t tr.pm-g td { background: #f2f2f2; font-weight: 600; } .pm-t tr.pm-item td:first-child { padding-left: 20px; } .pm-t input { width: 100%; box-sizing: border-box; min-width: 10em; font: inherit; }
.pm-st { display: inline-flex; gap: 2px; flex-wrap: wrap; align-items: center; } .pm-st button { border: 1px solid var(--rule); background: none; font: inherit; font-size: 12px; padding: 2px 6px; cursor: pointer; color: var(--ink); white-space: nowrap; }
.pm-st button.on.st-have { background: #e6f4ea; border-color: #1e6b34; } .pm-st button.on.st-missing { background: #fbe1e1; border-color: #b3261e; } .pm-st button.on.st-na { background: #eee; border-color: #888; } .pm-st button.on.st-check { background: #fff6cc; border-color: #8a5a00; }
.pm-t tr.st-row-missing td:first-child { box-shadow: inset 3px 0 #b3261e; } .pm-t tr.st-row-na td { color: var(--muted); }
@media (max-width: 640px) { .pm .pm-t, .pm .pm-t tbody { display: table; width: 100%; } .pm .pm-t thead { display: none; } .pm .pm-t tbody tr { display: table-row; } .pm .pm-t tbody td { display: block; border: 0; padding: 2px 0; } .pm .pm-t tbody tr td:last-child { border-bottom: 1px solid var(--rule); padding-bottom: 6px; } .pm-qrow { grid-template-columns: 1fr; } }
.pm-t { width: 100%; table-layout: fixed; } .pm-t th:nth-child(2), .pm-t td:nth-child(2) { width: 300px; } .pm-t th:nth-child(3), .pm-t td:nth-child(3) { width: 220px; } table.data.pm-t td, table.data.pm-t th { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 640px) { .pm-t { table-layout: auto; } .pm-t td:nth-child(2), .pm-t td:nth-child(3) { width: auto; } }
/* solar */
.sv-main { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 18px; align-items: start; } .sv-left h3 { font-size: 14px; margin: 14px 0 6px; border-top: 1px solid var(--rule); padding-top: 8px; } .sv-left h3:first-child { border-top: 0; padding-top: 0; }
.sv-left label { display: grid; gap: 2px; font-size: 12.5px; margin-bottom: 5px; } .sv-left input, .sv-left select, .sv-left textarea { width: 100%; box-sizing: border-box; font: inherit; } .sv-left .row { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; } .sv-left label.inl { display: inline-flex; gap: 4px; align-items: center; } .sv-left label.inl select { width: auto; }
.sv-unit { display: flex; gap: 4px; } .sv-unit select { width: 6.5em !important; } .sv-temps { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; } .sv-paste { margin: 4px 0 8px; font-size: 13px; } .sv-paste textarea { margin: 4px 0; }
.sv-vars { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .sv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 6px 10px; } .sv-grid label { display: grid; gap: 2px; font-size: 12.5px; } .sv-grid input, .sv-grid select { width: 100%; box-sizing: border-box; font: inherit; }
.sv-need { padding: 18px 0; color: var(--muted); } .sv-sum { font-weight: 600; padding: 6px 8px; border: 1px solid; } .sv-sum.ok { border-color: #1e6b34; color: #1e6b34; } .sv-sum.bad { border-color: #b3261e; color: #b3261e; }
table.data tr.sv-bad td { background: #fbe1e1; } table.data tr.sv-warn td { background: #fff6cc; } table.data.sv-strings tr.cur td { background: #e6f4ea; font-weight: 600; }
.sv-kpi { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 8px 0; font-size: 14px; } .sv-kpi b { font-size: 18px; }
.sv-bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; height: 140px; align-items: end; margin: 10px 0 18px; } .sv-bar { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; } .sv-bar span { width: 100%; background: #e0a800; display: block; } .sv-bar em { font-style: normal; font-size: 11px; position: absolute; bottom: -16px; color: var(--muted); }
@media (max-width: 900px) { .sv-main { grid-template-columns: minmax(0, 1fr); } }
.sv-sld { overflow-x: auto; border: 1px solid var(--rule); } .sv-sld svg { display: block; max-width: none; } .sv-bom input { width: 100%; box-sizing: border-box; font: inherit; } .sv-bom td { padding: 2px 3px; } .sv-q { max-width: 420px; margin: 8px 0; } .sv-q tr.b td { font-weight: 700; } .sv-file { display: inline-block; margin: 2px 0 6px; }
/* battery */
.bt-months { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px 6px; } .bt-months label { font-size: 12px; } .bt-chart { width: 100%; height: 260px; display: block; margin: 8px 0; border: 1px solid var(--rule); }
.bt-legend span { margin-right: 12px; } .bt-legend span::before { content: ''; display: inline-block; width: 14px; height: 3px; margin-right: 4px; vertical-align: middle; } .bt-legend .l1::before { background: #222; } .bt-legend .l2::before { background: #e0a800; } .bt-legend .l3::before { background: #b3261e; } .bt-legend .l4::before { background: #1e5f8a; }
table.data tr.cur td { background: #e6f4ea; }
/* food label */
.fd-add { position: relative; } .fd-add input { width: 100%; } .fd-hits { display: flex; flex-direction: column; max-height: 260px; overflow: auto; } .fd-hits button { text-align: start; font: inherit; font-size: 13px; padding: 4px 6px; border: 0; border-bottom: 1px solid var(--rule); background: var(--bg); color: var(--ink); cursor: pointer; } .fd-hits button:hover { background: var(--rule); }
.fd-addbtns { display: flex; flex-wrap: wrap; gap: 4px; margin: 6px 0; }
.fd-ing { border-bottom: 1px solid var(--rule); padding: 4px 0; } .fd-iname { font: inherit; font-size: 13px; border: 0; background: none; color: var(--ink); text-align: start; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.fd-irow { display: grid; grid-template-columns: 70px 1fr auto auto auto; gap: 4px; align-items: center; margin-top: 2px; } .fd-irow select { min-width: 0; } .fd-irow .bad, .fd-basis .bad { color: #b3261e; }
.fd-scale { display: flex; gap: 6px; align-items: end; } .fd-cc { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.fd-labels { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; } .fd-label { margin: 0; max-width: 340px; } .fd-label figcaption { font-weight: bold; margin-bottom: 4px; } .fd-svg svg { display: block; max-width: 100%; height: auto; background: #fff; }
.fd-stmt { font-size: 12px; margin: 8px 0 0; } .fd-alg { display: inline-block; font-size: 12px; font-weight: bold; background: #eee; color: #000; padding: 2px 6px; margin: 4px 0 0; }
.fd-basis td, .fd-basis th { font-size: 12px; white-space: nowrap; } .fd-al { min-width: 320px; } .fd-al .ck { display: inline-block; font-size: 12px; margin-right: 8px; } .fd-iltab input { width: 140px; }
.fd-cin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; margin: 10px 0; } .fd-csum { max-width: 520px; }
.fd-checks li.err b { color: #b3261e; } .fd-checks li.warn b { color: #8a5a00; } .fd-checks li { margin-bottom: 4px; }
.fd-nut { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 4px 10px; } .fd-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } #fdDlg textarea { width: 100%; }
.fd label.ck { display: flex; gap: 6px; align-items: center; font-size: 13px; margin: 4px 0; } .fd label.ck input { width: auto; margin: 0; } .fd-cc label.ck { display: inline-flex; } .fd-al label.ck { display: inline-flex; margin: 2px 8px 2px 0; font-size: 12px; } .tk-dlg label.ck { display: flex; gap: 6px; align-items: center; margin-top: 8px; } .tk-dlg label.ck input { width: auto; }
.fd-svg { direction: ltr; } .fd-cost th { white-space: nowrap; } .fd-cost td:first-child { min-width: 200px; } .fd-cost input { width: 90px; } .fd-cost select { width: auto; } .fd-iltab td:first-child, .fd-basis td:first-child { min-width: 180px; }
/* concrete */
.cr-row { display: flex; flex-wrap: wrap; gap: 4px 8px; } .cr-row > label { flex: 1 1 120px; min-width: 0; } .cr label.ck { display: flex; gap: 6px; align-items: center; font-size: 13px; } .cr label.ck input { width: auto; }
.cr-steps td { font-size: 13px; } .cr td.num, .cr-steps td.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; } .cr textarea { width: 100%; font: inherit; font-size: 13px; }
.cr-sieve input { width: 70px; } .cr-sieve td { white-space: nowrap; } .cr-chart { width: 100%; max-width: 680px; height: auto; display: block; margin: 10px 0; border: 1px solid var(--rule); background: #fff; } .cr .bad { color: #b3261e; }
.cr .tk-table td, .cr .tk-table th { padding: 3px 10px; } .cr-steps td:nth-child(2) { color: var(--muted, #555); }
/* quality */
.qs-chars { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 6px; } .qs textarea { width: 100%; font: 12px ui-monospace, Menlo, monospace; } .qs label.ck { display: flex; gap: 6px; align-items: center; font-size: 13px; } .qs label.ck input { width: auto; }
.qs-chart { width: 100%; max-width: 700px; height: auto; display: block; margin: 6px 0 10px; background: #fff; border: 1px solid var(--rule); } .qs-pp { max-width: 440px; } .qs-text { font-size: 15px; line-height: 1.5; }
.qs-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 8px 24px; } .qs-idx td { padding: 2px 10px; } .qs td.num { text-align: end; font-variant-numeric: tabular-nums; }
.qs .tk-table td, .qs .tk-table th { padding: 3px 10px; }
/* logistics */
.lg-items input { width: 70px; } .lg-items td:nth-child(2) input { width: 160px; } .lg-sw { display: inline-block; width: 12px; height: 12px; border: 1px solid #333; } .lg-iso { width: 100%; max-width: 760px; height: auto; display: block; border: 1px solid var(--rule); background: #fff; }
.lg-view { width: 100%; max-width: 680px; height: auto; display: block; margin: 6px 0; } .lg-sum { font-size: 15px; } .lg td.num { text-align: end; font-variant-numeric: tabular-nums; } .lg .tk-table td, .lg .tk-table th { padding: 3px 8px; }
.qs-chart, .lg-view, .cr-chart, .lg-iso { direction: ltr; }
/* electrical */
.el-circ input.el-n { width: 64px; } .el-circ input.el-name { width: 150px; } .el-circ select { max-width: 150px; } .el-load { white-space: nowrap; } .el-load select { width: auto; }
.el-circ tr.ng td { background: #fdf0ef; } .el-res { white-space: nowrap; font-size: .9em; }
.el-v { font-weight: 600; } .el-v.ok { color: #1b6e2d; } .el-v.ng { color: #b3261e; }
.el-card { border: 1px solid var(--rule); padding: 8px 12px; margin: 10px 0; } .el-card.ng { border-color: #b3261e; } .el-card h3 { margin: 0 0 4px; font-size: 1em; }
.el-f { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; direction: ltr; unicode-bidi: isolate; overflow-wrap: anywhere; } .el-chk tr.ng td:first-child { color: #b3261e; }
.el-tbl input { width: 80px; } .el-warn { color: #6b4e00; }
/* moulding */
.md-sum th { text-align: left; font-weight: 500; white-space: nowrap; } .md-tiers td.num, .md-tiers th.num { text-align: right; } .md-tiers tr.tot td { border-top: 2px solid var(--rule); } .md-warn { color: #6b4e00; } #mdOut { margin-top: 18px; }
/* feed */
.fdm-tbl input { width: 70px; } .fdm-tbl input.fdm-name { width: 150px; } .fdm-mix td.num, .fdm-mix th.num, .fdm-an td.num, .fdm-an th.num { text-align: right; } .fdm-mix tr.muted td { color: #777; } .fdm-bad { color: #b3261e; } .fdm-warn { color: #6b4e00; } #fdOut { margin-top: 18px; }
.fdm-mix td, .fdm-mix th, .fdm-an td, .fdm-an th { padding: 3px 10px; }
/* hvac */
.hv-tbl input { width: 64px; } .hv-tbl input.hv-name { width: 130px; } .hv-tbl tr.on td { background: #f4f7fb; } .hv-sol { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px 8px; } .hv-sol input { width: 100%; }
.hv-res td.num, .hv-res th.num { text-align: right; } .hv-res td, .hv-res th { padding: 3px 8px; } .hv-cons { border: 1px solid var(--rule); padding: 6px 10px; margin: 8px 0; } .hv-warn { color: #6b4e00; } #hvOut { margin-top: 18px; }
/* tolerance */
.tl-tbl input { width: 72px; } .tl-tbl input.tl-name { width: 140px; } .tl-res td.num, .tl-res th.num { text-align: right; } .tl-res td, .tl-res th { padding: 3px 8px; } .tl-loop, .tl-bars, .tl-hist { width: 100%; max-width: 680px; height: auto; display: block; margin: 8px 0; } .tl-fit input { width: 64px; } .tl-warn { color: #6b4e00; } #tlOut { margin-top: 18px; }
.tl-res td.num { white-space: nowrap; }
/* electrical: phone cards */
.el-card2 { border: 1px solid var(--rule); padding: 8px; margin: 8px 0; } .el-card2.ng { border-color: #b3261e; } .el-card2-head { display: flex; gap: 6px; } .el-card2-head input { flex: 1; min-width: 0; }
.el-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 10px; } .el-f2 { display: flex; flex-direction: column; font-size: .85em; min-width: 0; } .el-f2 input, .el-f2 select { width: 100%; min-width: 0; box-sizing: border-box; }
.el-load { display: flex; gap: 4px; } .el-load input { flex: 1; min-width: 0; }
@media (max-width: 720px) { .el-chk td { font-size: .85em; overflow-wrap: anywhere; } .el-f { font-size: .8em; } }
/* wide tables scroll inside their box instead of widening the page (was missing; used by many tools) */
.tk-scroll { overflow-x: auto; max-width: 100%; -webkit-overflow-scrolling: touch; } .sv-right, .sv-left { min-width: 0; }
.el-f2 .el-load input { flex: 1; width: auto; min-width: 60px; } .el-f2 .el-load select { flex: none; width: auto; }
.el-prot > summary { cursor: pointer; list-style: revert; } .el-prot > summary h3 { display: inline; }
.el-v { white-space: nowrap; }
.el-tbl td:first-child { white-space: nowrap; } .el .tk-table td.num { white-space: nowrap; } @media (max-width: 720px) { .el-tbl input { width: 64px; } }
.el .sc-tabs { flex-wrap: wrap; row-gap: 4px; }
/* site: phone layout of the corner table, folded sections, four-column grid */
.st-more { margin: 8px 0; } .st-more > summary { cursor: pointer; font-weight: 600; } .grid4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px 10px; }
@media (max-width: 720px) { .grid4 { grid-template-columns: 1fr 1fr; }
}
/* the corner table sits in the narrow left column, so it is a list of cards at every width */
table.data.st-poly thead { display: none; } table.data.st-poly, table.data.st-poly tbody { display: block; width: 100%; } table.data.st-poly tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; border: 1px solid var(--rule); padding: 6px; margin: 6px 0; }
table.data.st-poly td { display: flex; flex-direction: column; border: 0; padding: 0; white-space: normal; min-width: 0; } table.data.st-poly td[data-l]::before { content: attr(data-l); font-size: 11px; color: #555; } table.data.st-poly td.st-pk { grid-column: 1 / -1; font-weight: 600; } table.data.st-poly td input, table.data.st-poly td select { width: 100%; box-sizing: border-box; min-width: 0; }
.sc-tabs { flex-wrap: wrap; row-gap: 4px; } .st, .st-main { min-width: 0; max-width: 100%; }
[dir="rtl"] #stPanel table.data td, [dir="rtl"] #stCheck table.data td { unicode-bidi: plaintext; text-align: right; }
#stCheck table.data td, #stPanel table.data td { white-space: normal; } #stCheck table.data td:first-child { min-width: 9em; } #stCheck table.data td a { overflow-wrap: anywhere; } .st-mid { overflow-x: auto; }
#stCheck table.data td:nth-child(5) { white-space: nowrap; }
/* estimate: fixed number columns, note under the element name, folding groups, phone cards */
.es-tbl { table-layout: fixed; } .es-tbl col.c-code { width: 52px; } .es-tbl col.c-q { width: 92px; } .es-tbl col.c-u { width: 46px; } .es-tbl col.c-r { width: 96px; } .es-tbl col.c-a { width: 104px; }
.es-tbl td.es-el .en { margin-top: 3px; text-align: start; font-size: 12px; } .es-tbl td.ea { white-space: nowrap; }
.es-fold { background: none; border: 0; padding: 0; font: inherit; color: inherit; cursor: pointer; text-align: start; }
.es-right table.data { table-layout: auto; } .es-right td.n { white-space: nowrap; } .es-right select { width: 100%; }
@media (max-width: 640px) {
  table.data.es-tbl colgroup { display: none; } table.data.es-tbl tbody tr[data-c] { grid-template-columns: 1fr 1fr; }
  table.data.es-tbl tbody tr[data-c] td.es-code { grid-column: 1 / -1; font-weight: 600; padding-bottom: 0; } table.data.es-tbl tbody tr[data-c] td.es-el { grid-column: 1 / -1; }
  table.data.es-tbl tbody tr.grp { display: flex; justify-content: space-between; } table.data.es-tbl tbody tr.grp td { border: 0; }
  .es-chg td.lead { grid-column: 1 / -1; } }
.es-right table.data th, .es-right table.data td:not(.n) { white-space: normal; } .es-right table.data { width: 100%; }
@media (max-width: 640px) { table.data.es-tbl tbody tr.grp { background: color-mix(in srgb, var(--rule) 70%, transparent); } table.data.es-tbl tbody tr.grp td { background: none; } }
.es-right .es-chg td.n { white-space: normal; } .es-right .es-chg td.n b { white-space: nowrap; }
footer.site nav { flex-wrap: wrap; row-gap: 4px; } .es-right table.data th { overflow-wrap: anywhere; hyphens: auto; }
.es-sens td.lead { white-space: nowrap; } @media (min-width: 641px) { .es-sens td.lead { font-weight: 400; } }
[dir="rtl"] .es-right table.data td { unicode-bidi: plaintext; text-align: right; }
@media (max-width: 640px) { article table { display: block; overflow-x: auto; max-width: 100%; } }
.pm-opts label.inl { max-width: 100%; display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px; } .pm-opts select { max-width: 100%; min-width: 0; }
.tk-cmp tr.chg td { font-weight: 600; } .tk-dlg .tk-cmp { margin-top: 6px; }

.qs .qs-msa { min-width:0; overflow-wrap:anywhere; }
.qs .qs-msa textarea { width:100%; box-sizing:border-box; font:12px monospace; }
.qs .qs-msa .cr-row { flex-wrap:wrap; }
.qs .sc-tabs { flex-wrap:wrap; }
.qs .sv-left, .qs .sv-right, .qs .sc-panel { min-width:0; }
.qs .sc-panel { overflow-x:auto; }

.qs .qs-msa .tk-table { min-width:620px; white-space:nowrap; overflow-wrap:normal; }
.qs .qs-msa .tk-scroll { max-width:100%; overflow-x:auto; }

/* Quality: non-normal capability */
.qs .qs-nn{min-width:0;overflow-wrap:anywhere}.qs .qs-nn select{max-width:100%;width:100%}.qs .qs-nn .tk-table{width:100%}.qs .qs-nn td,.qs .qs-nn th{white-space:normal}.qs .qs-nn label{display:block;margin:12px 0}

/* solar source comparison: keep wide tables local to their panel */
.sv-main>section{min-width:0}.sv-source-scroll{overflow-x:auto;max-width:100%}.sv-source th{white-space:normal;min-width:120px}.sv-source td:first-child{white-space:normal;min-width:155px}
.sv .sc-panel{overflow-x:auto}.sv .tk-dlg{max-width:calc(100vw - 32px)}
.sv .sv-source{display:table;min-width:660px}.sv .sv-source thead{display:table-header-group}.sv .sv-source tbody{display:table-row-group}.sv .sv-source tr{display:table-row}.sv .sv-source th,.sv .sv-source td{display:table-cell}.sv .sv-source td:before{display:none}
.bt table.data th { white-space: normal; overflow-wrap: anywhere; hyphens: auto; } .bt table.data { max-width: 100%; } .bt .sc-panel { overflow-x: auto; min-width: 0; }

.lg .sv-left,.lg .sv-right,.lg .sc-panel { min-width:0; }
.lg .sc-tabs { flex-wrap:wrap; }
.lg .tk-scroll { max-width:100%; overflow-x:auto; }
.lg-step { margin:16px 0; border-bottom:1px solid #ccc; }
.lg #lgDlg { max-width:calc(100vw - 32px); box-sizing:border-box; }
.lg #lgDlg textarea { width:100%; box-sizing:border-box; }
.lg .tk-table { max-width:100%; }

.concrete-acceptance { min-width:0; overflow-wrap:anywhere; }
.concrete-acceptance textarea { width:100%; box-sizing:border-box; }
.concrete-acceptance .tk-scroll { overflow-x:auto; max-width:100%; }
.concrete-acceptance select, .concrete-acceptance input, .concrete-acceptance textarea { max-width: 100%; min-width: 0; box-sizing: border-box; }
@media (max-width: 640px) { table.tk-table { display: block; overflow-x: auto; max-width: 100%; } } .lg table.tk-table th, .lg table.tk-table td { overflow-wrap: anywhere; }

/* moulding stage 2 */
.moulding-card{min-width:0;margin:1rem 0;padding:.75rem;border:1px solid var(--line,#ddd)}
.moulding-card .cr-row{flex-wrap:wrap}.moulding-card input{max-width:100%;min-width:0}.moulding-result{overflow-wrap:anywhere;margin:.5rem 0}
.md .sv-main>*{min-width:0}.md .sc-tabs{flex-wrap:wrap}.md .tk-dlg{max-width:calc(100vw - 24px)}

/* feed stage 2: constrain tables and dialogs to the viewport */
.fdm .sv-right,.fdm .sv-left{min-width:0}.fdm #fdOut{overflow-x:auto}.fdm .sc-panel{overflow-x:auto}.fdm dialog{max-width:calc(100vw - 32px)}.fdm dialog select,.fdm dialog textarea{max-width:100%;box-sizing:border-box}.fdm .sc-bar{flex-wrap:wrap}
.moulding-card label input, .moulding-card label select { width: 100%; box-sizing: border-box; min-width: 0; }
.md .cr-row { flex-wrap: wrap; } .md .cr-row > label { min-width: 0; } .md .cr-row > label > input, .md .cr-row > label > select { width: 100%; min-width: 0; }
.cr-row > label { grid-template-columns: minmax(0, 1fr); } .cr-row > label > input:not([type=checkbox]):not([type=radio]), .cr-row > label > select, .cr-row > label > textarea { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.hv-links { margin: 4px 0 6px; padding-left: 18px; overflow-wrap: anywhere; } .hv-psy { margin: 6px 0; } .hv-psy summary { cursor: pointer; } .hv-psy .cr-row label { min-width: 0; }
.tl-tbl input.tl-feat { width: 90px; } .tl-corr select { max-width: 160px; } .tl-corr input { width: 72px; } .tl-vecsvg { max-height: 320px; } .tl-sens td, .tl-posres td { white-space: nowrap; }
.hv-res td:first-child { min-width: 6em; } .hv-res th { white-space: nowrap; }
.tl-tbl td, .tl-tbl th { padding: 2px 3px; } .tl-tbl input { width: 54px; } .tl-tbl input.tl-name { width: 96px; } .tl-tbl input.tl-feat { width: 52px; } .tl-tbl input.tl-s { width: 42px; } .tl-tbl select { max-width: 86px; }
@media (max-width: 720px) { .tl-card tr.tl-h { display: none; } .tl-card, .tl-card tbody { display: block; width: 100%; } .tl-card tr { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 8px; border: 1px solid var(--rule); padding: 6px; margin: 6px 0; } .tl-card td { display: flex; flex-direction: column; border: 0; padding: 0; min-width: 0; } .tl-card td[data-l]::before { content: attr(data-l); font-size: 11px; color: #555; } .tl-card td.tl-lead { grid-column: 1 / -1; } .tl-card td.tl-del { grid-column: 1 / -1; align-items: flex-end; } .tl-card td input, .tl-card td select, .tl-card td input.tl-name, .tl-card td input.tl-s, .tl-card td input.tl-feat { width: 100%; max-width: 100%; box-sizing: border-box; min-width: 0; } }
.tl-tbl th { font-size: 12px; line-height: 1.25; overflow-wrap: anywhere; vertical-align: bottom; }
@media (max-width: 720px) { .tl-rcard tr { grid-template-columns: 1fr 1fr 1fr; } .tl-rcard td:first-child { grid-column: 1 / -1; font-weight: 600; } .tl-rcard td:empty { display: none; } .tl-rcard td.num { text-align: start; } .tl-rcard td.small { grid-column: 1 / -1; } }
.tl-posres td:first-child { white-space: normal; overflow-wrap: anywhere; min-width: 7em; } .tl-posres th { white-space: normal; overflow-wrap: anywhere; } .tl-posres td.small { white-space: normal; }
.related { margin-top: 28px; } .related h2 { font-size: 18px; }
.lg-preview { margin: 12px 0 20px; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; max-width: 720px; } .lg-preview figcaption { margin-bottom: 4px; } .lg-preview .lg-view { max-width: 680px; }
.lg-preview .lg-ptable td.num { text-align: end; font-variant-numeric: tabular-nums; } .lg-preview .lg-ptable td, .lg-preview .lg-ptable th { padding: 2px 6px; font-size: 13px; }
.lg input.lg-bad { border-color: #b3261e; outline: 1px solid #b3261e; background: #fff4f3; }
/* injection moulding: page preview of the sample quote, cycle bar, machine choice, marked inputs */
.mdp { border: 1px solid var(--rule); border-radius: 8px; padding: 12px 14px; margin: 14px 0 18px; } .mdp h2 { font-size: 1.05rem; margin: 0 0 10px; }
.mdp-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; align-items: start; } @media (max-width: 720px) { .mdp-grid { grid-template-columns: minmax(0, 1fr); } }
.mdp-bar { display: block; width: 100%; height: 22px; border-radius: 3px; } .mdp-legend { list-style: none; padding: 0; margin: 6px 0 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .85rem; }
.mdp-key { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; } .mdp-tiers td.num, .mdp-tiers th.num { text-align: right; } .mdp-tiers tr.tot td { border-top: 2px solid var(--rule); } .mdp table { margin: 0; }
.md-bad { outline: 2px solid #b3261e; outline-offset: -1px; background: #fff4f2; } .md-formula { font-variant-numeric: tabular-nums; overflow-wrap: anywhere; } .md-mach tr.pick td { background: #eef7f1; } .md-mach td.num, .md-mach th.num { text-align: right; }
#bill input.p.bad { border-color: #b3261e; background: #fbe1e1; } #billMsg { color: #b3261e; margin: 6px 0 0; } #billMsg:empty { display: none; }
.sc-preview { margin: 14px 0 22px; padding: 12px; border: 1px solid var(--rule); background: #fff; } .sc-preview figcaption { margin-bottom: 8px; }
.sc-pv-fig { border-collapse: collapse; font-size: 13px; margin-bottom: 10px; } .sc-pv-fig th { text-align: left; font-weight: 500; color: var(--muted); padding: 2px 14px 2px 0; } .sc-pv-fig td { padding: 2px 0; font-variant-numeric: tabular-nums; }
.sc-pv-scroll { overflow-x: auto; } .sc-pv-gantt { display: block; width: 100%; min-width: 760px; height: auto; } .sc-pv-c { max-width: 520px; } .sc-pv-curve { display: block; width: 100%; height: auto; }
.steps .handover { color: var(--ink); font-size: 14px; margin-top: 2px; }
/* conceptual cost estimate: page preview (page 1 of the budget PDF) and unreadable number inputs */
.es-preview { margin: 14px 0 22px; padding: 12px; border: 1px solid var(--rule); background: #f4f4f2; max-width: 820px; } .es-preview figcaption { margin-bottom: 8px; }
.es-pv-page { background: #fff; color: #000; padding: 18px 20px 10px; box-shadow: 0 1px 4px rgba(0, 0, 0, .18); font-size: 12px; line-height: 1.35; }
.es-pv-title { font-weight: 700; font-size: 17px; margin: 0 0 4px; } .es-pv-head { display: flex; flex-wrap: wrap; gap: 4px 22px; color: #444; font-size: 11px; margin: 0 0 8px; }
.es-pv-page h4 { font-size: 12.5px; margin: 10px 0 3px; } .es-pv-scroll { overflow-x: auto; }
.es-pv-t { border-collapse: collapse; width: 100%; font-size: 11px; } .es-pv-t th, .es-pv-t td { border: 1px solid #555; padding: 2px 4px; text-align: start; vertical-align: top; } .es-pv-t th { background: #eee; font-weight: 700; }
.es-pv-t .n { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; } .es-pv-t tr.sub td { font-weight: 700; background: #f3f5f8; } .es-pv-t tr.total td { font-weight: 700; background: #e3e9f2; border-top: 2px solid #000; }
.es-pv-build td { border-top-color: #999; } .es-pv-foot { color: #777; font-size: 10px; margin: 10px 0 0; }
@media (max-width: 640px) { .es-pv-page { padding: 10px; } .es-pv-t { font-size: 10.5px; } }
.es input.bad { border-color: #b3261e; background: #fbe1e1; }
.es-right table td, .es-right table th { overflow-wrap: anywhere; hyphens: auto; } .es-right table { max-width: 100%; }
/* shipment calculator */
.sh-lines input { width: 72px; } .sh-lines td:nth-child(2) input { width: 170px; } .sh td.num, .sh-preview td.num { text-align: end; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sh .tk-table td, .sh .tk-table th, .sh-preview .tk-table td, .sh-preview .tk-table th { padding: 3px 8px; } .sh-sum { font-size: 15px; } .sh-bad { outline: 2px solid #b3261e; }
.sh-scale tr.sh-on td { background: #fff3c4; font-weight: 600; } .sh-preview { margin: 12px 0 18px; } .sh-preview figcaption { margin-bottom: 4px; }
@media (max-width: 720px) { .sh-lines input { width: 58px; } .sh-lines td:nth-child(2) input { width: 120px; } }
/* u-value and condensation (uv-) */
.uv .uv-layers input { width: 64px; } .uv .uv-layers td:nth-child(2) input { width: 170px; } .uv .uv-layers select { max-width: 150px; } .uv-sw { display: inline-block; width: 12px; height: 12px; border: 1px solid #555; vertical-align: middle; }
.uv .uv-act { white-space: nowrap; } .uv .uv-act .btn { padding: 1px 6px; } .uv input.uv-bad, .uv select.uv-bad { outline: 2px solid #b3261e; background: #fff4f2; }
.uv td.num, .uv-preview td.num { text-align: end; font-variant-numeric: tabular-nums; } .uv .tk-table td, .uv .tk-table th { padding: 3px 8px; } .uv tr.uv-wet td { background: #e8f1fb; font-weight: 600; }
.uv-svg { width: 100%; max-width: 680px; height: auto; display: block; margin: 6px 0; border: 1px solid var(--rule); } .uv-fig { max-width: 100%; }
.uv #uvVerdict { margin: 0 0 8px; padding: 0; list-style: none; } .uv #uvVerdict li { margin-bottom: 4px; } .uv #uvVerdict li.ok b { color: #1e6b34; } .uv #uvVerdict li.uv-kpi b { font-size: 17px; color: inherit; }
.uv .uv-months input { width: 64px; } .uv-plist { list-style: none; padding: 0; } .uv-plist li { margin: 4px 0; }
.uv-preview { margin: 12px 0 20px; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; max-width: 720px; } .uv-preview .uv-pk { font-size: 15px; margin: 4px 0; } .uv-preview .uv-ptable td, .uv-preview .uv-ptable th { padding: 2px 6px; font-size: 13px; }
.uv-figs { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
@media (max-width: 700px) { .uv .uv-layers tr:first-child { display: none; } .uv .uv-layers, .uv .uv-layers tbody, .uv .uv-layers tr, .uv .uv-layers td { display: block; } .uv .uv-layers tr { border: 1px solid var(--rule); margin-bottom: 8px; padding: 4px; } .uv .uv-layers td { border: 0; padding: 2px 4px; } .uv .uv-layers td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); } .uv .uv-layers input, .uv .uv-layers td:nth-child(2) input, .uv .uv-layers select { width: 100%; max-width: 100%; box-sizing: border-box; } }
/* expansion vessel sizing (ev-) */
.ev .ev-parts input { width: 64px; } .ev .ev-parts td:first-child input { width: 150px; } .ev .ev-parts td, .ev .ev-parts th { padding: 3px 5px; } .ev .ev-act { white-space: nowrap; } .ev .ev-act .btn { padding: 1px 6px; }
.ev input.ev-bad, .ev select.ev-bad { outline: 2px solid #b3261e; background: #fff4f2; } .ev select { max-width: 100%; }
.ev td.num, .ev-preview td.num { text-align: end; font-variant-numeric: tabular-nums; } .ev .tk-table td, .ev .tk-table th { padding: 3px 8px; } .ev tr.ev-sel td { background: #e8f5e9; font-weight: 600; }
.ev-svg { width: 100%; max-width: 680px; height: auto; display: block; margin: 6px 0; border: 1px solid var(--rule); } .ev-fig { max-width: 100%; }
.ev #evVerdict { margin: 0 0 8px; padding: 0; list-style: none; } .ev #evVerdict li { margin-bottom: 4px; } .ev #evVerdict li.ok b { color: #1e6b34; } .ev #evVerdict li.ev-kpi b { font-size: 17px; color: inherit; }
.ev-plist { list-style: none; padding: 0; } .ev-plist li { margin: 4px 0; }
.ev-preview { margin: 12px 0 20px; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; max-width: 720px; } .ev-preview .ev-pk { font-size: 15px; margin: 4px 0; } .ev-preview .ev-ptable td, .ev-preview .ev-ptable th { padding: 2px 6px; font-size: 13px; }
@media (max-width: 700px) { .ev .ev-parts tr:first-child { display: none; } .ev .ev-parts, .ev .ev-parts tbody, .ev .ev-parts tr, .ev .ev-parts td { display: block; } .ev .ev-parts tr { border: 1px solid var(--rule); margin-bottom: 8px; padding: 4px; } .ev .ev-parts td { border: 0; padding: 2px 4px; } .ev .ev-parts td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; color: var(--muted); } .ev .ev-parts input, .ev .ev-parts td:first-child input { width: 100%; max-width: 100%; box-sizing: border-box; } .ev .ev-parts td.num { text-align: start; } }

/* embed mode (?embed=1): the tool only, with a brand link back */
.embed-by{display:none}
html.embed header.site,html.embed footer.site,html.embed .crumb,html.embed .dek,html.embed .local-terms,html.embed main>figure,html.embed .tool-stack>figure,html.embed main>article,html.embed .related,html.embed .embed-code,html.embed .ad{display:none}
html.embed main{padding-top:8px}
html.embed .embed-by{display:block;text-align:right;font-size:13px;margin:4px 12px 8px}
.embed-code{margin:24px 0;border:1px solid var(--line,#ddd);border-radius:6px;padding:8px 12px}
.embed-code summary{cursor:pointer;font-weight:600}
.embed-code textarea{width:100%;box-sizing:border-box;font:12px/1.4 ui-monospace,monospace;margin:8px 0}
/* roof snow load (sn-) */
.sn .sn-part { border: 1px solid var(--rule); padding: 6px 10px 8px; margin: 0 0 10px; min-width: 0; } .sn .sn-part legend { font-weight: 600; padding: 0 4px; }
.sn .sn-fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 4px 10px; } .sn .sn-fields label, .sn .sn-part .cr-row label { min-width: 0; } .sn .sn-fields input, .sn .sn-fields select { width: 100%; box-sizing: border-box; }
.sn input.sn-bad, .sn select.sn-bad { outline: 2px solid #b3261e; background: #fff4f2; } .sn select { max-width: 100%; } .sn .sn-warn { color: #8a5a00; } .sn .sn-scope { margin: 4px 0 8px; color: #8a5a00; }
.sn td.num, .sn-preview td.num { text-align: end; font-variant-numeric: tabular-nums; } .sn .tk-table td, .sn .tk-table th { padding: 3px 8px; } .sn tr.sn-max td { background: #fff3e0; font-weight: 600; }
.sn-svg { width: 100%; max-width: 680px; height: auto; display: block; margin: 6px 0; border: 1px solid var(--rule); } .sn-fig { max-width: 100%; }
.sn #snVerdict { margin: 0 0 8px; padding: 0; list-style: none; } .sn #snVerdict li { margin-bottom: 4px; } .sn #snVerdict li.ok b { color: #1e6b34; } .sn #snVerdict li.sn-kpi b { font-size: 17px; color: inherit; }
.sn .sn-adv { margin: 8px 0; } .sn .sn-adv summary { cursor: pointer; font-weight: 600; }
.sn-plist { list-style: none; padding: 0; } .sn-plist li { margin: 4px 0; }
.sn-preview { margin: 12px 0 20px; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; max-width: 720px; } .sn-preview .sn-pk { font-size: 15px; margin: 4px 0; } .sn-preview .sn-ptable td, .sn-preview .sn-ptable th { padding: 2px 6px; font-size: 13px; }
@media (max-width: 700px) { .sn .sn-fields { grid-template-columns: 1fr 1fr; } .sn .sn-part .cr-row { flex-wrap: wrap; } }
.sn .cr-row > label > input, .sn .cr-row > label > select, .sn label > input, .sn label > select { width: 100%; min-width: 0; box-sizing: border-box; }

/* FAQ per language (2026-10-29) */
.faq{margin:28px 0}.faq h3{font-size:16px;margin:18px 0 6px}.faq .faq-a p{margin:4px 0 8px}

/* export menu on phones (2026-10-29): anchor the panel to the tool bar, not to the button, so it never runs off the screen (all tools, RTL too) */
@media (max-width: 600px) { #app .sc-bar { position: relative; } #app .sc-menu { position: static; } #app .sc-menu > div { inset-inline-start: 0; inset-inline-end: auto; left: auto; right: auto; max-width: calc(100vw - 16px); box-sizing: border-box; } [dir="ltr"] #app .sc-menu > div { left: 0; } [dir="rtl"] #app .sc-menu > div { right: 0; } }

/* number guard message (2026-10-29) */
.num-guard{display:block;font-size:12.5px;color:#b3261e;margin:2px 0 6px}

/* published example table (2026-10-29) */
.verify{margin:28px 0}.verify-wrap{overflow-x:auto}.verify-t{border-collapse:collapse;font-size:14px}.verify-t th,.verify-t td{border:1px solid var(--rule,#ddd);padding:4px 8px;vertical-align:top}.verify-t td.num{text-align:end;font-variant-numeric:tabular-nums;white-space:nowrap}

/* verify table: wider source column on phones (2026-10-30) */
.verify-t td:first-child{min-width:11em}
/* heating degree days (hd) */
.hd textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.hd input.ev-bad, .hd select.ev-bad, .hd textarea.ev-bad { outline: 2px solid #b3261e; background: #fff4f2; } .hd select { max-width: 100%; }
.hd td.num, .hd-preview td.num { text-align: end; font-variant-numeric: tabular-nums; } .hd .tk-table td, .hd .tk-table th { padding: 3px 8px; } .hd tr.hd-miss td { background: #fff4e5; color: #6b4a00; } .hd tr.tot td { border-top: 1px solid var(--rule); }
.hd .hd-pair td:first-child { white-space: nowrap; } .hd .hd-pair th { word-break: keep-all; }
.hd-svg { width: 100%; max-width: 680px; height: auto; display: block; margin: 6px 0; border: 1px solid var(--rule); } .hd .ev-fig { max-width: 100%; }
.hd #hdVerdict { margin: 0 0 8px; padding: 0; list-style: none; } .hd #hdVerdict li { margin-bottom: 4px; } .hd #hdVerdict li.ok b { color: #1e6b34; } .hd #hdVerdict li.err b { color: #b3261e; } .hd #hdVerdict li.warn b { color: #8a5a00; } .hd #hdVerdict li.ev-kpi b { font-size: 17px; color: inherit; }
.hd .hd-meter input { width: 130px; } .hd .ev-act { white-space: nowrap; } .hd .ev-act .btn { padding: 1px 6px; } .hd .hd-res th { text-align: start; font-weight: normal; } .hd .hd-mp { margin: 6px 0 10px; }
.hd-preview { margin: 12px 0 20px; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; max-width: 720px; } .hd-preview .hd-pk { font-size: 15px; margin: 4px 0; } .hd-preview .hd-ptable td, .hd-preview .hd-ptable th { padding: 2px 6px; font-size: 13px; }
@media (max-width: 700px) { .hd .hd-meter input { width: 100%; box-sizing: border-box; } .hd .hd-days td, .hd .hd-days th, .hd .hd-periods td, .hd .hd-periods th { padding: 2px 4px; font-size: 12px; } }

/* RTL pages: a numeric cell takes its direction from its own content, so «139.8 kWh» is not shown as «kWh 139.8» (2026-10-31) */
[dir=rtl] td.num { unicode-bidi: plaintext; text-align: left; }
/* cold-weather concreting, maturity (2026-10-31) */
.cw textarea { width: 100%; box-sizing: border-box; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }
.cw input.ev-bad, .cw select.ev-bad, .cw textarea.ev-bad { outline: 2px solid #b3261e; background: #fff4f2; } .cw select { max-width: 100%; }
.cw td.num { text-align: end; font-variant-numeric: tabular-nums; } .cw .tk-table td, .cw .tk-table th { padding: 3px 8px; } .cw tr.cw-gap td { background: #fff4e5; color: #6b4a00; } .cw tr.cw-bad td { background: #fff4f2; }
.cw-svg { width: 100%; max-width: 680px; height: auto; display: block; margin: 6px 0; border: 1px solid var(--rule); } .cw .ev-fig { max-width: 100%; }
.cw-preview { margin: 12px 0 20px; padding: 10px 12px; border: 1px solid var(--rule); background: #fff; max-width: 720px; } .cw-preview figcaption { margin-bottom: 4px; } .cw-preview td.num { text-align: end; font-variant-numeric: tabular-nums; } .cw-preview .cw-ptable td, .cw-preview .cw-ptable th { padding: 2px 6px; font-size: 13px; }
.cw #cwVerdict { margin: 0 0 8px; padding: 0; list-style: none; } .cw #cwVerdict li { margin-bottom: 4px; } .cw #cwVerdict li.ok b { color: #1e6b34; } .cw #cwVerdict li.err b { color: #b3261e; } .cw #cwVerdict li.warn b { color: #8a5a00; } .cw #cwVerdict li.ev-kpi b { font-size: 16px; color: inherit; }
.cw .cw-lab input { width: 120px; } .cw .cw-hand input { box-sizing: border-box; width: 150px; } .cw .cw-hand td + td input { width: 80px; } #app .cw .wj-table-scroll > table.cw-hand { min-width: 0; width: auto; } .cw .ev-act { white-space: nowrap; } .cw .ev-act .btn { padding: 1px 6px; } .cw .cw-res th { text-align: start; font-weight: normal; } .cw .cw-lp, .cw .cw-map { margin: 6px 0 10px; }
.cw .cw-sens { margin: 2px 0 6px; padding-left: 18px; } .cw .cw-mixres { font-size: 17px; margin: 10px 0 2px; } .cw .cw-pick select { margin-left: 6px; } .cw .cw-tg td { min-width: 120px; }
@media (max-width: 700px) { .cw .cw-lab input { width: 100%; box-sizing: border-box; } .cw .cw-log td, .cw .cw-log th { padding: 2px 4px; font-size: 12px; } .cw .cw-tg td { min-width: 0; } }

/* build-time preview boxes keep a white paper background with charts drawn for it; in dark mode their text must use the light-theme colours (2026-10-31: text was light grey on white) */
@media (prefers-color-scheme: dark) { .cw-preview, .dy-preview, .es-preview, .ev-preview, .hd-preview, .lg-preview, .sc-preview, .sh-preview, .sn-preview, .uv-preview { --ink: #1b1d1f; --muted: #5f646b; --rule: #d5d8dc; --soft: #f4f5f6; --accent: #0b5cad; --flag: #8a4b00; --bg: #fff; color: var(--ink); background: #fff; } }

/* unified controls (2026-10-31): one size, corner, state and icon system for every tool, after thously's controls;
   compared with Omni Calculator and Calculator.net. Flat, small radius, no shadow or gradient. */
:root { --r: 6px; --ctl: 36px; --rule2: #b9bec5; --accent-weak: #e3eefa; }
@media (prefers-color-scheme: dark) { :root { --rule2: #565c63; --accent-weak: #1d2c3d; } }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: var(--ctl); padding: 0 14px; border-radius: var(--r); border: 1px solid var(--rule2); font-size: 14px; font-weight: 500; line-height: 1.2; transition: background .12s, border-color .12s; text-decoration: none; }
.btn:hover:not(:disabled) { background: var(--soft); border-color: var(--ink); }
.btn:active:not(:disabled) { transform: translateY(1px); }
.btn.primary { border-color: var(--ink); } .btn.primary:hover:not(:disabled) { background: var(--ink); opacity: .88; }
.btn.small { min-height: 30px; padding: 0 10px; font-size: 13px; }
.btn:disabled { opacity: .38; cursor: not-allowed; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=range]):not([type=color]), select, textarea { border-radius: var(--r); border: 1px solid var(--rule2); min-height: var(--ctl); padding: 6px 10px; font-size: 15px; line-height: 1.3; transition: border-color .12s, box-shadow .12s; }
input:not([type=checkbox]):not([type=radio]):not([type=file]):hover, select:hover, textarea:hover { border-color: var(--ink); }
input:not([type=checkbox]):not([type=radio]):not([type=file]):focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-weak); }
input[readonly], input:disabled, select:disabled { background: var(--soft); color: var(--muted); }
select { appearance: none; -webkit-appearance: none; padding-inline-end: 28px; background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%23868b92' fill='none' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 10px center; }
[dir=rtl] select { background-position: left 10px center; }
input[type=checkbox], input[type=radio], input[type=range] { accent-color: var(--accent); width: 16px; height: 16px; }
input[type=range] { width: auto; }
/* compact inside tables and dense grids */
table input:not([type=checkbox]):not([type=radio]), table select, .tk-table input, .tk-table select { min-height: 30px; padding: 3px 8px; font-size: 14px; }
/* toolbar icons: same line icon for the same action in every tool */
.sc-bar .btn[id$="Sample"]::before, .sc-bar .btn[id$="New"]::before, .sc-bar .btn[id$="Open"]::before, .sc-bar label.btn:has(input[type=file])::before, .sc-bar .btn[id$="Projects"]::before, .sc-bar .btn[id$="Undo"]::before, .sc-bar .btn[id$="Redo"]::before, .sc-menu > summary::before { content: ""; width: 16px; height: 16px; flex: none; background: currentColor; -webkit-mask: var(--ic) no-repeat center / 16px; mask: var(--ic) no-repeat center / 16px; }
.sc-bar .btn[id$="Sample"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 2.5h7l3 3v8H3z'/%3E%3Cpath d='M10 2.5v3h3'/%3E%3Cpath d='M5.5 8.5h5M5.5 11h3.5'/%3E%3C/svg%3E"); }
.sc-bar .btn[id$="New"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 3v10M3 8h10'/%3E%3C/svg%3E"); }
.sc-bar .btn[id$="Open"], .sc-bar label.btn:has(input[type=file]) { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.5 4.5h4l1.5 1.5h5.5v6.5h-11z'/%3E%3C/svg%3E"); }
.sc-bar .btn[id$="Projects"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3.5h10M3 8h10M3 12.5h10'/%3E%3C/svg%3E"); }
.sc-bar .btn[id$="Undo"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5.5 4.5L3 7l2.5 2.5'/%3E%3Cpath d='M3 7h6.5a3 3 0 0 1 0 6H7'/%3E%3C/svg%3E"); }
.sc-bar .btn[id$="Redo"] { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M10.5 4.5L13 7l-2.5 2.5'/%3E%3Cpath d='M13 7H6.5a3 3 0 0 0 0 6H9'/%3E%3C/svg%3E"); }
.sc-menu > summary { --ic: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='black' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2.5v8M5 7.5l3 3 3-3'/%3E%3Cpath d='M3 12.5v1h10v-1'/%3E%3C/svg%3E"); }
@media (max-width: 600px) { :root { --ctl: 44px; } input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea { font-size: 16px; } table input:not([type=checkbox]):not([type=radio]), table select { min-height: 36px; } }
/* tabs: underline, like the printed-manual style used elsewhere on the site */
:is(.sc-tabs, .es-tabs) { display: flex; gap: 0; border-bottom: 1px solid var(--rule2); flex-wrap: wrap; }
:is(.sc-tab, .sc-tabs > button, .es-tabs > button) { border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 8px 12px; font-size: 14px; color: var(--muted); background: none; border-radius: 0; }
:is(.sc-tab, .sc-tabs > button, .es-tabs > button):hover { color: var(--ink); border-bottom-color: var(--rule2); }
:is(.sc-tab, .sc-tabs > button, .es-tabs > button).on { color: var(--ink); border-bottom-color: var(--ink); font-weight: 600; }
:is(.sc-tab, .sc-tabs > button, .es-tabs > button).warn { border-top: 0; } :is(.sc-tab, .sc-tabs > button, .es-tabs > button).warn::after { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #e0a800; margin-inline-start: 6px; vertical-align: middle; }
table select, .tk-table select { padding-inline-end: 22px; background-position: right 6px center; } [dir=rtl] table select { background-position: left 6px center; }

/* phones: on pages with a build-time preview or a local terms block, the tool comes first so the first screen shows its toolbar and inputs (2026-10-31, first-use review) */
@media (max-width: 700px) { .tool-stack { display: flex; flex-direction: column; } .tool-stack > #app { order: -1; } .tool-stack > #numGuard { order: -2; } }
/* abbreviation hints on labels (src/app/abbr.js) */
abbr[title] { text-decoration: underline dotted; text-underline-offset: 2px; cursor: help; }

/* Exposed pipe insulation worksheet */
.pipe-app{max-width:1100px;margin:auto}.pipe-toolbar{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}.pipe-app article{border-top:1px solid var(--line,#ccc);margin-top:24px;padding-top:16px}.pipe-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px}.pipe-app label{display:flex;flex-direction:column;gap:4px;font-size:14px;min-width:0}.pipe-app input,.pipe-app select{width:100%;min-width:0;box-sizing:border-box;padding:8px}.pipe-app input[type=checkbox]{width:auto;align-self:flex-start}.pipe-layer{display:grid;grid-template-columns:1fr 1fr auto;gap:12px;margin:12px 0}.pipe-results dl{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:12px}.pipe-results dd{margin:4px 0;font-variant-numeric:tabular-nums;font-weight:600}.pipe-results th,.pipe-results td{white-space:normal}.pipe-preview{padding:16px;border:1px solid #bbb}.pipe-app .tk-scroll{overflow-x:auto;max-width:100%}@media(max-width:500px){.pipe-layer{grid-template-columns:1fr 1fr}.pipe-layer button{grid-column:1/-1}.pipe-grid{grid-template-columns:1fr}.pipe-results dl{grid-template-columns:1fr}}

/* Pipe worksheet: common toolbar and input/result columns. */
.pipe-app .sc-bar label.btn{display:inline-flex;align-items:center;flex-direction:row}.pipe-app .sc-bar input[hidden]{display:none}.pipe-app .sc-name{width:auto;flex:1;min-width:150px}.pipe-app .sv-main{grid-template-columns:minmax(290px,370px) minmax(0,1fr)}.pipe-app .pipe-grid{grid-template-columns:1fr 1fr;gap:8px}.pipe-app .pipe-layer{grid-template-columns:1fr 1fr;gap:8px}.pipe-app .pipe-layer button{grid-column:1/-1;justify-self:start}.pipe-app .pipe-results h3{margin-top:0}.pipe-app .pipe-result-table{display:block;margin-top:0}.pipe-app .pipe-result-table>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(90px,auto);gap:12px;border-bottom:1px solid var(--line,#ddd);padding:7px 0;font-size:14px}.pipe-app .pipe-result-table dd{margin:0;text-align:right}.pipe-app .pipe-field-error{color:#a12622;font-size:13px}.pipe-app .pipe-assumptions{font-size:13px}.pipe-app .pipe-section{margin-bottom:16px}.pipe-app .pipe-section p{font-size:12px}@media(max-width:900px){.pipe-app .sv-main{grid-template-columns:minmax(0,1fr)}}@media(max-width:500px){.pipe-app .pipe-grid{grid-template-columns:1fr 1fr}.pipe-app .pipe-results{margin-top:16px}}
/* Search image examples keep their intrinsic aspect ratio and never appear in embeds. */
.tool-example { margin: 28px 0; max-width: 100%; border: 1px solid var(--rule); }
.tool-example img { display: block; width: 100%; height: auto; }
.embed .tool-example { display: none; }

.hp-app .pipe-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.hp-app input,.hp-app select,.hp-app textarea{width:100%;min-width:0}.hp-app label{display:block}.hp-app svg{width:100%;height:auto}.hp-results dl>div{padding:8px 0;border-bottom:1px solid #ddd}.hp-results dd{font-size:1.3rem;margin:0}.hp-point{margin:12px 0}.hp-app .sv-left,.hp-app .sv-right{min-width:0}@media(max-width:650px){.hp-app .sv-main{display:block}.hp-app .pipe-grid{grid-template-columns:1fr}}

/* Keep the shared toolbar layout above tool-specific field label rules. */
:is(.hp-app,.glycol-app) .sc-bar label.btn{display:inline-flex;align-items:center;margin:0}
/* Narrow worksheets: keep the paper-sized table inside a touch-scroll viewport.
   Desktop rules deliberately remain unchanged. Local backgrounds reveal either edge only while content remains. */
@media (max-width: 700px) {
  .wj-table-scroll, :is(.sh,.sn,.fdm,.uv,.ev,.dy,.sd,.cw) .tk-scroll {
    max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch;
    background: linear-gradient(to right,var(--bg) 30%,transparent) left center / 32px 100% local,
      linear-gradient(to left,var(--bg) 30%,transparent) right center / 32px 100% local,
      radial-gradient(farthest-side at 0 50%,rgba(0,0,0,.18),transparent) left center / 12px 100% scroll,
      radial-gradient(farthest-side at 100% 50%,rgba(0,0,0,.18),transparent) right center / 12px 100% scroll;
    background-repeat: no-repeat;
  }
  .wj-table-scroll > table, :is(.sh,.sn,.fdm,.uv,.ev,.dy,.sd,.cw) .tk-scroll > table { min-width: 640px; width: max-content; table-layout: auto; max-width: none; }
  .wj-table-scroll :is(th,td), :is(.sh,.sn,.fdm,.uv,.ev,.dy,.sd,.cw) .tk-scroll :is(th,td) { min-width: 72px; word-break: keep-all; overflow-wrap: normal; }
  .wj-table-scroll tr > :first-child { min-width: 120px; }
  .wj-table-scroll :is(.num,.n), .wj-table-scroll td:has(input[inputmode=decimal]), .wj-table-scroll td:has(input[type=number]) { white-space: nowrap; text-align: end; }
  .wj-table-scroll :is(input,select,button) { min-height: 36px; }
  .wj-table-scroll input:not([type=checkbox]):not([type=radio]) { min-width: 72px; }
  .wj-table-scroll input[type=checkbox], .wj-table-scroll input[type=radio] { min-width: 36px; }
}
/* Newly introduced wrappers have no desktop layout box; existing scrolling wrappers retain theirs. */
@media (min-width: 701px) { .wj-table-scroll:not(.tk-scroll):not(.sd-wrap) { display: contents; } }
@media (max-width: 700px) { .sd-area > * { min-width: 0; } }
@media (max-width: 700px) {
  #app .wj-table-scroll > table { display: table; overflow: visible; }
  #app .wj-table-scroll > table > tbody { display: table-row-group; }
  #app .wj-table-scroll > table tr { display: table-row; padding: 0; margin: 0; }
  #app .wj-table-scroll > table :is(td,th) { display: table-cell; }
  #app .wj-table-scroll > table td[data-label]::before { display: none; }
}
/* Compact button rules must not shrink touch targets inside mobile worksheets. */
@media (max-width: 700px) { #app .wj-table-scroll :is(input,select,button) { min-height: 36px; } }

/* Phone worksheets: full-width choices and stable name/value result rows. */
@media (max-width: 700px) {
  #elLeft label:has(> select) { display: flex; flex-direction: column; gap: 4px; }
  #elLeft label > select { width: 100%; min-width: 0; }
  .el-grid > .el-f2:has(> select) { grid-column: 1 / -1; }
  #btApp .sv-kpi { display: grid; grid-template-columns: minmax(0,1fr); }
  #btApp .sv-kpi > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: baseline; }
  #btApp .sv-kpi > div > b { grid-column: 2; text-align: end; white-space: nowrap; }
  #btApp .sv-kpi > div > span { grid-column: 2; text-align: end; }
  #mdOut .md-sum, #mdOut .md-sum tbody { display: block; width: 100%; }
  #mdOut .md-sum tr { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; padding: 9px 0; border-bottom: 1px solid var(--rule); }
  #mdOut .md-sum th, #mdOut .md-sum td { display: block; padding: 0; border: 0; white-space: normal; overflow-wrap: anywhere; }
  #mdOut .md-sum tr > td:nth-child(2) { text-align: end; }
  #mdOut .md-sum tr > td:nth-child(3) { grid-column: 1 / -1; font-size: 12px; }
}

@media (max-width: 700px) {
  #btPanel .sv-kpi { display: grid; grid-template-columns: minmax(0,1fr); }
  #btPanel .sv-kpi > div { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 4px 12px; align-items: baseline; padding: 6px 0; border-bottom: 1px solid var(--rule); }
  #btPanel .sv-kpi > div > b { grid-column: 2; text-align: end; white-space: nowrap; }
  #btPanel .sv-kpi > div > span { grid-column: 2; text-align: end; }
}

@media (max-width: 700px) {
  #btPanel .sv-kpi { display:grid; grid-template-columns:minmax(0,1fr); }
  #btPanel .sv-kpi > div { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:4px 12px; align-items:baseline; padding:6px 0; border-bottom:1px solid var(--rule); }
  #btPanel .sv-kpi > div > b { grid-column:2; text-align:end; white-space:nowrap; }
  #btPanel .sv-kpi > div > span { grid-column:2; text-align:end; }
  #btPanel .sv-kpi > div > .bt-kpi-name { grid-column:1; grid-row:1 / span 2; text-align:start; overflow-wrap:anywhere; }
}

.bt-kpi-name { font-style:normal; }
@media (max-width:700px) { #btPanel .sv-kpi > div > .bt-kpi-name { grid-column:1; grid-row:1 / span 2; text-align:start; } #btPanel .bt-kpi-value { grid-column:2; text-align:end; white-space:nowrap; } #elLeft .row:has(select) { flex-direction:column; align-items:stretch; } .el-f2 .el-load select { min-width:72px; } }
@media (max-width:700px) { #elLeft .cr-row:has(select) { flex-direction:column; align-items:stretch; } #elLeft .cr-row:has(select) > label { width:100%; } }
@media (max-width:700px) {
  .el-f2 .el-load select { min-width:96px; }
  #mdOut .md-sum tr { grid-template-columns:minmax(100px,1fr) minmax(0,1.5fr); }
  #btPanel > table.data { display:table; table-layout:fixed; width:100%; }
  #btPanel > table.data > tbody { display:table-row-group; }
  #btPanel > table.data tr { display:table-row; }
  #btPanel > table.data :is(th,td) { display:table-cell; white-space:normal; overflow-wrap:anywhere; padding:7px 4px; }
  #btPanel > table.data :is(th,td):first-child { width:44%; }
}
/* result peek on phones (first-use re-judgement 2026-11-06): repeats the tool's own headline line while its result is below the fold */
.res-peek { position: fixed; left: 8px; right: 8px; bottom: 8px; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--ink); background: var(--bg); color: var(--ink); font: inherit; font-size: 13.5px; text-align: start; box-shadow: 0 2px 10px rgba(0,0,0,.18); cursor: pointer; }
.res-peek[hidden] { display: none; } .res-peek span { flex: 1; min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .res-peek b { font-size: 18px; }
@media (min-width: 901px) { .res-peek { display: none; } }

/* Phones, every page (11/6): each table scrolls inside its own box; cells keep whole words, CJK words, numbers and dates on one line;
   long field values and choices stay readable. Above 700 px nothing here applies except the box-free new wrapper. */
@media (min-width: 701px) { .wj-bt-new { display: contents; } }
@media (max-width: 700px) {
  main .wj-bt { display: block; max-width: 100%; min-width: 0; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  main .wj-bt.wj-bt > table { display: table; width: auto; min-width: 100%; max-width: none; table-layout: auto; }
  main .wj-bt :is(td,th) { min-width: 72px; word-break: keep-all; overflow-wrap: normal; text-wrap-style: balance; }
  main .verify-wrap.wj-bt td[rowspan], main .verify-wrap.wj-bt tr > td:first-child:not(.wj-n) { min-width: 160px; }
  main .wj-bt tr > :first-child, main .wj-bt td:not(.wj-n):not(.num):not(.n) { min-width: 112px; }
  #app table.pm-t { table-layout: auto; }
  main .wj-bt :is(.wj-n,.num,.n) { white-space: nowrap; }
  #app :is(.tk-scroll,.sd-wrap,.sc-panel,.wj-table-scroll) > table { max-width: none; }
  #app :is(td,th) { word-break: keep-all; overflow-wrap: normal; text-wrap-style: balance; }
  :where(#app) :is(td,th):not(:empty) { min-width: 72px; }
  #app :is(td,th):is(.num,.n) { white-space: nowrap; }
  #app :is(td,th) :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=date]):not([type=time]):not([type=color]):not([type=range]):not([type=hidden]),textarea) { field-sizing: content; width: auto; min-width: 72px; max-width: 48em; }
  #app :is(.wj-table-scroll,.tk-scroll) > table:not(:has(tr > :nth-child(3))) { display: table; min-width: 0; width: 100%; }
  #app :is(.wj-table-scroll,.tk-scroll) > table:not(:has(tr > :nth-child(3))) :is(th,td) { white-space: normal; min-width: 0; }
  #app :is(.wj-table-scroll,.tk-scroll) > table:not(:has(tr > :nth-child(3))) tr > :first-child { width: 42%; }
  #btPanel > table.data:has(tr > :nth-child(3)) { table-layout: auto; width: auto; min-width: 100%; }
  #btPanel > table.data:has(tr > :nth-child(3)) :is(th,td) { overflow-wrap: normal; word-break: keep-all; }
  #btPanel > table.data:has(tr > :nth-child(3)) :is(th,td):first-child { width: auto; }
  #btPanel > table.data:has(tr > :nth-child(3)) .n { white-space: nowrap; }
  .hd .hd-t :is(td:nth-child(1),td:nth-child(2)), .hd .hd-cmp th { white-space: nowrap; }
  #app table.data:not(:is(.tk-scroll,.sd-wrap,.sc-panel,.wj-table-scroll,.st-mid) > table) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  :is(:lang(ko),:lang(ja),:lang(zh)) :is(#app, main .wj-bt) table:has(tr > :nth-child(3)) :is(thead th, tr:first-child > th) { white-space: nowrap; }
  #stCheck td .muted, .lg table.tk-table:not(.lg-items) td:first-child { white-space: nowrap; }
  #app td > label.ck { white-space: nowrap; } #app td:has(> label.ck ~ label.ck ~ label.ck) { min-width: 260px; }
  #app td:is(.n,.num) .muted { white-space: normal; }
  #app .sc-panel > table.data { display: table; }
  main select { white-space: normal; height: auto; max-width: 100%; overflow-wrap: break-word; }
}

/* u-value first use (2026-11-06): a layer waiting for μ or sd is marked as pending, not as an error; two-column result tables fill the phone width */
.uv input.uv-pend { outline: 2px dashed #8a6d00; } .uv table.uv-kv th { text-align: start; }
@media (max-width: 700px) { .uv .wj-table-scroll > table.uv-kv { min-width: 0; width: 100%; } #app .uv table.uv-kv td.num { white-space: nowrap; } #app .uv table.uv-kv th { hyphens: auto; overflow-wrap: anywhere; } }
/* library (2026-11-20): My library, data sets, documents */
.lb-privacy { border-left: 3px solid var(--rule); padding: 2px 0 2px 10px; color: var(--muted); max-width: 820px; }
.lb .sc-tabs { overflow-x: auto; flex-wrap: nowrap; margin-top: 8px; } .lb .sc-tab { white-space: nowrap; flex: none; }
.lb-panel { padding-top: 10px; } .lb-tools input[type="search"] { font: inherit; font-size: 14px; padding: 4px 8px; min-width: 12em; flex: 1 1 12em; max-width: 22em; }
.lb-table td.lb-act { white-space: nowrap; text-align: right; } .lb-sort { font: inherit; font-weight: 600; background: none; border: 0; padding: 0; cursor: pointer; color: var(--ink); }
.lb-form { margin-top: 8px; } .tk-dlg .lb-wide { grid-column: 1 / -1; } .tk-dlg textarea, .tk-dlg input:not([type="checkbox"]):not([type="radio"]) { font: inherit; width: 100%; box-sizing: border-box; }
.lb-err { color: #b3261e; font-size: 13px; min-height: 1em; margin: 6px 0 0; }
.libui-list { max-height: 50vh; margin: 8px 0; } .libui-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; border-bottom: 1px solid var(--rule); padding: 4px 0; } .libui-row .tk-chk { display: flex; gap: 6px; align-items: flex-start; }
@media (max-width: 640px) { .tk-dlg .grid2.lb-form { grid-template-columns: minmax(0, 1fr); } }
.lb-empty { border: 1px dashed var(--rule); padding: 14px; color: var(--muted); max-width: 760px; }
.lb { padding: 12px 14px; } .lb .sc-bar { margin-bottom: 6px; } .lb-table td:not(:first-child):not(.lb-act) { font-variant-numeric: tabular-nums; }
.lbd-src { color: var(--muted); max-width: 980px; } .lbd-src b { color: var(--ink); font-weight: 600; }
.lbd-fields { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: flex-end; margin: 6px 0; } .lbd-f { display: grid; gap: 2px; font-size: 12.5px; } .lbd-f input, .lbd-f select { font: inherit; font-size: 14px; padding: 4px 6px; max-width: 100%; } .lbd-q input { min-width: 14em; }
.lbd-btns { margin: 6px 0 4px; } .lbd-h { font-size: 15px; margin: 14px 0 6px; } .lbd-t td.lb-act { white-space: nowrap; } .lbd-t td.lb-act a { margin-right: 6px; } .lbd .lb-sort { text-align: inherit; }
table.data.lbd-t th.n .lb-sort, table.data.lbd-t th.n { text-align: end; } .lbd-months { max-width: 720px; }
@media (max-width: 640px) { .lbd-q input { min-width: 0; width: 100%; } .lbd-q { flex: 1 1 100%; } }
@media (max-width: 640px) { .lb table.data { display: table; width: max-content; min-width: 100%; } .lb table.data thead { display: table-header-group; } .lb table.data tbody { display: table-row-group; } .lb table.data tfoot { display: table-footer-group; } .lb table.data tbody tr { display: table-row; padding: 0; } .lb table.data tbody td, .lb table.data tbody td.n { display: table-cell; border-bottom: 1px solid var(--rule); white-space: nowrap; padding: 4px 6px; } .lb table.data tbody td.n { text-align: end; } .lb table.data tbody td:first-child { white-space: normal; min-width: 9em; } }
.fm .sc-bar .fm-k { display: inline-flex; gap: 4px; align-items: center; font-size: 13px; } .fm .sc-bar select { font: inherit; font-size: 13px; }
.fm-lines input { font: inherit; font-size: 13px; width: 100%; box-sizing: border-box; padding: 3px 4px; } .fm-lines .fm-desc { min-width: 14em; } .fm-lines .fm-code { width: 6.5em; } .fm-lines .fm-n { width: 4.5em; text-align: end; } .fm-lines .fm-p { width: 7em; text-align: end; } .fm-lines .fm-u { width: 4em; } .fm-lines td.num { text-align: end; white-space: nowrap; }
.fm-req { list-style: none; padding: 0; margin: 6px 0; font-size: 13.5px; } .fm-req li { padding: 2px 0; } .fm-req li.ok span[aria-hidden] { color: #1e6b34; } .fm-req li.miss span[aria-hidden] { color: #b3261e; } .fm-req li.miss { font-weight: 600; }
.fm-miss { color: #b3261e; } .fm-note { border-left: 3px solid var(--flag); padding-left: 8px; } .fm-nextno { align-self: end; margin-bottom: 5px; } .fm-tot { max-width: 640px; } .fm-right h3 { font-size: 14px; margin: 14px 0 6px; }
/* forms (2026-11-20 fix): the line table fits the right column at 1360; narrower screens scroll inside its box */
@media (min-width: 901px) { .fm .sv-main { grid-template-columns: 270px minmax(0, 1fr); } }
.fm-lines { width: 100%; } .fm-lines th, .fm-lines td { padding: 3px 2px; } .fm-lines .fm-desc { min-width: 8em; } .fm-lines .fm-code { width: 4.6em; } .fm-lines .fm-n { width: 3.4em; } .fm-lines .fm-p { width: 5.4em; } .fm-lines .fm-u { width: 3em; } .fm-lines th { font-size: 12px; white-space: nowrap; }
#app .fm-lines input { font-size: 13px; padding: 3px 4px; } #app .fm-lines .fm-code { width: 62px; } #app .fm-lines .fm-n { width: 46px; } #app .fm-lines .fm-p { width: 86px; } #app .fm-lines .fm-u { width: 44px; } #app .fm-lines .fm-desc { min-width: 120px; } #app .fm-lines td.num { font-size: 13px; }
/* site search (2026-11-20): form on the home page and the search page */
.wj-find { display: flex; gap: 8px; max-width: 560px; margin: 14px 0 18px; }
.wj-find input { flex: 1; min-width: 0; font: inherit; font-size: 15px; padding: 8px 10px; border: 1px solid var(--rule); border-radius: 6px; background: var(--bg); color: var(--ink); }
.wj-find button { font: inherit; font-size: 14px; font-weight: 600; padding: 8px 14px; border: 1px solid var(--ink); border-radius: 6px; background: var(--bg); color: var(--ink); cursor: pointer; }
.wj-find button:hover { background: var(--soft); }
header.site a.hdr-search { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink); text-decoration: none; }
header.site a.hdr-search:hover span { text-decoration: underline; }
header.site a.hdr-search svg { flex: none; }
/* phones: the header row is already full in several languages, so search is reached from the home form and the footer */
@media (max-width: 600px) { header.site a.hdr-search { display: none; } }
/* conceptual estimate: indicators per floor area, covered elements, sets and versions (2026-11-25) */
.es-tbl tr.grp input.ei { font-weight: 400; background: var(--bg); }
.es-tbl tr.es-cov td { color: var(--muted); } .es-tbl tr.es-cov input.er { text-decoration: line-through; }
.es-tbl .es-covn { color: var(--ink); font-style: italic; }
.es-sets { width: 100%; table-layout: auto; } .es-sets td { vertical-align: top; overflow-wrap: anywhere; } .es-sets td.nowrap { text-align: end; white-space: normal; width: 1%; min-width: 150px; } .es-sets td.nowrap .btn { margin: 0 0 4px 4px; }
.es-vin { margin: 4px 0 8px; padding-inline-start: 18px; } .es-right h5 { margin: 10px 0 4px; font-size: 13px; }
@media (max-width: 720px) { table.data.es-tbl tbody tr.grp td:nth-child(2) { width: 110px; } .es-sets td.nowrap { text-align: start; } .es-sets td.nowrap .btn { margin: 0 4px 4px 0; } }

/* expansion vessel tank series (2026-11-25) */
.ev-res td.ev-no { color: #b3261e; font-weight: 600; }
table.ev-tanks input { min-width: 64px; }
.fd-mxbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: end; margin: 8px 0; } .fd-mxin { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 12px; margin: 8px 0; }
.fd-mxlist { list-style: none; padding: 0; margin: 4px 0 10px; } .fd-mxlist li { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; border-bottom: 1px solid var(--rule); padding: 2px 0; } .fd-mxlist input:not([type]) { width: 220px; max-width: 100%; }
.fd-mxt th { font-size: 11px; vertical-align: bottom; min-width: 52px; } .fd-mxt td { text-align: center; font-size: 14px; } .fd-mxt td:first-child { text-align: start; font-size: 13px; min-width: 160px; } .fd-mxt .mx-c { font-weight: bold; }
.fd-mxt .mx-e label { display: inline-flex; gap: 2px; align-items: center; cursor: pointer; } .fd-mxt .mx-e input { width: auto; margin: 0; opacity: .35; } .fd-mxt .mx-e input:checked { opacity: 1; } .fd-mxt .mx-u span { color: #8a5a00; font-weight: bold; }
.lg-docs h4 { margin: 14px 0 4px; } .lg-src { display: inline-block; font-size: 11px; font-weight: normal; color: var(--muted, #666); border: 1px solid var(--rule); padding: 0 4px; margin-inline-start: 4px; } .lg-src.gp { border-style: dashed; }
.lg-dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px 12px; } .lg-dgrid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 20px; } @media (max-width: 700px) { .lg-dgrid2 { grid-template-columns: 1fr; } }
.lg-docs textarea { width: 100%; } .lg-dlines input { width: 90px; } .lg-dlines td:nth-child(2) { min-width: 160px; }
.lg-docs .lg-src { align-self: flex-start; width: auto; } .lg-docs label.ck { display: flex; flex-direction: row; gap: 6px; align-items: center; margin: 4px 0; } .lg-docs label.ck input { width: auto; margin: 0; }
.lg-dlines th, .lg-dlines td { white-space: nowrap; } .lg-dlines td:nth-child(2) { white-space: normal; }
.lg-docs .lg-src { justify-self: start; max-width: max-content; }
.lg-ss .lg-dlines input { width: 150px; } .lg-sspv svg { max-width: 100%; height: auto; display: block; }
.dy-plbar { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; margin: 8px 0; } .dy-pllist { display: grid; gap: 10px; margin-top: 10px; }
.dy-pl { border: 1px solid var(--rule); padding: 8px 10px; } .dy-pl.late { border-color: var(--flag); } .dy-pl header { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 6px; } .dy-pl header .danger { margin-inline-start: auto; }
.dy-plst { font-size: 12px; padding: 0 6px; border: 1px solid var(--rule); } .dy-plst.fixed { border-color: var(--accent); color: var(--accent); } .dy-plst.closed { background: var(--soft); } .dy-plst.late { border-color: var(--flag); color: var(--flag); }
.dy-pl textarea { width: 100%; } td.bad { color: var(--flag); font-weight: bold; }
.dy-pllist > .dy-pl { min-width: 0; } .dy-pl .dy-grid { grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); } .dy-pl .dy-grid > label { min-width: 0; } .dy-pl select, .dy-pl input:not([type=checkbox]) { width: 100%; max-width: 100%; min-width: 0; box-sizing: border-box; }
