/* Installer tools: hub, quotation maker, calculators */
.tl-note { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 26px; padding: 16px 20px; border-radius: 12px; background: #EEF6F0; border: 1px solid #BFDCC8; color: #1E4D2E; font-size: 15.5px; line-height: 1.55; }
.tl-note strong { color: #123B22; }
.tl-note.is-beta { background: #FFF6E5; border-color: #F0D08A; color: #6A4A06; }
.tl-note.is-beta strong { color: #4A3203; }
.tl-note .ico { flex: none; width: 22px; height: 22px; margin-top: 2px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.tl-cards { list-style: none; margin: 0 0 40px; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; }
.tl-cards li { display: flex; flex-direction: column; gap: 8px; padding: 24px; background: var(--white); border: 1px solid var(--line, #E2E2E2); border-radius: 14px; }
.tl-cards h3 { margin: 0; font-size: 22px; }
.tl-cards h3 a { color: var(--black); text-decoration: none; }
.tl-cards h3 a:hover { color: var(--red); }
.tl-cards p { margin: 0; font-size: 16px; flex: 1; }
.tl-cards .btn { align-self: flex-start; margin-top: 8px; }
.tl-tag { align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; letter-spacing: .03em; background: #E7F4EC; color: #17663A; }
.tl-tag.is-beta { background: #FFF0CC; color: #7A5200; }
.tl-tag.is-soon { background: #EDEDED; color: #555; }
.tl-cards li.is-soon { background: #FAFAFA; border-style: dashed; }
.tl-cards li.is-soon h3 { color: #555; }

.tl-copy { margin: 0 0 36px; font-size: 13.5px; color: var(--muted); }
/* quotation maker layout */
.qm-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 18px; }
.qm-bar span { font-size: 14px; color: var(--muted); }
.qm-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; margin: 0 0 22px; }
.qm-tpl { display: flex; flex-direction: column; gap: 6px; padding: 8px; background: var(--white); border: 1.5px solid #DDD; border-radius: 10px; font: inherit; font-size: 13px; font-weight: 600; color: var(--black); text-align: left; cursor: pointer; }
.qm-tpl:hover { border-color: var(--acc); }
.qm-tpl.is-on { border-color: var(--acc); box-shadow: 0 0 0 2px var(--acc); }
.qm-tpl-mini { display: flex; flex-direction: column; gap: 4px; height: 62px; padding: 6px; border-radius: 5px; background: #F6F6F6; }
.qm-tpl-mini i { display: block; height: 14px; border-radius: 2px; background: var(--acc); }
.qm-tpl-mini b { display: block; height: 6px; border-radius: 2px; background: #D6D6D6; }
.qm-tpl-mini b:nth-child(3) { width: 70%; }
.qm-mini-line i { height: 4px; margin-top: 10px; }
.qm-mini-center i { width: 50%; align-self: center; }
.qm-mini-boxed { border: 1.5px solid var(--acc); }
.qm-acc { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 8px; border: 1.5px dashed #CCC; border-radius: 10px; font-size: 13px; font-weight: 600; }
.qm-acc input { width: 40px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; }
.qm-layout { display: grid; grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 40px; }
.qm-form { position: sticky; top: 12px; max-height: calc(100vh - 24px); overflow-y: auto; padding-right: 4px; }
.qm-group { margin: 0 0 12px; background: var(--white); border: 1px solid var(--line, #E2E2E2); border-radius: 12px; }
.qm-group summary { padding: 12px 16px; font-family: 'Bricolage Grotesque', sans-serif; font-size: 17px; font-weight: 700; color: var(--black); cursor: pointer; }
.qm-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 0 16px 16px; }
.qm-f { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.qm-f > span { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.qm-f input, .qm-f select, .qm-f textarea { width: 100%; min-width: 0; padding: 7px 9px; border: 1px solid #CFCFCF; border-radius: 7px; font: inherit; font-size: 14.5px; color: var(--black); background: #FFF; }
.qm-f textarea { resize: vertical; line-height: 1.45; }
.qm-f input:focus, .qm-f select:focus, .qm-f textarea:focus { outline: 2px solid var(--red); outline-offset: 0; border-color: transparent; }
.qm-wide { grid-column: 1 / -1; }
.qm-check { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.qm-check input { width: 17px; height: 17px; accent-color: var(--red); }
.qm-file { display: flex; gap: 6px; align-items: center; }
.qm-file input { padding: 5px; font-size: 13px; }
.qm-clear { flex: none; padding: 6px 8px; border: 1px solid #CCC; border-radius: 6px; background: #FFF; font: inherit; font-size: 12.5px; cursor: pointer; }
.qm-sub { margin: 4px 0 2px; font-size: 13px; font-weight: 600; color: var(--black); }
.qm-line { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; margin: 0 0 10px; padding: 10px 34px 10px 10px; border: 1px dashed #D2D2D2; border-radius: 9px; }
.qm-l-item, .qm-l-desc { grid-column: 1 / -1; }
.qm-del { position: absolute; top: 6px; right: 6px; width: 24px; height: 24px; border: 0; border-radius: 50%; background: #F1E3E3; color: var(--red); font-size: 17px; line-height: 1; cursor: pointer; }
.qm-add { grid-column: 1 / -1; justify-self: start; }
.qm-preview { min-width: 0; overflow-x: auto; padding: 18px; background: #DADADA; border-radius: 14px; }
.qm-hint { margin: 0 0 10px; font-size: 13.5px; color: #444; }
@media (max-width: 980px) { .qm-layout { grid-template-columns: minmax(0, 1fr); } .qm-form { position: static; max-height: none; overflow: visible; } }
@media (max-width: 560px) { .qm-fields { grid-template-columns: minmax(0, 1fr); } .qm-preview { padding: 8px; } }

/* the quotation sheet (A4 width) */
.qm-sheet { --acc: #1F4E79; width: 794px; min-height: 1123px; margin: 0 auto; padding: 34px 38px 40px; background: #FFF; color: #1A1A1A; font-family: Arial, 'Hanken Grotesk', sans-serif; font-size: 11.5px; line-height: 1.45; box-shadow: 0 2px 14px rgba(0,0,0,.18); }
.qm-sheet.qs-serif { font-family: Georgia, 'Times New Roman', serif; }
.qm-sheet .ed { border-radius: 2px; outline: none; min-width: 8px; display: inline-block; }
.qm-sheet .ed:hover, .qm-sheet [data-k]:hover { background: #FFF5C2; }
.qm-sheet .ed:focus, .qm-sheet [data-k]:focus { background: #FFF0A6; box-shadow: 0 0 0 1px #E0B400; }
.qm-sheet .ed:empty::before { content: '\2026'; color: #BBB; }
.qs-pre, .qs-pre .ed { white-space: pre-line; }
.qs-hdr { display: flex; gap: 18px; align-items: center; }
.qs-hl { display: flex; gap: 14px; align-items: center; min-width: 0; }
.qs-logo { max-width: 130px; max-height: 70px; object-fit: contain; }
.qs-co { min-width: 0; font-size: 11px; color: #333; }
.qs-coname { font-size: 18px; font-weight: 700; color: #111; line-height: 1.2; margin-bottom: 2px; }
.qs-title { font-size: 17px; font-weight: 700; color: var(--acc); text-transform: uppercase; letter-spacing: .02em; }
.qs-meta { display: grid; gap: 1px; margin-top: 4px; font-size: 11px; }
.qs-meta div { display: flex; gap: 6px; justify-content: flex-end; }
.qs-meta > div > span:first-child { color: #666; }
.qs-meta > div > span:first-child::after { content: ':'; }
.qs-hr { margin-left: auto; text-align: right; flex: none; }
.qs-hdr-line { padding-bottom: 12px; border-bottom: 3px solid var(--acc); }
.qs-hdr-band { margin: -34px -38px 0; padding: 22px 38px; background: var(--acc); color: #FFF; }
.qs-hdr-band .qs-co, .qs-hdr-band .qs-coname, .qs-hdr-band .qs-title, .qs-hdr-band .qs-meta { color: #FFF; }
.qs-hdr-band .qs-meta > div > span:first-child { color: rgba(255,255,255,.78); }
.qs-hdr-band .qs-logo { background: #FFF; padding: 4px; border-radius: 4px; }
.qs-hdr-boxed { border: 1.5px solid #222; border-bottom: 0; padding: 10px 14px; }
.qs-hdr-boxed + .qs-title { padding: 4px; border: 1.5px solid #222; background: color-mix(in srgb, var(--acc) 14%, #FFF); color: #111; text-align: center; }
.qs-hdr-center { flex-direction: column; gap: 6px; text-align: center; padding-bottom: 10px; border-bottom: 1px solid var(--acc); }
.qs-hdr-center .qs-coname { font-size: 22px; color: var(--acc); }
.qs-hdr-center + .qs-title { margin: 10px 0 0; text-align: center; letter-spacing: .12em; font-size: 15px; }
.qs-sec { margin: 16px 0 6px; font-size: 12.5px; font-weight: 700; color: var(--acc); text-transform: uppercase; letter-spacing: .05em; }
.qs-look-grid .qs-sec { margin: 0; padding: 4px; border: 1.5px solid #222; border-top: 0; text-align: center; color: #111; text-decoration: underline; background: #FFF; }
.qs-look-grid .qs-sizerow + .qs-sec, .qs-look-grid .qs-compact + .qs-sec { margin-top: 14px; border-top: 1.5px solid #222; }
.qs-look-grid .qs-bottom .qs-sec { border: 0; text-align: left; padding: 0; margin: 12px 0 4px; }
.qs-tbl { width: 100%; border-collapse: collapse; table-layout: auto; }
.qs-tbl th, .qs-tbl td { padding: 4px 6px; border: 1px solid #BDBDBD; text-align: left; vertical-align: top; }
.qs-tbl th { background: color-mix(in srgb, var(--acc) 12%, #FFF); font-weight: 700; font-size: 10.5px; color: #222; }
.qs-look-grid .qs-tbl th, .qs-look-grid .qs-tbl td { border-color: #444; }
.qs-look-clean .qs-tbl th, .qs-look-clean .qs-tbl td { border-width: 0 0 1px; border-color: #E1E1E1; }
.qs-look-clean .qs-tbl th { background: var(--acc); color: #FFF; }
.qs-tbl .n { text-align: right; white-space: nowrap; }
.qs-tbl small { display: block; font-size: 9.5px; color: #777; }
.qs-client { margin-top: 12px; }
.qs-look-grid .qs-client { margin-top: 0; }
.qs-client th { width: 13%; }
.qs-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0 4px; }
.qs-cards > div { padding: 10px 12px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 7%, #FFF); border-left: 3px solid var(--acc); }
.qs-cards strong { display: block; font-size: 13.5px; }
.qs-lab { display: block; font-size: 9.5px; text-transform: uppercase; letter-spacing: .06em; color: #777; }
.qs-letter { margin-top: 14px; }
.qs-letter p { margin: 0 0 8px; }
.qs-lmeta .qs-meta { float: right; text-align: right; }
.qs-grid th, .qs-grid td { text-align: center; }
.qs-grid .qs-gl th { font-size: 9.5px; }
.qs-grid td { font-size: 11.5px; }
.qs-sizerow { display: flex; gap: 14px; align-items: center; margin-top: 10px; }
.qs-size { width: 46%; }
.qs-size .qs-final td { background: #E8F5E9; font-weight: 700; }
.qs-draw { flex: 1; min-width: 0; height: auto; }
.qs-draw text { font: 700 10.5px Arial, sans-serif; fill: #333; }
.qs-draw .qs-dc { fill: #555; font-weight: 400; }
.qs-dr { fill: #EAEAEA; stroke: #333; stroke-width: 2.5; }
.qs-dg line { stroke: var(--acc); stroke-width: .6; opacity: .55; }
.qs-list { display: grid; grid-template-columns: 1fr 1fr; column-gap: 22px; margin-top: 8px; }
.qs-list div { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px solid #EBEBEB; }
.qs-list > div > span { color: #666; }
.qs-list b { font-weight: 600; text-align: right; }
.qs-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin: 14px 0 0; }
.qs-tiles div { padding: 10px; border-radius: 6px; background: color-mix(in srgb, var(--acc) 9%, #FFF); text-align: center; }
.qs-tiles b { display: block; font-size: 16px; color: var(--acc); }
.qs-tiles span { font-size: 10px; color: #555; text-transform: uppercase; letter-spacing: .05em; }
.qs-compact { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; font-size: 10.5px; }
.qs-compact div { padding: 2px 0; border-bottom: 1px dotted #CCC; }
.qs-compact > div > span:first-child { color: #666; margin-right: 4px; }
.qs-compact > div > span:first-child::after { content: ':'; }
.qs-price td { font-size: 11px; }
.qs-d { color: #555; font-size: 10.5px; }
.qs-grand td { font-weight: 700; font-size: 12.5px; background: color-mix(in srgb, var(--acc) 12%, #FFF); }
.qs-totals { width: 46%; margin: 8px 0 0 auto; }
.qs-totals div { display: flex; justify-content: space-between; padding: 3px 6px; }
.qs-totals .qs-gt { margin-top: 3px; padding: 6px; border-radius: 4px; background: var(--acc); color: #FFF; font-weight: 700; font-size: 13px; }
.qs-words { margin: 8px 0 0; font-size: 11px; }
.qs-rates { margin: 2px 0 0; font-size: 10.5px; color: #666; }
.qs-bottom { display: grid; grid-template-columns: 34% 1fr; gap: 18px; margin-top: 4px; }
.qs-tl { font-size: 10.5px; line-height: 1.5; outline: none; }
.qs-end { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-top: 22px; padding-top: 10px; border-top: 1px solid #DDD; }
.qs-end p { margin: 0; color: #444; }
.qs-sign { display: flex; flex-direction: column; align-items: flex-end; flex: none; text-align: right; font-weight: 600; }
.qs-sign img { max-width: 150px; max-height: 70px; margin: 6px 0; object-fit: contain; }
.qs-gap { height: 46px; }

/* calculators */
.lb-layout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 40px; }
.lb-form { position: sticky; top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 12px; padding: 18px; background: var(--white); border: 1px solid var(--line, #E2E2E2); border-radius: 12px; }
.lb-res { min-width: 0; }
.lb-sub { margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--black); }
.lb-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 18px; }
.lb-opt { display: flex; flex-direction: column; gap: 2px; padding: 9px 12px; background: var(--white); border: 1.5px solid #DDD; border-radius: 10px; font: inherit; font-size: 13.5px; text-align: left; color: var(--text); cursor: pointer; }
.lb-opt b { font-size: 12px; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.lb-opt span:first-of-type { font-weight: 600; color: var(--black); }
.lb-opt:hover { border-color: var(--red); }
.lb-opt.is-on { border-color: var(--red); box-shadow: 0 0 0 2px var(--red); }
.lb-draw { margin: 0 0 18px; padding: 16px; background: var(--white); border: 1px solid var(--line, #E2E2E2); border-radius: 12px; }
.lb-draw svg { display: block; width: 100%; max-height: 420px; }
.lb-draw text { font: 600 11px 'Hanken Grotesk', Arial, sans-serif; fill: #333; }
.lb-draw .lb-dim { font-size: 13px; fill: var(--black); }
.lb-cap { margin: 10px 0 0; font-size: 14px; color: var(--muted); }
.lb-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 0 0 14px; }
.lb-facts div { padding: 12px 14px; background: var(--white); border: 1px solid var(--line, #E2E2E2); border-radius: 10px; }
.lb-facts b { display: block; font-family: 'Bricolage Grotesque', sans-serif; font-size: 21px; color: var(--black); }
.lb-facts span { font-size: 13px; color: var(--muted); }
.lb-tbl { width: 100%; border-collapse: collapse; background: var(--white); border-radius: 12px; overflow: hidden; font-size: 15px; }
.lb-tbl th, .lb-tbl td { padding: 9px 12px; border-bottom: 1px solid #ECECEC; text-align: left; vertical-align: top; }
.lb-tbl th { background: var(--black); color: var(--white); font-size: 13.5px; }
.lb-tbl .n { text-align: right; white-space: nowrap; }
.lb-tbl td span { display: block; font-size: 13px; color: var(--muted); }
.lb-tbl td:first-child { color: var(--muted); font-size: 13.5px; white-space: nowrap; }
.lb-total td { font-weight: 700; color: var(--black) !important; background: #F7F7F7; }
.lb-note { margin: 10px 0 0; padding: 10px 14px; border-radius: 8px; background: #FFF6E5; color: #6A4A06; font-size: 14.5px; }
.lb-msg { padding: 18px; background: var(--white); border-radius: 12px; }
.lb-small { margin: 10px 0 0; font-size: 13.5px; color: var(--muted); }
.sc-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
@media (max-width: 900px) { .lb-layout { grid-template-columns: minmax(0, 1fr); } .lb-form { position: static; } .lb-tbl { font-size: 14px; } }
@media (max-width: 560px) { .lb-form { grid-template-columns: minmax(0, 1fr); } .lb-tbl td:first-child { display: none; } .lb-tbl th:first-child { display: none; } }

/* print only the quotation */
@media print {
  @page { size: A4; margin: 8mm; }
  body.qm-page .topbar, body.qm-page .site-header, body.qm-page .site-footer, body.qm-page .cta-band, body.qm-page .page-hero,
  body.qm-page .tl-note, body.qm-page .qm-bar, body.qm-page .qm-tpls, body.qm-page .qm-form, body.qm-page .qm-hint, body.qm-page .tl-copy { display: none !important; }
  body.qm-page, body.qm-page main, body.qm-page .page-body, body.qm-page .wrap { margin: 0 !important; padding: 0 !important; background: #FFF !important; }
  body.qm-page .qm-layout { display: block; margin: 0; }
  body.qm-page .qm-preview { padding: 0; background: none; overflow: visible; }
  body.qm-page .qm-sheet { width: auto; min-height: 0; padding: 0; box-shadow: none; }
  .qm-sheet .ed:empty::before { content: ''; }
  .qm-sheet .ed:hover, .qm-sheet [data-k]:hover { background: none; }
  .qs-hdr-band { margin: 0; padding: 16px 18px; }
  .qs-tbl tr, .qs-bottom, .qs-end, .qs-sizerow { break-inside: avoid; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
