:root {
  --tls-ink: #0b1533;
  --tls-ink-2: #172341;
  --tls-muted: #64708a;
  --tls-line: #e3e9f3;
  --tls-line-strong: #d5deed;
  --tls-soft: #f6f8fc;
  --tls-soft-blue: #eef4ff;
  --tls-primary: #175cff;
  --tls-primary-dark: #0d43c5;
  --tls-primary-rgb: 23, 92, 255;
  --tls-accent: #16a879;
  --tls-danger: #be3455;
  --tls-white: #fff;
  --tls-radius-sm: 12px;
  --tls-radius-md: 18px;
  --tls-radius-lg: 26px;
  --tls-shadow-sm: 0 8px 22px rgba(22, 39, 76, .06);
  --tls-shadow: 0 22px 60px rgba(22, 39, 76, .10);
}

.tls-shell,
.tls-shell * { box-sizing: border-box; }
.tls-shell { position: relative; isolation: isolate; max-width: 1200px; margin: 0 auto; padding: 24px 18px 80px; color: var(--tls-ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 16px; }
.tls-shell a, .tls-shell button, .tls-shell input, .tls-shell select, .tls-shell textarea { -webkit-tap-highlight-color: transparent; }
.tls-shell svg { display: block; width: 1em; height: 1em; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tls-page-glow { position: absolute; z-index: -1; top: -80px; left: 50%; width: min(92vw, 1040px); height: 430px; transform: translateX(-50%); background: radial-gradient(circle at 50% 20%, rgba(var(--tls-primary-rgb), .12), transparent 64%); pointer-events: none; }

.tls-hero { max-width: 920px; margin: 0 auto; padding: 54px 16px 42px; text-align: center; }
.tls-eyebrow { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 12px; border: 1px solid #d5e2ff; border-radius: 999px; background: rgba(239, 245, 255, .88); color: var(--tls-primary-dark); font-size: 11px; font-weight: 700; letter-spacing: .105em; text-transform: uppercase; box-shadow: 0 5px 18px rgba(var(--tls-primary-rgb), .07); }
.tls-eyebrow-icon { display: grid; place-items: center; width: 17px; height: 17px; }
.tls-eyebrow-icon svg { width: 16px; height: 16px; }
.tls-hero h1 { max-width: 900px; margin: 18px auto 13px; color: var(--tls-ink); font-size: clamp(35px, 5.6vw, 64px); font-weight: 700; line-height: 1.04; letter-spacing: -.045em; text-wrap: balance; }
.tls-hero > p { max-width: 760px; margin: 0 auto; color: var(--tls-muted); font-size: clamp(16px, 1.8vw, 19px); line-height: 1.7; text-wrap: pretty; }
.tls-trust-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 9px; margin-top: 22px; }
.tls-trust-row span { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 7px 11px; border: 1px solid var(--tls-line); border-radius: 999px; background: rgba(255,255,255,.86); color: #42506d; font-size: 12px; font-weight: 700; box-shadow: 0 5px 16px rgba(22,39,76,.04); }
.tls-trust-row span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--tls-accent); box-shadow: 0 0 0 4px rgba(22,168,121,.10); }

.tls-form-card,
.tls-result-card,
.tls-content-card,
.tls-document-preview,
.tls-workflow-card { border: 1px solid var(--tls-line); border-radius: var(--tls-radius-lg); background: var(--tls-white); box-shadow: var(--tls-shadow-sm); }
.tls-form-card { padding: clamp(22px, 3vw, 34px); }
.tls-content-card { margin-top: 28px; padding: clamp(22px, 4vw, 34px); }
.tls-content-card h2 { margin: 0 0 8px; font-size: clamp(21px, 2.7vw, 28px); letter-spacing: -.025em; }
.tls-content-card p { margin: 0; color: var(--tls-muted); line-height: 1.75; }
.tls-info-card { display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: linear-gradient(145deg, #fbfdff, #f4f8ff); }
.tls-info-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 15px; background: #eaf1ff; color: var(--tls-primary); }
.tls-info-icon svg { width: 24px; height: 24px; }

.tls-hub-toolbar { display: grid; gap: 16px; margin-bottom: 22px; }
.tls-tool-search { position: relative; display: flex !important; align-items: center; max-width: 720px; width: 100%; margin: 0 auto; }
.tls-tool-search > svg { position: absolute; left: 17px; width: 20px; height: 20px; color: #8290aa; pointer-events: none; }
.tls-tool-search input { min-height: 58px; padding: 14px 58px 14px 50px !important; border-radius: 17px !important; box-shadow: 0 14px 36px rgba(22,39,76,.08); }
.tls-tool-search kbd { position: absolute; right: 14px; display: grid; place-items: center; min-width: 30px; height: 28px; padding: 0 8px; border: 1px solid var(--tls-line); border-bottom-color: #c8d2e1; border-radius: 8px; background: #f8fafc; color: #70809e; font: 700 12px/1 ui-monospace, SFMono-Regular, Menlo, monospace; }
.tls-filter-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.tls-filter-chips button { min-height: 36px; padding: 8px 13px; border: 1px solid var(--tls-line); border-radius: 999px; background: #fff; color: #53617b; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; transition: .18s ease; }
.tls-filter-chips button:hover, .tls-filter-chips button.is-active { border-color: #b9ceff; background: var(--tls-soft-blue); color: var(--tls-primary-dark); }

.tls-hub-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 17px; }
.tls-tool-card { position: relative; display: flex; min-height: 300px; flex-direction: column; padding: 24px; overflow: hidden; border: 1px solid var(--tls-line); border-radius: 22px; background: rgba(255,255,255,.96); color: var(--tls-ink); text-decoration: none !important; box-shadow: var(--tls-shadow-sm); transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease; }
.tls-tool-card::after { content: ""; position: absolute; right: -48px; bottom: -58px; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, rgba(var(--tls-primary-rgb), .08), transparent 68%); pointer-events: none; }
.tls-tool-card:hover { transform: translateY(-4px); border-color: #b8cbf7; box-shadow: var(--tls-shadow); }
.tls-card-topline { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.tls-tool-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: linear-gradient(145deg, #eaf1ff, #f7f9ff); color: var(--tls-primary); box-shadow: inset 0 0 0 1px rgba(var(--tls-primary-rgb),.08); }
.tls-tool-icon svg { width: 27px; height: 27px; }
.tls-tool-badge { padding: 6px 9px; border: 1px solid #dce7fb; border-radius: 999px; background: #f7faff; color: #667793; font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
.tls-tool-category { margin-top: 20px; color: var(--tls-primary); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tls-tool-card h2 { margin: 8px 0 10px; color: var(--tls-ink); font-size: 21px; line-height: 1.2; letter-spacing: -.025em; }
.tls-tool-card p { margin: 0; color: var(--tls-muted); font-size: 14px; line-height: 1.67; }
.tls-card-link { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 22px; color: var(--tls-primary); font-size: 13px; font-weight: 700; }
.tls-card-link > span { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--tls-soft-blue); }
.tls-card-link svg { width: 14px; height: 14px; transition: transform .18s ease; }
.tls-tool-card:hover .tls-card-link svg { transform: translateX(2px); }
.tls-empty-state { margin: 30px 0 0; padding: 22px; border: 1px dashed var(--tls-line-strong); border-radius: 17px; color: var(--tls-muted); text-align: center; }

.tls-workflow-card { display: grid; grid-template-columns: .85fr 1.15fr; gap: 32px; align-items: center; margin-top: 28px; padding: clamp(24px, 4vw, 38px); background: linear-gradient(135deg, #0e1a39, #142b61); color: #fff; overflow: hidden; }
.tls-workflow-copy h2 { margin: 6px 0 10px; color: #fff; font-size: clamp(23px, 3vw, 32px); letter-spacing: -.03em; }
.tls-workflow-copy p { margin: 0; color: #c5d1eb; line-height: 1.7; }
.tls-workflow-card .tls-step { color: #92b4ff; }
.tls-workflow-steps { display: flex; align-items: center; justify-content: space-between; gap: 9px; }
.tls-workflow-steps > div { min-width: 86px; text-align: center; }
.tls-workflow-steps > div span { display: grid; place-items: center; width: 50px; height: 50px; margin: 0 auto 9px; border: 1px solid rgba(255,255,255,.14); border-radius: 16px; background: rgba(255,255,255,.08); color: #a8c1ff; font-size: 12px; font-weight: 700; }
.tls-workflow-steps strong { font-size: 12px; }
.tls-workflow-steps i { color: #7699e9; }
.tls-workflow-steps i svg { width: 18px; height: 18px; }
.tls-benefit-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; }
.tls-benefit-grid article { display: grid; grid-template-columns: 45px 1fr; gap: 13px; align-items: start; padding: 20px; border: 1px solid var(--tls-line); border-radius: 18px; background: #fff; box-shadow: var(--tls-shadow-sm); }
.tls-benefit-grid article > span { display: grid; place-items: center; width: 45px; height: 45px; border-radius: 14px; background: var(--tls-soft-blue); color: var(--tls-primary); }
.tls-benefit-grid article svg { width: 22px; height: 22px; }
.tls-benefit-grid h3 { margin: 0 0 4px; font-size: 15px; }
.tls-benefit-grid p { margin: 0; color: var(--tls-muted); font-size: 12px; line-height: 1.55; }

.tls-form-grid { display: grid; gap: 17px; }
.tls-form-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tls-form-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tls-span-2 { grid-column: 1 / -1; }
.tls-shell label { display: grid; gap: 8px; color: #344054; font-size: 13px; line-height: 1.35; font-weight: 600; }
.tls-shell input,
.tls-shell select,
.tls-shell textarea { width: 100%; min-height: 46px; border: 1px solid var(--tls-line-strong); border-radius: var(--tls-radius-sm); background: #fff; color: var(--tls-ink); padding: 12px 14px; outline: none; font-family: inherit; font-size: 15px; font-weight: 400; line-height: 1.45; letter-spacing: 0; text-transform: none; transition: border-color .18s ease, box-shadow .18s ease, background .18s ease; }
.tls-shell textarea { min-height: 74px; resize: vertical; }
.tls-shell input::placeholder, .tls-shell textarea::placeholder { color: #98a2b3; font-weight: 400; opacity: 1; }
.tls-shell input:hover, .tls-shell select:hover, .tls-shell textarea:hover { border-color: #bfcbe0; }
.tls-shell input:focus,
.tls-shell select:focus,
.tls-shell textarea:focus { border-color: var(--tls-primary); box-shadow: 0 0 0 4px rgba(var(--tls-primary-rgb), .11); }

.tls-button { appearance: none; min-height: 44px; border: 0; border-radius: 12px; padding: 11px 16px; font-family: inherit; font-size: 13px; line-height: 1.2; font-weight: 600; cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.tls-button:hover { transform: translateY(-1px); }
.tls-button:focus-visible, .tls-filter-chips button:focus-visible, .tls-tool-card:focus-visible { outline: 3px solid rgba(var(--tls-primary-rgb), .25); outline-offset: 3px; }
.tls-button-primary { color: #fff; background: linear-gradient(135deg, var(--tls-primary), #2f70ff); box-shadow: 0 10px 22px rgba(var(--tls-primary-rgb), .24); }
.tls-button-primary:hover { background: var(--tls-primary-dark); }
.tls-button-secondary { color: var(--tls-primary-dark); background: #eaf1ff; }
.tls-button-soft { min-height: 38px; padding: 8px 12px; border: 1px solid var(--tls-line); background: var(--tls-soft); color: #42516d; }
.tls-action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tls-status { min-height: 20px; margin: 9px 0 0; color: var(--tls-accent); font-size: 12px; font-weight: 700; }

.tls-section-heading { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.tls-section-heading h2 { margin: 3px 0 0; font-size: 20px; line-height: 1.25; font-weight: 650; letter-spacing: -.018em; }
.tls-step { color: var(--tls-primary); font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tls-items-heading { margin-top: 30px; }
.tls-items { display: grid; gap: 10px; }
.tls-item-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(85px, .72fr) minmax(75px, .55fr) minmax(105px, .9fr) auto; gap: 10px; align-items: end; padding: 12px; border: 1px solid var(--tls-line); border-radius: 15px; background: var(--tls-soft); }
.tls-item-row .tls-remove-item { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 11px; background: #fff0f3; color: var(--tls-danger); }
.tls-adjustments { margin: 21px 0; }

.tls-document-tool { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(430px, .98fr); gap: 22px; align-items: start; }
.tls-document-preview { position: sticky; top: 20px; min-height: 720px; padding: clamp(25px, 4vw, 40px); overflow: hidden; box-shadow: var(--tls-shadow); }
.tls-preview-label { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -40px -40px 28px; padding: 10px 18px; border-bottom: 1px solid var(--tls-line); background: #f8faff; color: #55647f; font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tls-preview-label small { color: #8390a5; font-size: 10px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.tls-doc-header { display: flex; justify-content: space-between; gap: 24px; padding-bottom: 26px; border-bottom: 2px solid var(--tls-ink); }
.tls-doc-brand { display: block; font-size: 23px; font-weight: 700; letter-spacing: -.025em; }
.tls-doc-muted { margin-top: 5px; color: var(--tls-muted); font-size: 11px; white-space: pre-line; }
.tls-doc-title-block { text-align: right; }
.tls-doc-title-block strong { display: block; color: var(--tls-primary); font-size: 25px; letter-spacing: .09em; }
.tls-doc-title-block span { display: block; margin-top: 7px; font-size: 12px; font-weight: 500; }
.tls-doc-title-block small { display: block; margin-top: 5px; color: var(--tls-muted); font-size: 10px; }
.tls-doc-meta-grid { display: grid; grid-template-columns: 1.7fr .65fr .65fr; gap: 20px; padding: 23px 0; font-size: 11px; }
.tls-doc-meta-grid span, .tls-doc-notes span { display: block; margin-bottom: 6px; color: var(--tls-muted); font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tls-doc-meta-grid strong { display: block; margin-bottom: 4px; font-size: 12px; font-weight: 600; }
.tls-doc-meta-grid b { font-size: 10px; font-weight: 500; }
.tls-doc-meta-grid .tls-meta-sub { margin-top: 13px; }
.tls-table-wrap { overflow-x: auto; }
.tls-doc-table { width: 100%; border-collapse: collapse; font-size: 11px; }
.tls-doc-table th { padding: 10px 8px; background: var(--tls-ink); color: #fff; text-align: left; font-size: 9px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tls-doc-table th:first-child { border-radius: 7px 0 0 7px; }
.tls-doc-table th:last-child { border-radius: 0 7px 7px 0; }
.tls-doc-table th:nth-child(n+2), .tls-doc-table td:nth-child(n+2) { text-align: right; }
.tls-doc-table td { padding: 12px 8px; border-bottom: 1px solid var(--tls-line); }
.tls-doc-bottom { display: grid; grid-template-columns: 1fr 250px; gap: 26px; align-items: start; margin-top: 26px; }
.tls-doc-notes p { margin: 0; color: var(--tls-muted); font-size: 11px; white-space: pre-line; }
.tls-totals { display: grid; gap: 8px; }
.tls-totals > div { display: flex; justify-content: space-between; gap: 15px; font-size: 11px; }
.tls-grand-total { margin-top: 6px; padding: 12px 13px; border-radius: 10px; background: var(--tls-soft-blue); color: var(--tls-primary-dark); font-size: 15px !important; }


/* Advanced document controls */
.tls-template-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tls-template-picker label { position: relative; display: grid; gap: 5px; padding: 12px; border: 1px solid var(--tls-line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease; }
.tls-template-picker label:hover { transform: translateY(-1px); border-color: #bfd0f7; }
.tls-template-picker label.is-selected { border-color: #9db9ff; box-shadow: 0 0 0 3px rgba(var(--tls-primary-rgb), .09); background: #fbfdff; }
.tls-template-picker input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.tls-template-picker strong { margin-top: 3px; color: var(--tls-ink); font-size: 13px; line-height: 1.3; font-weight: 600; }
.tls-template-picker small { color: var(--tls-muted); font-size: 11px; line-height: 1.4; font-weight: 400; }
.tls-template-thumb { position: relative; display: block; height: 72px; overflow: hidden; border: 1px solid #dfe6f2; border-radius: 10px; background: #fff; }
.tls-template-thumb::before, .tls-template-thumb::after, .tls-template-thumb i, .tls-template-thumb b, .tls-template-thumb em { content: ""; position: absolute; display: block; }
.tls-template-thumb::before { left: 9px; top: 10px; width: 35%; height: 5px; border-radius: 5px; background: #1a2a4c; }
.tls-template-thumb::after { right: 9px; top: 9px; width: 22%; height: 9px; border-radius: 3px; background: #2e69ee; }
.tls-template-thumb i { left: 9px; right: 9px; top: 28px; height: 7px; background: #172341; }
.tls-template-thumb b { left: 9px; right: 9px; top: 40px; height: 14px; border-top: 1px solid #dbe3ef; border-bottom: 1px solid #dbe3ef; }
.tls-template-thumb em { right: 9px; bottom: 8px; width: 30%; height: 5px; background: #dfe9ff; }
.tls-template-thumb-classic { border-color: #d8d1c5; background: #fffefb; }
.tls-template-thumb-classic::before { left: 28%; width: 44%; background: #3d3328; }
.tls-template-thumb-classic::after { background: #9b7a49; }
.tls-template-thumb-classic i { background: #7d6849; }
.tls-template-thumb-minimal::after { background: #cbd5e5; }
.tls-template-thumb-minimal i { height: 1px; background: #bdc7d7; }

.tls-smart-tax { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: start; margin-top: 20px; padding: 15px; border: 1px solid #d7e4ff; border-radius: 16px; background: linear-gradient(135deg, #f7faff, #eef4ff); }
.tls-smart-tax > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: #fff; color: var(--tls-primary); box-shadow: var(--tls-shadow-sm); }
.tls-smart-tax svg { width: 21px; height: 21px; }
.tls-smart-tax strong { display: block; margin-bottom: 3px; font-size: 12px; }
.tls-smart-tax p { margin: 0; color: var(--tls-muted); font-size: 11px; line-height: 1.55; }
.tls-country-panel { margin-top: 14px; padding: 15px; border: 1px dashed #cdd8ea; border-radius: 15px; background: #fafcff; }
.tls-country-panel[hidden], [data-secondary-tax-control][hidden], [data-tax-row][hidden] { display: none !important; }
.tls-tax-controls { align-items: end; }

.tls-doc-tax-id { margin-top: 7px; color: #53617a; font-size: 9px; }
.tls-doc-tax-id span { font-weight: 700; }
.tls-doc-tax-id b { color: var(--tls-ink); font-weight: 600; }
.tls-tax-disclaimer { margin-top: 14px !important; padding-top: 12px; border-top: 1px solid var(--tls-line); font-size: 9px !important; line-height: 1.55; }

/* Three printable document designs */
.tls-template-modern { border-top: 5px solid var(--tls-primary); }
.tls-template-modern .tls-doc-title-block strong { color: var(--tls-primary); }

.tls-template-classic { border: 1px solid #cfc5b6; border-radius: 6px; background: #fffefb; color: #2f2922; font-family: Georgia, "Times New Roman", serif; }
.tls-template-classic .tls-preview-label { font-family: Inter, ui-sans-serif, system-ui, sans-serif; }
.tls-template-classic .tls-doc-header { align-items: center; border-bottom: 1px solid #8c785b; }
.tls-template-classic .tls-doc-title-block strong { color: #7b5c2d; font-size: 22px; letter-spacing: .15em; }
.tls-template-classic .tls-doc-brand { font-size: 25px; font-weight: 700; }
.tls-template-classic .tls-doc-table th { background: #766044; }
.tls-template-classic .tls-grand-total { border-radius: 2px; background: #f3ede3; color: #5d4524; }
.tls-template-classic .tls-doc-muted, .tls-template-classic .tls-doc-notes p { color: #6f655a; }

.tls-template-minimal { border-radius: 12px; box-shadow: 0 12px 35px rgba(22,39,76,.07); }
.tls-template-minimal .tls-doc-header { border-bottom: 1px solid var(--tls-line); }
.tls-template-minimal .tls-doc-title-block strong { color: var(--tls-ink); font-size: 20px; letter-spacing: .04em; }
.tls-template-minimal .tls-doc-table th { border-top: 1px solid var(--tls-line); border-bottom: 1px solid var(--tls-line); background: transparent; color: var(--tls-muted); }
.tls-template-minimal .tls-doc-table th:first-child, .tls-template-minimal .tls-doc-table th:last-child { border-radius: 0; }
.tls-template-minimal .tls-grand-total { border-top: 2px solid var(--tls-ink); border-radius: 0; background: transparent; color: var(--tls-ink); }

.tls-calculator { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr); gap: 22px; align-items: stretch; }
.tls-result-card { position: relative; padding: clamp(25px, 4vw, 38px); overflow: hidden; background: linear-gradient(145deg, #0c1836, #17346f); color: #fff; box-shadow: 0 24px 64px rgba(12,24,54,.22); }
.tls-result-card::before { content: ""; position: absolute; right: -80px; top: -90px; width: 250px; height: 250px; border-radius: 50%; background: radial-gradient(circle, rgba(95,145,255,.30), transparent 70%); }
.tls-result-icon { position: relative; z-index: 1; display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 22px; border: 1px solid rgba(255,255,255,.13); border-radius: 15px; background: rgba(255,255,255,.08); color: #a9c2ff; }
.tls-result-icon svg { width: 25px; height: 25px; }
.tls-result-kicker { position: relative; z-index: 1; display: block; color: #b9c9e9; font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tls-result-main { position: relative; z-index: 1; display: block; margin: 10px 0 25px; font-size: clamp(40px, 6vw, 60px); line-height: 1; letter-spacing: -.045em; }
.tls-result-grid { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.tls-result-grid > div { padding: 14px; border: 1px solid rgba(255,255,255,.11); border-radius: 14px; background: rgba(255,255,255,.07); backdrop-filter: blur(4px); }
.tls-result-grid span { display: block; min-height: 34px; color: #b9c9e9; font-size: 10px; line-height: 1.45; }
.tls-result-grid strong { display: block; margin-top: 6px; font-size: 16px; }
.tls-result-card > p { position: relative; z-index: 1; margin: 18px 0 0; color: #c7d3eb; font-size: 11px; line-height: 1.65; }

@media (max-width: 1000px) {
  .tls-document-tool, .tls-calculator, .tls-workflow-card { grid-template-columns: 1fr; }
  .tls-document-preview { position: static; min-height: 0; }
  .tls-hub-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tls-workflow-steps { max-width: 650px; }
}

@media (max-width: 720px) {
  .tls-shell { padding: 18px 12px 64px; }
  .tls-hero { padding: 38px 6px 30px; }
  .tls-hero h1 { font-size: clamp(34px, 11vw, 48px); }
  .tls-tool-search kbd { display: none; }
  .tls-tool-search input { min-height: 54px; padding-right: 16px !important; }
  .tls-form-grid-2, .tls-form-grid-3, .tls-result-grid, .tls-hub-grid, .tls-benefit-grid { grid-template-columns: 1fr; }
  .tls-tool-card { min-height: 0; }
  .tls-span-2 { grid-column: auto; }
  .tls-item-row { grid-template-columns: 1fr 1fr; }
  .tls-item-row label:first-child { grid-column: 1 / -1; }
  .tls-template-picker { grid-template-columns: 1fr; }
  .tls-template-picker label { grid-template-columns: 92px 1fr; align-items: center; }
  .tls-template-picker .tls-template-thumb { grid-row: 1 / 3; }
  .tls-item-row .tls-remove-item { width: 100%; grid-column: 1 / -1; }
  .tls-section-heading { align-items: flex-start; }
  .tls-doc-meta-grid { grid-template-columns: 1fr 1fr; }
  .tls-doc-meta-grid > div:first-child { grid-column: 1 / -1; }
  .tls-doc-bottom { grid-template-columns: 1fr; }
  .tls-document-preview { padding: 20px 14px; border-radius: 18px; }
  .tls-preview-label { margin: -20px -14px 22px; }
  .tls-doc-header { gap: 12px; }
  .tls-doc-title-block strong { font-size: 19px; }
  .tls-doc-brand { font-size: 18px; }
  .tls-workflow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; overflow-x: auto; padding-bottom: 4px; }
  .tls-workflow-steps i { display: none; }
  .tls-workflow-steps > div { min-width: 72px; }
  .tls-workflow-steps > div span { width: 44px; height: 44px; }
  .tls-info-card { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .tls-shell *, .tls-shell *::before, .tls-shell *::after { scroll-behavior: auto !important; transition: none !important; }
}

@media print {
  body * { visibility: hidden !important; }
  .tls-document-preview, .tls-document-preview * { visibility: visible !important; }
  .tls-document-preview { position: absolute !important; inset: 0 auto auto 0; width: 100% !important; min-height: 0 !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; padding: 24px !important; }
  .tls-no-print { display: none !important; }
}

.tls-shell .screen-reader-text { position: absolute !important; width: 1px !important; height: 1px !important; padding: 0 !important; margin: -1px !important; overflow: hidden !important; clip: rect(0,0,0,0) !important; white-space: nowrap !important; border: 0 !important; }


/* ==========================================================
   Tooloos v0.3.1 permanent typography guard
   Prevents WordPress themes, nested labels and browser autofill
   from making form values artificially bold or uppercase.
   ========================================================== */
.tls-shell {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
}

.tls-shell .tls-form-card label {
  color: #344054;
  font-family: inherit;
  font-size: 13px;
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}

.tls-shell .tls-form-card input:not([type="radio"]):not([type="checkbox"]),
.tls-shell .tls-form-card select,
.tls-shell .tls-form-card textarea {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important;
  font-style: normal !important;
  font-weight: 400 !important;
  line-height: 1.45 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  color: #172033 !important;
  -webkit-text-fill-color: #172033 !important;
  text-shadow: none !important;
}

.tls-shell .tls-form-card select option {
  font-family: inherit !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  color: #172033 !important;
}

.tls-shell .tls-form-card input::placeholder,
.tls-shell .tls-form-card textarea::placeholder {
  color: #98a2b3 !important;
  -webkit-text-fill-color: #98a2b3 !important;
  font-style: normal !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

/* Chrome/Safari autofill reset: prevents blue/yellow heavy-looking fields. */
.tls-shell .tls-form-card input:-webkit-autofill,
.tls-shell .tls-form-card input:-webkit-autofill:hover,
.tls-shell .tls-form-card input:-webkit-autofill:focus,
.tls-shell .tls-form-card textarea:-webkit-autofill,
.tls-shell .tls-form-card textarea:-webkit-autofill:hover,
.tls-shell .tls-form-card textarea:-webkit-autofill:focus,
.tls-shell .tls-form-card select:-webkit-autofill,
.tls-shell .tls-form-card select:-webkit-autofill:hover,
.tls-shell .tls-form-card select:-webkit-autofill:focus {
  -webkit-text-fill-color: #172033 !important;
  caret-color: #172033 !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif !important;
  font-size: 15px !important;
  font-weight: 400 !important;
  box-shadow: 0 0 0 1000px #ffffff inset !important;
  -webkit-box-shadow: 0 0 0 1000px #ffffff inset !important;
  transition: background-color 9999s ease-out 0s;
}

.tls-shell .tls-section-heading h2 {
  font-weight: 650;
}

.tls-shell .tls-template-picker strong,
.tls-shell .tls-button,
.tls-shell .tls-tool-card h2,
.tls-shell .tls-card-link {
  font-weight: 600;
}

@media (max-width: 720px) {
  .tls-shell .tls-form-card input:not([type="radio"]):not([type="checkbox"]),
  .tls-shell .tls-form-card select,
  .tls-shell .tls-form-card textarea {
    font-size: 16px !important; /* prevents iOS zoom */
  }
}

/* ==========================================================
   Tooloos v0.4 advanced calculator components
   Lightweight, dependency-free and typography-safe.
   ========================================================== */
.tls-field-note {
  display: block;
  margin-top: -2px;
  color: #7b879e;
  font-size: 11px;
  font-weight: 400;
  line-height: 1.5;
}

.tls-advanced-panel {
  margin-top: 20px;
  border: 1px solid var(--tls-line);
  border-radius: 16px;
  background: #fbfcff;
  overflow: hidden;
}
.tls-advanced-panel summary {
  position: relative;
  padding: 15px 46px 15px 16px;
  color: #273552;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.tls-advanced-panel summary::-webkit-details-marker { display: none; }
.tls-advanced-panel summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 16px;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  transform: translateY(-50%);
  border: 1px solid #d9e2f1;
  border-radius: 8px;
  background: #fff;
  color: var(--tls-primary);
  font-size: 17px;
  font-weight: 400;
}
.tls-advanced-panel[open] summary::after { content: "−"; }
.tls-advanced-panel[open] summary { border-bottom: 1px solid var(--tls-line); }
.tls-advanced-panel > .tls-form-grid { padding: 17px; }

.tls-result-banner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: -8px 0 16px;
  padding: 13px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.08);
}
.tls-result-banner span {
  color: #b9c9e9;
  font-size: 11px;
  font-weight: 400;
}
.tls-result-banner strong {
  color: #fff;
  font-size: 17px;
  font-weight: 600;
  white-space: nowrap;
}
.tls-result-grid-dense > div { min-height: 79px; }
.tls-result-grid-dense span { min-height: 30px; font-weight: 400; }
.tls-result-grid-dense strong { font-weight: 600; }

.tls-result-actions {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin-top: 16px;
}
.tls-result-button {
  min-height: 39px;
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 11px;
  background: #fff;
  color: #102451;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.tls-result-button:hover { transform: translateY(-1px); }
.tls-result-button-ghost {
  background: rgba(255,255,255,.06);
  color: #d7e3fb;
}

.tls-fee-comparison-wrap {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,.11);
}
.tls-mini-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 9px;
}
.tls-mini-heading > span {
  color: #f4f7ff;
  font-size: 12px;
  font-weight: 600;
}
.tls-mini-heading small {
  color: #9fb2d8;
  font-size: 9px;
  font-weight: 400;
  text-align: right;
}
.tls-fee-comparison {
  display: grid;
  gap: 7px;
  max-height: 250px;
  overflow: auto;
  padding-right: 3px;
}
.tls-fee-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 3px 12px;
  align-items: center;
  padding: 10px 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 11px;
  background: rgba(255,255,255,.05);
}
.tls-fee-row > span {
  overflow: hidden;
  color: #dbe5f8;
  font-size: 10px;
  font-weight: 500;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tls-fee-row > strong {
  grid-row: 1 / 3;
  grid-column: 2;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
.tls-fee-row > small {
  color: #97acd3;
  font-size: 9px;
  font-weight: 400;
}
.tls-fee-row.is-best {
  border-color: rgba(91,225,177,.28);
  background: rgba(35,174,126,.12);
}
.tls-fee-row.is-best > strong { color: #8cf0c9; }
.tls-comparison-empty {
  margin: 0;
  padding: 12px;
  border: 1px dashed rgba(255,255,255,.13);
  border-radius: 11px;
  color: #a9badb !important;
  font-size: 10px !important;
}

/* Keep advanced field values light even inside details/summary components. */
.tls-shell .tls-advanced-panel input,
.tls-shell .tls-advanced-panel select,
.tls-shell .tls-advanced-panel textarea {
  font-weight: 400 !important;
  text-transform: none !important;
}

@media (max-width: 720px) {
  .tls-result-banner { align-items: flex-start; flex-direction: column; gap: 5px; }
  .tls-result-banner strong { white-space: normal; }
  .tls-result-actions { display: grid; grid-template-columns: 1fr 1fr; }
  .tls-result-button { width: 100%; }
  .tls-mini-heading { align-items: flex-start; flex-direction: column; }
  .tls-mini-heading small { text-align: left; }
}
