/* ============================================
   PlanUpPro free tools (/tools/)
   Loaded by tool pages via tool_assets_css() with TOOLS_ASSET_VERSION.
   ============================================ */

.tl-page { padding: 92px 0 72px; background: #fff; }
.tl-page [hidden] { display: none !important; } /* class display rules must not override the hidden attribute */
.tl-wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

.tl-crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: #64748b; margin-bottom: 18px; }
.tl-crumbs a { color: #2563eb; font-weight: 500; }
.tl-crumbs a:hover { text-decoration: underline; }

.tl-head { max-width: 780px; margin-bottom: 26px; }
.tl-kicker { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .9px; text-transform: uppercase; color: #2563eb; }
.tl-head h1 { font-size: 2.5rem; font-weight: 900; letter-spacing: -1px; line-height: 1.1; margin: 8px 0 12px; }
.tl-lede { font-size: 1.12rem; line-height: 1.6; color: #475569; }
.tl-trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 14px; font-size: 13px; color: #475569; }
.tl-trust span::before { content: "✓ "; color: #16a34a; font-weight: 800; }

/* --- App area --- */
.tl-app {
    display: grid;
    grid-template-columns: minmax(0, 350px) minmax(0, 1fr);
    gap: 22px;
    align-items: start;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 20px;
    padding: 22px;
}
.tl-app--stack { grid-template-columns: minmax(0, 1fr); }
.tl-col { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.tl-panel { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 20px; min-width: 0; }
.tl-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.tl-panel h2, .tl-panel-head h2 { font-size: 16px; font-weight: 800; color: #0f172a; margin: 0; }
.tl-panel h3 { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; color: #64748b; margin: 18px 0 10px; }
.tl-panel h3:first-child { margin-top: 0; }

.tl-field { margin-bottom: 14px; min-width: 0; }
.tl-field label, .tl-label { display: block; font-size: 13px; font-weight: 600; color: #334155; margin-bottom: 6px; }
.tl-opt { font-weight: 400; color: #94a3b8; }
.tl-hint { font-size: 12.5px; line-height: 1.5; color: #64748b; margin-top: 5px; }
.tl-input {
    width: 100%;
    height: 46px;
    border: 1.5px solid #cbd5e1;
    border-radius: 10px;
    padding: 0 12px;
    font: inherit;
    font-size: 16px; /* no iOS zoom */
    color: #0f172a;
    background: #fff;
    transition: border-color .15s, box-shadow .15s;
}
.tl-input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.tl-input[readonly] { background: #f8fafc; color: #475569; }
textarea.tl-input { height: auto; min-height: 96px; padding: 10px 12px; line-height: 1.5; resize: vertical; }
select.tl-input { padding-right: 30px; appearance: none; -webkit-appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2364748b' stroke-width='2' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; }
.tl-input-sm { height: 36px; font-size: 14px; padding: 0 28px 0 10px; width: auto; }
.tl-affix { position: relative; }
.tl-affix .tl-pre, .tl-affix .tl-suf { position: absolute; top: 50%; transform: translateY(-50%); color: #64748b; font-size: 15px; pointer-events: none; }
.tl-affix .tl-pre { left: 12px; }
.tl-affix .tl-suf { right: 12px; }
.tl-affix.has-pre .tl-input { padding-left: 30px; }
.tl-affix.has-suf .tl-input { padding-right: 34px; }
.tl-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tl-row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.tl-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: #334155; margin: 4px 0 14px; cursor: pointer; }
.tl-check input { width: 18px; height: 18px; margin-top: 1px; accent-color: #2563eb; flex: 0 0 auto; }
.tl-cur { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #64748b; font-weight: 600; }

.tl-seg { display: flex; flex-wrap: wrap; gap: 4px; background: #e2e8f0; padding: 4px; border-radius: 12px; margin-bottom: 18px; }
.tl-seg button { flex: 1 1 auto; padding: 9px 10px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: #475569; }
.tl-seg button[aria-selected="true"] { background: #fff; color: #0f172a; box-shadow: 0 1px 3px rgba(15,23,42,.12); }

/* --- Results --- */
.tl-results { min-width: 0; }
.tl-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(205px, 1fr)); gap: 12px; margin-bottom: 14px; }
.tl-stats--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tl-stat { background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 16px 18px; min-width: 0; }
.tl-stat-label { font-size: 12px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #64748b; }
.tl-stat-value { font-size: 1.6rem; font-weight: 800; color: #0f172a; margin-top: 6px; font-variant-numeric: tabular-nums; line-height: 1.15; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tl-stat-sub { font-size: 13px; color: #64748b; margin-top: 4px; }
.tl-stat--main { background: #0f172a; border-color: #0f172a; }
.tl-stat--main .tl-stat-label { color: #94a3b8; }
.tl-stat--main .tl-stat-value { color: #fff; }
.tl-stat--main .tl-stat-sub { color: #cbd5e1; }
.tl-insight { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 14px 16px; font-size: 15px; line-height: 1.6; color: #713f12; margin-bottom: 14px; }
.tl-insight:empty { display: none; }
.tl-error { background: #fef2f2; border: 1px solid #fecaca; color: #991b1b; border-radius: 12px; padding: 12px 14px; font-size: 14px; margin-bottom: 14px; }
.tl-warn { color: #b45309; font-size: 13.5px; margin-top: 10px; }

.tl-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid #e2e8f0; border-radius: 12px; background: #fff; }
.tl-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.tl-table th { background: #f8fafc; text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .3px; text-transform: uppercase; color: #64748b; padding: 10px 10px; white-space: nowrap; border-bottom: 1px solid #e2e8f0; }
.tl-table td { padding: 8px 10px; border-top: 1px solid #eef2f7; white-space: nowrap; color: #1e293b; }
.tl-table .num { text-align: right; }
.tl-table tfoot td { font-weight: 800; background: #f8fafc; border-top: 2px solid #e2e8f0; }
.tl-table tr.tl-row-release td { background: #f0fdf4; color: #166534; font-weight: 700; }
.tl-table .tl-cell-input { width: 70px; height: 34px; border: 1.5px solid #cbd5e1; border-radius: 8px; padding: 0 8px; font: inherit; font-size: 14px; text-align: right; }
.tl-table .tl-cell-input:focus { outline: none; border-color: #2563eb; }

.tl-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.tl-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    min-height: 44px; padding: 0 18px;
    border-radius: 10px; border: 1.5px solid #cbd5e1; background: #fff;
    font: inherit; font-size: 14px; font-weight: 700; color: #0f172a !important;
    cursor: pointer; text-decoration: none; transition: background .15s, border-color .15s;
}
.tl-btn:hover { border-color: #94a3b8; }
.tl-btn-primary { background: #2563eb; border-color: #2563eb; color: #fff !important; }
.tl-btn-primary:hover { background: #1d4ed8; border-color: #1d4ed8; }
.tl-btn-dark { background: #0f172a; border-color: #0f172a; color: #fff !important; }
.tl-btn-dark:hover { background: #1e293b; }
.tl-btn-ghost { border-color: transparent; background: transparent; color: #475569 !important; }
.tl-btn-ghost:hover { background: #e2e8f0; border-color: transparent; }
.tl-btn-sm { min-height: 36px; padding: 0 12px; font-size: 13px; }
.tl-btn:disabled { opacity: .6; cursor: default; }

/* --- Email box --- */
.tl-email { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 440px); gap: 20px; align-items: center; background: #eff6ff; border: 1px solid #bfdbfe; border-radius: 18px; padding: 22px 24px; margin: 22px 0 8px; }
.tl-email h2 { font-size: 1.2rem; font-weight: 800; margin-bottom: 6px; }
.tl-email p { font-size: 14px; line-height: 1.55; color: #475569; }
.tl-email-form { display: flex; flex-wrap: wrap; gap: 10px; position: relative; }
.tl-email-form input[type="email"] { flex: 1 1 210px; height: 46px; border: 1.5px solid #93c5fd; border-radius: 10px; padding: 0 12px; font: inherit; font-size: 16px; background: #fff; }
.tl-email-form input[type="email"]:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.tl-email-msg { flex-basis: 100%; font-size: 13.5px; margin: 0; min-height: 0; }
.tl-email-msg.ok { color: #15803d; font-weight: 700; }
.tl-email-msg.err { color: #b91c1c; font-weight: 600; }
.tl-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.tl-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* --- Article content --- */
.tl-content { max-width: 780px; margin-top: 52px; }
.tl-content h2 { font-size: 1.6rem; font-weight: 800; letter-spacing: -.3px; margin: 40px 0 12px; }
.tl-content h2:first-child { margin-top: 0; }
.tl-content h3 { font-size: 1.15rem; font-weight: 700; margin: 26px 0 8px; }
.tl-content p { font-size: 16.5px; line-height: 1.75; color: #334155; margin-bottom: 14px; }
.tl-content ul, .tl-content ol { margin: 10px 0 18px; padding-left: 24px; }
.tl-content ul { list-style: disc; }
.tl-content ol { list-style: decimal; }
.tl-content li { font-size: 16.5px; line-height: 1.7; color: #334155; margin-bottom: 6px; }
.tl-content a { color: #2563eb; text-decoration: underline; text-underline-offset: 2px; }
.tl-content .tl-table-wrap { margin: 14px 0 20px; }
.tl-content .tl-table td, .tl-content .tl-table th { white-space: normal; }
.tl-formula { background: #0f172a; color: #e2e8f0; border-radius: 12px; padding: 16px 18px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14.5px; line-height: 1.85; margin: 14px 0 20px; overflow-x: auto; }
.tl-formula b { color: #fbbf24; font-weight: 700; }
.tl-callout { background: #f8fafc; border-left: 4px solid #2563eb; border-radius: 0 12px 12px 0; padding: 14px 18px; margin: 16px 0 20px; }
.tl-callout p:last-child { margin-bottom: 0; }

.tl-faq details { border: 1px solid #e2e8f0; border-radius: 12px; padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.tl-faq summary { font-weight: 700; color: #0f172a; cursor: pointer; list-style: none; position: relative; padding-right: 28px; font-size: 16px; }
.tl-faq summary::-webkit-details-marker { display: none; }
.tl-faq summary::after { content: "+"; position: absolute; right: 0; top: -2px; font-size: 22px; color: #2563eb; font-weight: 600; }
.tl-faq details[open] summary::after { content: "–"; }
.tl-faq-a { margin-top: 10px; font-size: 15.5px; line-height: 1.7; color: #475569; }
.tl-faq-a p { font-size: 15.5px; margin-bottom: 8px; }

/* --- Product box, related, author --- */
.tl-product { max-width: 780px; background: #fffbeb; border: 1px solid #fde68a; border-radius: 18px; padding: 24px 26px; margin-top: 44px; }
.tl-product-kicker { font-size: 12px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: #b45309; }
.tl-product-title { font-size: 1.35rem; font-weight: 800; margin: 6px 0 8px; }
.tl-product p { font-size: 15.5px; line-height: 1.65; color: #475569; margin-bottom: 16px; }
.tl-product .tl-btn-primary { background: #0f172a; border-color: #0f172a; }
.tl-product .tl-btn-primary:hover { background: #1e293b; }
.tl-product-second { display: block; margin-top: 12px; font-size: 14px; font-weight: 600; color: #2563eb; }
.tl-product-second:hover { text-decoration: underline; }

.tl-related { margin-top: 52px; }
.tl-related h2 { font-size: 1.35rem; font-weight: 800; margin-bottom: 16px; }
.tl-related h3 { font-size: 1.05rem; font-weight: 800; margin: 30px 0 10px; }
.tl-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.tl-card { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 18px; transition: border-color .15s, box-shadow .15s, transform .15s; }
.tl-card:hover { border-color: #93c5fd; box-shadow: 0 8px 24px rgba(15,23,42,.07); transform: translateY(-2px); }
.tl-card-icon { width: 46px; height: 46px; border-radius: 11px; background: #eff6ff; color: #2563eb; font-weight: 800; font-size: 14px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.tl-card-kind { font-size: 11px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: #64748b; }
.tl-card strong { font-size: 16.5px; color: #0f172a; }
.tl-card-desc { font-size: 14px; line-height: 1.55; color: #475569; }
.tl-guides { list-style: none; }
.tl-guides li { margin-bottom: 8px; font-size: 15px; }
.tl-guides li::before { content: "→ "; color: #94a3b8; }
.tl-guides a { color: #2563eb; font-weight: 600; }
.tl-guides a:hover { text-decoration: underline; }

.tl-author { max-width: 780px; margin-top: 40px; padding-top: 16px; border-top: 1px solid #e2e8f0; font-size: 13px; line-height: 1.6; color: #64748b; }
.tl-author a { color: #2563eb; }

/* --- Hub (/tools/), redesigned 2026-12-02: full-width hero, one row per group, wide cards --- */
.tl-page.tl-hub { padding: 0 0 80px; }

.tl-hub-hero {
    padding: 112px 0 76px;
    background:
        linear-gradient(180deg, rgba(255,255,255,0) 45%, #fff 100%),
        linear-gradient(rgba(37,99,235,.07) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(90deg, rgba(37,99,235,.07) 1px, transparent 1px) 0 0 / 28px 28px,
        linear-gradient(180deg, #eef4ff 0%, #f8fbff 100%);
    border-bottom: 1px solid #e2e8f0;
}
.tl-hub-hero-grid { display: grid; grid-template-columns: minmax(0, 1.18fr) minmax(0, .82fr); gap: 64px; align-items: center; }
.tl-hub-hero h1 { font-size: 3.1rem; font-weight: 900; letter-spacing: -1.6px; line-height: 1.06; margin: 10px 0 16px; color: #0f172a; }
.tl-hub-hero .tl-lede { font-size: 1.15rem; max-width: 580px; }
.tl-hub-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 20px; }
.tl-hub-cta .tl-btn { min-height: 52px; padding: 0 26px; font-size: 15.5px; border-radius: 12px; box-shadow: 0 8px 20px rgba(37,99,235,.25); }
.tl-hub-hero .tl-trust { margin-top: 0; gap: 8px; }
.tl-hub-hero .tl-trust span { background: #fff; border: 1px solid #e2e8f0; border-radius: 999px; padding: 5px 11px; font-size: 12.5px; font-weight: 600; color: #334155; white-space: nowrap; }

/* example result card in the hero */
.tl-hub-demo { position: relative; margin: 0; justify-self: end; width: 100%; max-width: 430px; background: #fff; border: 1px solid #e2e8f0; border-radius: 22px; padding: 24px; box-shadow: 0 28px 64px rgba(15,23,42,.13), 0 2px 6px rgba(15,23,42,.05); }
.tl-hub-demo-badge { position: absolute; top: -14px; right: 20px; background: #f59e0b; color: #0f172a; font-size: 12px; font-weight: 800; padding: 6px 12px; border-radius: 999px; box-shadow: 0 6px 16px rgba(245,158,11,.35); }
.tl-hub-demo-top { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.tl-hub-demo-top strong { display: block; font-size: 15.5px; color: #0f172a; }
.tl-hub-demo-top small { font-size: 12.5px; color: #64748b; }
.tl-hub-demo-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 0 0 12px; }
.tl-hub-demo-rows div { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 11px 13px; }
.tl-hub-demo-rows dt { font-size: 11px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #64748b; }
.tl-hub-demo-rows dd { margin: 4px 0 0; font-size: 19px; font-weight: 800; color: #0f172a; font-variant-numeric: tabular-nums; }
.tl-hub-demo-main { background: #0f172a; border-radius: 14px; padding: 16px 18px; color: #fff; }
.tl-hub-demo-main span { font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: #94a3b8; }
.tl-hub-demo-main strong { display: block; font-size: 2.2rem; font-weight: 900; letter-spacing: -.5px; line-height: 1.15; margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.tl-hub-demo-main small { font-size: 13px; color: #cbd5e1; }
.tl-hub-demo-link { display: flex; justify-content: flex-end; margin-top: 16px; font-size: 14.5px; font-weight: 700; color: #2563eb; }
.tl-hub-demo-link:hover { text-decoration: underline; }
.tl-hub-demo-mini { position: absolute; left: -44px; bottom: -28px; display: flex; gap: 10px; align-items: center; background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; padding: 11px 14px; box-shadow: 0 14px 34px rgba(15,23,42,.12); }
.tl-hub-demo-mini .tl-hub-card-icon { width: 38px; height: 38px; border-radius: 10px; font-size: 12px; }
.tl-hub-demo-mini span:not(.tl-hub-card-icon) { display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase; color: #64748b; }
.tl-hub-demo-mini strong { font-size: 14.5px; color: #0f172a; font-variant-numeric: tabular-nums; }

/* tool groups: meta column + wide cards */
.tl-hub-tools { padding: 56px 0 16px; }
.tl-hub-row { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 56px; padding: 44px 0; border-top: 1px solid #e2e8f0; }
.tl-hub-row:first-child { border-top: none; padding-top: 0; }
.tl-hub-num { display: inline-flex; align-items: center; height: 28px; padding: 0 11px; border-radius: 999px; background: #fef3c7; color: #b45309; font-size: 12px; font-weight: 800; letter-spacing: .6px; }
.tl-hub-meta h2 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.4px; line-height: 1.2; margin: 14px 0 10px; color: #0f172a; }
.tl-hub-meta p { font-size: 15.5px; line-height: 1.6; color: #475569; margin-bottom: 18px; }
.tl-hub-guide-link { font-size: 14.5px; font-weight: 700; color: #2563eb; line-height: 1.5; }
.tl-hub-guide-link span { color: #64748b; font-weight: 600; }
.tl-hub-guide-link:hover { text-decoration: underline; }
.tl-hub-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.tl-hub-card { display: flex; flex-direction: column; gap: 8px; min-height: 236px; background: #fff; border: 1px solid #e2e8f0; border-radius: 18px; padding: 24px 24px 22px; box-shadow: 0 1px 2px rgba(15,23,42,.04); transition: border-color .15s, box-shadow .15s, transform .15s; }
.tl-hub-card:hover { border-color: #93c5fd; box-shadow: 0 18px 40px rgba(15,23,42,.09); transform: translateY(-3px); }
.tl-hub-card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.tl-hub-card-icon { flex: 0 0 auto; width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(135deg, #eff6ff, #dbeafe); border: 1px solid #bfdbfe; color: #1d4ed8; font-weight: 800; font-size: 15px; display: flex; align-items: center; justify-content: center; }
.tl-hub-card .tl-card-kind { background: #f1f5f9; border-radius: 999px; padding: 4px 10px; }
.tl-hub-card strong { font-size: 19px; line-height: 1.3; letter-spacing: -.2px; color: #0f172a; }
.tl-hub-card .tl-card-desc { font-size: 15px; line-height: 1.6; }
.tl-hub-card-go { margin-top: auto; padding-top: 12px; font-size: 14.5px; font-weight: 700; color: #2563eb; }
.tl-hub-card:hover .tl-hub-card-go { text-decoration: underline; }
.tl-hub-card--idea { background: #f8fafc; border: 1.5px dashed #cbd5e1; box-shadow: none; }
.tl-hub-card--idea .tl-hub-card-icon { background: #fff; border-color: #e2e8f0; color: #64748b; font-size: 24px; font-weight: 600; }

/* why + how it works */
.tl-hub-why { margin-top: 40px; padding: 68px 0; background: #f8fafc; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; }
.tl-hub-why-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: 64px; align-items: center; }
.tl-hub-why .tl-content { margin-top: 0; max-width: none; }
.tl-hub-why .tl-content p:last-child { margin-bottom: 0; }
.tl-hub-steps { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 0; padding: 0; }
.tl-hub-steps li { display: flex; gap: 16px; align-items: flex-start; background: #fff; border: 1px solid #e2e8f0; border-radius: 16px; padding: 18px 20px; font-size: 14.5px; line-height: 1.55; color: #475569; }
.tl-hub-steps li > span { flex: 0 0 34px; height: 34px; border-radius: 50%; background: #2563eb; color: #fff; font-size: 15px; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.tl-hub-steps strong { display: block; font-size: 16px; color: #0f172a; margin-bottom: 2px; }

/* bundle box + author line at full width */
.tl-hub .tl-product { max-width: none; margin-top: 64px; display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: center; padding: 32px 36px; }
.tl-hub .tl-product > * { grid-column: 1; }
.tl-hub .tl-product p { margin-bottom: 0; max-width: 720px; }
.tl-hub .tl-product .tl-btn { grid-column: 2; grid-row: 1 / span 3; min-height: 52px; padding: 0 26px; font-size: 15px; white-space: nowrap; }
.tl-hub .tl-author { max-width: none; }

@media (max-width: 1024px) {
    .tl-hub-hero-grid { grid-template-columns: minmax(0, 1fr); gap: 56px; }
    .tl-hub-demo { justify-self: start; max-width: 460px; margin-left: 44px; }
    .tl-hub-row { grid-template-columns: minmax(0, 1fr); gap: 22px; }
    .tl-hub-meta p { max-width: 640px; }
    .tl-hub-why-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; }
}
@media (max-width: 640px) {
    .tl-hub-hero { padding: 100px 0 48px; }
    .tl-hub-hero h1 { font-size: 2.1rem; letter-spacing: -1px; }
    .tl-hub-cta .tl-btn { width: 100%; }
    .tl-hub-demo { margin-left: 0; padding: 20px; }
    .tl-hub-demo-mini { display: none; }
    .tl-hub-demo-main strong { font-size: 1.9rem; }
    .tl-hub-tools { padding-top: 48px; }
    .tl-hub-row { padding: 36px 0; }
    .tl-hub-cards { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .tl-hub-card { min-height: 0; padding: 20px; }
    .tl-hub-why { padding: 48px 0; }
    .tl-hub .tl-product { grid-template-columns: minmax(0, 1fr); padding: 22px; margin-top: 44px; }
    .tl-hub .tl-product .tl-btn { grid-column: 1; grid-row: auto; margin-top: 16px; width: 100%; white-space: normal; }
}

/* --- Generators: line items, punch items, document --- */
.tl-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.tl-span2 { grid-column: 1 / -1; }
.tl-placeholder { color: #94a3b8; font-style: italic; }
.tl-lines { display: flex; flex-direction: column; gap: 10px; }
.tl-line { display: grid; grid-template-columns: 118px minmax(0, 1fr) 70px 104px 34px; gap: 8px; align-items: center; }
.tl-line-head { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #64748b; }
.tl-line .tl-input { height: 40px; font-size: 15px; }
.tl-del { width: 34px; height: 34px; border-radius: 8px; color: #94a3b8; font-size: 20px; line-height: 1; }
.tl-del:hover { background: #fee2e2; color: #b91c1c; }
.tl-totals { margin-top: 14px; border-top: 1px dashed #cbd5e1; padding-top: 12px; font-size: 14px; }
.tl-totals div { display: flex; justify-content: space-between; padding: 3px 0; color: #475569; font-variant-numeric: tabular-nums; }
.tl-totals .tl-grand { font-size: 16px; font-weight: 800; color: #0f172a; padding-top: 8px; }

.tl-mk-row { display: grid; grid-template-columns: minmax(0, 1fr) 122px 84px; gap: 8px; align-items: center; margin-bottom: 8px; }
.tl-mk-row > span { font-size: 14px; font-weight: 600; color: #334155; }
.tl-mk-row .tl-input { height: 40px; font-size: 15px; }
.tl-mk-row .tl-affix.has-pre .tl-input { padding-left: 24px; }
.tl-mk-row .tl-affix .tl-pre { left: 9px; font-size: 14px; }
.tl-mk-row .tl-affix.has-suf .tl-input { padding-right: 24px; }
.tl-mk-row .tl-affix .tl-suf { right: 9px; font-size: 14px; }
.tl-mk-head > span { font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; color: #64748b; }

.tl-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.tl-chip { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid #cbd5e1; border-radius: 999px; padding: 7px 13px; font-size: 14px; font-weight: 600; color: #334155; background: #fff; cursor: pointer; user-select: none; }
.tl-chip input { display: none; }
.tl-chip.on { background: #eff6ff; border-color: #2563eb; color: #1d4ed8; }

.tl-items { display: flex; flex-direction: column; gap: 10px; }
.tl-item { display: grid; grid-template-columns: 24px 190px minmax(0, 1fr) 34px; gap: 8px; align-items: center; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; }
.tl-item-meta { grid-column: 2 / 4; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.tl-item .tl-input { height: 38px; font-size: 14px; padding: 0 9px; }
.tl-item select.tl-input { padding-right: 26px; background-position: right 9px center; }
.tl-item-no { font-size: 13px; font-weight: 700; color: #94a3b8; text-align: right; }
.tl-item-done { opacity: .6; }
.tl-item-done .tl-f-desc { text-decoration: line-through; }
.tl-summary { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 0; }
.tl-summary span { background: #f1f5f9; border-radius: 999px; padding: 6px 12px; font-size: 13px; font-weight: 600; color: #334155; }
.tl-empty { border: 2px dashed #cbd5e1; border-radius: 12px; padding: 22px; text-align: center; color: #64748b; font-size: 14.5px; }

.tl-doc-wrap { background: #e2e8f0; border-radius: 14px; padding: 18px; overflow-x: auto; }
.tl-doc { background: #fff; color: #1e293b; max-width: 820px; margin: 0 auto; padding: 38px 40px; border-radius: 4px; box-shadow: 0 10px 30px rgba(15,23,42,.10); font-size: 13.5px; line-height: 1.5; min-width: 560px; }
.tl-doc-top { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; border-bottom: 3px solid #0f172a; padding-bottom: 14px; margin-bottom: 18px; }
.tl-doc-co { font-size: 17px; font-weight: 800; color: #0f172a; }
.tl-doc-small { font-size: 12px; color: #475569; }
.tl-doc-title { text-align: right; }
.tl-doc-title strong { display: block; font-size: 22px; font-weight: 900; letter-spacing: 1.5px; color: #0f172a; }
.tl-doc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 24px; margin-bottom: 18px; }
.tl-doc-grid div span { display: block; font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: #64748b; }
.tl-doc h4 { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .8px; color: #0f172a; background: #f1f5f9; padding: 6px 8px; margin: 18px 0 8px; }
.tl-doc p { margin: 0 0 6px; white-space: pre-wrap; }
.tl-doc table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.tl-doc th { text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .4px; color: #475569; border-bottom: 1.5px solid #94a3b8; padding: 5px 6px; }
.tl-doc td { border-bottom: 1px solid #e2e8f0; padding: 5px 6px; vertical-align: top; }
.tl-doc .num { text-align: right; white-space: nowrap; }
.tl-doc .tl-doc-sum { margin-left: auto; width: 62%; margin-top: 8px; }
.tl-doc .tl-doc-sum td { border: none; padding: 3px 6px; }
.tl-doc .tl-doc-sum tr.tl-doc-total td { border-top: 2px solid #0f172a; font-weight: 800; font-size: 13.5px; padding-top: 6px; }
.tl-doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-top: 34px; }
.tl-doc-sign div { border-top: 1px solid #0f172a; padding-top: 6px; font-size: 11.5px; color: #475569; }
.tl-doc-sign div strong { color: #0f172a; }
.tl-doc-foot { margin-top: 26px; font-size: 9.5px; color: #94a3b8; text-align: center; }
.tl-doc-box { display: inline-block; width: 12px; height: 12px; border: 1.5px solid #475569; border-radius: 2px; vertical-align: middle; }
.tl-doc-pri-high { color: #b91c1c; font-weight: 700; }

.tl-print-only { display: none; }

/* --- Responsive --- */
@media (max-width: 900px) {
    .tl-app { grid-template-columns: minmax(0, 1fr); padding: 14px; border-radius: 16px; }
    .tl-email { grid-template-columns: minmax(0, 1fr); padding: 18px; }
    .tl-form-grid { grid-template-columns: minmax(0, 1fr); }
    .tl-item { grid-template-columns: 22px minmax(0, 1fr) 34px; }
    .tl-item .tl-f-desc { grid-column: 1 / -1; grid-row: 2; }
    .tl-item-meta { grid-column: 1 / -1; grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .tl-panel-head .tl-actions { width: 100%; }
}
@media (max-width: 640px) {
    .tl-page { padding-top: 80px; }
    .tl-wrap { padding: 0 14px; }
    .tl-head h1 { font-size: 1.9rem; }
    .tl-lede { font-size: 1.02rem; }
    .tl-panel { padding: 16px; }
    .tl-row3 { grid-template-columns: 1fr; }
    .tl-stat-value { font-size: 1.45rem; }
    .tl-line { grid-template-columns: minmax(0, 1fr) 70px 34px; }
    .tl-line .tl-f-type { grid-column: 1 / 3; }
    .tl-line .tl-f-desc { grid-column: 1 / 4; grid-row: 2; }
    .tl-line .tl-f-qty { grid-row: 3; grid-column: 1; }
    .tl-line .tl-f-price { grid-row: 3; grid-column: 2 / 4; }
    .tl-line-head { display: none; }
    .tl-line { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; padding: 10px; }
    .tl-doc-wrap { padding: 8px; }
    .tl-doc { padding: 24px 20px; }
    .tl-content h2 { font-size: 1.35rem; }
    .tl-actions .tl-btn { flex: 1 1 auto; }
}

/* --- Print: only the result / document --- */
@media print {
    @page { margin: 12mm; }
    body { padding-top: 0 !important; background: #fff !important; }
    .pup-nav, .pup-footer, .tl-no-print, .tl-email, .tl-product, .tl-related, .tl-author, .tl-crumbs, .tl-content { display: none !important; }
    .tl-page { padding: 0 !important; }
    .tl-wrap { max-width: none; padding: 0; }
    .tl-app { display: block !important; background: none !important; border: none !important; padding: 0 !important; }
    .tl-print-only { display: block !important; }
    .tl-print-head { font-size: 12px; color: #334155; border-bottom: 2px solid #0f172a; padding-bottom: 8px; margin-bottom: 14px; }
    .tl-print-head strong { display: block; font-size: 18px; color: #0f172a; }
    .tl-print-inputs { font-size: 12px; margin-bottom: 12px; }
    .tl-stat, .tl-table-wrap, .tl-insight { break-inside: avoid; }
    .tl-stat--main, .tl-table th, .tl-doc h4, .tl-table tr.tl-row-release td { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
    .tl-table-wrap { overflow: visible; border-color: #cbd5e1; }
    .tl-table td, .tl-table th { white-space: normal; }
    .tl-table .tl-cell-input { border: none; width: auto; padding: 0; height: auto; }
    .tl-doc-wrap { background: none; padding: 0; overflow: visible; }
    .tl-doc { box-shadow: none; padding: 0; max-width: none; min-width: 0; }
    .tl-doc tr { break-inside: avoid; }
    .tl-placeholder { visibility: hidden; } /* empty fields print as blanks to fill in by hand */
    a { color: inherit !important; text-decoration: none !important; }
}
