.tf-landing {
  --tf-bg: #f6f7fb;
  --tf-text: #111827;
  --tf-muted: #6b7280;
  --tf-card: #ffffff;
  --tf-primary: #166534;
  --tf-primary-2: #22c55e;
  --tf-border: #e5e7eb;
  --tf-shadow: 0 20px 50px rgba(17,24,39,.08);

  width: 100%;
  margin: 0;
  color: var(--tf-text);
  background: var(--tf-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

.tf-landing *,
.tf-landing *::before,
.tf-landing *::after {
  box-sizing: border-box;
}

.tf-landing a {
  color: inherit;
  text-decoration: none;
}

.tf-container {
  width: min(1120px, calc(100% - 40px));
  margin-left: auto;
  margin-right: auto;
}

.tf-site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(246,247,251,.9);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--tf-border);
}

.tf-nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.tf-brand {
  display: inline-flex !important;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  color: var(--tf-text) !important;
  line-height: 1;
  flex-shrink: 0;
}

.tf-brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--tf-primary), var(--tf-primary-2));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 900;
}

.tf-nav-links {
  display: flex !important;
  flex-wrap: nowrap;
  gap: 24px;
  align-items: center;
  color: var(--tf-muted);
  font-size: 14px;
  line-height: 1;
}

.tf-nav-links a {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--tf-muted) !important;
  font-size: 14px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
}

.tf-nav-links .tf-nav-cta {
  background: #111827 !important;
  color: #fff !important;
  padding: 11px 16px !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

.tf-hero {
  padding: 90px 0 70px;
  background: radial-gradient(circle at top right, #dcfce7, transparent 38%);
}

.tf-hero-grid {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 54px;
  align-items: center;
}

.tf-eyebrow {
  color: var(--tf-primary);
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .08em;
  font-size: 13px;
  margin-bottom: 14px;
}

.tf-landing h1,
.tf-landing h2,
.tf-landing h3,
.tf-landing p {
  margin-top: 0;
}

.tf-landing h1 {
  font-size: clamp(42px, 6vw, 68px);
  line-height: .98;
  margin-bottom: 22px;
  letter-spacing: -.05em;
  color: var(--tf-text);
  font-weight: 900;
}

.tf-landing h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
  margin-bottom: 18px;
  letter-spacing: -.04em;
  color: var(--tf-text);
  font-weight: 900;
}

.tf-landing h3 {
  margin-bottom: 10px;
  font-size: 20px;
  color: var(--tf-text);
  font-weight: 850;
}

.tf-lead {
  font-size: 20px;
  line-height: 1.6;
  color: var(--tf-muted);
  max-width: 640px;
}

.tf-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 30px 0;
}

.tf-btn {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  height: auto !important;
  padding: 14px 20px !important;
  border-radius: 14px !important;
  font-weight: 900 !important;
  border: 1px solid transparent !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  cursor: pointer;
}

.tf-btn-primary {
  background: var(--tf-primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 24px rgba(22,101,52,.22);
}

.tf-btn-secondary {
  background: #fff !important;
  color: var(--tf-text) !important;
  border-color: var(--tf-border) !important;
}

.tf-btn-light {
  background: #fff !important;
  color: var(--tf-primary) !important;
}

.tf-trust {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.tf-trust span {
  background: #fff;
  border: 1px solid var(--tf-border);
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--tf-muted);
  font-size: 13px;
}

.tf-window {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--tf-border);
  border-radius: 28px;
  padding: 26px;
  box-shadow: var(--tf-shadow);
}

.tf-dots {
  display: flex;
  gap: 7px;
  margin-bottom: 24px;
}

.tf-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #d1d5db;
}

.tf-metric {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
  border-bottom: 1px solid var(--tf-border);
}

.tf-metric span,
.tf-window p {
  color: var(--tf-muted);
}

.tf-metric strong {
  color: var(--tf-primary);
}

.tf-progress {
  height: 12px;
  background: #e5e7eb;
  border-radius: 999px;
  margin: 24px 0;
  overflow: hidden;
}

.tf-progress div {
  height: 100%;
  width: 100%;
  background: linear-gradient(90deg, var(--tf-primary), var(--tf-primary-2));
}

.tf-section,
.tf-problem {
  padding: 76px 0;
}

.tf-muted {
  background: #fff;
}

.tf-cards,
.tf-pricing,
.tf-steps,
.tf-compare {
  display: grid;
  gap: 18px;
}

.tf-four {
  grid-template-columns: repeat(4, 1fr);
}

.tf-card,
.tf-step,
.tf-price-card,
.tf-compare-col {
  background: var(--tf-card);
  border: 1px solid var(--tf-border);
  border-radius: 22px;
  padding: 24px;
  box-shadow: 0 8px 24px rgba(17,24,39,.04);
}

.tf-bad {
  font-weight: 800;
  color: #991b1b;
  background: #fff7f7;
}

.tf-split {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: 56px;
  align-items: start;
}

.tf-split p,
.tf-center p,
.tf-step p,
.tf-price-card p,
.tf-window p {
  color: var(--tf-muted);
  line-height: 1.6;
}

.tf-feature-list {
  display: grid;
  gap: 14px;
}

.tf-feature-list div {
  background: #fff;
  border: 1px solid var(--tf-border);
  padding: 18px;
  border-radius: 18px;
}

.tf-feature-list strong {
  display: block;
  margin-bottom: 5px;
}

.tf-feature-list span {
  color: var(--tf-muted);
}

.tf-center {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 34px;
}

.tf-steps {
  grid-template-columns: repeat(3, 1fr);
}

.tf-step span {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: #dcfce7;
  color: var(--tf-primary);
  font-weight: 900;
  margin-bottom: 18px;
}

.tf-compare {
  grid-template-columns: 1fr 1fr;
}

.tf-compare-col ul,
.tf-price-card ul {
  padding-left: 20px;
  color: var(--tf-muted);
  line-height: 1.9;
  margin-bottom: 0;
}

.tf-compare-col.tf-highlight {
  border-color: #86efac;
  background: #f0fdf4;
}

.tf-pricing {
  grid-template-columns: repeat(3, 1fr);
  align-items: stretch;
}

.tf-price-card {
  position: relative;
}

.tf-price-card.tf-popular {
  border: 2px solid var(--tf-primary);
  transform: translateY(-8px);
}

.tf-badge {
  position: absolute;
  top: 18px;
  right: 18px;
  background: #dcfce7;
  color: var(--tf-primary);
  font-size: 12px;
  font-weight: 900;
  padding: 6px 10px;
  border-radius: 999px;
}

.tf-price {
  font-size: 42px;
  font-weight: 950;
  letter-spacing: -.04em;
  margin: 16px 0;
}

.tf-price span {
  font-size: 15px;
  color: var(--tf-muted);
  font-weight: 600;
}

.tf-cta {
  padding: 80px 0;
}

.tf-cta-box {
  background: linear-gradient(135deg, var(--tf-primary), #052e16);
  color: #fff;
  padding: 54px;
  border-radius: 34px;
  text-align: center;
  box-shadow: var(--tf-shadow);
}

.tf-cta-box h2 {
  color: #fff;
}

.tf-cta-box p {
  color: #dcfce7;
  font-size: 18px;
}

.tf-footer {
  padding: 28px 0;
  border-top: 1px solid var(--tf-border);
  color: var(--tf-muted);
}

.tf-footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

@media (max-width: 860px) {
  .tf-nav {
    align-items: flex-start;
    padding: 16px 0;
    flex-direction: column;
  }

  .tf-nav-links {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 6px;
    gap: 16px;
  }

  .tf-hero-grid,
  .tf-split,
  .tf-compare,
  .tf-pricing,
  .tf-steps,
  .tf-four {
    grid-template-columns: 1fr;
  }

  .tf-price-card.tf-popular {
    transform: none;
  }

  .tf-cta-box {
    padding: 34px 22px;
  }
}

/* Final SaaS conversion additions */
.tf-microcopy {
  color: var(--tf-muted);
  font-size: 14px;
  margin-top: -16px;
  margin-bottom: 22px;
}

.tf-window-topline {
  color: var(--tf-primary);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 8px;
}

.tf-logo-strip {
  background: #fff;
  border-top: 1px solid var(--tf-border);
  border-bottom: 1px solid var(--tf-border);
  padding: 18px 0;
}

.tf-logo-inner {
  display: flex;
  gap: 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  color: var(--tf-muted);
  font-size: 14px;
}

.tf-logo-inner strong {
  color: var(--tf-text);
  background: #f6f7fb;
  border: 1px solid var(--tf-border);
  border-radius: 999px;
  padding: 8px 12px;
}

.tf-price-btn {
  margin-top: 22px;
  width: 100% !important;
}

.tf-onboarding {
  align-items: center;
}

.tf-flow-box {
  display: grid;
  gap: 12px;
}

.tf-flow-box div,
.tf-faq-item {
  background: #fff;
  border: 1px solid var(--tf-border);
  border-radius: 18px;
  padding: 18px;
  box-shadow: 0 8px 24px rgba(17,24,39,.04);
}

.tf-flow-box strong {
  display: block;
  margin-bottom: 5px;
  color: var(--tf-text);
}

.tf-flow-box span,
.tf-faq-item p {
  color: var(--tf-muted);
  line-height: 1.6;
}

.tf-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.tf-actions-center {
  justify-content: center;
  margin-bottom: 0;
}

.tf-btn-ghost {
  background: transparent !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.4) !important;
}

@media (max-width: 860px) {
  .tf-faq-grid {
    grid-template-columns: 1fr;
  }
}
.tf-single { grid-template-columns: 1fr !important; max-width: 520px; margin: 0 auto; }
.tf-billing-wrap .tf-btn, .tf-btn { text-decoration:none; }

/* WooTax App v1.6 */
.tf-app{min-height:100vh;background:#f6f7fb;color:#111827;font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;display:grid;grid-template-columns:260px 1fr}.tf-sidebar{background:#111827;color:#fff;padding:24px;position:sticky;top:0;height:100vh}.tf-brand-app{display:flex;align-items:center;gap:10px;margin-bottom:28px}.tf-brand-app span{width:38px;height:38px;border-radius:12px;background:linear-gradient(135deg,#166534,#22c55e);display:grid;place-items:center;font-weight:900}.tf-brand-app strong{font-size:20px}.tf-sidebar nav{display:grid;gap:8px}.tf-sidebar nav a,.tf-logout{color:#d1d5db;text-decoration:none;padding:12px 14px;border-radius:12px;font-weight:800}.tf-sidebar nav a.active,.tf-sidebar nav a:hover{background:#fff;color:#111827}.tf-logout{display:block;margin-top:28px;background:#1f2937}.tf-main{padding:34px;max-width:1240px;width:100%;}.tf-topbar{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-bottom:22px}.tf-topbar h1{margin:0 0 6px;font-size:36px;letter-spacing:-.04em}.tf-topbar p{margin:0;color:#6b7280}.tf-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:24px;box-shadow:0 10px 30px rgba(17,24,39,.05);margin-bottom:18px}.tf-card h3{margin-top:0}.tf-grid-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.tf-kicker{color:#166534;font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.tf-action-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.tf-action{display:block;border:1px solid #e5e7eb;border-radius:16px;padding:18px;background:#f9fafb;color:#111827;text-decoration:none;font-weight:900}.tf-wizard{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}.tf-step-card{background:#fff;border:1px solid #e5e7eb;border-radius:22px;padding:24px}.tf-step-card.done{border-color:#86efac;background:#f0fdf4}.tf-step-card>span{width:40px;height:40px;border-radius:14px;background:#dcfce7;color:#166534;display:grid;place-items:center;font-weight:900;margin-bottom:14px}.tf-row{display:flex;gap:16px;flex-wrap:wrap}.tf-form{display:grid;gap:16px}.tf-form label{font-weight:800}.tf-form input[type=text],.tf-form input[type=password],.tf-form input[type=email],.tf-form input[type=url],.tf-form input[type=date],.tf-form input[type=time],.tf-form select,.tf-card input[type=text],.tf-card input[type=password],.tf-card input[type=email],.tf-card input[type=url],.tf-card input[type=date],.tf-card input[type=file],.tf-card select{width:100%;max-width:420px;padding:12px;border:1px solid #d1d5db;border-radius:12px;margin-top:6px;background:#fff}.tf-btn,.tf-card button,.tf-form button{display:inline-flex;align-items:center;justify-content:center;padding:12px 16px;background:#111827;color:#fff!important;border:0;border-radius:12px;text-decoration:none;font-weight:900;cursor:pointer}.tf-section{border:1px solid #e5e7eb;border-radius:18px;padding:18px;background:#fff}.tf-muted{color:#6b7280;line-height:1.6}.tf-alert,.tf-notice{padding:14px 16px;border-radius:14px;margin-bottom:18px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap}.tf-notice.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}.tf-notice.danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}.tf-notice a{background:#111827;color:#fff;text-decoration:none;padding:10px 12px;border-radius:10px;font-weight:900}.tf-status-pill{display:inline-flex;padding:8px 12px;border-radius:999px;font-weight:900;font-size:13px;background:#fef3c7;color:#92400e}.tf-status-pill.ok{background:#dcfce7;color:#166534}.tf-status-pill.warn{background:#fef3c7;color:#92400e}.tf-connect-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start}.tf-table{width:100%;border-collapse:collapse;margin-top:18px;font-size:14px}.tf-table th,.tf-table td{padding:11px;border-bottom:1px solid #e5e7eb;text-align:left}.tf-table th{background:#f9fafb;font-weight:900}.tf-range-btn{background:#eef2ff!important;color:#3730a3!important}.tf-auth-wrap{max-width:540px;margin:70px auto;padding:0 20px;font-family:Inter,system-ui,sans-serif}.tf-auth-card{background:#fff;border:1px solid #e5e7eb;border-radius:24px;padding:32px;box-shadow:0 20px 50px rgba(17,24,39,.08)}.tf-auth-card h1{margin:0 0 10px;font-size:34px;letter-spacing:-.04em}.tf-auth-card input[type=text],.tf-auth-card input[type=password]{width:100%;padding:14px;border:1px solid #d1d5db;border-radius:14px}.tf-auth-card input[type=submit]{width:100%;border:0;border-radius:14px;padding:15px 18px;background:#166534;color:#fff;font-weight:900;font-size:16px;cursor:pointer}.tf-register-error{background:#fef2f2;color:#991b1b;border:1px solid #fecaca;border-radius:14px;padding:12px 14px;margin:16px 0}.tf-register-note{font-size:14px;text-align:center;margin-top:16px}.tf-plan-pill{display:inline-flex;background:#dcfce7;color:#166534;border-radius:999px;padding:7px 11px;font-weight:900;font-size:13px;margin-bottom:18px}
@media(max-width:900px){.tf-app{grid-template-columns:1fr}.tf-sidebar{position:relative;height:auto}.tf-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-main{padding:20px}.tf-grid-3,.tf-action-grid,.tf-wizard{grid-template-columns:1fr}.tf-topbar{display:block}}


/* WooTax repair v1.8.2 - stronger app UI */
.tf-app a, .tf-app button, .tf-billing-wrap a, .tf-auth-card input[type=submit], .tf-register-btn { opacity: 1 !important; filter: none !important; }
.tf-btn, .tf-card button, .tf-form button, .tf-notice a, .tf-register-btn { background:#166534 !important; color:#fff !important; border:0 !important; box-shadow:0 10px 20px rgba(22,101,52,.18); }
.tf-btn:hover, .tf-card button:hover, .tf-form button:hover, .tf-notice a:hover { background:#14532d !important; color:#fff !important; }
.tf-sidebar nav a.active { background:#ffffff !important; color:#111827 !important; }
.tf-sidebar nav a:not(.active) { color:#e5e7eb !important; }
.tf-alert.ok { background:#f0fdf4; border-color:#bbf7d0; color:#166534; }
.tf-inline-form { margin-top:12px; }
.tf-inline-form input[type=text] { max-width:100%; }
.tf-step-card .tf-form button { margin-top:4px; }

/* WooTax plan selection in app notice */
.tf-notice-plans{align-items:flex-start!important;}
.tf-notice-plans>div:first-child{min-width:220px;}
.tf-notice-plans>div:first-child span{display:block;margin-top:4px;}
.tf-plan-choice{display:grid;grid-template-columns:repeat(2,minmax(160px,1fr));gap:12px;flex:1;min-width:320px;}
.tf-plan-option{background:#fff;border:1px solid #e5e7eb;border-radius:16px;padding:14px;display:grid;gap:6px;color:#111827;box-shadow:0 8px 20px rgba(17,24,39,.05);}
.tf-plan-option.featured{border:2px solid #166534;background:#f0fdf4;}
.tf-plan-option strong{font-size:15px;}
.tf-plan-option>span:not(.tf-plan-badge):not(.tf-plan-error){color:#6b7280;font-weight:800;}
.tf-plan-option a{display:inline-flex!important;align-items:center;justify-content:center;background:#166534!important;color:#fff!important;border-radius:12px!important;padding:10px 12px!important;font-weight:900!important;text-decoration:none!important;box-shadow:0 10px 20px rgba(22,101,52,.18);}
.tf-plan-badge{justify-self:start;background:#dcfce7;color:#166534;border-radius:999px;padding:5px 9px;font-size:12px;font-weight:900;}
.tf-plan-error{display:inline-flex;background:#fee2e2;color:#991b1b;border-radius:10px;padding:9px 10px;font-weight:900;font-size:13px;}
.tf-plan-option.disabled{opacity:.8;}
@media (max-width: 760px){.tf-plan-choice{grid-template-columns:1fr;min-width:0;width:100%;}.tf-notice-plans{display:grid!important;}}

/* WooTax v2.1.0 UX Clean */
.tf-modern-app{--wt-bg:#f4f7fb;--wt-panel:#ffffff;--wt-text:#0f172a;--wt-muted:#64748b;--wt-border:#e2e8f0;--wt-green:#166534;--wt-green2:#22c55e;--wt-soft:#f0fdf4;background:var(--wt-bg)!important;color:var(--wt-text)!important;grid-template-columns:280px minmax(0,1fr)!important;}
.tf-modern-app .tf-sidebar{background:linear-gradient(180deg,#0f172a,#111827)!important;border-right:1px solid rgba(255,255,255,.06);padding:22px!important;}
.tf-modern-app .tf-brand-app{padding:8px 4px 22px;margin-bottom:10px!important;border-bottom:1px solid rgba(255,255,255,.08)}
.tf-modern-app .tf-brand-app span{background:linear-gradient(135deg,var(--wt-green),var(--wt-green2))!important;box-shadow:0 12px 26px rgba(34,197,94,.22)}
.tf-modern-app .tf-sidebar nav{gap:6px!important;margin-top:18px;}
.tf-modern-app .tf-sidebar nav a{display:flex!important;align-items:center;gap:11px;color:#cbd5e1!important;background:transparent!important;border:1px solid transparent;border-radius:14px!important;padding:12px 13px!important;font-size:14px;}
.tf-modern-app .tf-sidebar nav a i{width:24px;height:24px;display:grid;place-items:center;border-radius:9px;background:rgba(255,255,255,.08);font-style:normal;font-size:12px;color:#fff;}
.tf-modern-app .tf-sidebar nav a.active,.tf-modern-app .tf-sidebar nav a:hover{background:rgba(255,255,255,.1)!important;color:#fff!important;border-color:rgba(255,255,255,.1)}
.tf-modern-app .tf-sidebar nav a.active i{background:#dcfce7;color:var(--wt-green)}
.tf-modern-app .tf-logout{background:rgba(255,255,255,.08)!important;color:#e5e7eb!important;border-radius:14px!important;}
.tf-modern-app .tf-main{padding:32px!important;max-width:1280px!important;}
.tf-modern-app .tf-topbar{background:transparent;margin-bottom:24px!important;}
.tf-modern-app .tf-app-eyebrow{color:var(--wt-green);font-weight:900;text-transform:uppercase;letter-spacing:.08em;font-size:12px;display:block;margin-bottom:6px;}
.tf-modern-app .tf-topbar h1{font-size:38px!important;letter-spacing:-.05em!important;color:var(--wt-text);}
.tf-modern-app .tf-topbar p{font-size:15px;color:var(--wt-muted)!important;}
.tf-modern-app .tf-card,.tf-modern-app .tf-step-card,.tf-modern-app .tf-hero-panel,.tf-modern-app .tf-setup-head{background:rgba(255,255,255,.96)!important;border:1px solid var(--wt-border)!important;border-radius:24px!important;box-shadow:0 18px 48px rgba(15,23,42,.06)!important;}
.tf-modern-app .tf-hero-panel{display:flex;justify-content:space-between;align-items:center;gap:22px;padding:30px;margin-bottom:18px;background:radial-gradient(circle at top right,#dcfce7,transparent 36%),#fff!important;}
.tf-modern-app .tf-hero-panel h2,.tf-modern-app .tf-setup-head h2{font-size:30px;letter-spacing:-.04em;margin:6px 0 8px;}
.tf-modern-app .tf-hero-panel p,.tf-modern-app .tf-setup-head p,.tf-modern-app .tf-card p{color:var(--wt-muted);line-height:1.6;}
.tf-modern-app .tf-grid-3{gap:18px!important;}
.tf-modern-app .tf-stat h3{font-size:24px;margin:10px 0 6px;letter-spacing:-.03em;}
.tf-modern-app .tf-kicker{color:var(--wt-green)!important;}
.tf-modern-app .tf-action-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:14px!important;}
.tf-modern-app .tf-action{background:#f8fafc!important;border:1px solid var(--wt-border)!important;border-radius:18px!important;padding:18px!important;color:var(--wt-text)!important;transition:transform .15s ease,box-shadow .15s ease,border-color .15s ease;}
.tf-modern-app .tf-action strong{display:block;margin-bottom:5px;}
.tf-modern-app .tf-action span{display:block;color:var(--wt-muted);font-weight:600;font-size:13px;}
.tf-modern-app .tf-action:hover{transform:translateY(-2px);border-color:#86efac!important;box-shadow:0 14px 30px rgba(15,23,42,.08);}
.tf-modern-app .tf-wizard-modern{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-bottom:18px;}
.tf-modern-app .tf-setup-head{padding:26px;margin-bottom:18px;}
.tf-modern-app .tf-step-card{padding:22px!important;position:relative;overflow:hidden;}
.tf-modern-app .tf-step-card.done:after{content:'Gespeichert';position:absolute;top:18px;right:18px;background:#dcfce7;color:var(--wt-green);font-size:12px;font-weight:900;border-radius:999px;padding:6px 10px;}
.tf-modern-app .tf-step-head{display:flex;gap:14px;align-items:flex-start;margin-bottom:16px;}
.tf-modern-app .tf-step-head>span{width:42px;height:42px;border-radius:15px;background:#dcfce7;color:var(--wt-green);display:grid;place-items:center;font-weight:950;flex:none;}
.tf-modern-app .tf-step-head h3{margin:0 0 4px;font-size:20px;}
.tf-modern-app .tf-step-head p{margin:0;color:var(--wt-muted);}
.tf-modern-app .tf-form{gap:14px!important;}
.tf-modern-app .tf-row{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px!important;width:100%;}
.tf-modern-app .tf-form label{font-weight:800;color:#334155;font-size:14px;}
.tf-modern-app input[type=text],.tf-modern-app input[type=password],.tf-modern-app input[type=email],.tf-modern-app input[type=url],.tf-modern-app input[type=date],.tf-modern-app input[type=file],.tf-modern-app select{max-width:none!important;width:100%!important;border:1px solid #cbd5e1!important;border-radius:14px!important;padding:13px 14px!important;background:#fff!important;color:#0f172a!important;box-shadow:0 1px 0 rgba(15,23,42,.03)!important;}
.tf-modern-app input:focus,.tf-modern-app select:focus{outline:3px solid rgba(34,197,94,.16)!important;border-color:#22c55e!important;}
.tf-modern-app .tf-btn,.tf-modern-app .tf-card button,.tf-modern-app .tf-form button,.tf-modern-app .tf-notice a,.tf-modern-app .tf-banner a{background:linear-gradient(135deg,var(--wt-green),#15803d)!important;color:#fff!important;border:0!important;border-radius:14px!important;padding:13px 17px!important;font-weight:950!important;box-shadow:0 12px 24px rgba(22,101,52,.18)!important;text-decoration:none!important;}
.tf-modern-app .tf-card button:hover,.tf-modern-app .tf-form button:hover,.tf-modern-app .tf-btn:hover{filter:brightness(.96)!important;}
.tf-modern-app .tf-section{background:#f8fafc!important;border:1px solid var(--wt-border)!important;border-radius:20px!important;padding:20px!important;}
.tf-modern-app .tf-section h4{margin:0 0 14px;font-size:17px;}
.tf-modern-app .tf-check{display:flex!important;align-items:center;gap:8px;background:#fff;border:1px solid var(--wt-border);border-radius:14px;padding:12px;}
.tf-modern-app .tf-status-pill{border-radius:999px!important;padding:9px 13px!important;font-weight:950!important;}
.tf-modern-app .tf-banner,.tf-modern-app .tf-toast{padding:16px 18px;border-radius:18px;margin-bottom:18px;border:1px solid #fde68a;background:#fffbeb;color:#92400e;display:flex;align-items:center;justify-content:space-between;gap:14px;flex-wrap:wrap;box-shadow:0 10px 26px rgba(15,23,42,.04);}
.tf-modern-app .tf-banner strong{display:block;color:inherit;}.tf-modern-app .tf-banner span{display:block;margin-top:3px;}.tf-modern-app .tf-banner.ok,.tf-modern-app .tf-toast.ok{background:#f0fdf4;border-color:#bbf7d0;color:#166534}.tf-modern-app .tf-banner.danger{background:#fef2f2;border-color:#fecaca;color:#991b1b}.tf-modern-app .tf-banner.warn{background:#fffbeb;border-color:#fde68a;color:#92400e}
.tf-modern-app .tf-plan-choice{grid-template-columns:repeat(2,minmax(170px,1fr))!important;gap:12px!important;}
.tf-modern-app .tf-plan-option{border-radius:18px!important;padding:16px!important;}
.tf-modern-app .tf-plan-option.featured{border-color:#22c55e!important;background:#f0fdf4!important;}
.tf-modern-app .tf-table-wrap{overflow:auto;border-radius:16px;border:1px solid var(--wt-border);}
.tf-modern-app .tf-table{background:#fff;}
.tf-modern-app .tf-range-btn{background:#ecfdf5!important;color:#166534!important;border:1px solid #bbf7d0!important;box-shadow:none!important;}
.tf-modern-app .tf-connect-head{align-items:flex-start;}
.tf-modern-app .tf-connect-box h3{margin-top:0;}
.tf-modern-app .tf-compact-form input{margin-top:6px!important;}
.tf-modern-app .tf-next-actions .tf-action-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
@media(max-width:1020px){.tf-modern-app{grid-template-columns:1fr!important}.tf-modern-app .tf-sidebar{position:relative!important;height:auto!important}.tf-modern-app .tf-sidebar nav{grid-template-columns:repeat(2,minmax(0,1fr))}.tf-modern-app .tf-main{padding:20px!important}.tf-modern-app .tf-wizard-modern,.tf-modern-app .tf-grid-3,.tf-modern-app .tf-action-grid,.tf-modern-app .tf-row{grid-template-columns:1fr!important}.tf-modern-app .tf-hero-panel{display:block}.tf-modern-app .tf-hero-panel .tf-btn{margin-top:14px}.tf-modern-app .tf-topbar{display:block!important}}
@media(max-width:640px){.tf-modern-app .tf-sidebar nav{grid-template-columns:1fr}.tf-modern-app .tf-main{padding:14px!important}.tf-modern-app .tf-topbar h1{font-size:30px!important}.tf-modern-app .tf-card,.tf-modern-app .tf-step-card,.tf-modern-app .tf-hero-panel{border-radius:20px!important;padding:18px!important}}


/* WooTax account tab inside app */
.tf-account-card .woocommerce{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#111827;}
.tf-account-card .woocommerce-MyAccount-navigation{float:none;width:100%;margin:0 0 20px;}
.tf-account-card .woocommerce-MyAccount-navigation ul{display:flex;flex-wrap:wrap;gap:8px;list-style:none;padding:0;margin:0;}
.tf-account-card .woocommerce-MyAccount-navigation li{margin:0!important;}
.tf-account-card .woocommerce-MyAccount-navigation a{display:inline-flex;padding:10px 12px;border:1px solid #e5e7eb;border-radius:12px;background:#f9fafb;color:#111827;text-decoration:none;font-weight:800;font-size:14px;}
.tf-account-card .woocommerce-MyAccount-navigation .is-active a,.tf-account-card .woocommerce-MyAccount-navigation a:hover{background:#111827;color:#fff;border-color:#111827;}
.tf-account-card .woocommerce-MyAccount-content{float:none;width:100%;}
.tf-account-card table.shop_table,.tf-account-card .woocommerce table.shop_table{border:1px solid #e5e7eb!important;border-radius:16px!important;overflow:hidden;background:#fff;}
.tf-account-card .woocommerce table.shop_table th,.tf-account-card .woocommerce table.shop_table td{padding:13px 14px!important;border-color:#e5e7eb!important;}
.tf-account-card .woocommerce a.button,.tf-account-card .woocommerce button.button,.tf-account-card .woocommerce input.button{background:#111827!important;color:#fff!important;border-radius:12px!important;font-weight:900!important;padding:11px 14px!important;}
.tf-account-card .woocommerce-info,.tf-account-card .woocommerce-message,.tf-account-card .woocommerce-error{border-radius:14px!important;border-top:0!important;background:#f9fafb!important;color:#111827!important;}
.tf-account-hero{align-items:center;}

/* WooTax v2.1.6 professional app polish */
.tf-modern-app {
  --wt-bg: #f4f7fb;
  --wt-surface: #ffffff;
  --wt-surface-soft: #f8fafc;
  --wt-text: #0f172a;
  --wt-muted: #64748b;
  --wt-border: #e2e8f0;
  --wt-green: #166534;
  --wt-green-2: #22c55e;
  --wt-shadow: 0 18px 45px rgba(15, 23, 42, .075);
  background:
    radial-gradient(circle at 85% 0%, rgba(34,197,94,.14), transparent 28%),
    linear-gradient(180deg, #f8fafc 0%, var(--wt-bg) 100%) !important;
  min-height: 100vh !important;
  grid-template-columns: 282px minmax(0, 1fr) !important;
  color: var(--wt-text) !important;
}
.tf-modern-app * { box-sizing: border-box; }
.tf-modern-app .tf-sidebar {
  background: #0b1220 !important;
  color: #fff !important;
  border-right: 1px solid rgba(255,255,255,.08) !important;
  padding: 24px 18px !important;
  box-shadow: 12px 0 32px rgba(15,23,42,.08) !important;
}
.tf-modern-app .tf-brand-app {
  gap: 12px !important;
  margin-bottom: 28px !important;
  padding: 4px 6px 18px !important;
  border-bottom: 1px solid rgba(255,255,255,.08) !important;
}
.tf-modern-app .tf-brand-app span {
  width: 42px !important;
  height: 42px !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--wt-green), var(--wt-green-2)) !important;
  box-shadow: 0 12px 26px rgba(34,197,94,.22) !important;
}
.tf-modern-app .tf-brand-app strong { font-size: 21px !important; letter-spacing: -.03em !important; }
.tf-modern-app .tf-sidebar nav { display: grid !important; gap: 7px !important; }
.tf-modern-app .tf-sidebar nav a,
.tf-modern-app .tf-logout {
  min-height: 46px !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 12px 13px !important;
  border-radius: 14px !important;
  color: #cbd5e1 !important;
  background: transparent !important;
  font-size: 14px !important;
  font-weight: 850 !important;
  line-height: 1.15 !important;
  border: 1px solid transparent !important;
  transition: background .16s ease, color .16s ease, transform .16s ease, border-color .16s ease !important;
}
.tf-modern-app .tf-sidebar nav a:hover,
.tf-modern-app .tf-sidebar nav a.active {
  background: rgba(255,255,255,.105) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,.11) !important;
  transform: translateX(2px) !important;
}
.tf-modern-app .tf-sidebar nav a i {
  flex: none !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.08) !important;
  color: #fff !important;
  font-size: 13px !important;
}
.tf-modern-app .tf-sidebar nav a.active i { background: #dcfce7 !important; color: var(--wt-green) !important; }
.tf-modern-app .tf-logout { margin-top: 24px !important; background: rgba(255,255,255,.07) !important; text-decoration: none !important; }
.tf-modern-app .tf-main {
  width: 100% !important;
  max-width: 1320px !important;
  padding: 34px clamp(22px, 3vw, 44px) !important;
}
.tf-modern-app .tf-topbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 18px !important;
  margin-bottom: 22px !important;
}
.tf-modern-app .tf-topbar h1 {
  margin: 0 0 7px !important;
  font-size: clamp(30px, 3vw, 42px) !important;
  line-height: 1.02 !important;
  letter-spacing: -.055em !important;
}
.tf-modern-app .tf-topbar p { max-width: 680px !important; }
.tf-modern-app .tf-app-eyebrow,
.tf-modern-app .tf-kicker {
  display: inline-flex !important;
  align-items: center !important;
  color: var(--wt-green) !important;
  font-weight: 950 !important;
  text-transform: uppercase !important;
  letter-spacing: .085em !important;
  font-size: 11.5px !important;
  margin-bottom: 7px !important;
}
.tf-modern-app .tf-status-pill {
  flex: none !important;
  min-height: 38px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 9px 14px !important;
  border-radius: 999px !important;
  font-size: 13px !important;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.45) !important;
}
.tf-modern-app .tf-card,
.tf-modern-app .tf-step-card,
.tf-modern-app .tf-hero-panel,
.tf-modern-app .tf-setup-head {
  background: var(--wt-surface) !important;
  border: 1px solid var(--wt-border) !important;
  border-radius: 24px !important;
  box-shadow: var(--wt-shadow) !important;
  margin-bottom: 18px !important;
}
.tf-modern-app .tf-card,
.tf-modern-app .tf-step-card { padding: 24px !important; }
.tf-modern-app .tf-card h3,
.tf-modern-app .tf-step-card h3 { margin: 0 0 9px !important; letter-spacing: -.025em !important; }
.tf-modern-app .tf-card p,
.tf-modern-app .tf-step-card p,
.tf-modern-app .tf-muted { color: var(--wt-muted) !important; line-height: 1.62 !important; }
.tf-modern-app .tf-grid-3 {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.tf-modern-app .tf-grid-3 > .tf-card,
.tf-modern-app .tf-stat {
  height: 100% !important;
  min-height: 168px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
}
.tf-modern-app .tf-stat h3 { font-size: 25px !important; line-height: 1.1 !important; margin: 9px 0 !important; }
.tf-modern-app .tf-hero-panel {
  min-height: 168px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 24px !important;
  padding: 30px !important;
  background: radial-gradient(circle at 94% 8%, rgba(34,197,94,.2), transparent 34%), #fff !important;
}
.tf-modern-app .tf-hero-panel h2,
.tf-modern-app .tf-setup-head h2 { margin: 2px 0 8px !important; font-size: clamp(25px, 2.4vw, 34px) !important; line-height: 1.08 !important; letter-spacing: -.045em !important; }
.tf-modern-app .tf-action-grid {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 14px !important;
  align-items: stretch !important;
}
.tf-modern-app .tf-action {
  min-height: 92px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  gap: 4px !important;
  background: var(--wt-surface-soft) !important;
  border: 1px solid var(--wt-border) !important;
  border-radius: 18px !important;
  color: var(--wt-text) !important;
  padding: 18px !important;
  box-shadow: none !important;
  font-weight: 900 !important;
}
.tf-modern-app .tf-action:hover { border-color: #86efac !important; box-shadow: 0 14px 30px rgba(15,23,42,.08) !important; transform: translateY(-2px) !important; }
.tf-modern-app .tf-wizard-modern {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 18px !important;
  align-items: stretch !important;
}
.tf-modern-app .tf-wizard-modern > .tf-step-card {
  min-height: 330px !important;
  display: flex !important;
  flex-direction: column !important;
}
.tf-modern-app .tf-step-card .tf-compact-form,
.tf-modern-app .tf-step-card form { margin-top: auto !important; }
.tf-modern-app .tf-step-head { display: flex !important; align-items: flex-start !important; gap: 14px !important; margin-bottom: 18px !important; padding-right: 86px !important; }
.tf-modern-app .tf-step-head > span {
  flex: none !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 15px !important;
  background: #dcfce7 !important;
  color: var(--wt-green) !important;
  display: grid !important;
  place-items: center !important;
  font-weight: 950 !important;
}
.tf-modern-app .tf-step-card.done:after {
  content: 'Fertig' !important;
  top: 18px !important;
  right: 18px !important;
  background: #dcfce7 !important;
  color: var(--wt-green) !important;
  border-radius: 999px !important;
  padding: 7px 10px !important;
  font-size: 12px !important;
  font-weight: 950 !important;
}
.tf-modern-app .tf-form,
.tf-modern-app .tf-compact-form { display: grid !important; gap: 14px !important; width: 100% !important; }
.tf-modern-app .tf-row { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; width: 100% !important; }
.tf-modern-app label { color: #334155 !important; font-weight: 850 !important; font-size: 14px !important; }
.tf-modern-app input[type=text],
.tf-modern-app input[type=password],
.tf-modern-app input[type=email],
.tf-modern-app input[type=url],
.tf-modern-app input[type=date],
.tf-modern-app input[type=file],
.tf-modern-app select,
.tf-modern-app textarea {
  width: 100% !important;
  max-width: none !important;
  min-height: 46px !important;
  margin-top: 7px !important;
  padding: 12px 14px !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 14px !important;
  background: #fff !important;
  color: var(--wt-text) !important;
  box-shadow: 0 1px 0 rgba(15,23,42,.03) !important;
}
.tf-modern-app input:focus,
.tf-modern-app select:focus,
.tf-modern-app textarea:focus { outline: 3px solid rgba(34,197,94,.16) !important; border-color: var(--wt-green-2) !important; }
.tf-modern-app .tf-btn,
.tf-modern-app .tf-card button,
.tf-modern-app .tf-form button,
.tf-modern-app .tf-notice a,
.tf-modern-app .tf-banner a,
.tf-modern-app .tf-plan-option a,
.tf-modern-app .woocommerce a.button,
.tf-modern-app .woocommerce button.button,
.tf-modern-app .woocommerce input.button {
  min-height: 46px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  padding: 12px 17px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, var(--wt-green), #15803d) !important;
  color: #fff !important;
  font-weight: 950 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  box-shadow: 0 12px 24px rgba(22,101,52,.18) !important;
  cursor: pointer !important;
  white-space: nowrap !important;
}
.tf-modern-app .tf-btn:hover,
.tf-modern-app .tf-card button:hover,
.tf-modern-app .tf-form button:hover,
.tf-modern-app .tf-plan-option a:hover { filter: brightness(.96) !important; transform: translateY(-1px) !important; }
.tf-modern-app .tf-range-btn {
  min-height: 38px !important;
  background: #ecfdf5 !important;
  color: var(--wt-green) !important;
  border: 1px solid #bbf7d0 !important;
  box-shadow: none !important;
  padding: 9px 12px !important;
}
.tf-modern-app .tf-plan-choice { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 14px !important; width: 100% !important; min-width: 0 !important; }
.tf-modern-app .tf-plan-option {
  min-height: 152px !important;
  display: flex !important;
  flex-direction: column !important;
  justify-content: space-between !important;
  border: 1px solid var(--wt-border) !important;
  border-radius: 20px !important;
  padding: 18px !important;
  background: #fff !important;
}
.tf-modern-app .tf-plan-option.featured { border: 2px solid var(--wt-green-2) !important; background: #f0fdf4 !important; }
.tf-modern-app .tf-banner,
.tf-modern-app .tf-toast,
.tf-modern-app .tf-alert,
.tf-modern-app .tf-notice {
  border-radius: 18px !important;
  padding: 16px 18px !important;
  border: 1px solid #fde68a !important;
  background: #fffbeb !important;
  color: #92400e !important;
  box-shadow: 0 10px 26px rgba(15,23,42,.04) !important;
}
.tf-modern-app .tf-banner.ok,
.tf-modern-app .tf-toast.ok,
.tf-modern-app .tf-notice.ok { background:#f0fdf4!important; border-color:#bbf7d0!important; color:var(--wt-green)!important; }
.tf-modern-app .tf-banner.danger,
.tf-modern-app .tf-notice.danger { background:#fef2f2!important; border-color:#fecaca!important; color:#991b1b!important; }
.tf-modern-app .tf-table-wrap { width: 100% !important; overflow: auto !important; border: 1px solid var(--wt-border) !important; border-radius: 18px !important; background: #fff !important; }
.tf-modern-app .tf-table { margin: 0 !important; width: 100% !important; border-collapse: separate !important; border-spacing: 0 !important; }
.tf-modern-app .tf-table th { background: #f8fafc !important; color: #334155 !important; font-weight: 950 !important; }
.tf-modern-app .tf-table th,
.tf-modern-app .tf-table td { padding: 13px 14px !important; border-bottom: 1px solid var(--wt-border) !important; vertical-align: middle !important; }
.tf-modern-app .tf-section { background: var(--wt-surface-soft) !important; border: 1px solid var(--wt-border) !important; border-radius: 20px !important; padding: 20px !important; }
.tf-modern-app .tf-section h4 { margin: 0 0 14px !important; font-size: 17px !important; letter-spacing: -.02em !important; }
.tf-modern-app .tf-account-card .woocommerce-MyAccount-navigation ul { gap: 10px !important; }
.tf-modern-app .tf-account-card .woocommerce-MyAccount-navigation a { min-height: 42px !important; border-radius: 13px !important; }
@media (max-width: 1100px) {
  .tf-modern-app { grid-template-columns: 1fr !important; }
  .tf-modern-app .tf-sidebar { position: relative !important; height: auto !important; }
  .tf-modern-app .tf-sidebar nav { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tf-modern-app .tf-main { padding: 22px !important; }
}
@media (max-width: 820px) {
  .tf-modern-app .tf-topbar,
  .tf-modern-app .tf-hero-panel { display: block !important; }
  .tf-modern-app .tf-grid-3,
  .tf-modern-app .tf-action-grid,
  .tf-modern-app .tf-wizard-modern,
  .tf-modern-app .tf-row,
  .tf-modern-app .tf-plan-choice { grid-template-columns: 1fr !important; }
  .tf-modern-app .tf-grid-3 > .tf-card,
  .tf-modern-app .tf-wizard-modern > .tf-step-card { min-height: 0 !important; }
  .tf-modern-app .tf-status-pill { margin-top: 14px !important; }
}
@media (max-width: 620px) {
  .tf-modern-app .tf-sidebar nav { grid-template-columns: 1fr !important; }
  .tf-modern-app .tf-main { padding: 14px !important; }
  .tf-modern-app .tf-card,
  .tf-modern-app .tf-step-card,
  .tf-modern-app .tf-hero-panel,
  .tf-modern-app .tf-setup-head { border-radius: 20px !important; padding: 18px !important; }
  .tf-modern-app .tf-step-head { padding-right: 0 !important; }
  .tf-modern-app .tf-step-card.done:after { position: static !important; display: inline-flex !important; width: fit-content !important; margin-bottom: 12px !important; }
}

/* v2.2.0 Async invoice ZIP UI */
.tf-invoice-hero { margin-bottom: 18px; }
.tf-invoice-grid { align-items: stretch; }
.tf-zip-form { display: grid; gap: 18px; }
.tf-range-actions { display: flex; flex-wrap: wrap; gap: 8px; margin: 4px 0 2px; }
.tf-range-actions .tf-range-btn,
.tf-job-refresh,
.tf-select-all-docs,
.tf-select-none-docs { border: 1px solid #dbe3ef; background: #fff; color: #0f172a; border-radius: 12px; padding: 10px 13px; font-weight: 800; cursor: pointer; min-height: 42px; }
.tf-range-actions .tf-range-btn:hover,
.tf-job-refresh:hover,
.tf-select-all-docs:hover,
.tf-select-none-docs:hover { border-color: #16a34a; color: #166534; background: #f0fdf4; }
.tf-check-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 10px; }
.tf-check-grid label { display: flex; gap: 9px; align-items: center; padding: 11px 12px; border: 1px solid #e5e7eb; border-radius: 12px; background: #f8fafc; font-weight: 700; color: #334155; }
.tf-success-card { border-color: #86efac !important; background: #f0fdf4 !important; }
#taxflow-doc-job { border-color: #bfdbfe; background: linear-gradient(180deg,#eff6ff 0%,#fff 68%); }
#taxflow-doc-job .tf-job-progress-bar { background: linear-gradient(90deg,#16a34a,#22c55e) !important; }
#taxflow-doc-job .tf-job-download .tf-btn { margin-top: 8px; }
.tf-btn-small { min-height: 34px !important; padding: 8px 11px !important; border-radius: 10px !important; font-size: 13px !important; }
@media (max-width: 760px) { .tf-check-grid { grid-template-columns: 1fr; } }


/* WooTax account area styling (checkout styling intentionally removed). */
.tf-modern-app .tf-woo-account-shell {
  padding: 0 !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.tf-modern-app .tf-woo-account-shell .woocommerce {
  display: grid !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 18px !important;
  align-items: start !important;
}
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-navigation,
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-content {
  background: #fff !important;
  border: 1px solid var(--wt-border) !important;
  border-radius: 22px !important;
  box-shadow: 0 14px 36px rgba(15,23,42,.06) !important;
}
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-navigation {
  padding: 12px !important;
}
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-navigation ul {
  list-style: none !important;
  margin: 0 !important;
  padding: 0 !important;
  display: grid !important;
  gap: 8px !important;
}
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-navigation li {
  margin: 0 !important;
}
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-navigation a {
  display: flex !important;
  align-items: center !important;
  min-height: 44px !important;
  padding: 11px 13px !important;
  border-radius: 14px !important;
  color: #334155 !important;
  text-decoration: none !important;
  font-weight: 850 !important;
  background: #fff !important;
}
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-navigation .is-active a,
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-navigation a:hover {
  background: #f0fdf4 !important;
  color: #166534 !important;
}
.tf-modern-app .tf-woo-account-shell .woocommerce-MyAccount-content {
  padding: 24px !important;
  min-height: 360px !important;
}
.tf-modern-app .tf-woo-account-shell table.shop_table,
.tf-modern-app .tf-woo-account-shell .woocommerce-orders-table,
.tf-modern-app .tf-woo-account-shell .shop_table_responsive {
  width: 100% !important;
  border: 1px solid var(--wt-border) !important;
  border-radius: 16px !important;
  overflow: hidden !important;
  border-collapse: separate !important;
  border-spacing: 0 !important;
}
.tf-modern-app .tf-woo-account-shell table.shop_table th,
.tf-modern-app .tf-woo-account-shell table.shop_table td {
  padding: 13px 14px !important;
  border-bottom: 1px solid var(--wt-border) !important;
}
.tf-modern-app .tf-woo-account-shell table.shop_table th {
  background: #f8fafc !important;
  color: #334155 !important;
}
.tf-modern-app .tf-woo-account-shell .button,
.tf-modern-app .tf-woo-account-shell button.button,
.tf-modern-app .tf-woo-account-shell a.button {
  background: #166534 !important;
  color: #fff !important;
  border: 0 !important;
  border-radius: 12px !important;
  min-height: 40px !important;
  padding: 10px 13px !important;
  font-weight: 900 !important;
  text-decoration: none !important;
}
.tf-modern-app .tf-woo-account-shell input.input-text,
.tf-modern-app .tf-woo-account-shell textarea,
.tf-modern-app .tf-woo-account-shell select {
  min-height: 44px !important;
  border: 1px solid #dbe3ef !important;
  border-radius: 13px !important;
  padding: 9px 12px !important;
}
@media (max-width: 900px) {
  .tf-modern-app .tf-woo-account-shell .woocommerce {
    grid-template-columns: 1fr !important;
  }
}

/* v2.2.8 targeted cleanup, based on v2.2.7 styling. Checkout styling intentionally removed. */
.tf-form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}
.tf-invoice-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }


/* WooTax v2.2.21 Connector Download */
.tf-connector-download {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  background: #f8fafc;
}
.tf-connector-download .tf-btn-secondary {
  justify-self: start;
  background: #ffffff !important;
  color: #166534 !important;
  border: 1px solid #bbf7d0 !important;
  box-shadow: none !important;
}

/* WooTax v2.2.22 - Stripe setup helper in wizard */
.tf-helper-box {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 15px 16px;
  display: grid;
  gap: 8px;
  color: #334155;
  line-height: 1.55;
}
.tf-helper-box strong {
  color: #0f172a;
  font-size: 15px;
}
.tf-helper-box span {
  color: #64748b;
}
.tf-helper-box ol {
  margin: 2px 0 4px 18px;
  padding: 0;
  color: #475569;
}
.tf-helper-box li {
  margin: 2px 0;
}
.tf-helper-box code {
  background: #eef2f7;
  border: 1px solid #e2e8f0;
  border-radius: 7px;
  padding: 1px 6px;
  color: #0f172a;
  font-size: 12px;
}
.tf-helper-link {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  border-radius: 12px;
  background: #fff !important;
  border: 1px solid #bbf7d0 !important;
  color: #166534 !important;
  text-decoration: none !important;
  font-weight: 900;
  box-shadow: none !important;
}
.tf-helper-link:hover {
  background: #f0fdf4 !important;
  color: #14532d !important;
}

/* WooTax v2.2.30 branding/product image polish */
.tf-dashboard-logo{height:42px;width:auto;max-width:185px;display:block;object-fit:contain;}
.tf-brand-app{min-height:48px;display:flex!important;align-items:center!important;}
.tf-plan-image{width:100%;max-height:120px;object-fit:contain;border-radius:14px;background:#f8fafc;margin-bottom:10px;display:block;}
.tf-plan-option{overflow:hidden;}
