/* Odelyo free tools */
.tl { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 28px; align-items: start; }
.tl-chk { grid-template-columns: 1fr; max-width: 860px; }
.tl-form fieldset { border: 0; margin: 0 0 26px; padding: 0; }
.tl-form legend { font-weight: 800; font-size: 1.05rem; margin-bottom: 12px; }
.tl-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 10px; }
.tl-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-opt { position: relative; display: block; cursor: pointer; }
.tl-opt input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.tl-opt span { display: block; padding: 13px 15px; border-radius: 14px; border: 1px solid rgba(11, 18, 32, 0.14); background: #fff; font-weight: 600; transition: border-color .15s, background .15s, box-shadow .15s; }
.tl-opt input:checked + span { border-color: var(--blue); background: #eef1ff; box-shadow: inset 0 0 0 1px var(--blue); color: #1b2bd6; }
.tl-opt input:focus-visible + span { outline: 3px solid var(--blue); outline-offset: 2px; }
.tl-result { position: sticky; top: 96px; padding: 26px; border-radius: 24px; background: #0b1220; color: #fff; }
.tl-k { margin: 0; font-size: 13px; color: #9aa3b5; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; }
.tl-big { font-family: var(--display); font-size: clamp(1.9rem, 4vw, 2.6rem); margin: 4px 0 18px; font-weight: 800; }
.tl-mid { font-size: 1.35rem; font-weight: 800; margin: 4px 0 16px; }
.tl-note { font-size: 14px; color: var(--muted); margin: 12px 0 18px; }
.tl-result .tl-note { color: #b6bdcc; }
.tl-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.tl-field { display: grid; gap: 6px; font-weight: 700; font-size: 14px; }
.tl-field input, .tl-field select, .tl-url input { width: 100%; box-sizing: border-box; padding: 13px 14px; border-radius: 12px; border: 1px solid rgba(11, 18, 32, 0.18); font: inherit; font-size: 16px; background: #fff; }
.tl-url { display: flex; gap: 10px; }
.tl-url input { flex: 1; }
.tl-url .btn { white-space: nowrap; }
.tl-report { margin-top: 10px; }
.tl-score { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; padding: 20px 22px; border-radius: 18px; color: #fff; background: #0b1220; }
.tl-score strong { font-size: 2.2rem; font-family: var(--display); }
.tl-score small { color: #b6bdcc; word-break: break-all; }
.tl-score.good strong { color: #4ade80; } .tl-score.mid strong { color: #facc15; } .tl-score.low strong { color: #f87171; }
.tl-checks { list-style: none; padding: 0; margin: 18px 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
.tl-checks li { display: flex; gap: 10px; align-items: flex-start; }
.tl-ic { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 800; color: #fff; }
.tl-checks .ok .tl-ic { background: #16a34a; } .tl-checks .bad .tl-ic { background: #dc2626; }
.tl-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin: 0; }
.tl-facts div { padding: 12px; border-radius: 12px; background: #f4f5f8; }
.tl-facts dt { font-size: 12px; color: var(--muted); font-weight: 700; }
.tl-facts dd { margin: 4px 0 0; font-weight: 700; }
.tl-err { color: #b91c1c; font-weight: 700; }
.tl-after { margin-top: 18px; }
.tl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.tl-card { display: block; padding: 26px; border-radius: 22px; background: #fff; border: 1px solid rgba(11, 18, 32, 0.1); color: inherit; text-decoration: none; transition: transform .2s, box-shadow .2s; }
.tl-card:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(11, 18, 32, 0.08); }
.tl-card h2, .tl-card h3 { margin: 0 0 8px; font-size: 1.2rem; }
.tl-card p { margin: 0 0 14px; color: var(--muted); }
.tl-go { font-weight: 800; color: var(--blue); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 860px) {
  .tl { grid-template-columns: 1fr; }
  .tl-result { position: static; }
  .tl-fields, .tl-checks { grid-template-columns: 1fr; }
  .tl-url { flex-direction: column; }
}
/* comparison pages */
.cmp-wrap { overflow-x: auto; border-radius: 18px; border: 1px solid rgba(11, 18, 32, 0.1); background: #fff; }
.cmp { width: 100%; border-collapse: collapse; min-width: 640px; }
.cmp th, .cmp td { padding: 14px 16px; text-align: start; vertical-align: top; border-bottom: 1px solid rgba(11, 18, 32, 0.08); }
.cmp thead th { background: #0b1220; color: #fff; font-size: 1.05rem; }
.cmp thead th:nth-child(2) { background: var(--blue); }
.cmp tbody th { width: 22%; font-size: 14px; color: var(--muted); }
.cmp tbody td:nth-child(2) { background: #f5f7ff; font-weight: 600; }
.cmp-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.cmp-col { padding: 26px; border-radius: 22px; background: #fff; border: 1px solid rgba(11, 18, 32, 0.1); }
.cmp-col.is-ours { background: #0b1220; color: #fff; border-color: transparent; }
.cmp-col h3 { margin: 0 0 14px; font-size: 1.2rem; }
.cmp-col ul { margin: 0 0 18px; padding-inline-start: 20px; display: grid; gap: 10px; }
@media (max-width: 760px) { .cmp-two { grid-template-columns: 1fr; } }
.dt-facts { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.dt-facts strong { font-family: var(--display); color: var(--blue); margin-inline-end: 4px; }
.dt-facts span { color: var(--muted); font-size: 14px; }
/* ---- browser tools (tools2.js) ---- */
.tl [hidden], .tl-when[hidden] { display: none !important; }
.tl-badge { display: inline-block; margin: 0 0 18px; padding: 7px 14px; border-radius: 999px; background: #eef1ff; color: #1b2bd6; font-weight: 700; font-size: 14px; }
.tl-seg { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-seg .tl-opt span { padding: 10px 14px; }
.tl-fields .full, .tl-fields > .tl-when.full { grid-column: 1 / -1; }
.tl-fields.three { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 22px; }
.tl-field textarea, .tl-field select { width: 100%; box-sizing: border-box; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(11, 18, 32, 0.18); font: inherit; font-size: 16px; background: #fff; }
.tl-field input[type="color"] { padding: 4px; height: 50px; cursor: pointer; }
.tl-field input[type="range"] { padding: 0; border: 0; accent-color: var(--blue); }
.tl-form > .tl-fields { margin-bottom: 22px; }
.tl-light { background: #fff; color: inherit; border: 1px solid rgba(11, 18, 32, 0.1); box-shadow: 0 18px 40px rgba(11, 18, 32, 0.06); }
.tl-light .tl-note { color: var(--muted); }
.tl-result .btn-ghost { color: #fff; border-color: rgba(255, 255, 255, 0.35); background: transparent; }
.tl-light .btn-ghost { color: inherit; border-color: rgba(11, 18, 32, 0.2); }
.tl-btns { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0; }
.tl-result > .btn { width: 100%; justify-content: center; text-align: center; margin: 10px 0; }
.tl-result .btn[disabled] { opacity: .45; pointer-events: none; }
.tl-qr { display: grid; place-items: center; min-height: 220px; border-radius: 16px; background: #f4f5f8; overflow: hidden; }
.tl-qr canvas { width: 100%; max-width: 300px; height: auto; image-rendering: pixelated; }
.tl-qr.small { min-height: 0; background: transparent; margin-top: 10px; }
.tl-qr.small canvas { max-width: 150px; border-radius: 10px; }
.tl-qr.small:empty { display: none; }
.tl-link { font-weight: 700; word-break: break-all; margin: 6px 0 4px; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, 0.08); }
.tl-mini { display: inline-block; margin: 6px 0 14px; padding: 7px 12px; border-radius: 10px; border: 1px solid rgba(11, 18, 32, 0.2); background: #fff; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.tl-result:not(.tl-light) .tl-mini { background: rgba(255, 255, 255, 0.1); color: #fff; border-color: rgba(255, 255, 255, 0.3); }
.tl-code { width: 100%; box-sizing: border-box; margin-top: 6px; padding: 12px; border-radius: 12px; border: 1px solid rgba(11, 18, 32, 0.15); background: #f6f7fa; color: #0b1220; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; resize: vertical; }
.tl-drop { display: grid; place-items: center; min-height: 130px; margin-bottom: 18px; padding: 18px; border: 2px dashed rgba(4, 0, 243, 0.35); border-radius: 18px; background: #f5f6ff; text-align: center; font-weight: 700; color: #1b2bd6; cursor: pointer; position: relative; }
.tl-drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.tl-drop:hover, .tl-drop:focus-within { background: #eef1ff; border-color: var(--blue); }
.tl-icons { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-end; justify-content: center; min-height: 140px; margin-bottom: 8px; }
.tl-icons figure { margin: 0; text-align: center; font-size: 12px; color: #9aa3b5; }
.tl-icons img { display: block; margin: 0 auto 6px; width: 96px; height: 96px; }
.tl-icons img.ios { border-radius: 22%; } .tl-icons img.droid { border-radius: 50%; } .tl-icons img.sm { width: 48px; height: 48px; }
.tl-tab { display: flex; align-items: center; gap: 8px; width: max-content; max-width: 100%; margin-bottom: 16px; padding: 9px 16px; border-radius: 12px 12px 0 0; background: #fff; color: #0b1220; font-size: 13px; }
.tl-tab img { width: 16px; height: 16px; }
.tl-canvas { display: block; width: 100%; height: auto; max-height: 560px; object-fit: contain; border-radius: 14px; background: #f4f5f8; }
.tl-wide { grid-template-columns: 1fr; }
.tl-row { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 14px; }
.tl-row .tl-field { min-width: 170px; flex: 1; }
.tl-row .btn { flex: none; }
.tl-pal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); height: 300px; border-radius: 22px; overflow: hidden; box-shadow: 0 18px 40px rgba(11, 18, 32, 0.1); }
.tl-sw { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 8px; padding: 16px 6px; color: #0b1220; }
.tl-sw.dark { color: #fff; }
.tl-hex, .tl-lock { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.tl-hex { font-weight: 800; font-size: 1.2rem; letter-spacing: .03em; }
.tl-lock { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .92); color: #0b1220; } .tl-lock.on { font-weight: 800; background: #0b1220; color: #fff; }
.tl-grad { height: 120px; margin: 18px 0; border-radius: 22px; }
.tl-two { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 22px; }
.tl-chip { padding: 8px 12px; border-radius: 999px; border: 1px solid rgba(11, 18, 32, 0.16); background: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.tl-chip.on { border-color: var(--blue); background: #eef1ff; color: #1b2bd6; }
.tl-today { margin: 0 0 20px; padding: 14px 16px; border-radius: 14px; background: #f4f5f8; }
.tl-check { display: flex; gap: 10px; align-items: center; font-weight: 600; margin-bottom: 8px; }
.tl-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.tl-doc { margin-top: 6px; }
.tl-paper { max-height: 640px; overflow: auto; padding: 30px 34px; border-radius: 18px; background: #fff; border: 1px solid rgba(11, 18, 32, 0.1); line-height: 1.75; }
.tl-paper h1 { font-size: 1.6rem; margin: 0 0 6px; } .tl-paper h2 { font-size: 1.15rem; margin: 1.6em 0 .4em; }
.tl-paper a { word-break: break-all; }
.tl-steps { margin: 0 0 24px; padding-inline-start: 22px; display: grid; gap: 10px; font-size: 1.05rem; }
.tl-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tl-share span { font-weight: 800; margin-inline-end: 4px; }
.tl-share a, .tl-copylink { padding: 8px 14px; border-radius: 999px; border: 1px solid rgba(11, 18, 32, 0.16); background: #fff; color: inherit; font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; }
.tl-share a:hover, .tl-copylink:hover { border-color: var(--blue); color: var(--blue); }
@media (max-width: 860px) {
  .tl-fields.three, .tl-two { grid-template-columns: 1fr; }
  .tl-pal { grid-template-columns: 1fr; height: auto; }
  .tl-sw { flex-direction: row; justify-content: space-between; padding: 16px; min-height: 64px; }
  .tl-paper { padding: 20px; }
}
/* ---- tools3.js (PDF, images, calculators, dev) ---- */
.tl-files, .tl-imgs { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 8px; }
.tl-files li, .tl-imgs li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #fff; border: 1px solid rgba(11, 18, 32, 0.1); }
.tl-files button { flex: none; width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(11, 18, 32, 0.15); background: #f6f7fa; font: inherit; font-weight: 800; cursor: pointer; }
.tl-files button:hover { border-color: var(--blue); color: var(--blue); }
.tl-ficon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: #fee2e2; color: #b91c1c; font-size: 11px; font-weight: 800; }
.tl-files img, .tl-imgs img { flex: none; width: 48px; height: 48px; object-fit: cover; border-radius: 10px; background: #f4f5f8; }
.tl-fname { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.tl-fname small { color: var(--muted); font-weight: 600; }
.tl-imgs li { flex-wrap: wrap; }
.tl-imgs .tl-mini { margin: 0; }
.tl-pct { font-weight: 800; font-size: 13px; } .tl-pct.ok { color: #15803d; } .tl-pct.bad { color: #b91c1c; }
.tl-status { min-height: 1.4em; margin: 6px 0; font-weight: 700; color: var(--muted); }
.tl-status.ok { color: #15803d; } .tl-status.bad { color: #b91c1c; }
.tl-editor { min-height: 260px; font-size: 13.5px; }
.tl-seg.col { flex-direction: column; align-items: stretch; }
.tl-k.dark { color: var(--muted); margin-bottom: 4px; }
.tl-two .tl-k { color: var(--muted); }
.tl-drop.small { min-height: 70px; margin-top: 14px; }
.tl-field output { font-weight: 800; color: var(--blue); }
.tl-wide > .tl-facts { margin: 10px 0; }
.tl-row fieldset { border: 0; padding: 0; margin: 0; }
.tl-row fieldset legend { font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.tl-row .tl-check { margin: 0 0 12px; }
/* ---- tools4.js (seasonal, salary, invoice, contract) ---- */
.tl-cds { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.tl-cd { padding: 24px; border-radius: 22px; background: #0b1220; color: #fff; text-align: center; }
.tl-cd h2, .tl-cd h3 { margin: 0 0 12px; font-size: 1.15rem; }
.tl-cd-n, .tl-cd-l { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tl-cd-n span { font-family: var(--display); font-weight: 800; font-size: clamp(1.7rem, 4vw, 2.4rem); font-variant-numeric: tabular-nums; }
.tl-cd-l span { font-size: 12px; color: #9aa3b5; text-transform: uppercase; letter-spacing: .05em; }
.tl-cd .tl-note { color: #b6bdcc; margin: 12px 0 0; font-size: 13px; }
.tl-cd-today { grid-column: 1 / -1; color: #4ade80; }
.tl-cd.big { margin-bottom: 22px; background: linear-gradient(135deg, #0400f3, #0b1220); }
.tl-cd.big .tl-cd-n span { font-size: clamp(2.2rem, 6vw, 3.4rem); }
.tl-dates { margin: 6px 0 18px; padding-inline-start: 20px; display: grid; gap: 6px; }
.tl-prayers { margin: 0 0 22px; grid-template-columns: repeat(6, minmax(0, 1fr)); }
.tl-prayers dd { font-size: 1.15rem; }
.tl-h3 { margin: 10px 0 12px; font-size: 1.15rem; }
.tl-table { min-width: 760px; font-size: 14px; }
.tl-table td, .tl-table th { padding: 9px 10px; white-space: nowrap; }
.tl-table thead th:nth-child(2) { background: #0b1220; }
.tl-table tbody td:nth-child(2) { background: transparent; font-weight: 600; }
.tl-table tr.is-today td { background: #eef1ff !important; font-weight: 800; }
.tl-canvas.sq { max-height: 520px; }
.tl-items { display: grid; gap: 8px; margin-bottom: 8px; }
.tl-item { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; padding: 10px; border-radius: 14px; background: #f6f7fa; }
.tl-item label { display: grid; gap: 4px; flex: 1 1 120px; font-size: 13px; font-weight: 700; }
.tl-item label:first-child { flex: 3 1 220px; }
.tl-item input { width: 100%; box-sizing: border-box; padding: 10px 12px; border-radius: 10px; border: 1px solid rgba(11, 18, 32, 0.18); font: inherit; background: #fff; }
.tl-x { flex: none; width: 40px; height: 42px; border-radius: 10px; border: 1px solid rgba(11, 18, 32, 0.15); background: #fff; cursor: pointer; font-weight: 800; }
.tl-invoice { font-size: 14.5px; }
.inv-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 2px solid #0b1220; padding-bottom: 14px; margin-bottom: 16px; }
.inv-head h2 { margin: 0; font-size: 1.5rem; } .inv-head .en { margin: 2px 0 0; color: var(--muted); }
.inv-qr { width: 130px; height: 130px; }
.inv-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.inv-grid p { margin: 4px 0; }
.inv-table { width: 100%; border-collapse: collapse; margin: 12px 0; }
.inv-table th, .inv-table td { border: 1px solid rgba(11, 18, 32, 0.15); padding: 8px 10px; text-align: start; }
.inv-table thead th, .inv-table tfoot th { background: #f4f5f8; }
.inv-tot { margin: 0; display: grid; gap: 4px; max-width: 460px; margin-inline-start: auto; }
.inv-tot div { display: flex; justify-content: space-between; gap: 16px; padding: 6px 10px; border-radius: 8px; }
.inv-tot dt { font-weight: 600; } .inv-tot dd { margin: 0; font-weight: 800; }
.inv-tot .grand { background: #0b1220; color: #fff; }
.inv-grid.sign { margin-top: 24px; }
.tl-hub-group { margin-bottom: 40px; }
.tl-hub-group h2 { margin: 0 0 16px; font-size: 1.4rem; }
@media (max-width: 860px) { .tl-prayers { grid-template-columns: repeat(3, minmax(0, 1fr)); } .inv-grid { grid-template-columns: 1fr; } }
@media print {
  body.tl-printing * { visibility: hidden !important; }
  body.tl-printing .tl-printing-target, body.tl-printing .tl-printing-target * { visibility: visible !important; }
  body.tl-printing .tl-printing-target { position: absolute; inset: 0 0 auto 0; max-height: none; overflow: visible; border: 0; box-shadow: none; padding: 0; }
  body.tl-printing .tl-table { min-width: 0; font-size: 11px; }
}
/* ---- tools hub ---- */
.th-bar { position: sticky; top: 72px; z-index: 5; display: grid; gap: 12px; padding: 14px; margin: 0 0 28px; border-radius: 20px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); border: 1px solid rgba(11,18,32,.08); box-shadow: 0 10px 30px rgba(11,18,32,.06); }
.th-search { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 14px; background: #f4f5f8; border: 1px solid transparent; }
.th-search:focus-within { border-color: var(--blue); background: #fff; }
.th-search span { font-size: 22px; color: var(--muted); }
.th-search input { flex: 1; min-width: 0; border: 0; background: transparent; padding: 14px 0; font: inherit; font-size: 16px; outline: none; }
.th-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.th-chips::-webkit-scrollbar { display: none; }
.th-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(11,18,32,.12); background: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.th-chip b { font-size: 12px; padding: 1px 7px; border-radius: 999px; background: #f0f1f5; color: var(--muted); }
.th-chip:hover { border-color: var(--blue); }
.th-chip.on { background: #0b1220; color: #fff; border-color: #0b1220; } .th-chip.on b { background: rgba(255,255,255,.18); color: #fff; }
.th-group { margin-bottom: 36px; scroll-margin-top: 200px; }
.th-group h2 { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.3rem; }
.th-group h2 small { font-size: 13px; color: var(--muted); font-weight: 700; }
.th-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.th-card { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(11,18,32,.09); color: inherit; text-decoration: none; transition: transform .15s, box-shadow .15s, border-color .15s; }
.th-card:hover, .th-card:focus-visible { transform: translateY(-2px); border-color: rgba(4,0,243,.35); box-shadow: 0 14px 30px rgba(11,18,32,.08); }
.th-card[hidden], .th-group[hidden] { display: none; }
.th-tx { display: grid; gap: 3px; min-width: 0; }
.th-tx strong { font-size: 15.5px; line-height: 1.3; }
.th-tx small { font-size: 13.5px; color: var(--muted); line-height: 1.45; }
.th-ic { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 13px; font-size: 19px; font-weight: 800; line-height: 1; }
.th-group h2 .th-ic { width: 38px; height: 38px; font-size: 17px; }
.th-c0 { background: #f3e8ff; color: #7c3aed; } .th-c1 { background: #dcfce7; color: #15803d; } .th-c2 { background: #fee2e2; color: #b91c1c; }
.th-c3 { background: #e0e7ff; color: #1b2bd6; } .th-c4 { background: #fef3c7; color: #b45309; } .th-c5 { background: #e2e8f0; color: #0f172a; font-size: 14px; }
.th-cp { background: #0b1220; color: #fde68a; }
.th-pop .th-card { background: linear-gradient(180deg, #fff, #f7f8ff); border-color: rgba(4,0,243,.15); }
.th-empty { text-align: center; padding: 40px 0; color: var(--muted); font-weight: 700; }
@media (max-width: 760px) {
  .th-bar { top: 60px; padding: 10px; border-radius: 16px; }
  .th-grid { grid-template-columns: 1fr; gap: 8px; }
  .th-card { padding: 12px; }
  .th-ic { width: 40px; height: 40px; }
}
.phero.is-compact { padding-bottom: 8px; min-height: 0; }
.phero.is-compact .phero-grid { min-height: 0; padding-top: 0; padding-bottom: 0; }
.phero.is-compact + .pband { padding-top: 8px; }
/* ---- tools5.js ---- */
.tl-fields > fieldset.full, .tl-fields > .full { grid-column: 1 / -1; }
.tl-fields fieldset { border: 0; padding: 0; margin: 0; }
.tl-fields fieldset legend { font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.tl-outs { margin-top: 18px; display: grid; gap: 6px; }
.tl-editor.sm { min-height: 140px; }
.tl-html:empty { display: none; }
.tl-scope h2 { margin: 0 0 6px; font-size: 1.4rem; } .tl-scope h3 { margin: 18px 0 6px; font-size: 1.05rem; }
.tl-scope-sum { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 6px; }
.tl-scope-sum div { padding: 14px 16px; border-radius: 14px; background: #0b1220; color: #fff; display: grid; gap: 4px; }
.tl-scope-sum span { font-size: 13px; color: #9aa3b5; } .tl-scope-sum strong { font-size: 1.35rem; font-family: var(--display); }
.tl-rec { padding: 24px; border-radius: 22px; background: #fff; border: 2px solid var(--blue); }
.tl-rec h2, .tl-rec h3 { margin: 4px 0 12px; font-size: 1.5rem; color: #1b2bd6; }
.tl-hl { white-space: pre-wrap; word-break: break-word; padding: 16px; border-radius: 14px; background: #f6f7fa; font: 14px/1.7 ui-monospace, Menlo, monospace; margin: 0; }
.tl-hl mark { background: #fde68a; border-radius: 4px; padding: 0 2px; }
.tl-canvas.bc { max-height: 240px; background: #fff; border: 1px solid rgba(11,18,32,.1); }
.og-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; margin-bottom: 16px; }
.og-card { margin: 0; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid rgba(11,18,32,.12); }
.og-card figcaption { padding: 6px 12px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: #f4f5f8; }
.og-card img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: #eef0f4; }
.og-noimg { aspect-ratio: 1.91 / 1; display: grid; place-items: center; background: #fee2e2; color: #b91c1c; font-weight: 700; font-size: 14px; }
.og-tx { padding: 10px 12px; display: grid; gap: 3px; } .og-tx small { color: var(--muted); font-size: 12px; } .og-tx strong { font-size: 15px; } .og-tx p { margin: 0; font-size: 13px; color: var(--muted); }
.og-whatsapp { background: #e7fbe9; } .og-whatsapp .og-tx { background: #d9f7dc; }
.og-tags td.ok { color: #15803d; word-break: break-all; } .og-tags td.bad { color: #b91c1c; font-weight: 700; }
.th-c6 { background: #ffe4e6; color: #be123c; } .th-c7 { background: #e2e8f0; color: #0f172a; font-size: 14px; }
@media (max-width: 760px) { .tl-scope-sum { grid-template-columns: 1fr; } }
.th-c5 { background: #cffafe; color: #0e7490; font-size: 19px; }
/* ---- share sheet ---- */
.sh-wrap { position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px; }
.sh-wrap[hidden] { display: none; }
.sh-back { position: absolute; inset: 0; background: rgba(11, 18, 32, .55); backdrop-filter: blur(3px); }
.sh-box { position: relative; width: min(520px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px; border-radius: 24px; background: #fff; box-shadow: 0 30px 80px rgba(0,0,0,.25); }
.sh-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 1.2rem; }
.sh-x { width: 38px; height: 38px; border-radius: 50%; border: 0; background: #f1f2f6; font-size: 16px; cursor: pointer; }
.sh-prev img { display: block; max-width: 100%; max-height: 200px; margin: 0 auto 14px; border-radius: 12px; }
.sh-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px 6px; }
.sh-net { display: grid; justify-items: center; gap: 6px; padding: 6px 2px; border: 0; background: none; font: inherit; font-size: 12.5px; font-weight: 600; cursor: pointer; border-radius: 12px; }
.sh-net:hover, .sh-net:focus-visible { background: #f4f5f8; }
.sh-ic { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; color: #fff; font-weight: 800; font-size: 20px; }
.sh-link { display: flex; gap: 8px; margin-top: 18px; }
.sh-link input { flex: 1; min-width: 0; padding: 12px; border-radius: 12px; border: 1px solid rgba(11,18,32,.15); background: #f6f7fa; font: inherit; font-size: 14px; }
.sh-msg { min-height: 1.3em; margin: 8px 0 0; color: #15803d; font-weight: 700; font-size: 14px; }
.sh-more { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.sh-more .btn { flex: 1; }
html.sh-open { overflow: hidden; }
.tl-sharebtn { display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 480px) { .sh-wrap { place-items: end center; padding: 0; } .sh-box { border-radius: 24px 24px 0 0; } .sh-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tl-thumb { display: block; width: 64px; height: 80px; border-radius: 10px; }
[data-tool="card"] .tl-seg .tl-opt span:has(.tl-thumb) { padding: 4px; }
.tl-exif { list-style: none; padding: 0; margin: 14px 0; display: grid; gap: 12px; }
.tl-exif-item { display: flex; gap: 16px; padding: 16px; border-radius: 18px; background: #fff; border: 1px solid rgba(11,18,32,.1); }
.tl-exif-item > img { flex: none; width: 110px; height: 110px; object-fit: cover; border-radius: 12px; }
.tl-exif-item ul { margin: 6px 0 10px; padding-inline-start: 18px; display: grid; gap: 4px; }
.tl-exif-item li.bad { color: #b91c1c; }
@media (max-width: 600px) { .tl-exif-item { flex-direction: column; } .tl-exif-item > img { width: 100%; height: 180px; } }
.tl-invoice [contenteditable] { border-radius: 4px; outline: 1px dashed transparent; transition: outline-color .15s, background .15s; cursor: text; }
.tl-invoice [contenteditable]:hover { outline-color: rgba(4,0,243,.35); background: #f5f6ff; }
.tl-invoice [contenteditable]:focus { outline: 2px solid var(--blue); background: #fff; }
.inv-foot { margin: 18px 0 0; text-align: center; color: var(--muted); }
@media print { .tl-invoice [contenteditable] { outline: 0 !important; background: none !important; } }
.tl-card-one { max-width: 760px; margin: 0 auto; text-align: center; }

/* tools7: invoice/quote document, page-speed report */
.tl-doc { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
.tl-doc h2 { margin: 0 0 14px; font-family: var(--display); font-size: 1.6rem; }
.tl-doc-meta p { margin: 2px 0; }
.tl-doc .cmp-wrap { margin: 16px 0; }
.tl-doc tbody th { text-align: end; font-weight: 600; }
.tl-score { display: inline-flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 16px; background: #f2f4fb; margin-bottom: 16px; }
.tl-score strong { font-size: 2.4rem; font-family: var(--display); }
.tl-score.is-good strong { color: #0a8a4a; } .tl-score.is-ni strong { color: #b26a00; } .tl-score.is-poor strong { color: #c62828; }
.tl-vitals { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.tl-vital { padding: 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-top: 4px solid #c9ced6; display: grid; gap: 4px; }
.tl-vital span { font-size: 13px; color: var(--muted); } .tl-vital strong { font-size: 1.3rem; } .tl-vital em { font-style: normal; font-size: 12px; font-weight: 700; }
.tl-vital.is-good { border-top-color: #0a8a4a; } .tl-vital.is-good em { color: #0a8a4a; }
.tl-vital.is-ni { border-top-color: #e08a00; } .tl-vital.is-ni em { color: #b26a00; }
.tl-vital.is-poor { border-top-color: #c62828; } .tl-vital.is-poor em { color: #c62828; }
.tl-status.bad { color: #c62828; }
