.thgw{--thg-blue:#2057ad;--thg-ink:#142841;--thg-muted:#526174;--thg-line:#dce3ed;max-width:1200px;margin:20px auto;color:var(--thg-ink);font:inherit;line-height:1.5;box-sizing:border-box}.thgw *{box-sizing:border-box}.thgw [hidden]{display:none!important}.thgw h1,.thgw h2,.thgw h3,.thgw p{margin:0 0 10px;color:inherit}.thgw h1{font-size:clamp(25px,4vw,40px);line-height:1.2}.thgw h2{font-size:20px}.thgw h3{font-size:17px}.thgw button,.thgw input{font:inherit}.thgw button{cursor:pointer;border:1px solid var(--thg-line);border-radius:8px;padding:9px 14px;background:#fff;color:var(--thg-ink);min-height:40px}.thgw button:disabled{cursor:not-allowed;opacity:.55}.thgw button:focus-visible,.thgw input:focus-visible{outline:3px solid #3378e0;outline-offset:3px}.thgw-top,.thgw-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.thgw-top{padding:10px 0 14px;font-size:17px}.thgw-top strong span{color:var(--thg-muted);font-weight:400}.thgw-tag{font-size:12px;color:var(--thg-muted)}.thgw-notice{background:#eef4ff;border-left:3px solid var(--thg-blue);padding:12px 16px;margin-bottom:18px}.thgw-hero{background:#142b49;color:#fff;border-radius:16px;padding:clamp(24px,5vw,52px);text-align:center}.thgw-hero small{letter-spacing:.08em;color:#bfdbfe}.thgw-hero h1{margin:12px 0}.thgw-search{display:block;max-width:580px;text-align:left;margin:20px auto 0;font-size:13px}.thgw-search input{display:block;margin-top:5px;width:100%;background:white;border:1px solid #cbd5e1;color:#142841;border-radius:9px;padding:13px;min-height:46px}.thgw-filters{display:flex;flex-wrap:wrap;gap:8px;margin:20px 0}.thgw-filters [aria-pressed=true],.thgw .thgw-primary{background:var(--thg-blue);color:white;border-color:var(--thg-blue)}.thgw-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.thgw-card{min-width:0;padding:18px;background:white;border:1px solid var(--thg-line);border-radius:12px;display:flex;align-items:flex-start;flex-direction:column;gap:6px}.thgw-card p{color:var(--thg-muted);flex:1}.thgw-icon{display:inline-grid;place-items:center;border-radius:8px;background:#edf2fb;color:#2252a0;font-size:12px;font-weight:700;width:46px;height:40px}.thgw-icon[data-color=PDF]{background:#fff1f2;color:#a71930}.thgw-icon[data-color=Image]{background:#f5edff;color:#7434ae}.thgw-icon[data-color=Excel]{background:#eaf8ee;color:#137346}.thgw-icon[data-color=Business]{background:#fff5e4;color:#965700}.thgw-open{width:100%;text-align:left;color:var(--thg-blue)!important;font-weight:600!important}.thgw-open span{float:right}.thgw-muted{color:var(--thg-muted);font-size:13px}.thgw-intro{text-align:center;padding:24px 10px}.thgw-drop{border:2px dashed #9aadc5;background:#f8fbff;border-radius:14px;text-align:center;padding:32px 12px;margin-bottom:12px}.thgw-drop.is-over{border-color:var(--thg-blue);background:#eaf2ff}.thgw-drop button{font-size:17px;padding:12px 24px;margin:5px 0 12px}.thgw-files{list-style:none!important;padding:0!important;margin:0!important;display:grid;gap:9px}.thgw-file{display:flex;gap:12px;align-items:center;flex-wrap:wrap;background:white;border:1px solid var(--thg-line);padding:12px;border-radius:10px}.thgw-thumb{width:60px;height:60px;object-fit:contain;background:#f2f5fa;border-radius:5px;display:grid;place-items:center;font-weight:700;color:#a71930}.thgw-fileinfo{min-width:0;flex:1 1 120px;overflow-wrap:anywhere}.thgw-fileinfo small{display:block;color:var(--thg-muted)}.thgw-actions{display:flex;gap:5px;flex-wrap:wrap}.thgw-actions button{padding:5px 10px}.thgw-options{padding:14px;border:1px solid var(--thg-line);border-radius:10px;background:white;margin:16px 0}.thgw-options label{display:block;margin:8px 0}.thgw-options input{margin-left:8px;max-width:120px}.thgw [data-feedback]{white-space:pre-line;color:#7b341e;overflow-wrap:anywhere}.thgw [data-process]{margin:12px 0;min-height:48px}.thgw [data-summary]{margin-top:12px}.thgw-back{margin-bottom:8px}@media(max-width:900px){.thgw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:480px){.thgw-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.thgw-card{padding:11px}.thgw-card h3{font-size:15px}.thgw-card p{font-size:13px}.thgw-card button{padding:7px}.thgw-file{gap:8px}.thgw-actions{width:100%}.thgw-hero{padding:24px 15px}}
.thgw-result{margin:18px 0;padding:20px;background:#f0f9f4;border:1px solid #c4e3d0;border-radius:12px}.thgw .thgw-download{display:inline-block;background:#15803d;color:#fff;text-decoration:none;padding:12px 20px;border-radius:8px;font-weight:600;margin:8px 8px 8px 0}.thgw .thgw-download:focus-visible{outline:3px solid #3378e0;outline-offset:3px}

.thgw-image-result{display:flex;flex-wrap:wrap;gap:14px;align-items:center;background:white;border:1px solid var(--thg-line);border-radius:10px;padding:12px;margin:10px 0}.thgw-image-result img{width:112px;height:96px;object-fit:contain;background:#f2f5fa;border-radius:5px}.thgw-image-result .thgw-fileinfo p{font-size:13px;margin:5px 0}.thgw-options select{max-width:100%;margin-left:8px}.thgw-options input[type=checkbox]{margin-left:8px}.thgw-options label{overflow-wrap:anywhere}
.thgw-calc-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin:0 0 16px}.thgw-calc{min-width:0;background:#fff;border:1px solid var(--thg-line);padding:20px;border-radius:12px}.thgw-calc label{display:block;margin:0 0 14px;font-weight:600}.thgw-calc input,.thgw-calc select{display:block;box-sizing:border-box;width:100%;max-width:100%;padding:10px;margin:5px 0 0;min-height:44px;border:1px solid #9aadc5;border-radius:8px;background:#fff;color:var(--thg-ink);font:inherit;font-weight:400}.thgw-calc-actions{display:flex;gap:10px;flex-wrap:wrap}.thgw-calc [data-calc-error]{color:#a71930;margin-top:10px}.thgw-calc-results{background:#f6faf8}.thgw-calc-results [data-calc-output]>div{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;border-bottom:1px solid var(--thg-line);padding:12px 0}.thgw-calc-results strong{font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.thgw-calc-results .thgw-muted{margin-top:14px}@media(max-width:650px){.thgw-calc-grid{grid-template-columns:1fr}.thgw-calc{padding:15px}}

.thg-document{width:100%;overflow-wrap:anywhere}.thg-document-header{display:flex;justify-content:space-between;gap:20px;border-bottom:2px solid #2057ad;padding-bottom:15px;align-items:flex-start}.thg-document-header>div{min-width:0;flex:1}.thg-document-meta{text-align:right}.thg-document .thg-document-title{font-size:22px;margin:0 0 8px;color:#2057ad}.thg-document h2{font-size:16px;margin:0 0 6px}.thg-document p{margin:3px 0;white-space:pre-wrap}.thg-document img{max-width:140px;max-height:70px;object-fit:contain;margin-bottom:8px}.thg-document-party{margin:16px 0}.thg-document table{border-collapse:collapse;width:100%;table-layout:fixed}.thg-document th,.thg-document td{border:1px solid #cbd5e1;padding:7px 5px;vertical-align:top;text-align:left;overflow-wrap:anywhere}.thg-document th{background:#eef3fa;color:#142841}.thg-document th:first-child{width:7%}.thg-document th:nth-child(2){width:35%}.thg-document th:nth-child(3){width:13%}.thg-document th:nth-child(n+4),.thg-document td:nth-child(n+4){text-align:right}.thg-document td small{display:block;margin-top:4px;white-space:pre-wrap}.thg-document-summary{margin:14px 0 14px auto;max-width:340px;break-inside:avoid}.thg-document-summary>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid #dce3ed;padding:5px}.thg-document-summary>div:last-child{background:#eef3fa;font-weight:bold}.thg-document-notes,.thg-document-status{margin:16px 0}.thg-document-signatures{display:flex;justify-content:space-between;gap:20px;margin-top:50px;break-inside:avoid}.thg-document-signatures span{border-top:1px solid #475569;padding-top:5px;width:44%}.thg-document tr{break-inside:avoid}.thg-document thead{display:table-header-group}
 .thgw-doc-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px;align-items:start}.thgw-doc-form,.thgw-doc-preview{background:white;border:1px solid var(--thg-line);border-radius:12px;padding:18px;min-width:0}.thgw-doc-form h2{margin:18px 0 10px}.thgw-doc-form h2:first-child{margin-top:0}.thgw-doc-form label{display:block;font-size:14px;font-weight:600;min-width:0;margin-bottom:10px}.thgw-doc-form input,.thgw-doc-form textarea,.thgw-doc-form select{display:block;width:100%;max-width:100%;font:inherit;font-weight:400;color:var(--thg-ink);background:white;border:1px solid #9aadc5;border-radius:7px;padding:9px;margin-top:5px;min-height:42px}.thgw-doc-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.thgw-doc-item{border:1px solid var(--thg-line);border-radius:8px;padding:10px;margin:0 0 12px;min-width:0}.thgw-doc-item legend{font-weight:600;padding:0 4px}.thgw-doc-preview [data-doc-paper]{border:1px solid var(--thg-line);padding:18px;margin-top:12px;font:12px/1.45 Arial,sans-serif}.thgw-doc-preview .thg-document .thg-document-title{font-size:clamp(15px,2vw,22px);overflow-wrap:anywhere}.thgw-doc-preview .thg-document h2{font-size:16px}.thgw-doc-form [data-doc-error],.thgw-doc-form [data-doc-logo-error]{color:#a71930;margin-top:8px}.thgw-doc-preview .thg-document-header{gap:8px}.thgw-doc-preview .thg-document th,.thgw-doc-preview .thg-document td{padding:5px 3px}.thgw-doc-preview .thg-document-summary strong{overflow-wrap:anywhere}.thgw-doc-form [data-doc-financial]{margin:12px 0}.thgw-doc-form [data-doc-add]{margin-bottom:14px}@media(max-width:950px){.thgw-doc-layout{grid-template-columns:minmax(0,1fr)}}@media(max-width:480px){.thgw-doc-form,.thgw-doc-preview{padding:11px}.thgw-doc-preview [data-doc-paper]{padding:8px;font-size:10px}.thgw-doc-preview .thg-document img{max-width:90px}.thgw-doc-preview .thg-document th,.thgw-doc-preview .thg-document td{padding:4px 2px}.thgw-doc-pair{gap:6px}.thgw-doc-form input[type=file]{font-size:12px}}

.thgw [data-doc-receipt][hidden],.thgw [data-doc-item-section][hidden]{display:none!important}.thgw .thg-grn-table th:nth-child(2){width:25%}.thgw .thg-grn-table th:nth-child(3){width:9%}

 .thg-document .thg-document-header{border-bottom-color:var(--doc-accent,#2057ad)}.thg-document .thg-document-title{color:var(--doc-accent,#2057ad)}.thg-document[data-design=corporate] .thg-document-header{border-top:5px solid var(--doc-accent);padding-top:12px}.thg-document[data-design=corporate] th{background:var(--doc-accent);color:var(--doc-contrast,#fff);print-color-adjust:exact;-webkit-print-color-adjust:exact}.thg-document[data-design=modern] .thg-document-party{border-left:4px solid var(--doc-accent);padding:9px 12px;background:#f4f7fa}.thg-document[data-design=modern] th,.thg-document[data-design=modern] td{border-width:0 0 1px}.thg-document[data-design=minimal] .thg-document-header{border-bottom-width:1px}.thg-document[data-design=minimal] th,.thg-document[data-design=minimal] td{background:white;border-width:0 0 1px}.thg-document[data-design=minimal] .thg-document-summary>div:last-child{background:white}.thg-document[data-design=corporate] .thg-document-title{color:var(--doc-accent)}
.thgw-doc-extra{border:1px solid var(--thg-line);border-radius:8px;padding:10px;margin:12px 0}.thgw-doc-extra summary{cursor:pointer;font-weight:600}.thgw-doc-extra .thgw-calc-actions{margin-top:10px}.thgw [data-doc-draft-file][hidden],.thgw [data-doc-workflow][hidden],.thgw [data-doc-convert][hidden]{display:none!important}.thgw [data-doc-status]{color:#166534;overflow-wrap:anywhere}.thgw-doc-form input[type=color]{padding:4px;cursor:pointer}
.thgw-data-panel{background:#fff;border:1px solid var(--thg-line);border-radius:12px;padding:clamp(14px,3vw,24px);display:grid;gap:14px;min-width:0}.thgw-data-panel label{display:block;font-weight:600}.thgw-data-panel select,.thgw-data-panel input[type=file]{display:block;max-width:100%;margin:6px 0;padding:8px;border:1px solid var(--thg-line);border-radius:6px}.thgw-data-panel [data-data-error]{color:#a71930;white-space:pre-wrap}.thgw-data-scroll{overflow:auto;max-width:100%;max-height:420px;border:1px solid var(--thg-line);border-radius:8px;margin:10px 0}.thgw-data-scroll table{border-collapse:collapse;min-width:100%;font-size:13px}.thgw-data-scroll th,.thgw-data-scroll td{padding:8px 12px;border:1px solid #e3e9f0;max-width:220px;min-width:80px;overflow-wrap:anywhere;white-space:pre-wrap;text-align:left}.thgw-data-scroll th{background:#eef4ff;color:#163b65}.thgw-data-columns{display:flex;gap:10px;flex-wrap:wrap;margin:10px 0}.thgw-data-columns label{border:1px solid var(--thg-line);padding:5px 9px;border-radius:6px;overflow-wrap:anywhere;max-width:100%;font-weight:400}.thgw-data-panel [data-data-export]{margin-top:10px}.thgw-data-panel [data-data-status]{overflow-wrap:anywhere}
.thgw-prod-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:18px;align-items:start}.thgw-prod-panel{background:#fff;border:1px solid var(--thg-line);border-radius:12px;padding:clamp(14px,3vw,24px);min-width:0;display:grid;gap:12px}.thgw-prod-panel h2{margin:0;font-size:20px}.thgw-prod-panel label{display:block;font-weight:600;margin:0 0 12px}.thgw-prod-panel input:not([type=checkbox]),.thgw-prod-panel select,.thgw-prod-panel textarea{display:block;width:100%;box-sizing:border-box;max-width:100%;padding:10px;border:1px solid var(--thg-line);border-radius:7px;margin-top:6px;font:inherit}.thgw-prod-panel textarea{resize:vertical;min-height:90px;overflow-wrap:anywhere}.thgw-prod-panel input[type=checkbox]{margin-right:7px}.thgw-prod-panel [data-prod-error]{color:#a71930;overflow-wrap:anywhere}.thgw-prod-panel [data-prod-output]>div{display:flex;justify-content:space-between;gap:12px;border-bottom:1px solid var(--thg-line);padding:10px 0;overflow-wrap:anywhere}.thgw-prod-panel [data-prod-output]>p{overflow-wrap:anywhere;white-space:pre-wrap}.thgw-prod-panel [data-prod-result]{font-family:monospace}.thgw-prod-panel [data-prod-feedback]{overflow-wrap:anywhere}.thgw-prod-panel [data-prod-fields] p{font-size:13px;color:#526176}@media(max-width:700px){.thgw-prod-grid{grid-template-columns:minmax(0,1fr)}}
.thgw-pdf-preview{border:1px solid var(--thg-line);border-radius:10px;background:#fff;padding:14px;margin:16px 0;min-width:0}.thgw-pdf-preview[hidden]{display:none!important}.thgw-pdf-preview select{display:block;max-width:100%;margin:6px 0}.thgw-pdf-preview-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:10px}.thgw-pdf-preview-grid figure{margin:0;border:1px solid #dce3ed;border-radius:6px;padding:7px;text-align:center;min-width:0}.thgw-pdf-preview-grid img{display:block;max-width:100%;height:135px;object-fit:contain;margin:auto}.thgw-pdf-preview-grid figcaption{font-size:12px;margin-top:5px}

/* Local personal shortcuts */
.thgw-personal{margin:18px 0;padding:16px 18px;border:1px solid var(--thg-line);border-radius:12px;background:#fff}.thgw-personal .thgw-heading h2{margin:0}.thgw-personal-settings{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px;margin:12px 0}.thgw-personal-settings label{display:flex;align-items:center;gap:8px;font-size:14px}.thgw-personal-settings input{width:18px;height:18px;accent-color:var(--thg-blue)}.thgw-personal [data-favorites][aria-pressed=true]{background:var(--thg-blue);color:#fff}.thgw-personal [data-favorite-count]{margin-left:6px;font-weight:700}.thgw-recent{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:8px}.thgw-recent button{font-size:14px;background:#f4f7fc}.thgw-card{position:relative}.thgw .thgw-star{position:absolute;right:12px;top:12px;min-width:40px;min-height:40px;padding:3px;font-size:24px;line-height:1;color:#53657d;background:#fff}.thgw .thgw-star[aria-pressed=true]{color:#966000;background:#fff8e6;border-color:#d8b765}.thgw-card>.thgw-tag{max-width:calc(100% - 42px)}.thgw-personal [data-shortcut-status]:empty{display:none}.thgw-personal p{font-size:13px}.thgw-personal h3{font-size:15px}@media(max-width:480px){.thgw-personal{padding:12px}.thgw-personal-settings{align-items:flex-start}.thgw-personal-settings label{align-items:flex-start}.thgw-personal-settings input{flex-shrink:0}}

/* Keyboard focus is visible even on themes that reset outlines. */
.thgw :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline:3px solid #2057ad!important;outline-offset:3px!important}
.thgw :is(button,a,input,select,textarea){scroll-margin-block:16px}
@media(prefers-reduced-motion:reduce){.thgw *{animation-duration:.01ms!important;transition-duration:.01ms!important;scroll-behavior:auto!important}}

/* Responsive polish: adapt to the actual theme content column, not just viewport. */
.thgw{width:100%;min-width:0;container:thg-tools / inline-size;overflow-wrap:anywhere}
.thgw :is(button,input,select,textarea){max-width:100%;min-width:0}
.thgw button{white-space:normal;overflow-wrap:anywhere;min-height:44px}
.thgw .thgw-star{min-width:44px;min-height:44px}
.thgw-card>.thgw-tag{max-width:calc(100% - 48px)}
.thgw-data-panel{grid-template-columns:minmax(0,1fr)}
.thgw-data-panel>*{min-width:0}
.thgw-data-panel input[type=file],.thgw-doc-form input[type=file]{width:100%;min-width:0;max-width:100%;font-size:14px}
.thgw :is(input,textarea,select){color:var(--thg-ink)}
.thgw-doc-preview [data-doc-paper]{overflow-x:auto;max-width:100%;min-width:0;padding:14px;font:12px/1.45 Arial,sans-serif;background:#fff}
.thgw-doc-preview [data-doc-paper]>.thg-document{min-width:520px}
.thgw-doc-preview .thg-document .thg-document-title{font-size:20px}
.thgw-doc-preview .thg-document th,.thgw-doc-preview .thg-document td{padding:6px 4px}
.thgw-doc-scroll-hint{font-size:13px;color:var(--thg-muted);margin-top:8px!important}
.thgw .thgw-download{max-width:100%;min-height:44px;white-space:normal;overflow-wrap:anywhere}
.thgw-data-scroll{overscroll-behavior-inline:contain}
.thgw .thgw-card,.thgw-doc-form,.thgw-doc-preview,.thgw-calc,.thgw-data-panel,.thgw-prod-panel{box-shadow:0 2px 6px rgb(20 40 65 / .045)}
@container thg-tools (max-width:1000px){.thgw-doc-layout{grid-template-columns:minmax(0,1fr)}}
@container thg-tools (max-width:850px){.thgw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@container thg-tools (max-width:640px){.thgw-calc-grid,.thgw-prod-grid{grid-template-columns:minmax(0,1fr)}.thgw-intro{padding:18px 4px}.thgw-doc-form,.thgw-doc-preview{padding:14px}.thgw-hero{padding:26px 16px}.thgw-drop{padding:24px 12px}.thgw-card{padding:14px}.thgw-filters{gap:6px}.thgw-filters button{padding:8px 10px}.thgw :is(input:not([type=checkbox]):not([type=radio]):not([type=color]),select,textarea){font-size:16px}.thgw .thgw-doc-form input[type=file],.thgw .thgw-data-panel input[type=file]{font-size:14px}}
@container thg-tools (max-width:340px){.thgw-grid,.thgw-doc-pair{grid-template-columns:minmax(0,1fr)}.thgw-calc-actions>button,.thgw [data-process],.thgw .thgw-download{width:100%;text-align:center}.thgw .thgw-download{margin-right:0}.thgw-card{padding:16px}.thgw-doc-form,.thgw-doc-preview{padding:11px}}
@media(max-width:360px){.thgw-grid,.thgw-doc-pair{grid-template-columns:minmax(0,1fr)}}

/* v0.22 approved TechHowGrid design, scoped to tools. No global theme changes. */
.thgw{--thg-blue:#2563eb;--thg-ink:#0b1425;--thg-muted:#475569;--thg-line:#e2e8f0;--thg-sky:#38bdf8;--thg-surface:#f1f5f9;max-width:1160px;font-family:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;font-weight:400;line-height:1.7}
.thgw :is(h1,h2,h3):not(.thg-document *){font-weight:750;line-height:1.22;letter-spacing:-.025em}
.thgw h1{font-size:clamp(27px,4vw,44px)}.thgw h2{font-size:clamp(20px,2.4vw,24px)}.thgw h3{font-size:17px}
.thgw-top{font-size:14px}.thgw-notice{border-radius:8px;font-size:13px;background:#f1f5f9}
.thgw-hero{background:#0b1425;color:white;text-align:left;border-radius:18px;padding:clamp(22px,4vw,44px)}
.thgw-hero small{font-size:12px;font-weight:800;letter-spacing:.12em;color:#38bdf8}.thgw-hero h1{color:#fff;max-width:850px;margin:9px 0 12px}.thgw-hero p{color:#cbd5e1;max-width:640px;margin:0 0 16px}.thgw-search{max-width:620px;margin:12px 0 0;color:#e2e8f0;font-weight:650}.thgw-search input{border-radius:8px;color:#0b1425;font-weight:400}
.thgw button,.thgw .thgw-primary{font-weight:650;border-radius:8px}.thgw .thgw-primary{font-weight:700}.thgw .thgw-primary:hover:not(:disabled){background:#1d4ed8;border-color:#1d4ed8}.thgw :is(button,a,input,select,textarea,[tabindex]):focus-visible{outline-color:#38bdf8!important}
.thgw .thgw-filters button[aria-pressed=true],.thgw-personal [data-favorites][aria-pressed=true]{background:#eff6ff;color:#1d4ed8;border-color:#bfdbfe}.thgw-filters button{font-size:13px}
.thgw-card{border-radius:12px;padding:18px;gap:9px;box-shadow:none!important}.thgw-card p{font-size:14px;line-height:1.5;margin:0}.thgw-card h3{margin:0}.thgw-icon{width:40px;height:40px;border-radius:10px;flex:none}.thgw-icon svg{display:block}.thgw-icon[data-color=PDF]{color:#b91c1c;background:#fee2e2}.thgw-icon[data-color=Image]{color:#7c3aed;background:#ede9fe}.thgw-icon[data-color=Excel]{color:#15803d;background:#dcfce7}.thgw-icon[data-color=Business]{color:#2563eb;background:#dbeafe}.thgw-icon[data-color=Calculators]{color:#b45309;background:#fef3c7}.thgw-icon[data-color=Text]{color:#0891b2;background:#cffafe}.thgw-icon[data-color=Utility]{color:#475569;background:#e2e8f0}
.thgw .thgw-star{border-color:transparent;background:transparent;color:#64748b}.thgw .thgw-star[aria-pressed=true]{color:#b45309;background:#fffbeb;border-color:#fde68a}
.thgw .thgw-open{border-color:transparent;background:transparent;padding:8px 0;font-size:14px;font-weight:700!important;text-decoration:none;margin-top:auto;display:block}.thgw .thgw-open:hover:not(:disabled){color:#1d4ed8!important;text-decoration:underline;text-underline-offset:3px}.thgw-card a.thgw-open{min-height:44px}
.thgw-intro{text-align:left;padding:20px 0}.thgw-intro p{color:#475569;max-width:850px}.thgw[data-single-tool]:not([data-single-tool='']) .thgw-intro :is(h1,h2){font-size:clamp(25px,3vw,36px)}
.thgw-drop{border-color:#bfdbfe;background:#f8fbff;border-radius:12px;padding:34px 15px}.thgw-drop .thgw-upload-icon{width:52px;height:52px;margin:0 auto 10px;display:grid}.thgw-drop p:first-of-type{font-size:20px;line-height:1.3}.thgw-drop p:not(:first-of-type){color:#475569;font-size:14px}.thgw-drop button{font-size:16px}
.thgw :is(.thgw-calc,.thgw-data-panel,.thgw-prod-panel,.thgw-doc-form,.thgw-doc-preview){border-color:#e2e8f0;border-radius:12px;box-shadow:none}.thgw-doc-preview{background:#f1f5f9}.thgw-doc-form :is(input,select,textarea),.thgw-calc :is(input,select){border-color:#cbd5e1;border-radius:8px}.thgw-doc-form h2{font-size:20px}.thgw .thgw-download{background:#2563eb}.thgw .thgw-download:hover{background:#1d4ed8}
.thgw-hub-categories{display:flex;gap:8px;flex-wrap:wrap;margin:18px 0}.thgw-hub-categories a{padding:8px 12px;border:1px solid #e2e8f0;border-radius:8px;color:#2563eb;text-decoration:none;font-size:14px;font-weight:650;min-height:44px}.thgw-hub-categories a:hover{background:#eff6ff}.thgw-hub [data-hub-empty]{padding:16px;background:#f1f5f9;border-radius:12px}.thgw-hub .thgw-heading{margin:18px 0 10px}.thgw-hub .thgw-heading p{font-size:13px;color:#475569}.thgw-hub .thgw-personal{margin:18px 0}.thgw-hub .thgw-personal p{margin:6px 0}.thgw-related{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,185px),1fr));gap:10px;padding:0!important;list-style:none!important;margin:16px 0}.thgw-related li{margin:0!important;min-width:0}.thgw-related a{display:flex;gap:10px;align-items:center;padding:12px;min-height:56px;border:1px solid #e2e8f0;border-radius:12px;color:#0b1425;text-decoration:none;font-weight:650;font-size:14px}.thgw-related a:hover{border-color:#bfdbfe;color:#2563eb}.thgw-related .thgw-icon{width:32px;height:32px}.thgw-related .thgw-icon svg{width:19px;height:19px}
@container thg-tools (min-width:1100px){.thgw-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
@container thg-tools (max-width:780px){.thgw-hero{border-radius:16px;padding:22px 17px}.thgw-grid{gap:9px}.thgw-card{padding:13px;gap:7px}.thgw-card h3{font-size:15px}.thgw-card p{font-size:13px}.thgw .thgw-open{font-size:13px}.thgw-intro{padding:16px 0}.thgw-drop{padding:24px 12px}.thgw .thgw-star{right:6px;top:6px}.thgw-card>.thgw-tag{font-size:11px}}
@container thg-tools (max-width:340px){.thgw-grid{grid-template-columns:1fr}.thgw-card{padding:15px}.thgw-hero{padding:18px 12px}}
.thgw-hub .thgw-hero h2{font-size:clamp(27px,4vw,44px);color:white;margin:9px 0 12px}.thgw-support h2{margin-top:24px}.thgw-support ol{padding-inline-start:1.5em}.thgw-support li{margin-bottom:6px}.thgw-support{font-size:16px;line-height:1.7}

.thgw-hub .thgw-personal{padding:10px 12px;margin:14px 0;background:#f1f5f9}.thgw-hub .thgw-personal .thgw-heading{margin:0;justify-content:flex-start;gap:8px}.thgw-hub .thgw-personal button{font-size:13px}.thgw-hub .thgw-personal p{font-size:12px;margin:4px 0 0}.thgw-hub .thgw-filters{margin:12px 0}.thgw-hub .thgw-hub-categories{margin:12px 0 20px}.thgw-hub>.thgw-grid+h2,.thgw-hub>p+h2{margin-top:24px}
/* v0.24 common navigation and output controls */
.thgw-nav{display:flex;align-items:stretch;justify-content:space-between;gap:12px;margin:12px auto 18px}.thgw-nav>.thgw-back{display:none!important}.thgw[data-single-tool]:not([data-single-tool='']) .thgw-local-nav{display:none}.thgw-nav :is(a,button).thgw-nav-back,.thgw-nav :is(a,button).thgw-nav-all{display:flex;align-items:center;gap:10px;text-decoration:none;text-align:left;min-height:54px;padding:10px 14px;border-radius:10px;border:1px solid #e2e8f0;line-height:1.25;font:inherit;font-size:14px;max-width:65%;white-space:normal}.thgw-nav .thgw-nav-back{background:#f1f5f9;color:#0b1425}.thgw-nav .thgw-nav-back>span:first-child{font-size:23px;color:#2563eb}.thgw-nav .thgw-nav-all{background:#0b1425;color:white;border-color:#0b1425;margin-left:auto}.thgw-nav .thgw-nav-all svg,.thgw-nav .thgw-nav-all>span:first-child{color:#38bdf8}.thgw-nav strong,.thgw-nav small{display:block}.thgw-nav small{font-size:11px;font-weight:400;opacity:.85}.thgw-nav .thgw-nav-back:hover{background:#dbeafe;color:#0b1425}.thgw-nav .thgw-nav-all:hover{background:#2563eb;color:white}.thgw-nav a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}.thgw-data-drop{margin:0 0 12px}.thgw-upload-selected{display:flex;gap:10px;align-items:center;justify-content:center;flex-wrap:wrap;padding:10px;background:white;border:1px solid #e2e8f0;border-radius:8px;overflow-wrap:anywhere}.thgw-logo-upload{display:flex;gap:12px;align-items:flex-start;flex-wrap:wrap;border:1px dashed #bfdbfe;border-radius:10px;padding:14px;background:#f8fafc;margin:10px 0}.thgw-logo-upload.is-over{background:#dbeafe}.thgw-logo-upload>div{flex:1;min-width:0}.thgw-logo-upload button{margin:3px}.thgw-output-actions{display:flex;align-items:stretch;flex-wrap:wrap;gap:8px;margin:10px 0}.thgw-output-actions button:not(.thgw-primary){border:1px solid #2563eb;color:#2563eb;background:white;font-weight:650}.thgw-output-actions button,.thgw-output-actions a{min-height:44px}.thgw-output-dialog{width:min(95vw,1100px);max-width:95vw;max-height:90vh;padding:0;border:1px solid #cbd5e1;border-radius:14px;background:white;color:#0b1425;box-shadow:0 15px 60px #0004}.thgw-output-dialog::backdrop{background:#0b1425b3}.thgw-preview-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 16px;background:#f1f5f9;overflow-wrap:anywhere}.thgw-preview-body{padding:14px;overflow:auto;max-height:75vh}.thgw-preview-body iframe{width:100%;height:65vh;border:0}.thgw-preview-body img{max-width:100%;height:auto;display:block;margin:auto}.thgw-preview-body table{border-collapse:collapse}.thgw-preview-body :is(td,th){padding:8px;border:1px solid #cbd5e1;white-space:pre-wrap}.thgw-preview-body a{display:inline-block;color:#2563eb;margin-bottom:8px}.thgw-preview-body [data-doc-paper]{overflow:visible;min-width:650px}.thgw [data-data-error]:not(:empty),.thgw [data-doc-logo-error]:not(:empty){background:#fff1f2;border-radius:8px;padding:10px;color:#9f1239}.thgw [data-doc-draft-load]{border-color:#2563eb;color:#2563eb;font-weight:600}
@media(max-width:480px){.thgw-nav{gap:8px}.thgw-nav :is(a,button).thgw-nav-back,.thgw-nav :is(a,button).thgw-nav-all{padding:8px 10px;min-height:44px;gap:6px;font-size:12px}.thgw-nav small{display:none}.thgw-nav .thgw-nav-all svg{width:18px;height:18px}.thgw-output-actions>*{flex:1 1 130px;text-align:center}.thgw-data-drop [data-custom-pick]{width:100%}.thgw-preview-bar{padding:8px}.thgw-preview-bar strong{font-size:13px}}

/* v0.25 controlled page redesign; scoped to the managed tools shortcode. */
.thgw-release{margin:12px auto 24px;max-width:1160px;line-height:1.6;min-width:0}.thgw-release .thgw-review-note{font-size:12px;color:#475569;background:#f1f5f9;border-radius:8px;padding:7px 12px;margin:0 0 12px}.thgw-crumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px;font-size:13px;color:#64748b;margin:0 0 12px}.thgw-crumb a{color:#2563eb;text-decoration:none}.thgw-crumb a:hover{text-decoration:underline}.thgw-crumb [aria-current=page]{font-weight:650;color:#0b1425}.thgw-release .thgw-nav{margin:0 0 16px;max-width:none}.thgw-release .thgw-nav :is(a,button){min-height:46px;padding:8px 12px;border-radius:9px}.thgw-release .thgw-nav small{font-size:11px}.thgw-tool-hero{text-align:center;padding:12px 12px 18px;display:flex;flex-direction:column;align-items:center;gap:8px}.thgw-tool-hero .thgw-icon{width:56px;height:56px;border-radius:14px}.thgw-tool-hero .thgw-icon svg{width:30px;height:30px}.thgw-tool-hero h1{font-size:clamp(27px,3.6vw,40px);margin:0;line-height:1.2;outline:0;border:0}.thgw-tool-hero p{color:#475569;max-width:700px;margin:0;font-size:16px}.thgw-trust{display:flex;justify-content:center;gap:8px 16px;flex-wrap:wrap;color:#166534;font-size:12px;font-weight:600}.thgw-tool-main{min-width:0}.thgw-release [data-single-tool]:not([data-single-tool='']){margin:0;max-width:none}.thgw-release [data-single-tool]:not([data-single-tool='']) :is(.thgw-top,.thgw-intro){display:none!important}.thgw :is(h1,h2)[tabindex='-1']:focus{outline:none!important;box-shadow:none!important}.thgw-release .thgw-drop{padding:22px 14px 18px;margin:0 0 12px;border-radius:14px;background:#f8fafc}.thgw-release .thgw-drop .thgw-upload-icon{width:48px;height:48px;margin-bottom:9px}.thgw-release .thgw-drop p:first-of-type{font-size:18px;margin-bottom:6px}.thgw-release .thgw-drop button{margin:4px 0 8px;min-height:44px;padding:10px 20px}.thgw-release .thgw-drop p{margin-bottom:5px}.thgw-release [data-feedback]:empty{display:none}.thgw-release [data-feedback][data-success='true']{color:#166534;background:#f0fdf4;border:1px solid #bbf7d0;border-radius:8px;padding:8px 12px}.thgw-release .thgw-result{background:#f0fdf4;border-color:#bbf7d0}.thgw-release .thgw-support{display:grid;gap:14px;margin:24px 0 0}.thgw-support-panel{padding:18px;border:1px solid #e2e8f0;border-radius:12px;background:white;min-width:0}.thgw-support-panel h2{margin:0 0 12px;font-size:21px}.thgw-support-panel p{margin:0;color:#475569}.thgw-step-list{list-style:none!important;counter-reset:thgtstep;padding:0!important;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:0!important}.thgw-step-list li{counter-increment:thgtstep;display:flex;flex-direction:column;gap:9px;padding:12px;border-radius:10px;background:#f8fafc;color:#475569;font-size:14px;margin:0!important}.thgw-step-list li::before{content:counter(thgtstep);display:grid;place-items:center;background:#dbeafe;color:#1d4ed8;font-weight:700;width:28px;height:28px;border-radius:50%}.thgw-release .thgw-hub{margin:0;max-width:none}.thgw-release .thgw-hub .thgw-hero{padding:clamp(20px,4vw,36px)}.thgw-release .thgw-hub .thgw-hero h1{font-size:clamp(28px,4vw,42px)}.thgw-category-section{margin:20px 0}.thgw-category-section h2{margin:0 0 12px}.thgw-category-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.thgw-category-grid a{display:flex;align-items:center;gap:10px;min-width:0;padding:12px;border:1px solid #e2e8f0;border-radius:12px;color:#0b1425;text-decoration:none;line-height:1.35;background:white}.thgw-category-grid a:hover{border-color:#93c5fd;background:#f8fafc}.thgw-category-grid strong,.thgw-category-grid small{display:block}.thgw-category-grid strong{font-size:14px}.thgw-category-grid small{color:#64748b;font-size:12px;margin-top:4px}.thgw-category-grid a>span:last-child{margin-left:auto;color:#2563eb;font-size:21px}.thgw-category-grid .thgw-icon{width:38px;height:38px}.thgw-release .thgw-card{transition:border-color .15s ease}.thgw-release .thgw-card:hover{border-color:#93c5fd}.thgw-release .thgw-card .thgw-open{margin-top:auto}.thgw-release .thgw-hub .thgw-personal{border:1px solid #e2e8f0;border-radius:10px}.thgw-release .thgw-related{margin-bottom:0}
@media(max-width:680px){.thgw-category-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.thgw-tool-hero{padding:8px 5px 14px}.thgw-tool-hero p{font-size:14px}.thgw-release .thgw-drop{padding:18px 10px}.thgw-step-list{grid-template-columns:1fr;gap:8px}.thgw-step-list li{flex-direction:row;align-items:center}.thgw-step-list li::before{flex:none}.thgw-support-panel{padding:14px}.thgw-release .thgw-nav small{display:none}.thgw-crumb{font-size:11px;gap:5px}.thgw-release .thgw-nav{margin-bottom:9px}.thgw-category-grid a{padding:9px;gap:6px}.thgw-category-grid .thgw-icon{width:30px;height:30px}.thgw-category-grid .thgw-icon svg{width:18px;height:18px}.thgw-category-grid strong{font-size:12px}}
@media(max-width:370px){.thgw-category-grid{grid-template-columns:1fr}}
@media(prefers-reduced-motion:reduce){.thgw-release .thgw-card{transition:none}}
/* v0.25.1 interaction refresh */
.thgw .thgw-card{padding:15px;gap:7px;transition:transform .18s,border-color .18s,box-shadow .18s}.thgw-card:has(.thgw-open){cursor:pointer}.thgw .thgw-card:hover{border-color:#93c5fd;box-shadow:0 5px 16px #0b14250b;transform:translateY(-2px)}.thgw .thgw-card .thgw-open{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;min-height:44px;border:1px solid #dbeafe;border-radius:8px;background:#eff6ff;color:#1d4ed8!important;line-height:1.3;text-decoration:none;transition:background .18s,color .18s}.thgw .thgw-card .thgw-open:hover:not(:disabled),.thgw .thgw-card .thgw-open:focus-visible{background:#2563eb;color:#fff!important;text-decoration:none}.thgw-card .thgw-open span{float:none}.thgw-hub .thgw-fav-toolbar{padding:10px 14px;display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;background:#f8fafc}.thgw-hub .thgw-fav-toolbar .thgw-heading{margin:0;gap:8px}.thgw-fav-toolbar [data-hub-favorites]{background:#fff;border-color:#dbeafe;color:#1d4ed8;font-weight:650}.thgw-fav-toolbar [data-hub-favorites][aria-pressed=true]{background:#eff6ff;border-color:#93c5fd}.thgw-fav-toolbar [data-hub-clear]{background:transparent;border-color:transparent;color:#475569;font-size:13px}.thgw-fav-toolbar [data-hub-clear]:hover{background:#e2e8f0}.thgw-hub .thgw-fav-toolbar p{margin:0}.thgw.thgw-nav,.thgw .thgw-nav{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:8px;align-items:center}.thgw-nav :is(a,button).thgw-nav-back,.thgw-nav :is(a,button).thgw-nav-all{min-height:44px;background:white;border:1px solid #e2e8f0;color:#0b1425;max-width:65%;padding:8px 12px;transition:background .15s,border-color .15s}.thgw-nav .thgw-nav-all svg,.thgw-nav .thgw-nav-all>span:first-child{color:#2563eb}.thgw-nav .thgw-nav-all>span:last-child:not(:nth-child(2)){display:none}.thgw-nav small{display:none!important}.thgw-nav :is(a,button).thgw-nav-back:hover,.thgw-nav :is(a,button).thgw-nav-all:hover{background:#eff6ff;color:#1d4ed8;border-color:#93c5fd}.thgw-success-mark{display:flex;justify-content:center;margin:4px auto 12px}.thgw-success-mark svg{display:block;width:85px;height:85px}.thgw-check-ring{stroke-dasharray:208;stroke-dashoffset:208;animation:thgw-draw .55s ease forwards}.thgw-check-path{stroke-dasharray:60;stroke-dashoffset:60;animation:thgw-draw .35s .5s ease forwards}@keyframes thgw-draw{to{stroke-dashoffset:0}}.thgw-result:has(.thgw-success-mark)>h2,.thgw-result:has(.thgw-success-mark)>[data-result-info]{text-align:center}.thgw-result .thgw-output-actions{justify-content:center}.thgw-toast{position:fixed;z-index:99999;top:65px;right:20px;width:min(360px,calc(100vw - 32px));box-sizing:border-box;background:#fff;color:#0b1425;border:1px solid #dbeafe;border-left:4px solid #16a34a;border-radius:12px;padding:14px 12px;box-shadow:0 8px 35px #0b142526;display:flex;align-items:flex-start;gap:11px;font:14px/1.4 system-ui,sans-serif;animation:thgw-toast-in .2s ease-out}.thgw-toast[hidden]{display:none!important}.thgw-toast[data-kind=error]{border-left-color:#dc2626}.thgw-toast[data-kind=info]{border-left-color:#2563eb}.thgw-toast .thgw-toast-icon{flex:0 0 28px;width:28px;height:28px;background:#dcfce7;color:#15803d;border-radius:50%;display:grid;place-items:center;font-size:19px;font-weight:700}.thgw-toast[data-kind=error] .thgw-toast-icon{background:#fee2e2;color:#b91c1c}.thgw-toast[data-kind=info] .thgw-toast-icon{background:#dbeafe;color:#1d4ed8}.thgw-toast>div{flex:1;min-width:0;overflow-wrap:anywhere}.thgw-toast strong,.thgw-toast small{display:block}.thgw-toast small{color:#475569;margin-top:4px}.thgw-toast button{background:transparent;color:#475569;border:0;cursor:pointer;font-size:22px;padding:0 5px;min-width:32px;min-height:32px}@keyframes thgw-toast-in{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.thgw [data-process]:disabled:has(+*){cursor:not-allowed}.thgw [data-prod-key=source]{background:#eff6ff;border-color:#bfdbfe;font-weight:650}.thgw [data-prod-key=url]{width:100%;padding:10px;border:1px solid #cbd5e1;border-radius:8px}.thgw [data-prod-output] strong{overflow-wrap:anywhere}.thgw [data-prod-fields] label:has([data-prod-key=wordfile]){border:1px dashed #93c5fd;background:#f8fafc;border-radius:12px;padding:14px}.thgw [data-prod-fields] label:has([data-prod-key=wordfile]) button{display:block;margin-top:8px;width:100%;overflow-wrap:anywhere}.thgw [data-prod-output]>.thgw-success-mark{display:flex;justify-content:center;background:transparent;border:0}.thgw [data-prod-output]>.thgw-success-mark svg{width:64px;height:64px}@media(max-width:680px){.thgw-toast{top:auto;bottom:20px;right:16px;left:16px;width:auto}.thgw-success-mark svg{width:70px;height:70px}.thgw .thgw-card{padding:12px}.thgw-nav :is(a,button).thgw-nav-back,.thgw-nav :is(a,button).thgw-nav-all{flex:1;max-width:50%;justify-content:center;text-align:center}.thgw-nav .thgw-nav-all{margin-left:0}.thgw-hub .thgw-fav-toolbar{padding:10px}.thgw .thgw-card .thgw-open{padding:9px 8px;font-size:13px}}@media(prefers-reduced-motion:reduce){.thgw-check-ring,.thgw-check-path{animation:none;stroke-dashoffset:0}.thgw-toast,.thgw-card,.thgw-open{animation:none!important;transition:none!important}.thgw .thgw-card:hover{transform:none}}
.thgw [data-process][aria-busy=true]::before{content:'';display:inline-block;width:15px;height:15px;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;vertical-align:-2px;margin-right:8px;animation:thgw-spin .7s linear infinite}@keyframes thgw-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.thgw [data-process][aria-busy=true]::before{animation:none}}
/* Business pricing calculator */
.thgw-price-pair{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.thgw-price-item,.thgw-price-custom-row{display:grid;grid-template-columns:2fr .7fr 1fr 1fr auto;gap:8px;align-items:end;background:#f8fafc;border:1px solid #e2e8f0;border-radius:10px;padding:12px;margin:8px 0}.thgw-price-custom-row{grid-template-columns:2fr 1fr 2fr auto}.thgw-price-item label,.thgw-price-custom-row label{margin:0}.thgw-pricing h2{font-size:19px;margin:20px 0 8px}.thgw-pricing [data-price-add]{margin:4px 0 16px}.thgw-price-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:10px;margin:16px 0}.thgw-price-summary>div{background:#eff6ff;border-radius:10px;padding:12px;min-width:0;overflow-wrap:anywhere}.thgw-price-summary small,.thgw-price-summary strong{display:block}.thgw-price-summary strong{font-size:18px;color:#0b1425}.thgw-price-table{overflow-x:auto}.thgw-price-table table{border-collapse:collapse;width:100%;margin:12px 0 20px;font-size:14px}.thgw-price-table :is(th,td){padding:9px;border-bottom:1px solid #e2e8f0;text-align:left}.thgw-price-table th{background:#f1f5f9}.thgw-price-table td:last-child{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}.thgw-pricing [data-price-error]{color:#b91c1c}.thgw-pricing-result{margin-top:16px}@container thg-tools (max-width:640px){.thgw-price-pair,.thgw-price-item,.thgw-price-custom-row{grid-template-columns:minmax(0,1fr)}.thgw-pricing,.thgw-pricing-result{padding:12px}.thgw-price-table table{min-width:440px}}@media print{body.thgw-print-pricing *{visibility:hidden!important}body.thgw-print-pricing [data-price-result],body.thgw-print-pricing [data-price-result] *{visibility:visible!important}body.thgw-print-pricing [data-price-result]{position:absolute;top:0;left:0;width:100%;border:0}body.thgw-print-pricing [data-price-result] button,body.thgw-print-pricing [data-price-result] .thgw-success-mark{display:none!important}}

.thgw-pricing [data-price-target-wrap]{grid-column:1/-1}.thgw-pricing [data-price-target-wrap][hidden]{display:none!important}

.thgw-price-presets{grid-column:1/-1;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}.thgw-price-presets[hidden]{display:none}.thgw-price-presets button{min-height:44px;background:#fff;color:#0b1425;border:1px solid #cbd5e1;border-radius:9px;font-weight:650}.thgw-price-presets button[aria-pressed=true]{background:#eff6ff;border-color:#2563eb;color:#1d4ed8;box-shadow:inset 0 0 0 1px #2563eb}.thgw-price-indicator{padding:10px 12px;border-radius:8px;font-weight:650;background:#f1f5f9;color:#475569}.thgw-price-indicator[data-state=success]{background:#dcfce7;color:#166534}.thgw-price-indicator[data-state=warning]{background:#fef3c7;color:#92400e}.thgw-price-indicator[data-state=loss]{background:#fee2e2;color:#991b1b}.thgw-pricing [hidden],.thgw-pricing-result [hidden]{display:none!important}.thgw-price-table button{white-space:nowrap}.thgw-pricing-result details{margin-block:12px}@container thg-tools (max-width:640px){.thgw-price-presets{grid-template-columns:repeat(2,minmax(0,1fr))}}@media print{body.thgw-print-pricing [data-price-vendor-wrap],body.thgw-print-pricing [data-price-compare-wrap]{display:none!important}}

/* v0.25.4 simple pricing */
.thgw-simple-modes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-bottom:20px}.thgw-simple-modes button{background:#fff;border:1px solid #cbd5e1;border-radius:12px;color:#0b1425;text-align:left;padding:16px;min-height:86px}.thgw-simple-modes button[aria-pressed=true]{background:#eff6ff;border-color:#2563eb;box-shadow:inset 0 0 0 1px #2563eb}.thgw-simple-modes strong,.thgw-simple-modes small{display:block}.thgw-simple-modes small{color:#475569;margin-top:5px;font-weight:400}.thgw-simple-step{margin:16px 0;padding:16px 0;border-top:1px solid #e2e8f0}.thgw-simple-step h2{font-size:18px;margin:0 0 12px}.thgw-simple-single .thgw-price-item{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));background:transparent;border:0;padding:0}.thgw-simple-single [data-i-extra],.thgw-simple-single [data-i-remove]{display:none!important}.thgw-pricing [hidden]{display:none!important}.thgw-pricing-result [data-price-basic-table]{margin-bottom:12px}.thgw-pricing-result [data-price-basic-table] table{min-width:0}.thgw-pricing-result [data-price-basic-table] td:last-child{white-space:normal;overflow-wrap:anywhere}.thgw-pricing-result [data-price-basic-table] :is(th,td){padding:8px 5px}.thgw-pricing-result .thgw-calc-actions details{width:100%}.thgw-pricing-result .thgw-calc-actions details button{margin:8px 5px 0 0}@media(max-width:600px){.thgw-simple-modes,.thgw-simple-single .thgw-price-item{grid-template-columns:minmax(0,1fr)}.thgw-simple-step{padding:12px 0}.thgw-simple-modes button{min-height:60px;padding:12px}.thgw-pricing-result [data-price-basic-table] table{font-size:12px}}

/* v0.25.5 reverse profit suggestions */
.thgw-price-suggestions{border:1px solid #dbe3ef;border-radius:12px;padding:14px;margin:16px 0;background:#f8fafc}.thgw-price-suggestions h3{margin:0 0 8px;font-size:18px}.thgw-price-suggestions .thgw-simple-modes{margin:12px 0}.thgw-price-suggestions table{min-width:680px}.thgw-price-suggestions input{max-width:240px}.thgw-price-suggestions button:disabled{opacity:.55;cursor:not-allowed}@media(max-width:600px){.thgw-price-suggestions{padding:10px}}@media print{body.thgw-print-pricing [data-price-suggestions]{display:none!important}}

/* v0.25.6: live reverse pricing, approved three-step layout */
.thgw-pricing .thgw-simple-single .thgw-price-item{grid-template-columns:minmax(0,1fr)}
.thgw-live-suggestions .thgw-live-basis{display:grid;grid-template-columns:1fr 1fr;gap:4px;padding:4px;background:#f1f5f9;border-radius:10px;margin:12px 0}
.thgw-live-basis button{border:1px solid transparent;background:transparent;color:#475569;border-radius:8px;min-height:42px;font-weight:650}.thgw-live-basis button[aria-pressed=true]{background:#fff;border-color:#cbd5e1;color:#2563eb;box-shadow:0 1px 3px #0b142510}
.thgw-live-cards{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;margin:14px 0}.thgw-live-card{display:flex;flex-direction:column;gap:6px;text-align:center;align-items:center;border:1px solid #cbd5e1;border-radius:12px;padding:14px 8px;background:white;min-width:0;overflow-wrap:anywhere}.thgw-live-card[data-selected=true]{border-color:#2563eb;box-shadow:inset 0 0 0 1px #2563eb;background:#f8fbff}.thgw-live-card small{color:#475569;font-size:12px}.thgw-live-card hr{width:100%;border:0;border-top:1px solid #e2e8f0;margin:4px 0}.thgw-live-card .thgw-live-percent{color:#2563eb;font-size:26px;line-height:1.2}.thgw-live-money,.thgw-live-profit,.thgw-live-loss{font-size:clamp(12px,1.55vw,16px);font-variant-numeric:tabular-nums}.thgw-live-profit{color:#15803d}.thgw-live-loss{color:#b91c1c}.thgw-live-card button{width:100%;margin-top:auto;background:#eff6ff;color:#2563eb;border:1px solid #bfdbfe;min-height:40px;border-radius:8px;padding:7px;font-weight:650}.thgw-live-card[data-selected=true] button{background:#2563eb;color:white}.thgw-live-card button:disabled{opacity:.5;cursor:not-allowed}.thgw-live-custom{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:8px;align-items:center}.thgw-live-custom button{min-height:44px}.thgw-live-custom-preview{color:#2563eb;font-weight:650}.thgw-live-break{padding:10px 12px;background:#f1f5f9;color:#334155;border-radius:8px;font-size:14px}.thgw-pricing-result .thgw-price-summary:has([data-profit]){grid-template-columns:repeat(2,minmax(0,1fr))}.thgw-price-summary [data-profit] strong{font-size:24px;color:#2563eb}.thgw-price-summary [data-profit=net] strong{color:#15803d}.thgw-price-summary [data-profit=loss] strong{color:#b91c1c}.thgw-price-summary [data-profit] b{display:block;margin-top:4px;font-size:14px}.thgw-pricing-result [data-price-result-title]{text-align:center}
@container thg-tools (max-width:480px){.thgw-live-cards{gap:6px}.thgw-live-card{padding:10px 4px}.thgw-live-card .thgw-live-percent{font-size:22px}.thgw-live-card button{font-size:12px}.thgw-live-card small{font-size:11px}.thgw-live-money,.thgw-live-profit,.thgw-live-loss{font-size:12px}}@media(max-width:350px){.thgw-live-cards{grid-template-columns:1fr}}

.thgw-pricing[data-price-mode=forward] .thgw-simple-step:has([data-price-step-one]){padding-bottom:0;margin-bottom:0}.thgw-pricing[data-price-mode=forward] .thgw-simple-step:has([data-price-step-tax]){border-top:0;padding-top:0;margin-top:0}.thgw-pricing[data-price-mode=forward] .thgw-price-item{margin-bottom:4px}.thgw-pricing [data-price-live-sale-wrap] input{width:100%}.thgw-pricing .thgw-live-custom-preview{color:#2563eb;font-weight:650}

/* v0.26 editorial support uses existing workspace palette and spacing. */
.thgw .thgw-faq{border-top:1px solid #e2e8f0;padding:12px 0}.thgw .thgw-faq summary{cursor:pointer;font-weight:650;color:#0b1425;line-height:1.5}.thgw .thgw-faq p{margin:8px 0 0;line-height:1.65;color:#475569}.thgw .thgw-editorial-guides{margin:0;padding-inline-start:20px}.thgw .thgw-editorial-guides li{margin:7px 0}.thgw .thgw-editorial-guides a{color:#2563eb;text-decoration:underline;text-underline-offset:3px}

/* v0.29.1: scoped directory width and compact hub design. Keep article and individual tool widths unchanged. */
.thgw-release[data-thgt-managed="tools"]{width:min(1160px,calc(100vw - 40px));max-width:none!important;margin-inline:calc((100% - min(1160px,calc(100vw - 40px)))/2)!important;margin-block:0 24px!important}
main:has(.thgw-release[data-thgt-managed="tools"]){padding-block-start:24px!important;margin-block-start:0!important}
.wp-block-post-content:has(.thgw-release[data-thgt-managed="tools"]){margin-block-start:0!important;padding-block-start:0!important}
.thgw-release[data-thgt-managed="tools"] .thgw-review-note{margin-bottom:10px}
.thgw-release .thgw-hub .thgw-hero{padding:clamp(20px,3vw,34px)}
.thgw-release .thgw-hub .thgw-hero p{max-width:820px;margin-bottom:14px}
.thgw-release .thgw-hub .thgw-search{max-width:none;width:100%;margin:12px 0 0}
.thgw-hub-search-field{display:block;position:relative;margin-top:6px}
.thgw-hub-search-field svg{position:absolute;top:50%;left:14px;transform:translateY(-50%);color:#64748b;pointer-events:none}
.thgw-release .thgw-hub .thgw-hub-search-field input{width:100%;max-width:none;min-height:48px;margin:0;padding:12px 14px 12px 43px;background:#fff;color:#0b1425}
.thgw-hub-trust{display:flex;flex-wrap:wrap;gap:6px 20px;margin-top:15px;color:#cbd5e1;font-size:12px;font-weight:600}
.thgw-release .thgw-category-section{margin:20px 0 16px}
.thgw-release .thgw-category-grid{gap:12px;grid-auto-rows:1fr}
.thgw-release .thgw-category-grid a{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:12px;min-height:84px;padding:14px;align-items:center;height:100%}
.thgw-release .thgw-category-grid a>span:nth-child(2){min-width:0;overflow-wrap:anywhere}
.thgw-release .thgw-category-grid a>span:last-child{margin:0}
.thgw-release .thgw-category-grid strong{font-size:15px;line-height:1.3}
.thgw-release .thgw-category-grid .thgw-icon{width:42px;height:42px}
.thgw-release .thgw-category-grid a:focus-visible{outline:3px solid #2563eb;outline-offset:3px}
@media(max-width:700px){.thgw-release[data-thgt-managed="tools"]{width:min(1160px,calc(100vw - 28px));margin-inline:calc((100% - min(1160px,calc(100vw - 28px)))/2)!important}main:has(.thgw-release[data-thgt-managed="tools"]){padding-block-start:16px!important}.thgw-release .thgw-category-grid{gap:8px}.thgw-release .thgw-category-grid a{padding:10px;gap:8px;min-height:72px}.thgw-release .thgw-category-grid strong{font-size:13px}.thgw-release .thgw-category-grid .thgw-icon{width:34px;height:34px}.thgw-hub-trust{gap:6px 12px}}

/* v0.29.2: category hubs only; directory and individual tools retain their existing layout. */
.thgw-release[data-thgt-managed^="cat-"]{width:min(1160px,calc(100vw - 40px));max-width:none!important;margin-inline:calc((100% - min(1160px,calc(100vw - 40px)))/2)!important;margin-block:0 24px!important}
main:has(.thgw-release[data-thgt-managed^="cat-"]){padding-block-start:24px!important;margin-block-start:0!important}
.wp-block-post-content:has(.thgw-release[data-thgt-managed^="cat-"]){margin-block-start:0!important;padding-block-start:0!important}
.thgw-release[data-thgt-managed^="cat-"] .thgw-review-note{margin-bottom:8px}
.thgw-category-navrow{display:flex;align-items:center;justify-content:space-between;gap:8px 14px;flex-wrap:wrap;margin:0 0 10px}
.thgw-category-navrow .thgw-crumb{margin:0;flex:1;min-width:0}
.thgw-category-navrow .thgw.thgw-nav{background:transparent;border:0;padding:0;margin:0;flex:none;max-width:none;container-type:normal}
.thgw-category-navrow .thgw-nav .thgw-nav-all{max-width:none;flex:none;white-space:nowrap;min-height:40px;padding:8px 12px;gap:8px;margin:0}
.thgw-release[data-thgt-managed^="cat-"] .thgw-hub .thgw-hero{padding:clamp(18px,2.3vw,28px)}
.thgw-release[data-thgt-managed^="cat-"] .thgw-hub .thgw-hero h1{margin:5px 0 7px;font-size:clamp(26px,3vw,36px);line-height:1.2}
.thgw-release[data-thgt-managed^="cat-"] .thgw-hub .thgw-hero p{margin-bottom:8px;line-height:1.55}
.thgw-release[data-thgt-managed^="cat-"] .thgw-hub .thgw-search{margin-top:8px}
.thgw-release[data-thgt-managed^="cat-"] .thgw-hub-trust{margin-top:10px}
.thgw-category-listbar{display:flex;align-items:center;justify-content:space-between;gap:8px 16px;flex-wrap:wrap;margin:16px 0 12px}
.thgw-category-listtitle{min-width:0;flex:1 1 200px}
.thgw-category-listtitle h2{margin:0;font-size:clamp(18px,2vw,24px);line-height:1.35}
.thgw-category-listtitle p{margin:2px 0 0;font-size:12px;color:#475569}
.thgw-hub .thgw-category-favorites.thgw-fav-toolbar{padding:0;background:transparent;border:0;gap:3px 8px;flex-direction:column;align-items:flex-end;margin:0}
.thgw-hub .thgw-category-favorites .thgw-heading{margin:0;gap:4px}
.thgw-hub .thgw-category-favorites button{min-height:40px;font-size:12px;padding:8px 10px}
.thgw-hub .thgw-category-favorites p{font-size:11px;line-height:1.3;margin:0}
.thgw-release[data-thgt-managed^="cat-"] .thgw-hub .thgw-filters{margin:0 0 12px}
.thgw-release[data-thgt-managed^="cat-"] .thgw-grid{grid-auto-rows:1fr}
@media(max-width:700px){.thgw-release[data-thgt-managed^="cat-"]{width:min(1160px,calc(100vw - 28px));margin-inline:calc((100% - min(1160px,calc(100vw - 28px)))/2)!important}main:has(.thgw-release[data-thgt-managed^="cat-"]){padding-block-start:16px!important}.thgw-category-navrow .thgw-crumb{font-size:11px;gap:4px}.thgw-category-navrow .thgw-nav .thgw-nav-all{padding:6px 9px;font-size:12px;gap:5px;min-height:40px}.thgw-category-listbar{gap:6px;margin-top:12px}.thgw-category-listtitle{flex-basis:100%}.thgw-hub .thgw-category-favorites.thgw-fav-toolbar{align-items:flex-start}}
.thgw-category-navrow>.thgw-crumb{width:auto;flex:1 1 0;min-width:0}
.thgw-category-navrow>.thgw.thgw-nav{width:auto;max-width:none!important;flex:0 0 auto;margin:0!important}
.thgw-release[data-thgt-managed^="cat-"] .thgw-grid{grid-template-columns:repeat(3,minmax(0,1fr))}
@media(max-width:700px){.thgw-release[data-thgt-managed^="cat-"] .thgw-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:350px){.thgw-release[data-thgt-managed^="cat-"] .thgw-grid{grid-template-columns:minmax(0,1fr)}}

/* v0.29.3: task-specific managed tool widths. No change to theme, hub or article layouts. */
.thgw-release[data-thgt-tool-layout]{--thgt-tool-max:1100px;--thgt-tool-gutter:40px;width:min(var(--thgt-tool-max),calc(100vw - var(--thgt-tool-gutter)));max-width:none!important;margin-inline:calc((100% - min(var(--thgt-tool-max),calc(100vw - var(--thgt-tool-gutter))))/2)!important;margin-block:0 24px!important}
.thgw-release[data-thgt-tool-layout="document"]{--thgt-tool-max:1200px}
.thgw-release[data-thgt-tool-layout="data"]{--thgt-tool-max:1160px}
.thgw-release[data-thgt-tool-layout="simple"]{--thgt-tool-max:1000px}
main:has(.thgw-release[data-thgt-tool-layout]){padding-block-start:24px!important;margin-block-start:0!important}
.wp-block-post-content:has(.thgw-release[data-thgt-tool-layout]){margin-block-start:0!important;padding-block-start:0!important}
.thgw-release[data-thgt-tool-layout] .thgw-review-note{margin-bottom:8px}
.thgw-release[data-thgt-tool-layout] .thgw-crumb{margin-bottom:8px}
.thgw-release[data-thgt-tool-layout]>.thgw-nav{width:100%;background:transparent;border:0;padding:0;gap:8px;margin:0 0 6px;container-type:normal}
.thgw-release[data-thgt-tool-layout]>.thgw-nav :is(.thgw-nav-back,.thgw-nav-all){flex:0 1 auto;min-height:40px;max-width:65%;padding:7px 12px;gap:8px;font-size:13px}
.thgw-release[data-thgt-tool-layout]>.thgw-nav .thgw-nav-all{margin-left:auto;white-space:nowrap}
.thgw-release[data-thgt-tool-layout] .thgw-tool-hero{padding:8px 8px 16px;gap:7px}
.thgw-release[data-thgt-tool-layout] .thgw-tool-hero p{max-width:800px}
.thgw-release[data-thgt-tool-layout="document"] .thgw-doc-layout{gap:16px;grid-template-columns:minmax(0,1fr) minmax(0,1.2fr)}
@container thg-tools (max-width:1050px){.thgw-release[data-thgt-tool-layout="document"] .thgw-doc-layout{grid-template-columns:minmax(0,1fr)}}
.thgw-release[data-thgt-tool-layout="document"] .thgw-doc-form,.thgw-release[data-thgt-tool-layout="document"] .thgw-doc-preview{min-width:0}
@media(max-width:700px){.thgw-release[data-thgt-tool-layout]{--thgt-tool-gutter:28px}main:has(.thgw-release[data-thgt-tool-layout]){padding-block-start:16px!important}.thgw-release[data-thgt-tool-layout]>.thgw-nav :is(.thgw-nav-back,.thgw-nav-all){min-height:40px;padding:7px 9px;font-size:12px}.thgw-release[data-thgt-tool-layout] .thgw-tool-hero{padding:6px 4px 12px}.thgw-release[data-thgt-tool-layout] .thgw-crumb{font-size:11px;gap:4px}}

/* v0.29.4: compact individual tool navigation and centered QR preview. */
.thgw-release[data-thgt-tool-layout]>.thgw-nav{align-items:center;margin-bottom:4px}
.thgw-release[data-thgt-tool-layout]>.thgw-nav :is(a.thgw-nav-back,a.thgw-nav-all){box-sizing:border-box;min-height:44px;height:44px;padding:6px 12px;line-height:1.15;margin-block:0;align-items:center;gap:8px}
.thgw-release[data-thgt-tool-layout]>.thgw-nav .thgw-nav-back>span:first-child{font-size:20px;line-height:1;flex:none}
.thgw-release[data-thgt-tool-layout]>.thgw-nav .thgw-nav-all svg{width:20px;height:20px;flex:none}
.thgw-release[data-thgt-tool-layout]>.thgw-nav strong{line-height:1.15;margin:0}
.thgw-release[data-thgt-tool-layout] .thgw-tool-hero{padding:4px 8px 12px;gap:5px}
.thgw-release[data-thgt-tool-layout] .thgw-tool-hero .thgw-icon{width:48px;height:48px;border-radius:12px}
.thgw-release[data-thgt-tool-layout] .thgw-tool-hero .thgw-icon svg{width:26px;height:26px}
.thgw .thgw-qr-preview{justify-items:center;text-align:center;align-content:start;gap:12px}
.thgw-qr-preview .thgw-qr-placeholder{display:grid;place-items:center;width:min(100%,200px);aspect-ratio:1;background:#f8fafc;border:1px dashed #cbd5e1;border-radius:12px;color:#94a3b8;box-sizing:border-box}
.thgw-qr-preview [data-qr-canvas]:not([hidden])+.thgw-qr-placeholder{display:none}
.thgw-qr-preview [data-qr-canvas]:not([hidden]){display:block;margin:0 auto;max-width:100%}
.thgw-qr-preview [data-qr-info]{margin:0;overflow-wrap:anywhere}
.thgw-qr-preview .thgw-calc-actions{justify-content:center;width:100%}
.thgw-qr-preview .thgw-calc-actions:has(a[hidden]):not(:has(a:not([hidden]))){display:none}
@media(max-width:700px){.thgw-release[data-thgt-tool-layout]>.thgw-nav :is(a.thgw-nav-back,a.thgw-nav-all){padding:5px 9px;gap:6px;font-size:12px}.thgw-release[data-thgt-tool-layout] .thgw-tool-hero{padding:2px 4px 10px}.thgw-release[data-thgt-tool-layout] .thgw-tool-hero .thgw-icon{width:42px;height:42px}.thgw-qr-preview .thgw-qr-placeholder{width:min(100%,160px)}}
