/* UnlockIR app pages (/convert/, /admin/). Everything is namespaced tb-. */
.tb-wrap { padding-top: 32px; padding-bottom: 24px; }
.tb-card { background: var(--surface); border: 1px solid var(--border); border-radius: 0; padding: 20px; margin: 0 0 20px; min-width: 0; }
.tb-card h2 { margin: 0 0 12px; font-size: 20px; font-weight: 600; }
.tb-card h3 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
.tb-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.tb-field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 200px; min-width: 0; }
.tb-field label, .tb-label { font-size: 14px; color: var(--text-soft); }
.tb-field input, .tb-field select, .tb-input { min-height: 44px; padding: 0 12px; border-radius: 0; border: 1px solid var(--border-strong); background: var(--bg); color: var(--text); font: 16px var(--font); width: 100%; }
.tb-field .hint { font-size: 12px; color: var(--muted); }
.tb-check { display: flex; align-items: center; gap: 10px; min-height: 44px; color: var(--text-soft); }
.tb-check input { width: 20px; height: 20px; accent-color: var(--accent); }
.tb-drop { border: 2px dashed var(--border-strong); border-radius: 0; padding: 28px 16px; text-align: center; display: grid; gap: 10px; justify-items: center; background: rgba(14,15,18,.5); }
.tb-drop.over { border-color: var(--accent); background: var(--surface-2); }
.tb-drop p { margin: 0; color: var(--text-soft); }
.tb-btns { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; }
.btn-danger { background: transparent; color: #FFB4A8; border: 1px solid #8A3B2F; }
.btn-danger:hover { background: #2A1612; color: #FFD0C8; }
.tb-details { border: 1px solid var(--border); border-radius: 0; padding: 0 14px; margin: 14px 0; }
.tb-details > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 10px; color: var(--text-soft); list-style: none; }
.tb-details > summary::-webkit-details-marker { display: none; }
.tb-details > summary::before { content: ''; flex: none; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin: 0 4px 0 2px; }
.tb-details[open] > summary::before { transform: rotate(45deg); }
@media (prefers-reduced-motion: reduce) { .tb-details > summary::before { transition: none; } }
.tb-details[open] > summary { margin-bottom: 8px; }
.tb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; padding-bottom: 14px; }
.tb-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.tb-files li { border: 1px solid var(--border); border-radius: 0; padding: 10px 12px; display: grid; gap: 4px; }
.tb-files .name { font-family: var(--mono); font-size: 13px; word-break: break-all; color: var(--text); }
.tb-files .meta { font-size: 13px; color: var(--muted); }
.tb-bar { height: 8px; border-radius: 0; background: var(--surface-2); overflow: hidden; }
.tb-bar > span { display: block; height: 100%; width: 0; background: var(--accent); transition: width .2s; }
.tb-tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 0; border: 1px solid var(--border-strong); color: var(--text-soft); margin-right: 6px; }
.tb-ok { color: #8FE3B4; } .tb-bad { color: #FFB4A8; } .tb-warnt { color: var(--warn); }
.tb-msg { padding: 12px 14px; border-radius: 0; border: 1px solid var(--border-strong); background: var(--surface-2); color: var(--text-soft); margin: 12px 0; }
.tb-msg.err { border-color: #8A3B2F; background: #2A1612; color: #FFD0C8; }
.tb-msg.warn { border-color: #8A6A1F; background: #1E1A10; color: var(--warn); }
.tb-msg:empty { display: none; }
.tb-steps { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 12px; padding: 0; }
.tb-steps li { padding: 6px 12px; border-radius: 0; border: 1px solid var(--border-strong); color: var(--muted); font-size: 14px; }
.tb-steps li[aria-current="step"] { border-color: var(--accent); color: var(--text); background: var(--surface-2); }
.tb-steps li.done { color: #8FE3B4; border-color: #2C6B4A; }
.tb-badge { display: inline-block; padding: 3px 10px; font-family: var(--mono); letter-spacing: .04em; border-radius: 0; border: 1px solid var(--accent); color: var(--accent-soft); font-size: 13px; margin-left: 8px; vertical-align: middle; }
.tb-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tb-kpi { background: var(--surface); border: 1px solid var(--border); border-radius: 0; padding: 14px; }
.tb-kpi .v { font-size: 26px; font-weight: 600; line-height: 1.2; font-variant-numeric: tabular-nums; }
.tb-kpi .l { font-size: 13px; color: var(--muted); }
.tb-kpi .s { font-size: 12px; color: var(--text-soft); }
.tb-status { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 14px; color: var(--text-soft); margin-bottom: 16px; }
.tb-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; background: var(--muted); margin-right: 6px; }
.tb-dot.ok { background: #8FE3B4; } .tb-dot.bad { background: #FF7A66; } .tb-dot.wait { background: var(--warn); }
.tb-svg { width: 100%; height: auto; display: block; }
.tb-svg text { font-family: var(--font); fill: var(--text-soft); }
.tb-node { fill: var(--surface-2); stroke: var(--border-strong); stroke-width: 1.5; }
.tb-node.warn { stroke: #F2D58A; stroke-width: 2.5; }
.tb-node.hot { stroke: var(--accent); }
.tb-svg .t1 { fill: var(--text); font-size: 13px; font-weight: 600; }
.tb-svg .t2 { font-size: 11px; fill: var(--muted); }
.tb-svg .t3 { font-size: 12px; fill: var(--accent-soft); font-weight: 600; }
.tb-flow { fill: none; stroke: var(--border-strong); stroke-width: 2; }
.tb-flow.live { stroke: var(--accent); stroke-dasharray: 6 8; animation: tb-dash var(--tb-speed, 1.2s) linear infinite; }
.tb-flow.warn { stroke: #F2D58A; stroke-dasharray: 3 6; }
@keyframes tb-dash { to { stroke-dashoffset: -28; } }
@media (prefers-reduced-motion: reduce) { .tb-flow.live { animation: none; } }
.tb-chartbox { overflow-x: auto; }
.tb-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--text-soft); margin: 6px 0; }
.tb-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 0; margin-right: 6px; vertical-align: -1px; }
.tb-table-sm { font-size: 13px; min-width: 0; }
.tb-table-sm th, .tb-table-sm td { padding: 8px 10px; }
.tb-table-sm tbody tr.sel { background: var(--surface-2); }
.tb-clickrow { cursor: pointer; }
.tb-clickrow:hover { background: var(--surface-2); }
.tb-pre { font-family: var(--mono); font-size: 12px; white-space: pre-wrap; word-break: break-word; background: var(--bg); border: 1px solid var(--border); border-radius: 0; padding: 10px; max-height: 280px; overflow: auto; margin: 8px 0; }
.tb-login { max-width: 460px; margin: 40px auto; }
.tb-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 760px) { .tb-two { grid-template-columns: minmax(0, 1fr); } }


.tb-pals{display:grid;grid-template-columns:repeat(auto-fill,minmax(104px,1fr));gap:10px;margin-top:10px}
.tb-pal{font:inherit;font-size:14px;text-align:center;cursor:pointer;padding:8px;border-radius: 0;border:2px solid var(--border);background:var(--surface);color:var(--muted)}
.tb-pal i{display:block;height:24px;border-radius: 0;margin-bottom:6px}
.tb-pal small{display:block;font-size:12px;color:var(--muted);line-height:1.3}
.tb-pal:hover{border-color:var(--border-strong)}
.tb-pal.sel{border-color:var(--accent);color:var(--text);font-weight:700}
.tb-pal:focus-visible{outline:2px solid var(--accent-soft);outline-offset:2px}
.page-head .lede { max-width: 46em; }

/* sitewide redesign: heavier card headings, mono data */
.tb-card h2 { font-weight: 800; font-stretch: 106%; letter-spacing: -.01em; }
.tb-label, .tb-table-sm th { font-family: var(--mono); }
.tb-pal.sel { box-shadow: 0 0 0 1px var(--accent); }

.tb-emailrow { flex-wrap: nowrap; align-items: stretch; gap: 8px; }
.tb-emailrow input { flex: 1 1 auto; min-width: 0; }
.tb-emailrow .btn { flex: none; min-height: 44px; }
@media (max-width: 480px) { .tb-emailrow { flex-wrap: wrap; } .tb-emailrow .btn { width: 100%; } }
.tb-verify { margin: 4px 0 8px; }
.tb-verified { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; color: var(--accent); margin: 4px 0 8px; }
.tb-honest { margin: 12px 0 0; color: var(--text-soft); max-width: 40em; }

/* credit tally: before / this job / now */
.tb-tally { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 6px; }
.tb-tally[hidden] { display: none; }
.tb-tal { flex: 1 1 150px; border: 1px solid var(--border-strong); background: var(--surface); padding: 12px 14px; }
.tb-tal.strong { border-color: var(--accent); }
.tb-tal-l { font: 500 12px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.tb-tal-n { font: 800 22px/1.2 var(--font); margin-top: 4px; }
.tb-tal-c { font-size: 14px; color: var(--muted); }
.tb-tal-note { flex-basis: 100%; margin: 4px 0 0; font-size: 14px; color: var(--text-soft); }
