:root{
  --bg:#070817;
  --ink:#111827;
  --text:#101425;
  --muted:#667085;
  --line:rgba(149,162,196,.28);
  --surface:rgba(255,255,255,.78);
  --white:#fff;
  --primary:#2f8f5b;
  --primary-2:#1f754a;
  --pink:#c99a34;
  --cyan:#20d7c2;
  --lime:#c5ff4a;
  --soft:#f5f7ff;
  --shadow:0 24px 70px rgba(24, 27, 57, .18);
  --radius:30px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Arial,sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at 10% 10%, rgba(214, 173, 84, .34), transparent 22%),
    radial-gradient(circle at 88% 8%, rgba(255, 229, 170, .42), transparent 24%),
    radial-gradient(circle at 82% 76%, rgba(205, 189, 143, .24), transparent 20%),
    linear-gradient(180deg, #fffdf8 0%, #f8f1df 34%, #f6efe4 64%, #fffaf0 100%);
  line-height:1.55;
  overflow-x:hidden;
}
a{color:inherit;text-decoration:none}
button,select,input{font:inherit}
.container{width:min(1180px,calc(100% - 32px));margin-inline:auto;position:relative;z-index:2}
.ambient{position:fixed;z-index:0;pointer-events:none;filter:blur(110px);opacity:.34;border-radius:999px}
.ambient-one{width:430px;height:430px;background:#d7a94b;right:-110px;top:40px}
.ambient-two{width:460px;height:460px;background:#f4d89a;left:-150px;top:350px}
.noise{position:fixed;inset:0;z-index:1;pointer-events:none;opacity:.03;background-image:linear-gradient(90deg,#b4a27a 1px,transparent 1px),linear-gradient(#b4a27a 1px,transparent 1px);background-size:38px 38px}

.site-header{
  position:sticky;top:0;z-index:20;
  background:rgba(255,250,241,.82);
  backdrop-filter:blur(24px);
  border-bottom:1px solid rgba(205,183,132,.28);
}
.nav{height:78px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.brand{display:flex;align-items:center;gap:12px;min-width:220px}
.brand-mark{
  width:48px;height:48px;border-radius:18px;display:grid;place-items:center;
  color:#fff;font-size:25px;font-weight:950;
  background:linear-gradient(135deg,var(--primary),var(--pink));
  box-shadow:0 16px 34px rgba(115,87,255,.3);
}
.brand strong{display:block;font-size:23px;line-height:1}
.brand small{display:block;font-size:12px;color:var(--muted);font-weight:700;margin-top:4px}
.nav nav{display:flex;gap:22px;color:#4a5470;font-weight:800}
.nav nav a:hover{color:var(--primary)}
.nav-cta,.btn.primary{
  background:linear-gradient(135deg,var(--primary),var(--pink));
  color:#fff;
  box-shadow:0 16px 30px rgba(115,87,255,.25);
}
.nav-cta{padding:11px 18px;border-radius:999px;font-weight:900}

.hero{padding:96px 0 62px}
.hero-grid{display:grid;grid-template-columns:1.12fr .88fr;gap:44px;align-items:center}
.eyebrow,.kicker{
  display:inline-flex;align-items:center;gap:8px;padding:9px 14px;border-radius:999px;
  background:rgba(255,255,255,.7);border:1px solid rgba(149,162,196,.26);
  color:#5f43d6;font-size:14px;font-weight:950;box-shadow:0 10px 24px rgba(24,27,57,.08)
}
.eyebrow span{width:8px;height:8px;border-radius:999px;background:var(--cyan);box-shadow:0 0 0 6px rgba(32,215,194,.12)}
h1,h2,h3,h4,p{margin-top:0}
h1{
  margin:18px 0 16px;
  font-size:clamp(42px,6.6vw,78px);
  line-height:.98;
  letter-spacing:-1.8px;
  max-width:850px;
}
.lead{font-size:20px;color:#5f687c;max-width:760px}
.hero-actions,.result-actions,.quiz-actions{display:flex;gap:12px;flex-wrap:wrap;align-items:center}
.hero-actions{margin:30px 0}
.btn{
  border:0;cursor:pointer;border-radius:999px;padding:14px 24px;font-weight:950;
  min-height:52px;display:inline-flex;align-items:center;justify-content:center;transition:.18s ease
}
.btn.big{padding:16px 28px;font-size:18px}
.btn:hover{transform:translateY(-1px)}
.btn.glass{background:rgba(255,255,255,.74);color:#5f43d6;border:1px solid rgba(149,162,196,.28);box-shadow:0 12px 28px rgba(24,27,57,.08)}
.btn.subtle{background:#eef1fb;color:#20263c}
.btn:disabled{opacity:.45;cursor:not-allowed;transform:none}
.hero-metrics{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;max-width:730px}
.hero-metrics div{
  background:rgba(255,255,255,.72);border:1px solid rgba(149,162,196,.24);
  border-radius:24px;padding:16px 18px;box-shadow:0 12px 28px rgba(24,27,57,.07)
}
.hero-metrics strong{display:block;font-size:34px;line-height:1;color:#231b55}
.hero-metrics span{color:#667085;font-weight:800;font-size:14px}

.hero-product{display:flex;justify-content:center}
.phone-shell{
  width:min(430px,100%);
  border-radius:42px;
  padding:14px;
  background:linear-gradient(145deg,rgba(255,251,242,.96),rgba(255,245,224,.62));
  border:1px solid rgba(224,200,146,.75);
  box-shadow:0 34px 90px rgba(91,68,15,.18);
  transform:rotate(-2deg);
}
.phone-top{height:34px;display:flex;gap:7px;align-items:center;padding-inline:14px}
.phone-top span{width:9px;height:9px;border-radius:50%;background:#cfd5e6}
.phone-card{
  min-height:520px;border-radius:32px;padding:28px;
  background:
    radial-gradient(circle at top left,rgba(255,79,163,.22),transparent 34%),
    radial-gradient(circle at bottom right,rgba(32,215,194,.25),transparent 34%),
    linear-gradient(180deg,#12162d,#0a0c19);
  color:#fff;
}
.result-orb{width:118px;height:118px;margin:12px auto 20px;border-radius:38px;background:rgba(255,255,255,.1);display:grid;place-items:center;border:1px solid rgba(255,255,255,.18)}
.result-orb svg{width:82px;height:82px;fill:none}
.result-orb circle{stroke:rgba(255,255,255,.18);stroke-width:10}
.result-orb path{stroke:var(--cyan);stroke-width:9;stroke-linecap:round;stroke-linejoin:round}
.micro{color:rgba(255,255,255,.6);font-weight:900;text-align:center;margin:0}
.phone-card h2{text-align:center;font-size:56px;margin:0 0 18px}
.score-line{height:12px;background:rgba(255,255,255,.12);border-radius:999px;overflow:hidden;margin-bottom:20px}
.score-line span{display:block;height:100%;background:linear-gradient(90deg,var(--cyan),var(--lime));border-radius:999px}
.app-list{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.app-list li{padding:14px;border-radius:18px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);font-weight:850}
.app-list li::before{content:"✦";color:var(--lime);margin-inline-end:8px}

.routes-section,.checker-section,.seo-content,.faq-section{padding:82px 0}
.section-head{text-align:center;max-width:820px;margin:0 auto 34px}
.section-head h2{font-size:clamp(32px,4.8vw,54px);line-height:1.08;letter-spacing:-.9px;margin:12px 0 10px}
.section-head p{font-size:18px;color:var(--muted)}
.route-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.route-card{
  position:relative;overflow:hidden;
  background:rgba(255,255,255,.72);border:1px solid rgba(149,162,196,.24);
  border-radius:var(--radius);padding:24px;min-height:218px;box-shadow:var(--shadow);
  transition:.18s ease;
}
.route-card:hover{transform:translateY(-4px);box-shadow:0 30px 80px rgba(24,27,57,.18)}
.route-card::after{content:"";position:absolute;width:140px;height:140px;border-radius:50%;left:-50px;bottom:-60px;background:radial-gradient(circle,rgba(115,87,255,.18),transparent 70%)}
.route-card.hot::before{content:"מבוקש";position:absolute;top:18px;left:18px;background:#ecfff9;color:#08745f;border:1px solid #b7f2df;padding:6px 10px;border-radius:999px;font-weight:950;font-size:12px}
.route-card span{color:#7357ff;font-weight:950}
.route-card h3{font-size:25px;margin:12px 0 8px}
.route-card p{color:var(--muted);margin:0}

.checker-shell{display:grid;grid-template-columns:310px 1fr;gap:22px;align-items:start}
.progress-panel,.quiz-card,.seo-panel,.faq-section details{
  background:rgba(255,255,255,.74);border:1px solid rgba(149,162,196,.24);
  border-radius:var(--radius);box-shadow:var(--shadow);backdrop-filter:blur(16px)
}
.progress-panel{padding:22px;position:sticky;top:100px}
.progress-title{font-weight:950;font-size:20px;margin-bottom:16px}
.steps{list-style:none;padding:0;margin:0 0 18px;display:grid;gap:12px}
.steps li{display:flex;align-items:center;gap:10px;color:var(--muted);font-weight:850}
.steps li::before{content:attr(data-step-dot);width:32px;height:32px;border-radius:14px;display:grid;place-items:center;background:#f0edff;color:#5f43d6;font-weight:950;font-size:13px}
.steps li.active{color:#5f43d6}
.steps li.active::before{background:linear-gradient(135deg,var(--primary),var(--pink));color:#fff}
.steps li.done{color:#0d9a80}
.steps li.done::before{content:"✓";background:var(--cyan);color:#06231f}
.privacy-box{background:linear-gradient(135deg,#f4fffb,#f6f3ff);border:1px solid rgba(149,162,196,.22);border-radius:22px;padding:15px;color:#334155;font-size:14px}
.quiz-card{overflow:hidden}
.quiz-top{padding:26px;display:flex;align-items:flex-start;justify-content:space-between;gap:18px;border-bottom:1px solid rgba(149,162,196,.22);background:rgba(255,255,255,.52)}
.step-label{color:#5f43d6;font-weight:950;font-size:14px}
.quiz-top h3{font-size:32px;margin:5px 0 6px}
.step-intro{color:var(--muted);margin:0;max-width:620px}
.score-cluster{text-align:left}
.pill{background:#f0edff;color:#5f43d6;border:1px solid #ded7ff;border-radius:999px;padding:12px 16px;font-weight:950;white-space:nowrap}
.tiny-note{font-size:12px;color:var(--muted);margin-top:6px}
.quiz-body{padding:26px}
.quiz-step{display:none;animation:fadeIn .18s ease}.quiz-step.active{display:block}
@keyframes fadeIn{from{opacity:.3;transform:translateY(6px)}to{opacity:1;transform:none}}
.question-grid{display:grid;gap:18px}.question-grid.two-col{grid-template-columns:repeat(2,1fr)}
.question-block{margin-bottom:22px}
.question-block label:first-child{display:block;font-weight:950;margin-bottom:8px;font-size:18px}
.hint{color:var(--muted);margin-bottom:14px}
select,input[type="text"],input[type="tel"]{
  width:100%;background:#fff;border:1px solid rgba(149,162,196,.36);border-radius:20px;
  padding:15px;color:var(--text);outline:none;min-height:54px
}
select:focus,input:focus{border-color:#7357ff;box-shadow:0 0 0 5px rgba(115,87,255,.12)}
.choice-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.choice{
  background:#fff;border:1px solid rgba(149,162,196,.32);border-radius:22px;padding:15px;
  min-height:64px;display:flex;align-items:center;gap:10px;cursor:pointer;font-weight:850;transition:.16s ease
}
.choice:hover{border-color:#9b8cff;background:#fbfaff;transform:translateY(-1px)}
.choice:has(input:checked){border-color:#7357ff;background:#f5f2ff;box-shadow:0 12px 26px rgba(115,87,255,.12)}
.choice input{width:19px;height:19px;accent-color:#7357ff}
.quiz-actions{padding:22px 26px;border-top:1px solid rgba(149,162,196,.22);justify-content:space-between;background:rgba(255,255,255,.62)}
.reset-check-btn{margin-inline:auto;min-width:132px;font-weight:900}
.quiz-actions .btn{white-space:nowrap}
.result-box{display:grid;gap:18px}
.result-header{border-radius:28px;padding:26px;color:#fff;background:linear-gradient(135deg,#7357ff,#ff4fa3)}
.result-header.low{background:linear-gradient(135deg,#6b7280,#374151)}
.result-header.mid{background:linear-gradient(135deg,#f59e0b,#ef4444)}
.result-header.high{background:linear-gradient(135deg,#10b981,#7357ff)}
.result-score{font-weight:950;opacity:.9}.result-header h3{font-size:34px;margin:8px 0}.result-header p{margin:0;color:rgba(255,255,255,.86)}
.result-card{background:#fff;border:1px solid rgba(149,162,196,.26);border-radius:24px;padding:21px}
.result-card h4{font-size:21px;margin:0 0 10px}.result-card ul{margin:0;padding-inline-start:22px}.result-card li{margin-bottom:8px}
.tracks-row{display:flex;gap:8px;flex-wrap:wrap}.track-pill{background:#f4f1ff;border:1px solid #ded7ff;color:#5f43d6;border-radius:999px;padding:8px 12px;font-weight:900;font-size:14px}
.notice{background:#fff8e6;border:1px solid #f3df9d;color:#73510a;border-radius:20px;padding:15px;font-weight:850}
.lead-capture{margin:20px 0 14px;padding:22px;border-radius:24px;background:linear-gradient(135deg,#f4fffb,#f6f3ff);border:1px solid rgba(149,162,196,.24)}
.lead-capture h4{font-size:22px;margin-bottom:6px}.lead-capture p{color:#4b5563;margin-bottom:14px}
.lead-fields{display:grid;grid-template-columns:1fr 1fr auto;gap:10px}

.seo-content{background:linear-gradient(135deg,#11162d,#1b1033);color:#fff}
.content-grid{display:grid;grid-template-columns:1.05fr .95fr;gap:24px;align-items:center}
.content-grid h2{font-size:clamp(32px,4vw,48px);line-height:1.08;margin:12px 0}
.content-grid p{color:rgba(255,255,255,.72);font-size:18px}
.seo-panel{padding:24px;background:rgba(255,255,255,.09);border-color:rgba(255,255,255,.16);box-shadow:none}
.seo-panel h3{font-size:24px}.seo-panel ul{margin:0;padding-inline-start:22px}.seo-panel li{margin-bottom:10px;color:rgba(255,255,255,.78)}
.faq-section details{box-shadow:none;padding:19px 22px;margin-bottom:12px}
.faq-section summary{cursor:pointer;font-size:18px;font-weight:950}.faq-section details p{color:var(--muted);margin:12px 0 0}
.site-footer{padding:30px 0;background:#0b0d19;color:#fff}.footer-inner{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.footer-inner p{margin:0}.disclaimer{color:rgba(255,255,255,.62);font-size:14px}

.article-hero{padding:72px 0 34px}
.article{max-width:850px;margin:0 auto;padding:34px;background:rgba(255,255,255,.78);border:1px solid rgba(149,162,196,.24);border-radius:30px;box-shadow:var(--shadow)}
.article h1{font-size:clamp(34px,5vw,56px);line-height:1.05}
.article h2{font-size:30px;margin-top:30px}
.article p,.article li{color:#4b5563;font-size:18px}
.article-cta{margin-top:26px;padding:22px;border-radius:24px;background:linear-gradient(135deg,#f4fffb,#f6f3ff);border:1px solid rgba(149,162,196,.24)}

@media (max-width:980px){
  .nav nav,.nav-cta{display:none}
  .hero-grid,.checker-shell,.route-grid,.content-grid,.lead-fields,.question-grid.two-col{grid-template-columns:1fr}
  .progress-panel{position:static}.score-cluster{text-align:right}.phone-shell{transform:none}.hero-metrics{grid-template-columns:1fr}
}
@media (max-width:680px){
  h1{font-size:42px}.hero{padding-top:70px}.choice-grid{grid-template-columns:1fr}.quiz-top{flex-direction:column}.phone-card{min-height:auto}.route-card{min-height:auto}
}
@media print{
  .site-header,.hero,.routes-section,.progress-panel,.quiz-actions,.result-actions,.seo-content,.faq-section,.site-footer,.lead-capture{display:none!important}
  body{background:#fff}.checker-section{padding:0}.checker-shell{display:block}.quiz-card{box-shadow:none;border:0}.quiz-step{display:none!important}.quiz-step.result-step{display:block!important}
}


/* Client-flow cleanup: spouse question is displayed only when family status is married */
.spouse-only{display:none}
.spouse-only.is-visible{display:block}

/* Early-stop screen uses the same result styling but is not counted in the stepper */
.early-stop-step .result-actions{margin-top:12px}

/* Keep the homepage focused on the checker; SEO pages remain available separately */
.checker-section{padding-top:58px}


/* Floating discussion forum: hidden drawer, does not take page space */
.forum-fab{
  position:fixed;
  left:22px;
  bottom:22px;
  z-index:60;
  border:0;
  border-radius:999px;
  padding:12px 16px;
  display:flex;
  align-items:center;
  gap:8px;
  color:#fff;
  cursor:pointer;
  font-weight:950;
  background:linear-gradient(135deg,var(--primary),var(--pink));
  box-shadow:0 18px 38px rgba(115,87,255,.26);
}
.forum-fab span{font-size:20px}
.forum-fab:hover{transform:translateY(-1px)}
.forum-drawer{
  position:fixed;
  inset:0;
  z-index:80;
  display:none;
}
.forum-drawer.is-open{display:block}
.forum-backdrop{
  position:absolute;
  inset:0;
  background:rgba(8,10,24,.34);
  backdrop-filter:blur(8px);
}
.forum-panel{
  position:absolute;
  left:16px;
  bottom:16px;
  width:min(460px,calc(100% - 32px));
  max-height:min(720px,calc(100dvh - 32px));
  overflow:auto;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(149,162,196,.28);
  border-radius:30px;
  box-shadow:0 30px 90px rgba(8,10,24,.30);
  padding:20px;
  animation:forumSlide .18s ease;
}
@keyframes forumSlide{from{opacity:.35;transform:translateY(18px) scale(.98)}to{opacity:1;transform:none}}
.forum-head{
  display:flex;
  justify-content:space-between;
  align-items:flex-start;
  gap:12px;
  margin-bottom:16px;
}
.forum-kicker{
  margin:0 0 5px;
  color:#5f43d6;
  font-weight:950;
  font-size:13px;
}
.forum-head h2{
  margin:0;
  font-size:26px;
  line-height:1.1;
}
.forum-head span{
  display:block;
  color:var(--muted);
  font-weight:750;
  margin-top:5px;
}
.forum-close{
  width:38px;
  height:38px;
  border:0;
  border-radius:14px;
  cursor:pointer;
  background:#f1f3fb;
  color:#20263c;
  font-size:25px;
  line-height:1;
}
.forum-tabs{
  display:flex;
  gap:8px;
  overflow:auto;
  padding-bottom:8px;
  margin-bottom:12px;
}
.forum-tab{
  border:1px solid rgba(149,162,196,.32);
  background:#fff;
  color:#4b5563;
  border-radius:999px;
  padding:9px 12px;
  white-space:nowrap;
  cursor:pointer;
  font-weight:850;
}
.forum-tab.active{
  background:#f4f1ff;
  border-color:#7357ff;
  color:#5f43d6;
}
.forum-compose{
  background:linear-gradient(135deg,#f4fffb,#f6f3ff);
  border:1px solid rgba(149,162,196,.24);
  border-radius:22px;
  padding:14px;
  margin-bottom:14px;
}
.forum-compose label{
  display:block;
  font-weight:950;
  margin-bottom:7px;
}
.forum-compose textarea{
  width:100%;
  resize:vertical;
  border:1px solid rgba(149,162,196,.36);
  border-radius:18px;
  padding:12px;
  outline:none;
  margin-bottom:10px;
}
.forum-compose textarea:focus{
  border-color:#7357ff;
  box-shadow:0 0 0 5px rgba(115,87,255,.12);
}
.forum-note{
  color:var(--muted);
  font-size:13px;
  font-weight:750;
  margin:8px 0 0;
}
.forum-list{
  display:grid;
  gap:10px;
}
.forum-item{
  background:#fff;
  border:1px solid rgba(149,162,196,.24);
  border-radius:18px;
  padding:13px;
}
.forum-item-top{
  display:flex;
  justify-content:space-between;
  gap:10px;
  align-items:center;
  margin-bottom:7px;
}
.forum-topic-pill{
  background:#f4f1ff;
  color:#5f43d6;
  border-radius:999px;
  padding:5px 9px;
  font-size:12px;
  font-weight:950;
}
.forum-date{
  color:var(--muted);
  font-size:12px;
  font-weight:750;
}
.forum-item p{
  margin:0;
  color:#344054;
  font-weight:750;
}
.forum-empty{
  padding:16px;
  border-radius:18px;
  border:1px dashed rgba(149,162,196,.48);
  color:var(--muted);
  font-weight:800;
  text-align:center;
}
@media (max-width:680px){
  .forum-fab{left:14px;bottom:14px}
  .forum-panel{left:10px;bottom:10px;width:calc(100% - 20px);max-height:calc(100dvh - 20px)}
}
@media print{
  .forum-fab,.forum-drawer{display:none!important}
}


/* Simulator-aligned upgrade */
.sim-mini-panel,.upload-panel{
  margin-top:20px;
  padding:20px;
  border-radius:26px;
  background:linear-gradient(135deg,#f8fbff,#f7f2ff);
  border:1px solid rgba(149,162,196,.28);
}
.sim-mini-panel h4,.upload-panel h4{
  margin:0 0 6px;
  font-size:22px;
}
.sim-mini-panel p,.upload-panel p{
  color:var(--muted);
  margin-bottom:16px;
}
.children-grid{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin-bottom:18px;
}
.children-grid label{
  display:grid;
  gap:7px;
  color:#344054;
  font-weight:850;
  font-size:14px;
}
.children-grid input,
.sim-mini-panel input[type="number"]{
  width:100%;
  min-height:46px;
  border-radius:16px;
  border:1px solid rgba(149,162,196,.36);
  padding:10px;
  background:#fff;
}
.upload-panel input[type="file"]{
  width:100%;
  background:#fff;
  border:1px dashed rgba(115,87,255,.5);
  border-radius:18px;
  padding:14px;
}
.uploaded-files-list{
  margin-top:12px;
  display:grid;
  gap:8px;
  color:#344054;
  font-weight:800;
}
.uploaded-file{
  padding:10px 12px;
  border-radius:14px;
  background:#fff;
  border:1px solid rgba(149,162,196,.24);
}
.sim-map-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:10px;
}
.sim-map-item{
  background:#fff;
  border:1px solid rgba(149,162,196,.24);
  border-radius:18px;
  padding:13px;
}
.sim-code{
  display:inline-flex;
  margin-inline-end:8px;
  padding:4px 8px;
  border-radius:999px;
  color:#5f43d6;
  background:#f4f1ff;
  font-weight:950;
  font-size:13px;
}
.sim-map-item strong{
  display:block;
  margin-bottom:5px;
}
.sim-map-item p{
  margin:0;
  color:var(--muted);
  font-size:14px;
}
@media (max-width:980px){
  .children-grid,.sim-map-grid{grid-template-columns:1fr 1fr}
}
@media (max-width:640px){
  .children-grid,.sim-map-grid{grid-template-columns:1fr}
}


/* Mode selection + OCR/self-filing upgrade */
.mode-panel{
  margin-bottom:20px;
  padding:20px;
  border-radius:28px;
  background:linear-gradient(135deg,#f8fbff,#f7f2ff);
  border:1px solid rgba(149,162,196,.28);
}
.mode-panel h4{
  margin:0 0 12px;
  font-size:22px;
}
.mode-options{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px;
}
.mode-card{
  display:flex;
  gap:12px;
  align-items:flex-start;
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(149,162,196,.28);
  cursor:pointer;
  transition:.16s ease;
}
.mode-card:hover{border-color:#7357ff;transform:translateY(-1px)}
.mode-card:has(input:checked){
  background:#f5f2ff;
  border-color:#7357ff;
  box-shadow:0 12px 26px rgba(115,87,255,.12);
}
.mode-card input{margin-top:4px;accent-color:#7357ff}
.mode-card strong{display:block;font-size:18px}
.mode-card small{display:block;color:var(--muted);font-weight:750;margin-top:4px}

.doc-type-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:14px 0;
}
.doc-type-grid label{
  display:flex;
  gap:8px;
  align-items:center;
  padding:11px 12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(149,162,196,.26);
  font-weight:850;
}
.doc-type-grid input{accent-color:#7357ff}
.ocr-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-top:12px;
}
.ocr-status{
  margin-top:12px;
  padding:12px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(149,162,196,.26);
  color:#344054;
  font-weight:850;
}
.ocr-status.is-working{background:#fff8e6;border-color:#f3df9d;color:#73510a}
.ocr-status.is-done{background:#ecfff9;border-color:#b7f2df;color:#08745f}
.ocr-status.is-error{background:#fff0f3;border-color:#ffb6c9;color:#a1123a}
.ocr-preview{
  margin-top:12px;
  padding:12px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(149,162,196,.24);
}
.ocr-preview summary{
  cursor:pointer;
  font-weight:950;
}
.ocr-preview pre{
  white-space:pre-wrap;
  direction:ltr;
  text-align:left;
  max-height:260px;
  overflow:auto;
  color:#344054;
  font-size:13px;
}
.self-filing-report{
  border:2px solid rgba(115,87,255,.28);
}
.report-table{
  width:100%;
  border-collapse:collapse;
  overflow:hidden;
  border-radius:16px;
}
.report-table th,.report-table td{
  border:1px solid rgba(149,162,196,.24);
  padding:10px;
  text-align:right;
  vertical-align:top;
}
.report-table th{
  background:#f4f1ff;
  color:#5f43d6;
}
.decision-badge{
  display:inline-flex;
  padding:8px 12px;
  border-radius:999px;
  font-weight:950;
  background:#f4f1ff;
  color:#5f43d6;
}
.decision-badge.pro{background:#fff8e6;color:#73510a}
.decision-badge.self{background:#ecfff9;color:#08745f}
@media(max-width:850px){
  .mode-options,.doc-type-grid{grid-template-columns:1fr}
}
@media print{
  .mode-panel,.upload-panel,.forum-fab,.forum-drawer,.lead-capture,.quiz-actions,.progress-panel{display:none!important}
  .self-filing-report{display:block!important;border:0}
}


/* Separate Taxly modes: quick eligibility vs self-filing */
.mode-quick,
.mode-self-file{
  display:none;
}
body.taxly-mode-quick .mode-quick{
  display:block;
}
body.taxly-mode-selfFile .mode-self-file{
  display:block;
}
body.taxly-mode-quick .sim-mini-panel.mode-self-file,
body.taxly-mode-quick .upload-panel.mode-self-file{
  display:none!important;
}
body.taxly-mode-selfFile .quick-mode-note{
  display:none!important;
}
.quick-mode-note,
.self-mode-note{
  margin:0 0 20px;
  padding:16px 18px;
  border-radius:22px;
  border:1px solid rgba(149,162,196,.28);
  color:#344054;
  font-weight:800;
}
.quick-mode-note{
  background:linear-gradient(135deg,#ecfff9,#f7fbff);
}
.self-mode-note{
  background:linear-gradient(135deg,#f4f1ff,#fff7fb);
}
.quick-mode-note strong,
.self-mode-note strong{
  color:#5f43d6;
}
.result-card.mode-self-file,
.result-card.mode-quick{
  display:block;
}
body.taxly-mode-quick .result-card.mode-self-file{
  display:none!important;
}
body.taxly-mode-selfFile .result-card.mode-quick{
  display:none!important;
}


/* Hero + contact CTA refresh */
.hero-highlight{
  background:linear-gradient(135deg,#2f8f5b,#c99a34);
  -webkit-background-clip:text;
  background-clip:text;
  color:transparent;
}
h1{
  font-size:clamp(38px,6vw,70px);
  line-height:1.03;
  letter-spacing:-1.3px;
  max-width:780px;
}
.lead{
  font-size:19px;
  color:#667085;
  max-width:690px;
}
.result-header.mid{
  background:linear-gradient(135deg,#ff9e1b,#ff6a3d);
}
.lead-capture{
  margin:20px 0 14px;
  padding:22px;
  border-radius:24px;
  background:linear-gradient(135deg,#f4f1ff,#fff7fb);
  border:1px solid rgba(149,162,196,.24);
}
.lead-capture h4{font-size:22px;margin-bottom:6px}
.lead-capture p{color:#4b5563;margin-bottom:14px}
.lead-contact-actions{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:12px;
}
.contact-inline{
  display:flex;
  flex-direction:column;
  gap:2px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff;
  border:1px solid rgba(149,162,196,.24);
}
.contact-inline strong{
  color:#5f43d6;
  font-size:18px;
}
.contact-inline span{
  color:#667085;
  font-weight:750;
}


/* Luxury gold hero image */
.phone-shell-image{overflow:hidden}
.hero-phone-image{display:block;width:100%;height:auto;border-radius:32px;box-shadow:0 18px 40px rgba(35,27,85,.18)}


/* Final selected gold hero */
.hero-selected{
  padding:34px 0 54px;
}
.selected-hero-card{
  position:relative;
  border-radius:34px;
  overflow:hidden;
  border:1px solid rgba(212, 181, 111, .38);
  background:linear-gradient(135deg,#fff8e9,#fffdf7);
  box-shadow:0 34px 90px rgba(92, 69, 22, .18);
}
.selected-hero-card img{
  display:block;
  width:100%;
  height:auto;
}
.hero-accessible-copy{
  position:absolute;
  width:1px;
  height:1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  clip-path:inset(50%);
  white-space:nowrap;
}
@media (max-width:760px){
  .hero-selected{
    padding:22px 0 34px;
  }
  .selected-hero-card{
    border-radius:22px;
  }
}


/* Clean start + OCR autofill visibility */
.checker-head-clean{margin-bottom:18px}
.quick-mode-note,.self-mode-note{display:none!important}
.extracted-rubrics-panel{
  margin-top:12px;
  padding:14px;
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(149,162,196,.24);
}
.extracted-rubrics-panel strong{display:block;font-size:17px;margin-bottom:4px;color:#111827}
.extracted-rubrics-panel p{margin:0 0 10px;color:#667085;font-weight:750}
.extracted-rubrics-list{display:grid;gap:8px}
.extracted-rubric-row{
  display:grid;
  grid-template-columns:90px 1fr 150px;
  gap:10px;
  align-items:center;
  padding:10px 12px;
  border-radius:14px;
  background:#f8fafc;
  border:1px solid rgba(149,162,196,.22);
  font-weight:850;
}
.extracted-rubric-row .code{color:#5f43d6;font-weight:950}
.extracted-rubric-row .amount{text-align:left;direction:ltr;color:#08745f;font-weight:950}
@media(max-width:700px){.extracted-rubric-row{grid-template-columns:1fr}.extracted-rubric-row .amount{text-align:right}}


/* Structured document upload matrix */
.docs-matrix-panel{
  margin-top:18px;
  border-radius:28px;
  overflow:hidden;
  border:1px solid rgba(149,162,196,.22);
  background:linear-gradient(180deg,rgba(255,255,255,.82),rgba(250,248,255,.92));
}
.docs-matrix-head,
.docs-row{
  display:grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap:14px;
  align-items:stretch;
}
.docs-matrix-head{
  padding:16px 18px;
  background:linear-gradient(135deg,#f8f3e8,#f4f1ff);
  border-bottom:1px solid rgba(149,162,196,.18);
}
.docs-matrix-title{
  font-weight:950;
  color:#1b1e34;
  font-size:16px;
}
.docs-matrix-body{
  padding:16px;
  display:grid;
  gap:12px;
}
.docs-row{
  padding:12px;
  border-radius:22px;
  background:rgba(255,255,255,.76);
  border:1px solid rgba(149,162,196,.16);
}
.doc-label{
  display:flex;
  align-items:center;
  justify-content:flex-start;
  padding:0 8px;
  font-weight:900;
  color:#1b1e34;
}
.doc-upload-slot{
  position:relative;
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:4px;
  min-height:88px;
  border-radius:22px;
  padding:14px 16px;
  background:linear-gradient(135deg,#fff,#f7fafc);
  border:1px dashed rgba(115,87,255,.32);
  cursor:pointer;
  transition:.18s ease;
}
.doc-upload-slot:hover{
  transform:translateY(-1px);
  border-color:rgba(19,184,135,.55);
  box-shadow:0 10px 24px rgba(24,27,57,.06);
}
.doc-upload-slot input{
  position:absolute;
  inset:0;
  opacity:0;
  cursor:pointer;
}
.slot-main{
  font-weight:900;
  color:#1b1e34;
}
.slot-sub{
  font-size:13px;
  color:#667085;
  font-weight:750;
}
.slot-sub.is-filled{
  color:#0b7e5f;
}
.docs-matrix-note{
  padding:0 18px 18px;
  color:#667085;
  font-size:14px;
  font-weight:750;
}
.uploaded-files-list{
  margin-top:14px;
  display:grid;
  gap:10px;
}
.uploaded-file-group{
  border-radius:18px;
  border:1px solid rgba(149,162,196,.2);
  background:#fff;
  padding:12px 14px;
}
.uploaded-file-group strong{
  display:block;
  margin-bottom:6px;
  color:#1b1e34;
}
.uploaded-file-group ul{
  margin:0;
  padding-right:18px;
}
.uploaded-file-group li{
  color:#475467;
  margin:4px 0;
}
@media (max-width:900px){
  .docs-matrix-head{
    display:none;
  }
  .docs-row{
    grid-template-columns:1fr;
  }
  .spouse-col{
    display:block;
  }
  .doc-label{
    padding-bottom:4px;
  }
}


/* Numeric result + document upload refinements */
.doc-label{
  flex-direction:column;
  align-items:flex-start!important;
  gap:3px;
}
.doc-label em{
  font-style:normal;
  color:#667085;
  font-size:13px;
  font-weight:800;
}
.doc-label small{
  color:#667085;
  font-size:12px;
  font-weight:750;
  line-height:1.35;
}
.doc-upload-combo{
  display:grid;
  gap:8px;
}
.doc-count-label{
  display:grid;
  gap:6px;
  font-size:13px;
  font-weight:850;
  color:#344054;
}
.doc-count-label input{
  width:100%;
  min-height:42px;
  border-radius:14px;
  border:1px solid rgba(149,162,196,.32);
  padding:8px 11px;
  background:#fff;
}
.numeric-tax-result{
  border:2px solid rgba(19,184,135,.26);
  background:linear-gradient(135deg,#f4fffb,#fffaf0);
}
.numeric-tax-result.refund{
  border-color:rgba(19,184,135,.36);
}
.numeric-tax-result.pay{
  border-color:rgba(239,68,68,.28);
  background:linear-gradient(135deg,#fff7f7,#fffaf0);
}
.tax-result-amount{
  font-size:clamp(34px,5vw,58px);
  font-weight:950;
  line-height:1;
  margin:8px 0 10px;
}
.tax-result-amount.refund{color:#0b7e5f}
.tax-result-amount.pay{color:#b42318}
.tax-calc-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  margin-top:14px;
}
.tax-calc-mini{
  border-radius:18px;
  background:#fff;
  border:1px solid rgba(149,162,196,.22);
  padding:12px;
}
.tax-calc-mini strong{
  display:block;
  font-size:20px;
  color:#111827;
}
.tax-calc-mini span{
  color:#667085;
  font-size:13px;
  font-weight:800;
}
.tax-calc-warning{
  margin-top:14px;
  padding:12px 14px;
  border-radius:16px;
  background:#fff8e6;
  border:1px solid #f3df9d;
  color:#73510a;
  font-weight:850;
}
@media(max-width:900px){
  .tax-calc-grid{grid-template-columns:1fr 1fr}
}
@media(max-width:560px){
  .tax-calc-grid{grid-template-columns:1fr}
}


/* Single/no-tax smart stop */
.single-no-tax-stop-step .result-card strong{color:#0b7e5f}
.single-no-tax-stop-step .result-actions{margin-top:14px}

/* Children input simplified: user enters only birth years; Taxly derives the age buckets */
.children-birth-panel .birth-years-box{
  display:grid;
  gap:10px;
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(149,162,196,.28);
  box-shadow:0 12px 30px rgba(20,25,50,.05);
  margin-bottom:18px;
}
.children-birth-panel .birth-years-box label{
  font-weight:950;
  color:#101828;
  font-size:17px;
}
.children-birth-panel .birth-years-box input{
  width:100%;
  min-height:54px;
  border-radius:18px;
  border:1px solid rgba(149,162,196,.38);
  padding:12px 14px;
  background:#fff;
  font-size:18px;
  font-weight:850;
}
.children-birth-panel .birth-years-box small{
  color:var(--muted);
  font-weight:750;
}
.children-benefit-summary{
  padding:12px 14px;
  border-radius:18px;
  background:linear-gradient(135deg,#eefcf5,#f8fbff);
  border:1px solid rgba(23,170,104,.18);
  color:#16533d;
  font-weight:850;
  line-height:1.65;
}
.children-hidden-age-buckets{display:none!important}

.auto-rubrics-panel .auto-rubrics-placeholder{
  display:grid;
  gap:6px;
  padding:16px;
  border-radius:22px;
  background:#fff;
  border:1px solid rgba(149,162,196,.28);
  box-shadow:0 12px 30px rgba(20,25,50,.05);
  margin-bottom:14px;
}
.auto-rubrics-placeholder strong{
  color:#101828;
  font-size:18px;
  font-weight:950;
}
.auto-rubrics-placeholder span{
  color:var(--muted);
  font-weight:800;
}
.manual-overrides{
  border:1px dashed rgba(115,87,255,.34);
  border-radius:20px;
  background:rgba(255,255,255,.64);
  padding:0;
  overflow:hidden;
}
.manual-overrides summary{
  cursor:pointer;
  padding:14px 16px;
  font-weight:950;
  color:#34266f;
  list-style:none;
}
.manual-overrides summary::-webkit-details-marker{display:none}
.manual-overrides[open]{padding-bottom:14px}
.manual-overrides[open] summary{border-bottom:1px solid rgba(149,162,196,.22);margin-bottom:14px}
.manual-overrides .question-grid{padding-inline:14px}

/* Smart document intake engine */
.smart-empty-state{
  padding:14px 16px;
  border-radius:18px;
  background:#fff8e6;
  border:1px solid #f3df9d;
  color:#73510a;
  font-weight:850;
  line-height:1.55;
}
.smart-rubric-section{
  display:grid;
  gap:8px;
}
.smart-rubric-section + .smart-rubric-section{
  margin-top:12px;
  padding-top:12px;
  border-top:1px solid rgba(149,162,196,.22);
}
.smart-rubric-section > strong{
  font-size:15px;
  color:#101828;
  margin:0 0 2px;
}
.smart-confidence-row.high{
  background:linear-gradient(135deg,#f4fffb,#ffffff);
  border-color:rgba(19,184,135,.26);
}
.smart-confidence-row.review{
  background:linear-gradient(135deg,#fffaf0,#ffffff);
  border-color:rgba(245,158,11,.22);
}
.smart-confidence-row small{
  display:block;
  margin-top:3px;
  font-size:11px;
  line-height:1.25;
  color:#667085;
  font-weight:800;
  direction:rtl;
  text-align:inherit;
}
.smart-confidence-row .amount small{
  color:#475467;
  direction:rtl;
  text-align:left;
}
@media(max-width:700px){
  .smart-confidence-row .amount small{text-align:right}
}


/* Form 135 print-style report */
.form135-print-card{
  border:2px solid rgba(17,24,39,.18);
  background:#fff;
  color:#111827;
  page-break-inside:avoid;
}
.form135-header{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  border-bottom:2px solid #111827;
  padding-bottom:10px;
  margin-bottom:12px;
}
.form135-header h4{margin:0 0 6px;font-size:24px}
.form135-header p{margin:0;color:#475467;font-weight:800}
.form135-year{border:2px solid #111827;border-radius:10px;padding:10px 14px;font-weight:950;white-space:nowrap}
.form135-section{margin-top:14px;break-inside:avoid}
.form135-section h5{margin:0 0 7px;font-size:17px;border-bottom:1px solid #111827;padding-bottom:4px}
.form135-table{width:100%;border-collapse:collapse;font-size:13px;background:#fff}
.form135-table th,.form135-table td{border:1px solid #111827;padding:6px 7px;vertical-align:top;text-align:right}
.form135-table th{background:#f3f4f6;font-weight:950}
.form135-line{width:54px;text-align:center!important;font-weight:950}
.form135-desc{width:48%}
.form135-cell{width:20%;height:34px;background:#fff;position:relative}
.form135-cell.empty{background:#f9fafb}
.form135-cell.has-value{background:#fffdf2;box-shadow:inset 0 0 0 2px rgba(250,204,21,.35)}
.form135-code{display:inline-flex;min-width:38px;justify-content:center;border:1px solid #111827;border-radius:3px;padding:1px 5px;margin-left:7px;font-weight:950;background:#fff}
.form135-amount{font-size:16px;font-weight:950;letter-spacing:.01em}
.form135-cell small{display:block;color:#667085;margin-top:2px;font-size:11px}
.form135-note{margin-top:10px;border:1px solid #111827;border-radius:10px;padding:9px 12px;background:#fffdf2;font-weight:850}
@media(max-width:760px){
  .form135-header{display:block}
  .form135-year{display:inline-block;margin-top:10px}
  .form135-table{font-size:12px}
  .form135-table th,.form135-table td{padding:5px}
}
@media print{
  .form135-print-card{border:0!important;box-shadow:none!important;padding:0!important;margin:0!important}
  .form135-header{border-bottom:2px solid #000}
  .form135-table th,.form135-table td{border-color:#000!important;color:#000!important}
  .numeric-tax-result,.report-table,.contact-inline,.self-filing-report>h4,.self-filing-report>p,.self-filing-report>ul,.self-filing-report>.notice{break-inside:avoid}
}

/* UX cleanup requested: keep the data/fields in the DOM, but do not show the central manual-rubrics screen by default. */
.is-hidden-ux{display:none!important}
.question-block.is-collapsed{display:none!important}
.auto-tax-mode-note .hint{margin:0;color:#667085;font-weight:800;line-height:1.7}
.tax-calc-breakdown{margin-top:12px;display:grid;gap:7px;font-weight:850;color:#475467}
.tax-calc-breakdown span{display:block;padding:8px 10px;border:1px solid rgba(149,162,196,.25);border-radius:12px;background:rgba(255,255,255,.68)}

@media print{
  body.print-form135-only *{visibility:hidden!important}
  body.print-form135-only .form135-print-card,
  body.print-form135-only .form135-print-card *{visibility:visible!important}
  body.print-form135-only .form135-print-card{position:absolute;inset:0 auto auto 0;width:100%;background:#fff!important;color:#000!important;direction:rtl}
  body.print-form135-only .form135-print-card .form135-note{border-color:#000!important;background:#fff!important}
}

/* Exact Form 135 print replica: official 135 page image + dynamic overlays. */
.form135-exact-print{background:#fff!important;color:#000!important;direction:rtl}
.form135-print-title{margin-bottom:14px;padding:12px 14px;border:1px solid rgba(17,24,39,.22);border-radius:16px;background:#fffdf2}
.form135-print-title h4{margin:0 0 4px;font-size:22px}
.form135-print-title p{margin:0;color:#344054;font-weight:850}
.f135-page{position:relative;width:min(100%,900px);margin:18px auto;background:#fff;box-shadow:0 12px 36px rgba(17,24,39,.16);page-break-after:always;break-after:page;direction:ltr}
.f135-page img{display:block;width:100%;height:auto;user-select:none;-webkit-user-drag:none}
.f135-mask{position:absolute;background:#fff;z-index:2;display:block}.f135-mask.office{background:#f2f2f2}
.f135-value{position:absolute;z-index:3;display:flex;align-items:center;justify-content:center;padding:0 5px;font-family:Arial,"Noto Sans Hebrew",sans-serif;font-size:12px;font-weight:700;color:#000;line-height:1;box-sizing:border-box;direction:ltr;text-align:center;white-space:nowrap;overflow:hidden;background:transparent}
.f135-value.name,.f135-value.id,.f135-value.date{justify-content:center;text-align:center;direction:rtl;font-size:11px;font-weight:700}
.f135-value.rtl{direction:rtl;text-align:center;justify-content:center;padding:0;font-family:Arial,"Noto Sans Hebrew",sans-serif}
.f135-value.form-title{font-size:19px;font-weight:900}
.f135-value.form-subtitle{font-size:14px;font-weight:800}
.f135-value.small-year{font-size:12px;font-weight:800}
.f135-value.small-year-field{justify-content:center;text-align:center;font-size:12px;font-weight:800}
.f135-value.tax042{font-weight:800}
.form135-review-table{margin:10px auto 0;max-width:900px}
@media(max-width:760px){.f135-value{font-size:10px}.f135-value.name,.f135-value.id,.f135-value.date{font-size:9px}.f135-value.form-title{font-size:14px}.f135-value.form-subtitle{font-size:10px}.form135-print-title{font-size:13px}}
@media print{
  @page{size:A4 portrait;margin:0}
  body.print-form135-only{background:#fff!important}
  body.print-form135-only *{visibility:hidden!important}
  body.print-form135-only .form135-exact-print,
  body.print-form135-only .form135-exact-print *{visibility:visible!important}
  body.print-form135-only .form135-exact-print{position:absolute!important;inset:0 auto auto 0!important;width:100%!important;margin:0!important;padding:0!important;border:0!important;box-shadow:none!important;background:#fff!important}
  body.print-form135-only .form135-print-title,
  body.print-form135-only .form135-review-table{display:none!important}
  body.print-form135-only .f135-page{width:210mm!important;height:297mm!important;margin:0!important;box-shadow:none!important;page-break-after:always!important;break-after:page!important;overflow:hidden!important}
  body.print-form135-only .f135-page img{width:210mm!important;height:297mm!important;object-fit:fill!important}
  body.print-form135-only .f135-value{font-size:8pt!important;padding:0 1.4mm!important;color:#000!important}
  body.print-form135-only .f135-value.name,body.print-form135-only .f135-value.id,body.print-form135-only .f135-value.date{font-size:7.6pt!important}
  body.print-form135-only .f135-value.form-title{font-size:13pt!important;font-weight:900!important}
  body.print-form135-only .f135-value.form-subtitle{font-size:10pt!important;font-weight:800!important}
  body.print-form135-only .f135-value.small-year,body.print-form135-only .f135-value.small-year-field{font-size:8pt!important}
  body.print-form135-only .f135-mask{background:#fff!important}body.print-form135-only .f135-mask.office{background:#f2f2f2!important}
}

/* Auto smart intake + clean 135 print flow */
.auto-engine-indicator{pointer-events:auto}
.ocr-actions{align-items:center;gap:12px;flex-wrap:wrap}
.print-135-cta{display:flex;align-items:center;justify-content:space-between;gap:16px;margin:18px 0;padding:18px 20px;border:1px solid rgba(149,162,196,.28);border-radius:24px;background:#f8fbff}
.print-135-cta h4{margin:0 0 5px;font-size:24px}
.print-135-cta p{margin:0;color:#667085;font-weight:800}
.clean-print-flow>.report-table,
.clean-print-flow>h4,
.clean-print-flow>ul{display:none!important}
.minimal-review-details{margin-top:16px;border:1px dashed rgba(149,162,196,.48);border-radius:18px;padding:12px 16px;background:#fff}
.minimal-review-details summary{font-weight:950;cursor:pointer}
.form135-exact-print .form135-print-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:10px}
.form135-exact-print .form135-print-title p{font-size:14px;line-height:1.5}
@media(max-width:760px){.print-135-cta,.form135-exact-print .form135-print-title{display:block}.print-135-cta .btn{margin-top:12px}}
@media print{
  body.print-form135-only .print-135-cta,
  body.print-form135-only .minimal-review-details{display:none!important}
}

/* Super-accurate intake pass: keep the user-facing 135 area clean. */
.form135-preview-collapsed{margin:14px 0;border:1px solid rgba(149,162,196,.28);border-radius:18px;background:#fff;overflow:hidden}
.form135-preview-collapsed>summary{cursor:pointer;padding:14px 18px;font-weight:900;color:#111827;background:#f8fbff}
.form135-preview-collapsed[open]{padding-bottom:14px}
.form135-preview-collapsed[open]>summary{margin-bottom:10px;border-bottom:1px solid rgba(149,162,196,.22)}


/* Taxly multi-106 upload slots */
.is-hidden-template-upload {
  display: none !important;
}
.multi106-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: .65rem;
  margin-top: .65rem;
}
.multi106-slots.is-many {
  padding-top: .25rem;
}
.multi106-slot {
  min-height: 78px;
  border-style: dashed;
  background: rgba(255,255,255,.72);
}
.multi106-slot .slot-main {
  font-weight: 800;
}
.multi106-slot .slot-sub.is-filled {
  color: #087f5b;
  font-weight: 800;
}
@media (min-width: 760px) {
  .multi106-slots.is-many {
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }
}


/* Visual polish for the official-simulator mini panel */
.sim-mini-panel-polished{
  padding:26px;
  background:linear-gradient(180deg,#f8f9ff 0%,#f5f3ff 100%);
  border:1px solid rgba(127,86,217,.18);
  box-shadow:0 14px 38px rgba(114,87,255,.08);
}
.sim-mini-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,320px);
  gap:18px;
  align-items:start;
  margin-bottom:20px;
}
.sim-mini-kicker{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  border-radius:999px;
  background:#efeaff;
  border:1px solid #ddd2ff;
  color:#6847d4;
  font-weight:900;
  font-size:13px;
  margin-bottom:10px;
}
.sim-mini-header h4{
  margin:0 0 8px;
  font-size:28px;
}
.sim-mini-header p{
  margin:0;
  max-width:760px;
  line-height:1.7;
}
.sim-mini-tip{
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  border:1px solid rgba(149,162,196,.26);
  color:#556070;
  border-radius:20px;
  padding:16px 18px;
  font-weight:800;
  line-height:1.7;
  align-self:stretch;
}
.sim-section-card{
  background:#fff;
  border:1px solid rgba(149,162,196,.22);
  border-radius:24px;
  padding:18px 18px 4px;
  margin-top:16px;
  box-shadow:0 10px 28px rgba(15,23,42,.04);
}
.sim-section-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  margin-bottom:14px;
  padding-bottom:12px;
  border-bottom:1px solid rgba(149,162,196,.18);
}
.sim-section-head h5{
  margin:0;
  font-size:18px;
  font-weight:950;
  color:#1f2937;
}
.sim-section-badge{
  display:inline-flex;
  align-items:center;
  padding:6px 12px;
  border-radius:999px;
  background:#ecfdf3;
  color:#067647;
  border:1px solid #b7ebcc;
  font-size:12px;
  font-weight:900;
  white-space:nowrap;
}
.sim-section-badge.soft{
  background:#f8f9fc;
  color:#596579;
  border-color:#d7deea;
}
.compact-grid{
  gap:14px;
}
.sim-mini-panel-polished .question-block{
  margin-bottom:14px;
}
.sim-mini-panel-polished .question-block label:first-child{
  font-size:15px;
  margin-bottom:8px;
  color:#24324a;
}
.sim-mini-panel-polished select,
.sim-mini-panel-polished input[type="text"],
.sim-mini-panel-polished input[type="tel"],
.sim-mini-panel-polished input[type="number"],
.sim-mini-panel-polished input[type="date"]{
  min-height:52px;
  border-radius:16px;
  border:1px solid rgba(149,162,196,.32);
  background:#fbfcff;
  padding:14px 16px;
  font-size:16px;
}
.sim-mini-panel-polished input::placeholder{
  color:#98a2b3;
}
.hint-soft{
  margin:8px 0 0;
  font-size:13px;
  line-height:1.6;
  color:#667085;
}
.auto-tax-mode-note-card{
  margin-top:16px;
  margin-bottom:0;
  padding:16px 18px;
  border-radius:22px;
  border:1px solid #cfe6d8;
  background:linear-gradient(135deg,#f4fff8,#f7fbff);
}
.auto-tax-mode-note-card label{
  margin-bottom:6px!important;
  color:#0f5132;
}
.auto-tax-mode-note-card .hint{
  margin:0;
  color:#526071;
}
@media (max-width: 860px){
  .sim-mini-header{
    grid-template-columns:1fr;
  }
  .sim-section-head{
    flex-direction:column;
    align-items:flex-start;
  }
  .settlement-visibility-card::before,
  .settlement-visibility-card .sim-section-badge{
    width:100%;
    justify-content:center;
  }
  .quiz-actions{
    justify-content:center;
  }
  .reset-check-btn{
    order:3;
    width:100%;
    margin-inline:0;
  }
}
@media (max-width: 680px){
  .sim-mini-panel-polished{
    padding:18px;
    border-radius:22px;
  }
  .sim-mini-header h4{
    font-size:24px;
  }
  .sim-mini-tip,
  .sim-section-card{
    border-radius:18px;
  }
}


/* Children birth-year panel visual upgrade */
.children-birth-panel-polished{
  padding:26px;
  background:linear-gradient(180deg,#f8f9ff 0%,#f4f3ff 100%);
  border:1px solid rgba(127,86,217,.16);
  box-shadow:0 16px 40px rgba(114,87,255,.08);
}
.children-panel-header{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(240px,320px);
  gap:18px;
  align-items:start;
  margin-bottom:18px;
}
.children-panel-header h4{
  margin:0 0 8px;
  font-size:30px;
}
.children-panel-header p{
  margin:0;
  color:#667085;
  line-height:1.7;
  max-width:760px;
}
.children-panel-tip{
  background:linear-gradient(135deg,#ffffff,#f7fbff);
  border:1px solid rgba(149,162,196,.26);
  color:#556070;
  border-radius:20px;
  padding:16px 18px;
  font-weight:800;
  line-height:1.7;
}
.polished-box{
  background:#fff;
  border:1px solid rgba(149,162,196,.22);
  border-radius:24px;
  padding:18px;
  box-shadow:0 10px 28px rgba(15,23,42,.04);
}
.birth-years-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:14px;
}
.birth-years-head label{
  margin:0;
  font-size:18px;
  font-weight:950;
  color:#1f2937;
}
.birth-years-caption{
  display:inline-flex;
  padding:6px 12px;
  border-radius:999px;
  background:#f0edff;
  border:1px solid #ddd2ff;
  color:#6847d4;
  font-size:12px;
  font-weight:900;
}
.children-year-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.child-year-chip{
  display:grid;
  gap:8px;
  padding:14px;
  border-radius:18px;
  border:1px solid rgba(149,162,196,.24);
  background:linear-gradient(180deg,#fbfcff,#f8faff);
}
.child-year-chip span{
  font-size:13px;
  font-weight:900;
  color:#4b5563;
}
.child-year-chip input{
  width:100%;
  min-height:52px;
  border-radius:16px;
  border:1px solid rgba(149,162,196,.34);
  background:#fff;
  padding:12px 14px;
  font-size:22px;
  font-weight:900;
  text-align:center;
  letter-spacing:.5px;
}
.child-year-chip.is-hidden{display:none}
.children-year-actions{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin-top:14px;
  margin-bottom:10px;
}
.secondary-btn.small,
.ghost-btn.small{
  min-height:42px;
  padding:10px 14px;
  border-radius:14px;
  font-weight:900;
  cursor:pointer;
}
.secondary-btn.small{
  background:#f0edff;
  color:#6847d4;
  border:1px solid #ddd2ff;
}
.ghost-btn.small{
  background:#fff;
  color:#526071;
  border:1px solid rgba(149,162,196,.3);
}
.children-birth-panel-polished small{
  display:block;
  margin-top:6px;
  color:#667085;
}
.children-benefit-summary{
  margin-top:14px;
  padding:14px 16px;
  border-radius:18px;
  background:linear-gradient(135deg,#eefbf4,#f7fffb);
  border:1px solid #cbe8d8;
  color:#165c3d;
  font-weight:850;
  line-height:1.7;
}
.children-meta-grid{margin-top:16px}
@media (max-width: 920px){
  .children-panel-header{grid-template-columns:1fr}
  .children-year-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width: 560px){
  .children-birth-panel-polished{padding:18px;border-radius:22px}
  .children-panel-header h4{font-size:24px}
  .birth-years-head{flex-direction:column;align-items:flex-start}
  .children-year-grid{grid-template-columns:1fr}
  .child-year-chip input{font-size:20px}
}

/* Numeric result review state: avoid showing a false green refund when data is inconsistent */
.numeric-tax-result.review,
.tax-result-amount.review{
  border-color:#f3c46b!important;
  background:linear-gradient(135deg,#fffaf0,#fffdf7)!important;
}
.tax-result-amount.review{
  color:#8a5a00!important;
}

/* Finupp-inspired but original Taxly flow polish — 2026-05-08 */
.taxly-flow-strip{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:0 auto 22px;
  max-width:1040px;
}
.flow-chip{
  display:grid;
  grid-template-columns:auto 1fr;
  gap:4px 10px;
  align-items:center;
  padding:14px 16px;
  border-radius:24px;
  background:rgba(255,255,255,.74);
  border:1px solid rgba(205,183,132,.32);
  box-shadow:0 18px 46px rgba(92,69,22,.10);
}
.flow-chip span{
  grid-row:1/3;
  width:34px;
  height:34px;
  border-radius:14px;
  display:grid;
  place-items:center;
  font-weight:950;
  color:#fff;
  background:linear-gradient(135deg,var(--primary),var(--pink));
}
.flow-chip strong{font-size:15px;font-weight:950;line-height:1.1}
.flow-chip small{color:var(--muted);font-weight:750;font-size:12px;line-height:1.25}
.quick-eligibility-panel{
  margin-bottom:20px;
  padding:20px;
  border-radius:30px;
  background:linear-gradient(135deg,rgba(255,252,245,.95),rgba(247,242,255,.92));
  border:1px solid rgba(205,183,132,.30);
  box-shadow:0 18px 52px rgba(92,69,22,.10);
}
.quick-eligibility-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:18px;
  margin-bottom:14px;
  border-bottom:1px solid rgba(149,162,196,.18);
  padding-bottom:14px;
}
.quick-eligibility-head h4{margin:0;font-size:26px;letter-spacing:-.3px}
.quick-eligibility-head p{max-width:520px;margin:0;color:var(--muted);font-weight:750}
.quick-kicker{
  display:inline-flex;
  width:max-content;
  margin-bottom:6px;
  padding:6px 10px;
  border-radius:999px;
  background:#eefaf4;
  border:1px solid rgba(47,143,91,.18);
  color:#1f754a;
  font-weight:950;
  font-size:12px;
}
.grouped-choice-block{
  padding:16px;
  margin-bottom:14px;
  border-radius:24px;
  background:rgba(255,255,255,.72);
  border:1px solid rgba(149,162,196,.22);
}
.grouped-choice-block:last-child{margin-bottom:0}
.finupp-style-grid{grid-template-columns:repeat(3,minmax(0,1fr));}
.icon-choice{
  min-height:76px;
  align-items:center;
  position:relative;
  overflow:hidden;
}
.icon-choice::after{
  content:"";
  position:absolute;
  inset:auto -34px -44px auto;
  width:90px;
  height:90px;
  border-radius:999px;
  background:radial-gradient(circle,rgba(47,143,91,.12),transparent 70%);
}
.icon-choice input{position:relative;z-index:2}
.choice-icon{
  position:relative;
  z-index:2;
  width:34px;
  height:34px;
  border-radius:14px;
  display:grid;
  place-items:center;
  flex:0 0 auto;
  background:#f4f1ff;
  color:#5f43d6;
  font-weight:950;
  font-size:15px;
}
.icon-choice:has(input:checked) .choice-icon{
  background:linear-gradient(135deg,var(--primary),var(--pink));
  color:#fff;
}
.icon-choice span:last-child{position:relative;z-index:2;line-height:1.25}
@media (max-width:980px){
  .taxly-flow-strip,.finupp-style-grid{grid-template-columns:1fr 1fr}
  .quick-eligibility-head{display:block}
  .quick-eligibility-head p{margin-top:8px}
}
@media (max-width:640px){
  .taxly-flow-strip,.finupp-style-grid{grid-template-columns:1fr}
  .quick-eligibility-panel{padding:14px;border-radius:24px}
  .flow-chip{border-radius:20px}
}

/* Comfort rollback fixes — keep the previous convenient UI, make settlement and child fields clearer */
.three-col.compact-grid,
.settlement-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.settlement-visibility-card {
  border: 1px solid rgba(109, 94, 252, .18);
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(246,248,255,.96));
}
.settlement-help {
  margin: 2px 0 14px;
  color: #344054;
  font-weight: 650;
}
.mini-hint {
  margin: 6px 0 0;
  color: #667085;
  font-size: 12px;
  line-height: 1.4;
}
.settlement-name-block input:disabled,
.settlement-months-block input:disabled {
  background: #f2f4f7;
  color: #98a2b3;
}
.child-year-chip input::placeholder { color: #98a2b3; opacity: 1; }
@media (max-width: 840px) {
  .three-col.compact-grid,
  .settlement-grid { grid-template-columns: 1fr; }
}

/* Taxly comfort-premium card polish: visual only, keeps all IDs/data attributes and JS logic intact */
.quick-eligibility-panel {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(246,249,255,.94));
  border: 1px solid rgba(149,162,196,.22);
  box-shadow: 0 18px 42px rgba(16,24,40,.08);
}
.finupp-style-grid,
.choice-grid {
  align-items: stretch;
}
.choice.icon-choice,
.choice-grid > .choice {
  border-radius: 22px;
  min-height: 92px;
  padding: 16px 15px;
  background:
    radial-gradient(circle at 18% 12%, rgba(115,87,255,.08), transparent 34%),
    linear-gradient(180deg, rgba(255,255,255,1), rgba(250,252,255,.96));
  border: 1px solid rgba(148,163,184,.28);
  box-shadow: 0 10px 24px rgba(15,23,42,.055);
}
.choice.icon-choice:hover,
.choice-grid > .choice:hover {
  transform: translateY(-3px);
  border-color: rgba(47,143,91,.38);
  box-shadow: 0 18px 34px rgba(47,143,91,.12);
  background:
    radial-gradient(circle at 18% 12%, rgba(47,143,91,.11), transparent 35%),
    linear-gradient(180deg, #fff, #f8fbff);
}
.choice.icon-choice:has(input:checked),
.choice-grid > .choice:has(input:checked) {
  border-color: rgba(47,143,91,.62);
  background:
    linear-gradient(135deg, rgba(238,250,244,.98), rgba(245,243,255,.96));
  box-shadow: 0 16px 34px rgba(47,143,91,.16), inset 0 0 0 1px rgba(47,143,91,.16);
}
.choice.icon-choice input,
.choice-grid > .choice input[type="checkbox"] {
  width: 20px;
  height: 20px;
  accent-color: #2f8f5b;
  align-self: flex-start;
  margin-top: 3px;
}
.choice-icon {
  background: linear-gradient(135deg, #f2f6ff, #fff7ea);
  border: 1px solid rgba(148,163,184,.22);
  box-shadow: inset 0 -6px 12px rgba(15,23,42,.04);
}
.grouped-choice-block > label:first-child {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.grouped-choice-block > label:first-child::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2f8f5b, #d6ad5f);
  box-shadow: 0 0 0 5px rgba(47,143,91,.08);
}
.settlement-visibility-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1.5px solid rgba(47,143,91,.35) !important;
  background:
    radial-gradient(circle at 92% 0%, rgba(214,173,95,.16), transparent 36%),
    linear-gradient(135deg, rgba(255,255,255,.99), rgba(241,250,246,.97)) !important;
  box-shadow: 0 18px 38px rgba(47,143,91,.10);
}
.settlement-visibility-card::before {
  content: "שדה חשוב לטופס 135";
  position: static;
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: #fff8e6;
  color: #7a4b00;
  border: 1px solid rgba(214,173,95,.35);
  font-weight: 950;
  font-size: 12px;
  line-height: 1.25;
  white-space: normal;
}
.settlement-visibility-card .sim-section-head {
  flex-wrap: wrap;
  align-items: flex-start;
  margin-bottom: 0;
}
.settlement-visibility-card .sim-section-badge {
  max-width: 100%;
  white-space: normal;
  line-height: 1.25;
}
.settlement-name-block label::after,
.settlement-months-block label::after {
  content: " חובה אם סימנת יישוב מזכה";
  color: #b45309;
  font-size: 12px;
  font-weight: 900;
}
.print-135-cta {
  background: linear-gradient(135deg, #f8fafc, #eefaf4);
  border: 1px solid rgba(47,143,91,.20);
}
.print-135-cta .btn.primary,
button[data-taxly-download-135] {
  box-shadow: 0 12px 26px rgba(47,143,91,.20);
}


/* Taxly 867 / securities smart report */
.securities-867-card{border:1px solid rgba(50,120,95,.18);background:linear-gradient(180deg,#fff,#fbfffd)}
.securities-summary-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px;margin:14px 0}
.securities-summary-grid>div{border:1px solid #dbe7df;border-radius:16px;padding:12px;background:#fff;box-shadow:0 10px 24px rgba(15,54,40,.05)}
.securities-summary-grid strong{display:block;font-size:.82rem;color:#64748b;margin-bottom:6px}
.securities-summary-grid span{font-size:1.05rem;font-weight:900;color:#0f5132}
.table-scroll{overflow-x:auto;margin-top:10px}
.securities-table th,.securities-table td{white-space:nowrap;text-align:center}
.docs-row[data-doc-row="867"] .doc-label small{display:block;margin-top:4px;color:#64748b;font-size:.78rem;line-height:1.4}

/* Taxly calculation appendix preview - safe visual layer only */
.tax-calc-appendix {
  border: 1px solid rgba(99, 102, 241, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,.98), rgba(248,250,252,.98));
}
.tax-calc-appendix > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #172554;
  font-weight: 900;
  padding: 2px 0 12px;
}
.tax-calc-appendix > summary::-webkit-details-marker { display: none; }
.tax-calc-appendix > summary span { font-size: 1.08rem; }
.tax-calc-appendix > summary small {
  color: #64748b;
  font-weight: 600;
}
.tax-calc-appendix-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  margin: 0 0 12px;
}
.tax-calc-sheet {
  background: #fff;
  color: #111827;
  border: 1px solid #d1d5db;
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, .08);
  font-family: Arial, "Noto Sans Hebrew", sans-serif;
  direction: rtl;
}
.tax-calc-sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  border-bottom: 2px solid #111827;
  padding-bottom: 10px;
  margin-bottom: 12px;
  font-size: .92rem;
}
.tax-calc-disclaimer {
  font-size: .88rem;
  line-height: 1.65;
  margin: 8px 0 16px;
}
.tax-calc-sheet h3 {
  text-align: center;
  color: #111827;
  margin: 18px 0 14px;
  font-size: 1.15rem;
}
.tax-calc-sheet h4 {
  color: #1d4ed8;
  font-size: 1rem;
  margin: 20px 0 8px;
}
.tax-calc-official-table {
  width: 100%;
  border-collapse: collapse;
  margin: 8px 0 16px;
  font-size: .88rem;
  background: #fff;
}
.tax-calc-official-table th,
.tax-calc-official-table td {
  border: 1px solid #374151;
  padding: 7px 8px;
  text-align: right;
  vertical-align: middle;
}
.tax-calc-official-table th {
  background: #e5e7eb;
  font-weight: 900;
}
.tax-calc-official-table td:not(:first-child),
.tax-calc-official-table th:not(:first-child) {
  text-align: center;
}
.tax-calc-id-table td,
.tax-calc-id-table th { text-align: center !important; }
.tax-calc-official-table.small { font-size: .84rem; }
.appendix-warning {
  border-radius: 10px;
  margin-top: 10px;
}
.tax-calc-footer {
  font-size: .78rem;
  color: #475569;
  border-top: 1px solid #cbd5e1;
  margin-top: 16px;
  padding-top: 8px;
}
@media (max-width: 760px) {
  .tax-calc-sheet { padding: 14px; overflow-x: auto; }
  .tax-calc-sheet-head { flex-direction: column; }
  .tax-calc-official-table { min-width: 680px; }
}

/* 2026-05-08 UI refresh: comfortable questionnaire cards, visual only */
.quick-eligibility-panel{
  position:relative;
  padding:28px;
  border-radius:34px;
  background:
    radial-gradient(circle at 12% 0%, rgba(115,87,255,.09), transparent 32%),
    radial-gradient(circle at 92% 18%, rgba(47,143,91,.10), transparent 32%),
    linear-gradient(180deg, rgba(255,255,255,.98), rgba(249,251,255,.96));
  border:1px solid rgba(148,163,184,.24);
  box-shadow:0 24px 70px rgba(15,23,42,.10);
}
.quick-eligibility-head{
  align-items:center;
  padding-bottom:20px;
  margin-bottom:20px;
  border-bottom:1px solid rgba(148,163,184,.20);
}
.quick-eligibility-head h4{
  font-size:34px;
  line-height:1.05;
  color:#111827;
}
.quick-eligibility-head p{
  font-size:15px;
  line-height:1.65;
  max-width:570px;
}
.quick-kicker{
  box-shadow:0 10px 24px rgba(47,143,91,.10);
}
.grouped-choice-block{
  padding:20px;
  border-radius:28px;
  background:rgba(255,255,255,.82);
  border:1px solid rgba(148,163,184,.20);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.86), 0 14px 30px rgba(15,23,42,.045);
}
.grouped-choice-block + .grouped-choice-block{margin-top:18px}
.grouped-choice-block > label:first-child{
  font-size:18px;
  color:#111827;
  margin-bottom:3px;
}
.grouped-choice-block .hint{
  margin:0 0 16px;
  color:#667085;
  font-size:14px;
}
.finupp-style-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.choice.icon-choice{
  min-height:112px;
  padding:16px 16px 16px 14px;
  display:grid;
  grid-template-columns:22px 44px 1fr;
  align-items:center;
  gap:12px;
  border-radius:24px;
  background:
    linear-gradient(180deg,#fff,rgba(249,251,255,.98));
  border:1px solid rgba(148,163,184,.26);
  box-shadow:0 12px 26px rgba(15,23,42,.055);
}
.choice.icon-choice::after{
  inset:auto auto -38px -26px;
  width:110px;
  height:110px;
  background:radial-gradient(circle,rgba(47,143,91,.13),transparent 68%);
}
.choice.icon-choice input[type="checkbox"]{
  grid-column:1;
  width:21px;
  height:21px;
  margin:0;
}
.choice.icon-choice .choice-icon{
  grid-column:2;
  width:42px;
  height:42px;
  border-radius:18px;
  font-size:16px;
  background:linear-gradient(135deg,#f7f4ff,#fffaf0);
}
.choice.icon-choice .choice-label{

  grid-column:3;
  font-size:15px;
  font-weight:950;
  color:#111827;
  letter-spacing:-.1px;
}
.choice.icon-choice:hover{
  transform:translateY(-2px);
  border-color:rgba(115,87,255,.40);
  box-shadow:0 18px 36px rgba(115,87,255,.105);
}
.choice.icon-choice:has(input:checked){
  border-color:rgba(47,143,91,.65);
  background:
    radial-gradient(circle at 100% 0%, rgba(47,143,91,.13), transparent 35%),
    linear-gradient(180deg,#fbfffd,#f5f8ff);
  box-shadow:0 20px 44px rgba(47,143,91,.14), inset 0 0 0 1px rgba(47,143,91,.18);
}
.choice.icon-choice:has(input:checked)::before{
  content:"נבחר";
  position:absolute;
  left:14px;
  top:12px;
  padding:4px 9px;
  border-radius:999px;
  font-size:11px;
  font-weight:950;
  color:#11613d;
  background:#e9fbf1;
  border:1px solid rgba(47,143,91,.18);
}
.choice.icon-choice:has(input:checked) .choice-icon{
  background:linear-gradient(135deg,#2f8f5b,#6d5efc);
  color:#fff;
  box-shadow:0 10px 24px rgba(47,143,91,.22);
}
@media (max-width:980px){.finupp-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.quick-eligibility-head h4{font-size:28px}}
@media (max-width:640px){.finupp-style-grid{grid-template-columns:1fr}.choice.icon-choice{min-height:92px}.quick-eligibility-panel{padding:18px}}

/* Taxly operational 100% intake review gate */
.data-review-gate{
  border:1px solid rgba(102,112,133,.22);
  background:linear-gradient(180deg,#ffffff,#fbfcff);
}
.data-review-gate summary{
  cursor:pointer;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  font-weight:950;
  font-size:18px;
  list-style:none;
}
.data-review-gate summary::-webkit-details-marker{display:none}
.review-status{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding:8px 12px;
  border-radius:999px;
  font-size:13px;
  white-space:nowrap;
}
.review-status.ready{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
.review-status.blocked{background:#fff7ed;color:#b54708;border:1px solid #fed7aa}
.review-topline{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin:16px 0;
}
.review-topline>div{
  border:1px solid #e4e7ec;
  border-radius:16px;
  padding:12px;
  background:#fff;
  text-align:center;
}
.review-topline strong{
  display:block;
  font-size:24px;
  color:#101828;
}
.review-topline span{
  color:#667085;
  font-size:13px;
  font-weight:800;
}
.review-table th,.review-table td{vertical-align:middle}
.review-table td small{
  display:block;
  color:#667085;
  margin-top:3px;
  font-size:12px;
}
.review-badge{
  display:inline-flex;
  padding:5px 9px;
  border-radius:999px;
  font-weight:950;
  font-size:12px;
}
.review-badge.ok{background:#ecfdf3;color:#027a48;border:1px solid #abefc6}
.review-badge.warn{background:#fffaeb;color:#b54708;border:1px solid #fedf89}
.review-badge.muted{background:#f2f4f7;color:#475467;border:1px solid #e4e7ec}
.mini-approve{
  border:0;
  border-radius:999px;
  padding:8px 12px;
  font-weight:950;
  cursor:pointer;
  background:#2f8f5b;
  color:#fff;
  box-shadow:0 8px 18px rgba(47,143,91,.16);
}
.mini-approve.secondary{background:#f2f4f7;color:#344054;box-shadow:none;border:1px solid #d0d5dd}
.review-auto-note{font-size:12px;color:#027a48;font-weight:900}.review-auto-note.muted{color:#667085}
.review-approve-all{margin-top:12px}
@media (max-width:780px){.data-review-gate summary{align-items:flex-start;flex-direction:column}.review-topline{grid-template-columns:1fr}.review-table{min-width:760px}}


/* Taxly final QA polish: result logic, action visibility and card comfort */
.result-header.pay{background:linear-gradient(135deg,#fff7ed,#fed7aa);border-color:#fb923c;color:#7c2d12}
.result-header.pay .result-score{color:#9a3412}
.enhanced-actions{align-items:center;gap:18px;flex-wrap:wrap}
.cta-action-stack{display:flex;gap:10px;flex-wrap:wrap;justify-content:flex-start}
.tax-calc-appendix-actions{display:flex;gap:10px;flex-wrap:wrap;margin:12px 0 18px}
.taxly-choice-card, .event-card, .option-card{transition:transform .16s ease, box-shadow .16s ease, border-color .16s ease}
.taxly-choice-card:has(input:checked), .event-card:has(input:checked), .option-card:has(input:checked){border-color:#635bff!important;box-shadow:0 14px 32px rgba(99,91,255,.16)!important;transform:translateY(-2px)}

/* Final QA patch: visible rubric referral controls and focus pulse */
.rubric-referral-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}
.rubric-referral-list .rubric-jump {
  border: 1px solid #d8c7ff;
  background: #f7f2ff;
  color: #4c1d95;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 800;
  cursor: pointer;
}
.rubric-focus-pulse {
  outline: 3px solid rgba(124, 58, 237, .35) !important;
  box-shadow: 0 0 0 8px rgba(124, 58, 237, .12), 0 12px 34px rgba(30, 41, 59, .18) !important;
  transform: translateY(-1px);
  transition: box-shadow .2s ease, outline .2s ease, transform .2s ease;
}
.tax-calc-official-table .credit-subtotal td {
  font-weight: 900;
  background: #f8fafc;
}

/* Fix: approval should lead clearly to download */
.review-actions-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  margin:12px 0 4px;
}
.review-actions-row .review-approve-download{
  background:#16a34a;
  color:#fff;
  border-color:#16a34a;
  box-shadow:0 10px 22px rgba(22,163,74,.18);
}

/* === Taxly יסודי 2026-05-09: UI נקי יותר, הסתרת טכני כברירת מחדל, וכרטיסים נוחים === */
.quick-eligibility-panel{
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%);
  border:1px solid rgba(148,163,184,.25);
  border-radius:28px;
  padding:26px;
  box-shadow:0 22px 52px rgba(15,23,42,.06);
}
.quick-eligibility-head{align-items:flex-start!important;border-bottom:1px solid rgba(148,163,184,.18);padding-bottom:16px;margin-bottom:18px}
.quick-eligibility-head h4{font-size:30px;line-height:1.15;margin:0 0 6px;color:#101828;letter-spacing:-.6px}
.quick-eligibility-head p{max-width:720px;color:#667085;font-size:15px;line-height:1.7;margin:0}
.grouped-choice-block{padding:18px 18px 22px;border-radius:26px;background:#fff;border:1px solid rgba(148,163,184,.25);box-shadow:0 16px 36px rgba(15,23,42,.035)}
.grouped-choice-block>label{display:flex;align-items:center;gap:8px;font-size:17px;color:#101828;margin-bottom:5px}
.grouped-choice-block>label::before{content:"";width:9px;height:9px;border-radius:999px;background:#2f8f5b;box-shadow:0 0 0 5px #e9fbf1}
.grouped-choice-block .hint{font-size:14px;color:#667085;margin:0 0 14px!important;line-height:1.55}
.finupp-style-grid{gap:12px!important;grid-template-columns:repeat(3,minmax(0,1fr))!important}
.choice.icon-choice{
  min-height:96px!important;
  padding:14px 14px 14px 16px!important;
  grid-template-columns:1fr 42px!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#fff,#f9fbff)!important;
  border:1px solid #d9e2f0!important;
  box-shadow:0 10px 24px rgba(15,23,42,.045)!important;
  transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease,background .16s ease;
}
.choice.icon-choice input[type="checkbox"]{position:absolute!important;left:13px!important;top:13px!important;width:19px!important;height:19px!important;opacity:.9}
.choice.icon-choice .choice-icon{grid-column:2!important;width:38px!important;height:38px!important;border-radius:15px!important;background:#f4f1ff!important;color:#6658d3!important;box-shadow:none!important}
.choice.icon-choice .choice-label{
grid-column:1!important;font-size:15px!important;line-height:1.35!important;padding-left:26px!important;color:#101828!important}
.choice.icon-choice::after{display:none!important}
.choice.icon-choice:has(input:checked){border-color:#2f8f5b!important;background:linear-gradient(180deg,#f8fffb,#f3fbf7)!important;box-shadow:0 16px 34px rgba(47,143,91,.14)!important}
.choice.icon-choice:has(input:checked)::before{content:"נבחר";right:14px;left:auto;top:12px;background:#e9fbf1;border:1px solid #abefc6;color:#027a48;border-radius:999px;padding:3px 8px;font-size:11px;font-weight:950;position:absolute}
.choice.icon-choice:has(input:checked) .choice-icon{background:linear-gradient(135deg,#2f8f5b,#4aa977)!important;color:#fff!important}
.choice.icon-choice:hover{transform:translateY(-2px);border-color:#b8c7dd!important;box-shadow:0 16px 36px rgba(15,23,42,.075)!important}

.professional-map-card,.friendly-reasons-card,.professional-data-map{border:1px solid rgba(148,163,184,.24)!important;background:#fff!important;border-radius:22px!important;padding:0!important;overflow:hidden}
.professional-map-card>summary,.friendly-reasons-card>summary,.professional-data-map>summary{cursor:pointer;padding:18px 20px;display:flex;justify-content:space-between;gap:14px;align-items:center;font-weight:950;color:#101828;list-style:none}
.professional-map-card>summary::-webkit-details-marker,.friendly-reasons-card>summary::-webkit-details-marker,.professional-data-map>summary::-webkit-details-marker{display:none}
.professional-map-card>summary small,.friendly-reasons-card>summary small,.professional-data-map>summary small{color:#667085;font-size:13px;font-weight:800}
.professional-map-grid,.friendly-reason-list{padding:0 20px 20px}
.friendly-reason-list{display:grid;gap:10px}
.friendly-reason-item{display:grid;grid-template-columns:28px 1fr;align-items:start;gap:10px;padding:12px;border-radius:16px;background:#f9fafb;border:1px solid #edf0f5}
.friendly-reason-item span{width:24px;height:24px;border-radius:999px;background:#ecfdf3;color:#027a48;display:grid;place-items:center;font-weight:950}
.friendly-reason-item p{margin:0;color:#344054;line-height:1.55;font-weight:750}

.data-review-gate{border-radius:24px!important;box-shadow:0 18px 42px rgba(15,23,42,.055)}
.data-review-gate summary{padding-bottom:12px;border-bottom:1px solid rgba(148,163,184,.18)}
.review-action-panel{margin-top:16px;padding:16px;border:1px solid rgba(148,163,184,.22);border-radius:20px;background:#fbfdff}
.review-action-panel h4{margin:0 0 12px;font-size:17px;color:#101828}
.review-actions-row{display:flex;gap:10px;flex-wrap:wrap;margin-top:12px}
.professional-data-map.compact{margin-top:14px;border-radius:18px!important;background:#fcfcfd!important}
.professional-data-map.compact>summary{padding:13px 16px;font-size:14px;color:#475467}
.rubric-referral-list{display:flex;gap:8px;flex-wrap:wrap;margin:12px 0}
.rubric-referral-list .rubric-jump{background:#f4f3ff!important;color:#5f43d6!important;border:1px solid #ddd6fe!important;box-shadow:none!important}
.extracted-rubrics-panel{border-radius:22px!important;background:#fff!important;border:1px solid rgba(148,163,184,.22)!important;box-shadow:0 14px 32px rgba(15,23,42,.04)!important}
.extracted-rubrics-list .extracted-rubric-row,.smart-confidence-row{border-radius:14px!important}

@media (max-width:980px){.finupp-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.quick-eligibility-panel{padding:20px}.quick-eligibility-head h4{font-size:26px}}
@media (max-width:640px){.finupp-style-grid{grid-template-columns:1fr!important}.choice.icon-choice{min-height:86px!important}.professional-map-card>summary,.friendly-reasons-card>summary{flex-direction:column;align-items:flex-start}}

/* === Deep UX correction 2026-05-09: friendly rubric cards, no checkbox overlap === */
.quick-eligibility-panel{
  background:#ffffff!important;
  border:1px solid #e5e7eb!important;
  border-radius:26px!important;
  padding:26px!important;
  box-shadow:0 20px 48px rgba(15,23,42,.055)!important;
}
.grouped-choice-block{
  background:#fff!important;
  border:1px solid #e6ebf2!important;
  border-radius:24px!important;
  padding:22px!important;
  margin:18px 0!important;
  box-shadow:0 14px 34px rgba(15,23,42,.035)!important;
}
.grouped-choice-block>label{
  font-size:18px!important;
  font-weight:900!important;
  margin:0 0 6px!important;
  color:#172033!important;
}
.grouped-choice-block .hint{
  font-size:14px!important;
  color:#64748b!important;
  margin-bottom:18px!important;
}
.finupp-style-grid{
  display:grid!important;
  grid-template-columns:repeat(3,minmax(185px,1fr))!important;
  gap:14px!important;
  align-items:stretch!important;
}
.choice.icon-choice{
  position:relative!important;
  display:grid!important;
  grid-template-columns:44px 1fr!important;
  align-items:center!important;
  gap:12px!important;
  direction:rtl!important;
  min-height:82px!important;
  padding:16px 18px 16px 44px!important;
  border:1px solid #dbe4ef!important;
  border-radius:20px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
  box-shadow:0 8px 22px rgba(15,23,42,.045)!important;
  cursor:pointer!important;
  overflow:hidden!important;
  transform:none!important;
}
.choice.icon-choice input[type="checkbox"]{
  position:absolute!important;
  left:14px!important;
  top:14px!important;
  width:20px!important;
  height:20px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.choice.icon-choice .choice-icon{
  grid-column:1!important;
  width:40px!important;
  height:40px!important;
  border-radius:14px!important;
  display:grid!important;
  place-items:center!important;
  background:#f3f5ff!important;
  color:#635bff!important;
  font-size:18px!important;
  box-shadow:inset 0 0 0 1px rgba(99,91,255,.08)!important;
}
.choice.icon-choice .choice-label{

  grid-column:2!important;
  padding:0!important;
  margin:0!important;
  font-size:15px!important;
  line-height:1.35!important;
  font-weight:900!important;
  color:#111827!important;
  text-align:right!important;
  word-break:normal!important;
}
.choice.icon-choice::before{
  content:""!important;
  position:absolute!important;
  left:14px!important;
  top:14px!important;
  width:20px!important;
  height:20px!important;
  border-radius:6px!important;
  border:1.8px solid #cbd5e1!important;
  background:#fff!important;
  box-shadow:0 1px 3px rgba(15,23,42,.06)!important;
}
.choice.icon-choice::after{display:none!important;content:none!important}
.choice.icon-choice:hover{
  border-color:#b6c7dc!important;
  box-shadow:0 14px 30px rgba(15,23,42,.075)!important;
  transform:translateY(-1px)!important;
}
.choice.icon-choice:has(input:checked){
  border-color:#22a06b!important;
  background:linear-gradient(180deg,#f7fffb 0%,#effaf5 100%)!important;
  box-shadow:0 16px 34px rgba(34,160,107,.14)!important;
}
.choice.icon-choice:has(input:checked)::before{
  content:"✓"!important;
  display:grid!important;
  place-items:center!important;
  background:#22a06b!important;
  border-color:#22a06b!important;
  color:#fff!important;
  font-weight:900!important;
  font-size:14px!important;
}
.choice.icon-choice:has(input:checked) .choice-icon{
  background:#e8fff3!important;
  color:#128052!important;
  box-shadow:inset 0 0 0 1px rgba(34,160,107,.18)!important;
}
.choice.icon-choice:has(input:checked) span:last-child{color:#064e3b!important}
.choice.icon-choice:has(input:checked) span:last-child::after{
  content:"נבחר";
  display:inline-flex;
  margin-inline-start:8px;
  transform:translateY(-1px);
  padding:2px 8px;
  border-radius:999px;
  background:#dcfce7;
  color:#166534;
  font-size:11px;
  font-weight:900;
}
@media (max-width:1020px){.finupp-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:640px){.quick-eligibility-panel{padding:18px!important}.grouped-choice-block{padding:16px!important}.finupp-style-grid{grid-template-columns:1fr!important}.choice.icon-choice{min-height:72px!important}}

/* === Taxly production polish 2026-05-09: friendlier cards, no technical clutter by default === */
.quick-eligibility-panel .grouped-choice-block{
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:28px!important;
  background:linear-gradient(180deg,#ffffff,#fbfdff)!important;
  padding:24px!important;
  box-shadow:0 18px 46px rgba(15,23,42,.055)!important;
}
.quick-eligibility-panel .grouped-choice-block h4{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:10px!important;
  font-size:20px!important;
  color:#101828!important;
  margin:0 0 6px!important;
}
.quick-eligibility-panel .grouped-choice-block h4::after{
  content:"בחרו רק מה שרלוונטי";
  font-size:12px!important;
  font-weight:900!important;
  color:#027a48!important;
  background:#ecfdf3!important;
  border:1px solid #abefc6!important;
  border-radius:999px!important;
  padding:5px 10px!important;
  white-space:nowrap!important;
}
.quick-eligibility-panel .grouped-choice-block > p{
  font-size:14px!important;
  line-height:1.55!important;
  color:#667085!important;
  margin:0 0 18px!important;
}
.finupp-style-grid{
  grid-template-columns:repeat(3,minmax(210px,1fr))!important;
  gap:16px!important;
}
.choice.icon-choice{
  min-height:92px!important;
  padding:18px 20px 18px 58px!important;
  grid-template-columns:42px minmax(0,1fr)!important;
  gap:14px!important;
  border-radius:22px!important;
  border:1px solid #d8e2ef!important;
  background:#fff!important;
  box-shadow:0 10px 30px rgba(15,23,42,.05)!important;
}
.choice.icon-choice::before{
  left:18px!important;
  top:18px!important;
  width:24px!important;
  height:24px!important;
  border-radius:8px!important;
  background:#fff!important;
  border:2px solid #cbd5e1!important;
}
.choice.icon-choice .choice-icon{
  width:42px!important;
  height:42px!important;
  border-radius:16px!important;
  background:linear-gradient(180deg,#f7f5ff,#eef2ff)!important;
  color:#6d5dfc!important;
  font-size:18px!important;
}
.choice.icon-choice .choice-label{

  font-size:15.5px!important;
  line-height:1.45!important;
  letter-spacing:-.01em!important;
}
.choice.icon-choice:has(input:checked){
  border-color:#16a34a!important;
  background:linear-gradient(180deg,#f7fffb,#effcf5)!important;
  box-shadow:0 18px 42px rgba(22,163,74,.16)!important;
}
.choice.icon-choice:has(input:checked)::before{
  content:"✓"!important;
  background:#16a34a!important;
  border-color:#16a34a!important;
  color:#fff!important;
  font-weight:1000!important;
}
.choice.icon-choice:has(input:checked) span:last-child::after{display:none!important;content:none!important}
.choice.icon-choice:has(input:checked)::after{
  content:"נבחר"!important;
  display:inline-flex!important;
  position:absolute!important;
  top:16px!important;
  right:16px!important;
  padding:4px 9px!important;
  border-radius:999px!important;
  background:#dcfce7!important;
  color:#166534!important;
  font-size:11px!important;
  font-weight:950!important;
}
.professional-map-card,
.friendly-reasons-card{
  border:1px solid #e5e7eb!important;
  border-radius:22px!important;
  background:#fff!important;
  box-shadow:0 10px 28px rgba(15,23,42,.045)!important;
}
.professional-map-card:not([open]) .sim-map-grid,
.friendly-reasons-card:not([open]) .friendly-reasons-list{
  display:none!important;
}
.tax-calc-sheet{
  font-family:Arial,Helvetica,sans-serif!important;
  direction:rtl!important;
  color:#111827!important;
}
.tax-calc-official-table th,
.tax-calc-official-table td{
  border:1px solid #111827!important;
  padding:7px 9px!important;
  font-size:13px!important;
  line-height:1.3!important;
  vertical-align:middle!important;
}
.tax-calc-official-table th{background:#e5e7eb!important;font-weight:900!important}
.tax-calc-sheet h3,.tax-calc-sheet h4{color:#111827!important;text-align:center!important}
.tax-calc-warning{background:#fff7ed!important;border:1px solid #fed7aa!important;color:#9a3412!important;border-radius:14px!important;padding:12px 14px!important}
@media (max-width:980px){.finupp-style-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:640px){.finupp-style-grid{grid-template-columns:1fr!important}.choice.icon-choice{min-height:82px!important}}

/* Taxly final polish: make the hero image CTA buttons truly clickable */
.selected-hero-card .hero-image-hotspot{
  position:absolute;
  z-index:4;
  display:block;
  border-radius:18px;
  outline-offset:4px;
}
.selected-hero-card .hero-image-hotspot:focus-visible{
  outline:3px solid rgba(24,132,89,.75);
  background:rgba(255,255,255,.08);
}
.selected-hero-card .hero-hotspot-primary{
  /* right gold button embedded in the hero image */
  left:70.4%;
  top:70.8%;
  width:18.2%;
  height:8.5%;
}
.selected-hero-card .hero-hotspot-secondary{
  /* left white button embedded in the hero image */
  left:57.9%;
  top:70.8%;
  width:12.0%;
  height:8.5%;
}
@media (max-width:760px){
  .selected-hero-card .hero-hotspot-primary,
  .selected-hero-card .hero-hotspot-secondary{
    top:69%;
    height:11%;
  }
}

/* Taxly smart questionnaire/upload visibility */
.taxly-smart-hidden{display:none!important}
body.taxly-no-spouse .spouse-col{display:none!important}
body.taxly-no-spouse .docs-matrix-head,
body.taxly-no-spouse .docs-row{grid-template-columns:1.15fr 1fr}
.smart-docs-control{
  margin:14px 0 4px;
  padding:12px 14px;
  border-radius:18px;
  border:1px solid rgba(212,181,111,.36);
  background:linear-gradient(135deg,rgba(255,248,232,.92),rgba(255,255,255,.86));
  display:flex;
  gap:12px;
  align-items:center;
  justify-content:space-between;
  flex-wrap:wrap;
  color:#6f5426;
  font-weight:800;
}
.smart-docs-control small{display:block;color:#8a7656;font-weight:700;margin-top:3px}
.smart-docs-control button{
  border:1px solid rgba(191,141,43,.42);
  background:#fff;
  color:#8a5f10;
  border-radius:999px;
  padding:9px 14px;
  font-weight:900;
  cursor:pointer;
}
.smart-docs-control button:hover{background:#fff7e2}

/* Foundational repair: calmer, clearer document cards for clients */
.docs-matrix-panel{
  border-radius:32px;
  border-color:rgba(44,62,106,.16);
  box-shadow:0 18px 42px rgba(30,41,59,.06);
}
.docs-matrix-body{
  padding:22px;
  gap:18px;
}
.docs-row{
  padding:18px;
  gap:18px;
  border-radius:28px;
  background:linear-gradient(135deg,rgba(255,255,255,.96),rgba(248,251,255,.92));
  border:1px solid rgba(148,163,184,.22);
  box-shadow:0 12px 28px rgba(30,41,59,.045);
}
.docs-row.is-doc-selected,
.docs-row.is-doc-uploaded{
  border-color:rgba(22,163,74,.42);
  background:linear-gradient(135deg,rgba(240,253,244,.96),rgba(255,255,255,.92));
}
.docs-row.is-doc-recommended{
  border-color:rgba(217,119,6,.28);
  background:linear-gradient(135deg,rgba(255,251,235,.92),rgba(255,255,255,.94));
}
.doc-label{
  justify-content:center;
  min-height:88px;
  padding:10px 12px;
  gap:8px;
  line-height:1.35;
  font-size:15px;
}
.doc-label em{
  color:#64748b;
  font-size:12.5px;
  font-weight:750;
}
.doc-status-pill{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  align-self:flex-start;
  min-height:26px;
  padding:4px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:950;
  border:1px solid rgba(100,116,139,.18);
  background:#f8fafc;
  color:#475569;
}
.doc-status-pill.is-uploaded,
.doc-status-pill.is-selected{
  background:#ecfdf5;
  color:#047857;
  border-color:rgba(16,185,129,.24);
}
.doc-status-pill.is-recommended{
  background:#fffbeb;
  color:#b45309;
  border-color:rgba(245,158,11,.28);
}
.doc-upload-slot{
  min-height:104px;
  border-radius:26px;
  padding:18px 20px;
  border-style:solid;
  border-color:rgba(99,102,241,.18);
  background:linear-gradient(135deg,#fff,#f8fafc);
}
.doc-upload-slot.is-uploaded{
  border-color:rgba(16,185,129,.48);
  background:linear-gradient(135deg,#ecfdf5,#ffffff);
}
.slot-main{font-size:15px;line-height:1.35}
.slot-sub{font-size:12.5px;line-height:1.3}
@media(max-width:760px){
  .docs-matrix-body{padding:14px;gap:14px}
  .docs-row{padding:14px;gap:12px}
  .doc-upload-slot{min-height:92px}
}
body.taxly-no-spouse .docs-row{grid-template-columns:minmax(190px,.9fr) minmax(240px,1.1fr)}


/* Taxly live processing display — prevents users from thinking the site froze */
.taxly-live-processing{
  position:relative;
  overflow:hidden;
  border:1px solid rgba(245,158,11,.45)!important;
  background:linear-gradient(135deg,#fffdf7 0%,#fff7ed 48%,#f8fafc 100%)!important;
  box-shadow:0 18px 55px rgba(146,64,14,.12)!important;
}
.taxly-processing-top{display:grid;grid-template-columns:96px 1fr;gap:18px;align-items:center}
.taxly-processing-orb{width:86px;height:86px;border-radius:50%;display:grid;place-items:center;background:radial-gradient(circle at 35% 30%,#fff7ed,#f59e0b 58%,#92400e);box-shadow:0 12px 30px rgba(146,64,14,.22);position:relative;isolation:isolate;animation:taxlyPulse 1.8s ease-in-out infinite}
.taxly-processing-orb span{position:absolute;width:11px;height:11px;border-radius:50%;background:#fff;opacity:.95;animation:taxlyDot 1.4s ease-in-out infinite}
.taxly-processing-orb span:nth-child(1){transform:translate(-22px,-6px);animation-delay:0s}
.taxly-processing-orb span:nth-child(2){transform:translate(0,12px);animation-delay:.18s}
.taxly-processing-orb span:nth-child(3){transform:translate(22px,-6px);animation-delay:.36s}
.taxly-processing-meter{height:13px;border-radius:999px;background:rgba(146,64,14,.12);overflow:hidden;margin:18px 0 14px;border:1px solid rgba(146,64,14,.16)}
.taxly-processing-meter span{display:block;height:100%;width:45%;border-radius:999px;background:linear-gradient(90deg,#fcd34d,#f59e0b,#92400e);animation:taxlyMeter 1.35s ease-in-out infinite}
.taxly-processing-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin-top:12px}
.taxly-processing-steps div{background:rgba(255,255,255,.78);border:1px solid rgba(245,158,11,.24);border-radius:16px;padding:12px 10px;text-align:center;min-height:72px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px}
.taxly-processing-steps strong{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#92400e;color:#fff;font-size:14px}
.taxly-processing-steps span{font-weight:800;color:#111827;font-size:13px;line-height:1.35}
.processing-note{font-weight:800;text-align:center;margin-top:14px!important}
.taxly-processing-only-shell{border-color:rgba(245,158,11,.35)!important;background:linear-gradient(135deg,#fff7ed,#ffffff)!important}
@keyframes taxlyPulse{0%,100%{transform:scale(1)}50%{transform:scale(1.045)}}
@keyframes taxlyDot{0%,100%{opacity:.45;transform:translateY(0) scale(.75)}50%{opacity:1;transform:translateY(-7px) scale(1)}}
@keyframes taxlyMeter{0%{transform:translateX(130%)}50%{transform:translateX(25%)}100%{transform:translateX(-130%)}}
@media(max-width:720px){.taxly-processing-top{grid-template-columns:1fr;text-align:center}.taxly-processing-orb{margin:auto}.taxly-processing-steps{grid-template-columns:1fr 1fr}}

/* 2026-05-09 hard QA repair: hide customer FAQ clutter and show real progress instead of endless spinner */
.faq-section{display:none!important}
.site-header nav a[href="#faq"]{display:none!important}
.taxly-processing-meter.fixed span{animation:none!important;transform:none!important;transition:width .45s ease}
.taxly-live-processing [data-taxly-processing-percent]{font-size:clamp(44px,7vw,76px);line-height:1;color:#92400e;margin-top:4px}
.taxly-live-processing [data-taxly-processing-time]{display:block;font-weight:850;color:#7c2d12;margin-top:6px}
.taxly-live-processing .processing-note{font-size:15px;line-height:1.7}

/* Upload removal controls and safer processing actions */
.doc-upload-slot input.structured-doc-input{z-index:1}
.doc-upload-slot .slot-main,
.doc-upload-slot .slot-sub,
.doc-upload-slot .doc-remove-upload{position:relative;z-index:2}
.doc-remove-upload{
  align-self:flex-start;
  margin-top:8px;
  border:1px solid rgba(185,28,28,.22);
  background:#fff7f7;
  color:#991b1b;
  border-radius:999px;
  padding:6px 12px;
  font-size:12px;
  font-weight:950;
  cursor:pointer;
  box-shadow:0 6px 16px rgba(153,27,27,.08);
}
.doc-remove-upload:hover{background:#fee2e2;border-color:rgba(185,28,28,.38)}
.processing-safe-actions{display:flex;justify-content:center;margin-top:12px;gap:10px;flex-wrap:wrap}
.processing-safe-actions .btn{min-height:42px}

/* TAXLY_FIX_2026_05_11_CLIENT_UI_NOTES */
.privacy-box,
#smartDocsControl,
.smart-docs-control,
#extractedRubricsPanel,
.extracted-rubrics-panel[hidden] {
  display: none !important;
}

.choice.icon-choice,
.choice-grid > .choice {
  position: relative !important;
  overflow: hidden !important;
  color: #101828 !important;
}
.choice.icon-choice .choice-icon {
  display: none !important;
}
.choice.icon-choice span:last-child,
.choice-grid > .choice span:last-child {
  position: relative !important;
  z-index: 3 !important;
  color: #101828 !important;
  text-shadow: none !important;
  padding-left: 0 !important;
}
.choice.icon-choice:has(input:checked),
.choice-grid > .choice:has(input:checked),
.mode-card:has(input:checked) {
  background: #f0fdf4 !important;
  border-color: #16a34a !important;
  box-shadow: 0 10px 24px rgba(22, 163, 74, .13) !important;
  color: #052e16 !important;
}
.choice.icon-choice:has(input:checked)::before,
.choice.icon-choice:has(input:checked)::after {
  display: none !important;
  content: none !important;
}
.choice.icon-choice:has(input:checked) span:last-child,
.choice-grid > .choice:has(input:checked) span:last-child {
  color: #052e16 !important;
  font-weight: 950 !important;
}
.choice.icon-choice:has(input:checked) input[type="checkbox"],
.choice-grid > .choice:has(input:checked) input[type="checkbox"] {
  accent-color: #16a34a !important;
  outline: 2px solid rgba(22, 163, 74, .18) !important;
}

.taxly-credit-details-panel,
.taxly-consultation-required,
.taxly-consultation-result {
  border: 1px solid rgba(22, 163, 74, .20);
  background: #ffffff;
  border-radius: 22px;
  padding: 18px;
  margin: 18px 0;
  box-shadow: 0 14px 30px rgba(15, 23, 42, .05);
}
.taxly-credit-details-panel > summary {
  cursor: pointer;
  font-weight: 950;
  color: #101828;
}
.taxly-consultation-required {
  border-color: rgba(217, 119, 6, .28);
  background: #fffbeb;
  color: #5f370e;
}
.taxly-consultation-required[hidden] { display: none !important; }
.taxly-consultation-required strong,
.taxly-consultation-result h4 { display:block; margin-bottom: 6px; }
.taxly-consultation-required a { color: #92400e; font-weight: 900; }
.taxly-consultation-result {
  border-color: rgba(217, 119, 6, .35);
  background: linear-gradient(180deg, #fffbeb, #fff7ed);
}


/* TAXLY_FIX_2026_05_12_ALL_NOTES_9_12 */
.taxly-pricing-clean{
  padding:56px 0 34px;
  background:linear-gradient(180deg,rgba(255,255,255,.72),rgba(255,248,235,.42));
}
.taxly-pricing-clean .pricing-head{text-align:center;max-width:720px;margin-inline:auto;margin-bottom:22px}
.pricing-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;max-width:920px;margin:0 auto}
.pricing-card{position:relative;overflow:hidden;border:1px solid rgba(148,163,184,.22);background:rgba(255,255,255,.88);border-radius:28px;padding:26px;box-shadow:0 22px 52px rgba(15,23,42,.08);display:flex;flex-direction:column;gap:14px;min-height:275px}
.pricing-card::before{content:"";position:absolute;inset:auto -20% -55% -20%;height:150px;background:radial-gradient(circle,rgba(213,161,66,.18),transparent 65%);pointer-events:none}
.pricing-card-main{border-color:rgba(213,161,66,.42);box-shadow:0 24px 58px rgba(146,100,20,.13)}
.pricing-badge{align-self:flex-start;border:1px solid rgba(213,161,66,.35);background:#fff7e8;color:#7c4a03;border-radius:999px;padding:7px 12px;font-weight:950;font-size:13px}
.pricing-badge.soft{background:#f8fafc;color:#334155;border-color:rgba(148,163,184,.28)}
.pricing-card h3{margin:0;font-size:24px;color:#101828;letter-spacing:-.35px}
.price-line{display:flex;align-items:flex-end;gap:10px;color:#101828;margin:2px 0 4px}
.price-line strong{font-size:clamp(34px,5vw,48px);line-height:1;color:#b87a12;letter-spacing:-1px}
.price-line span{font-weight:900;color:#475467;padding-bottom:7px}
.pricing-card p{margin:0;color:#667085;line-height:1.75;font-weight:750;flex:1}
.pricing-card .btn{align-self:flex-start;margin-top:6px}
.choice.icon-choice,
.choice-grid > .choice.icon-choice{
  display:grid!important;
  grid-template-columns:22px 42px 1fr!important;
  align-items:center!important;
  gap:14px!important;
  min-height:86px!important;
  padding:18px 20px!important;
  background:#fff!important;
  border:1px solid #dbe6f3!important;
  border-radius:18px!important;
  box-shadow:0 10px 24px rgba(15,23,42,.055)!important;
  overflow:hidden!important;
}
.choice.icon-choice input[type="checkbox"]{
  position:static!important;
  width:20px!important;
  height:20px!important;
  opacity:1!important;
  grid-column:1!important;
  accent-color:#2563eb!important;
  z-index:3!important;
}
.choice.icon-choice .choice-icon{
  display:grid!important;
  place-items:center!important;
  width:42px!important;
  height:42px!important;
  grid-column:2!important;
  border-radius:14px!important;
  background:#f7f9ff!important;
  color:#0b3a82!important;
  border:1px solid rgba(37,99,235,.12)!important;
  box-shadow:none!important;
  position:relative!important;
  z-index:2!important;
}
.choice.icon-choice .choice-icon svg{width:24px;height:24px;display:block}
.choice.icon-choice .choice-label{

  grid-column:3!important;
  padding:0!important;
  margin:0!important;
  color:#101828!important;
  font-size:15px!important;
  line-height:1.45!important;
  font-weight:900!important;
  text-align:right!important;
  z-index:3!important;
}
.choice.icon-choice::before,
.choice.icon-choice::after{display:none!important;content:none!important}
.choice.icon-choice:hover{transform:translateY(-2px)!important;border-color:#bfd2e8!important;box-shadow:0 16px 36px rgba(15,23,42,.08)!important}
.choice.icon-choice:has(input:checked){
  background:linear-gradient(180deg,#f8fffb,#f1fbf6)!important;
  border-color:#16a34a!important;
  box-shadow:0 16px 34px rgba(22,163,74,.12)!important;
}
.choice.icon-choice:has(input:checked) .choice-icon{
  background:#eafff2!important;
  color:#047857!important;
  border-color:rgba(22,163,74,.22)!important;
}
.choice.icon-choice:has(input:checked) span:last-child{color:#063f2a!important;text-shadow:none!important}
.choice.icon-choice:has(input:checked) input[type="checkbox"]{accent-color:#16a34a!important;outline:2px solid rgba(22,163,74,.16)!important;outline-offset:2px!important}
@media (max-width:780px){
  .pricing-cards{grid-template-columns:1fr}
  .choice.icon-choice,.choice-grid > .choice.icon-choice{grid-template-columns:22px 38px 1fr!important;gap:12px!important;min-height:78px!important;padding:16px!important}
  .choice.icon-choice .choice-icon{width:38px!important;height:38px!important}
}


/* Taxly self-filing payment lock — 2026-05-12 */
.taxly-payment-lock-card{
  display:flex;
  gap:18px;
  align-items:flex-start;
  border:1px solid rgba(15,118,110,.18);
  background:linear-gradient(135deg,#ffffff,#f6fffb);
}
.taxly-lock-icon{
  width:52px;
  height:52px;
  border-radius:18px;
  display:grid;
  place-items:center;
  background:#ecfdf5;
  box-shadow:inset 0 0 0 1px rgba(15,118,110,.14);
  font-size:24px;
  flex:0 0 auto;
}
.taxly-refund-only-result .tax-calc-grid,
.taxly-refund-only-result .tax-calc-breakdown{
  display:none!important;
}
.taxly-locked-header .result-score{
  letter-spacing:0;
}
body.taxly-self-filing-locked #taxCalculationAppendix,
body.taxly-self-filing-locked .professional-map-card,
body.taxly-self-filing-locked .self-filing-report:not(.taxly-processing-only-shell) .form135-preview-collapsed,
body.taxly-self-filing-locked .self-filing-report:not(.taxly-processing-only-shell) .data-review-gate,
body.taxly-self-filing-locked .self-filing-report:not(.taxly-processing-only-shell) .print-135-cta{
  display:none!important;
}


.choice.icon-choice .choice-label{
  grid-column:2!important;
  padding:0!important;
  margin:0!important;
  font-size:15.5px!important;
  line-height:1.45!important;
  font-weight:900!important;
  color:#111827!important;
  text-align:right!important;
  word-break:normal!important;
  white-space:normal!important;
}
.choice.icon-choice:has(input:checked) .choice-label{color:#064e3b!important}


/* === Taxly final visual repair 2026-05-12: clean client cards + plan separation === */
.finupp-style-grid{
  display:grid!important;
  grid-template-columns:repeat(auto-fit,minmax(245px,1fr))!important;
  gap:16px!important;
  align-items:stretch!important;
}
.choice.icon-choice{
  position:relative!important;
  direction:rtl!important;
  display:flex!important;
  flex-direction:row!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:14px!important;
  min-height:98px!important;
  padding:18px 18px 18px 58px!important;
  border:1px solid rgba(203,213,225,.9)!important;
  border-radius:24px!important;
  background:linear-gradient(180deg,#ffffff 0%,#fbfdff 100%)!important;
  box-shadow:0 12px 30px rgba(15,23,42,.055)!important;
  overflow:visible!important;
  cursor:pointer!important;
  transform:none!important;
}
.choice.icon-choice:hover{
  border-color:rgba(59,130,246,.32)!important;
  box-shadow:0 18px 38px rgba(15,23,42,.08)!important;
  transform:translateY(-1px)!important;
}
.choice.icon-choice input[type="checkbox"]{
  position:absolute!important;
  left:18px!important;
  top:18px!important;
  width:24px!important;
  height:24px!important;
  opacity:0!important;
  pointer-events:none!important;
}
.choice.icon-choice::before{
  content:""!important;
  position:absolute!important;
  left:18px!important;
  top:18px!important;
  width:24px!important;
  height:24px!important;
  border-radius:8px!important;
  border:2px solid #cbd5e1!important;
  background:#ffffff!important;
  box-shadow:0 2px 5px rgba(15,23,42,.08)!important;
}
.choice.icon-choice::after{display:none!important;content:none!important}
.choice.icon-choice .choice-icon{
  order:0!important;
  flex:0 0 42px!important;
  width:42px!important;
  height:42px!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(180deg,#f8fafc,#eef2ff)!important;
  color:#334155!important;
  border:1px solid rgba(99,102,241,.14)!important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.9),0 8px 18px rgba(30,41,59,.06)!important;
}
.choice.icon-choice .choice-icon svg{
  width:21px!important;
  height:21px!important;
  stroke-width:1.65!important;
}
.choice.icon-choice .choice-label,
.choice.icon-choice > span:not(.choice-icon){
  order:1!important;
  flex:1 1 auto!important;
  min-width:0!important;
  max-width:none!important;
  grid-column:auto!important;
  padding:0!important;
  margin:0!important;
  display:block!important;
  color:#0f172a!important;
  font-size:15.5px!important;
  line-height:1.45!important;
  font-weight:850!important;
  text-align:right!important;
  letter-spacing:-.01em!important;
  white-space:normal!important;
  word-break:normal!important;
  overflow-wrap:normal!important;
}
.choice.icon-choice:has(input:checked){
  border-color:rgba(16,185,129,.52)!important;
  background:linear-gradient(180deg,#f7fffb 0%,#effaf5 100%)!important;
  box-shadow:0 20px 42px rgba(22,163,74,.14)!important;
}
.choice.icon-choice:has(input:checked)::before{
  content:"✓"!important;
  display:grid!important;
  place-items:center!important;
  border-color:#16a34a!important;
  background:#16a34a!important;
  color:#ffffff!important;
  font-size:15px!important;
  font-weight:1000!important;
}
.choice.icon-choice:has(input:checked) .choice-icon{
  background:linear-gradient(180deg,#ecfdf5,#dcfce7)!important;
  color:#047857!important;
  border-color:rgba(16,185,129,.22)!important;
}
.choice.icon-choice:has(input:checked) .choice-label,
.choice.icon-choice:has(input:checked) > span:not(.choice-icon){color:#064e3b!important}
.choice.icon-choice:has(input:checked) .choice-label::after,
.choice.icon-choice:has(input:checked) span:last-child::after{display:none!important;content:none!important}
@media (max-width:720px){
  .finupp-style-grid{grid-template-columns:1fr!important;gap:12px!important}
  .choice.icon-choice{min-height:86px!important;border-radius:20px!important;padding:16px 16px 16px 54px!important}
  .choice.icon-choice .choice-icon{flex-basis:38px!important;width:38px!important;height:38px!important;border-radius:14px!important}
  .choice.icon-choice .choice-label,.choice.icon-choice > span:not(.choice-icon){font-size:15px!important}
}


/* Taxly admin/testing override: visible only when opened with ?admin=1 / #admin or via TaxlyPaymentLock.enableAdminPreview() */
.taxly-admin-preview-control{
  position:fixed;
  z-index:99999;
  left:18px;
  bottom:18px;
  width:min(330px,calc(100vw - 36px));
  border:1px solid rgba(22,163,74,.24);
  border-radius:20px;
  background:linear-gradient(135deg,#ecfdf5,#ffffff);
  box-shadow:0 18px 50px rgba(15,23,42,.18);
  padding:14px 16px;
  direction:rtl;
  text-align:right;
  color:#064e3b;
  font-family:Arial,'Noto Sans Hebrew',sans-serif;
}
.taxly-admin-preview-control strong{display:block;font-size:15px;font-weight:950;margin-bottom:4px}
.taxly-admin-preview-control span{display:block;font-size:12.5px;line-height:1.45;color:#166534;font-weight:750;margin-bottom:10px}
.taxly-admin-preview-control button{
  border:1px solid rgba(22,163,74,.32);
  background:#fff;
  color:#047857;
  border-radius:999px;
  padding:8px 12px;
  font-weight:900;
  cursor:pointer;
}
.taxly-admin-preview-control button:hover{background:#dcfce7}


/* Taxly AI 550 product gate — 2026-05-13 */
.taxly-ai-product-card{
  border-color:rgba(47,143,91,.34)!important;
  box-shadow:0 24px 60px rgba(47,143,91,.16)!important;
}
.taxly-ai-payment-gate{
  display:none;
  gap:18px;
  align-items:flex-start;
  margin:18px 0 22px;
  padding:22px;
  border-radius:24px;
  border:1px solid rgba(15,118,110,.20);
  background:linear-gradient(135deg,#ffffff,#f2fff8);
  box-shadow:0 16px 38px rgba(15,23,42,.06);
}
.taxly-ai-payment-gate h4{margin:0 0 8px;font-size:20px;color:#0f5132;font-weight:950}
.taxly-ai-payment-gate p{margin:0 0 14px;color:#344054;font-weight:750;line-height:1.7}
.taxly-ai-payment-gate small{display:block;margin-top:10px;color:#667085;font-weight:800}
body.taxly-mode-selfFile.taxly-self-filing-locked .taxly-ai-payment-gate{display:flex}
body.taxly-mode-selfFile.taxly-self-filing-locked .upload-panel.mode-self-file,
body.taxly-mode-selfFile.taxly-self-filing-locked .sim-mini-panel.mode-self-file,
body.taxly-mode-selfFile.taxly-self-filing-locked .manual-overrides.mode-self-file{
  display:none!important;
}
body.taxly-admin-preview .taxly-ai-payment-gate{display:none!important}
@media(max-width:720px){.taxly-ai-payment-gate{flex-direction:column}.taxly-ai-payment-gate .btn{width:100%;justify-content:center}}


/* Taxly AI admin lab */
.taxly-ai-lab-section{
  display:none;
  padding:70px 0;
  background:linear-gradient(180deg,#f8fafc,#fff7ed);
}
body.taxly-admin-preview .taxly-ai-lab-section,
body.taxly-ai-lab-force .taxly-ai-lab-section{
  display:block;
}
.taxly-ai-lab-card{
  background:#fff;
  border:1px solid rgba(149,162,196,.28);
  border-radius:28px;
  padding:24px;
  box-shadow:0 22px 55px rgba(15,23,42,.08);
}
.taxly-ai-lab-head{
  display:flex;
  justify-content:space-between;
  gap:18px;
  align-items:flex-start;
  border-bottom:1px solid rgba(149,162,196,.20);
  padding-bottom:18px;
  margin-bottom:18px;
}
.taxly-ai-lab-head h2{margin:4px 0 8px;font-size:30px;color:#101828}
.taxly-ai-lab-head p{margin:0;color:#475467;line-height:1.7}
.taxly-ai-lab-badge{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  padding:8px 14px;
  border-radius:999px;
  background:#ecfdf3;
  color:#067647;
  border:1px solid #b7ebcc;
  font-weight:950;
}
.taxly-ai-lab-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
  margin:18px 0;
}
.taxly-ai-lab-grid label,
.taxly-ai-lab-upload label{
  display:flex;
  flex-direction:column;
  gap:8px;
  font-weight:900;
  color:#24324a;
}
.taxly-ai-lab-grid input,
.taxly-ai-lab-upload input{
  width:100%;
  border:1px solid rgba(149,162,196,.35);
  border-radius:16px;
  padding:12px 14px;
  font:inherit;
  background:#fff;
}
.taxly-ai-lab-upload{
  margin:18px 0;
  padding:18px;
  border-radius:22px;
  background:linear-gradient(135deg,#f8fbff,#fff);
  border:1px dashed rgba(47,143,91,.35);
}
.taxly-ai-lab-upload span{font-weight:700;color:#667085;font-size:14px}
.taxly-ai-lab-actions{display:flex;gap:12px;flex-wrap:wrap;margin:14px 0}
.taxly-ai-lab-status{
  margin:16px 0;
  padding:12px 14px;
  border-radius:16px;
  background:#f8f9fc;
  border:1px solid rgba(149,162,196,.26);
  color:#344054;
  font-weight:800;
}
.taxly-ai-lab-status.is-working{background:#eff8ff;color:#175cd3;border-color:#b2ddff}
.taxly-ai-lab-status.is-done{background:#ecfdf3;color:#067647;border-color:#b7ebcc}
.taxly-ai-lab-status.is-error{background:#fff1f3;color:#b42318;border-color:#fecdd3}
.taxly-ai-lab-results{overflow:auto}
.taxly-ai-lab-summary{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:12px;
  margin:14px 0;
}
.taxly-ai-lab-mini{
  background:#f8fafc;
  border:1px solid rgba(149,162,196,.22);
  border-radius:18px;
  padding:14px;
}
.taxly-ai-lab-mini strong{display:block;font-size:22px;color:#101828}
.taxly-ai-lab-mini span{color:#667085;font-weight:800}
.taxly-ai-lab-table{
  width:100%;
  border-collapse:separate;
  border-spacing:0;
  overflow:hidden;
  border:1px solid rgba(149,162,196,.25);
  border-radius:18px;
  background:#fff;
}
.taxly-ai-lab-table th,
.taxly-ai-lab-table td{
  text-align:right;
  padding:12px 10px;
  border-bottom:1px solid rgba(149,162,196,.16);
  vertical-align:top;
}
.taxly-ai-lab-table th{background:#f8fafc;color:#344054;font-weight:950}
.taxly-ai-field-code{display:block;margin-top:4px;color:#667085;font-size:12px;font-weight:800;direction:ltr;text-align:right}
.taxly-ai-lab-table tr:last-child td{border-bottom:none}
.taxly-ai-confidence-high{color:#067647;font-weight:950}
.taxly-ai-confidence-medium{color:#b54708;font-weight:950}
.taxly-ai-confidence-low{color:#b42318;font-weight:950}
.taxly-ai-lab-raw{
  margin-top:16px;
  border-radius:18px;
  background:#0b1220;
  color:#d1e9ff;
  padding:16px;
  white-space:pre-wrap;
  direction:ltr;
  text-align:left;
  max-height:360px;
  overflow:auto;
}
.taxly-ai-lab-note{margin-top:18px}
@media (max-width:900px){
  .taxly-ai-lab-head{flex-direction:column}
  .taxly-ai-lab-grid,
  .taxly-ai-lab-summary{grid-template-columns:1fr}
}

/* Taxly AI full case overview card */
.taxly-case-overview{
  margin:18px 0 20px;
  padding:18px;
  border-radius:24px;
  border:1px solid rgba(212,163,71,.35);
  background:linear-gradient(135deg,#fff7e6,#fffef8 58%,#f8fbff);
  box-shadow:0 18px 44px rgba(15,23,42,.06);
}
.taxly-case-overview-head{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:14px;
}
.taxly-case-overview-head h3{
  margin:0 0 6px;
  color:#101828;
  font-size:24px;
  font-weight:950;
}
.taxly-case-overview-head p{
  margin:0;
  color:#667085;
  font-weight:850;
}
.taxly-case-overview-pill{
  flex:0 0 auto;
  display:inline-flex;
  padding:8px 13px;
  border-radius:999px;
  background:#ecfdf3;
  color:#067647;
  border:1px solid #b7ebcc;
  font-weight:950;
}
.taxly-case-overview-cards{
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:10px;
  margin:12px 0 16px;
}
.taxly-case-overview-cards div{
  background:#fff;
  border:1px solid rgba(149,162,196,.24);
  border-radius:16px;
  padding:12px;
}
.taxly-case-overview-cards strong{
  display:block;
  color:#101828;
  font-size:21px;
  line-height:1.2;
}
.taxly-case-overview-cards span{
  display:block;
  margin-top:4px;
  color:#667085;
  font-weight:850;
  font-size:13px;
}
.taxly-case-overview-grid{
  display:grid;
  grid-template-columns:1fr 1fr 1.35fr;
  gap:12px;
}
.taxly-case-overview-panel{
  border-radius:18px;
  padding:14px;
  border:1px solid rgba(149,162,196,.22);
  background:#fff;
}
.taxly-case-overview-panel h4{
  margin:0 0 10px;
  color:#101828;
  font-size:16px;
  font-weight:950;
}
.taxly-case-overview-panel ul{
  margin:0;
  padding:0 18px 0 0;
  color:#344054;
  font-weight:800;
  line-height:1.7;
}
.taxly-case-overview-panel.is-calc{border-color:#b7ebcc;background:#f6fef9}
.taxly-case-overview-panel.is-info{border-color:#d0d5dd;background:#f8fafc}
.taxly-case-overview-panel.is-risk{border-color:#fedf89;background:#fffbeb}
@media(max-width:980px){
  .taxly-case-overview-cards{grid-template-columns:repeat(2,minmax(0,1fr))}
  .taxly-case-overview-grid{grid-template-columns:1fr}
  .taxly-case-overview-head{flex-direction:column}
}

/* Taxly AI full case UX polish 2026-05-16 */
.taxly-case-stop-box{
  margin:10px 0 14px;
  padding:13px 15px;
  border-radius:16px;
  border:1px solid #fedf89;
  background:#fffbeb;
  color:#7a4b00;
  font-weight:950;
  line-height:1.6;
}
.taxly-case-parties{
  margin:0 0 14px;
  padding:13px 15px;
  border-radius:16px;
  border:1px solid #b2ddff;
  background:#eff8ff;
  color:#1849a9;
  font-weight:850;
}
.taxly-case-parties strong{display:block;margin-bottom:8px;color:#101828;font-weight:950}
.taxly-case-parties ul{margin:0;padding:0 18px 0 0;line-height:1.7}
.taxly-case-docs{
  margin:0 0 14px;
  padding:12px 14px;
  border-radius:16px;
  border:1px solid rgba(149,162,196,.24);
  background:#fff;
}
.taxly-case-docs summary{cursor:pointer;font-weight:950;color:#344054}
.taxly-case-docs div{display:flex;flex-wrap:wrap;gap:8px;margin-top:10px}
.taxly-case-docs span{
  display:inline-flex;
  align-items:center;
  padding:6px 10px;
  border-radius:999px;
  background:#f8fafc;
  border:1px solid rgba(149,162,196,.24);
  color:#344054;
  font-weight:850;
  font-size:13px;
}
.taxly-ai-lab-mini strong{overflow-wrap:anywhere;line-height:1.35}

/* Taxly AI full case warnings compact polish 2026-05-16 */
.taxly-ai-lab-system-details{
  margin-top:14px;
}
.taxly-ai-lab-system-details ul{
  margin:10px 0 0;
  padding:0 18px 0 0;
  color:#344054;
  font-weight:800;
  line-height:1.75;
}
.taxly-case-stop-box{
  font-size:15px;
}
.taxly-case-overview-panel.is-risk ul li{
  margin-bottom:4px;
}

/* Taxly AI draft forms preview 2026-05-16 */
.taxly-draft-forms{
  margin:18px 0 20px;
  padding:14px;
  border-radius:22px;
  border:1px solid rgba(47,143,91,.28);
  background:linear-gradient(135deg,#f6fef9,#ffffff 62%,#f8fafc);
  box-shadow:0 14px 36px rgba(15,23,42,.05);
}
.taxly-draft-forms > summary{
  cursor:pointer;
  font-weight:950;
  color:#101828;
  font-size:18px;
  padding:4px 2px 12px;
}
.taxly-draft-forms-note{
  margin:0 0 14px;
  padding:11px 13px;
  border-radius:15px;
  background:#ecfdf3;
  border:1px solid #b7ebcc;
  color:#067647;
  font-weight:850;
}
.taxly-draft-forms-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.taxly-draft-form-card{
  border:1px solid rgba(149,162,196,.22);
  border-radius:18px;
  background:#fff;
  overflow:hidden;
}
.taxly-draft-form-head{
  display:flex;
  justify-content:space-between;
  gap:12px;
  align-items:flex-start;
  padding:14px;
  background:#f8fafc;
  border-bottom:1px solid rgba(149,162,196,.18);
}
.taxly-draft-form-head h4{
  margin:0 0 5px;
  color:#101828;
  font-size:17px;
  font-weight:950;
}
.taxly-draft-form-head p{
  margin:0;
  color:#667085;
  font-weight:800;
  line-height:1.5;
}
.taxly-draft-form-link{
  flex:0 0 auto;
  text-decoration:none;
  color:#5b3be8;
  background:#fff;
  border:1px solid rgba(91,59,232,.22);
  border-radius:999px;
  padding:8px 11px;
  font-weight:950;
  font-size:13px;
}
.taxly-draft-form-card table{
  width:100%;
  border-collapse:collapse;
}
.taxly-draft-form-card th,
.taxly-draft-form-card td{
  text-align:right;
  padding:10px 12px;
  border-bottom:1px solid rgba(149,162,196,.14);
  vertical-align:top;
}
.taxly-draft-form-card th{
  background:#fff;
  color:#344054;
  font-weight:950;
}
.taxly-draft-form-card tr:last-child td{border-bottom:none}
.taxly-draft-form-card tr.needs-verify td{
  background:#fffbeb;
}
@media(max-width:980px){
  .taxly-draft-forms-grid{grid-template-columns:1fr}
  .taxly-draft-form-head{flex-direction:column}
}

/* Taxly AI draft package actions */
.taxly-package-actions{
  display:flex;
  flex-wrap:wrap;
  gap:12px;
  align-items:center;
  justify-content:flex-start;
  margin:16px 0;
  padding:14px 16px;
  border:1px solid #c7d2fe;
  background:#f8fafc;
  border-radius:18px;
}
.taxly-package-actions button{
  cursor:pointer;
  font-family:inherit;
}
.taxly-package-actions span{
  color:#64748b;
  font-weight:700;
  font-size:.92rem;
}
.taxly-package-print-btn,
.taxly-package-download-btn{
  border:1px solid #d8d6ff;
  background:#fff;
  color:#5146d8;
  border-radius:999px;
  padding:10px 18px;
  font-weight:900;
  box-shadow:0 10px 24px rgba(15,23,42,.06);
}
.taxly-package-print-btn:hover,
.taxly-package-download-btn:hover{
  background:#eef2ff;
}


/* 2026-05-16 v12: keep admin/test floating control from covering official form previews */
body:has(.tof-official-template-only) .taxly-admin-preview-control{
  display:none!important;
}
@media print{
  .taxly-admin-preview-control{display:none!important}
}


/* v30 professional drawer polish */
.taxly-professional-drawer{margin-top:18px}.taxly-professional-drawer>summary{font-weight:900;color:#0f172a}.taxly-professional-drawer .taxly-ai-lab-table{margin-top:10px}

/* v43 admin case dashboard */
.taxly-ai-lab-dashboard{margin:18px 0;overflow:auto}
.taxly-admin-dash{
  border:1px solid rgba(149,162,196,.25);
  border-radius:22px;
  padding:18px;
  background:linear-gradient(135deg,#ffffff,#f8fbff);
  box-shadow:0 14px 32px rgba(15,23,42,.06);
}
.taxly-admin-dash-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:14px}
.taxly-admin-dash-head h3{margin:0 0 6px;color:#101828;font-size:22px}
.taxly-admin-dash-head p{margin:0;color:#667085;font-weight:700;line-height:1.6}
.taxly-admin-dash-table-wrap{overflow:auto;max-height:520px;border-radius:18px}
.taxly-admin-dash-table{min-width:980px;font-size:13px}
.taxly-admin-dash-table small{color:#667085;font-weight:700}
.taxly-admin-chip{display:inline-flex;align-items:center;justify-content:center;gap:4px;border-radius:999px;padding:6px 10px;font-weight:950;border:1px solid rgba(149,162,196,.30);white-space:nowrap}
.taxly-admin-chip.is-done{background:#ecfdf3;color:#067647;border-color:#b7ebcc}
.taxly-admin-chip.is-working{background:#fff7ed;color:#b54708;border-color:#fed7aa}
.taxly-admin-chip.is-error{background:#fff1f3;color:#b42318;border-color:#fecdd3}
.linklike{border:0;background:transparent;color:#175cd3;font:inherit;font-weight:950;text-decoration:underline;cursor:pointer;padding:0}
@media(max-width:900px){.taxly-admin-dash-head{flex-direction:column}.taxly-admin-dash-table{min-width:840px}}

/* v45 admin dashboard filters and quick-open controls */
.taxly-admin-dash-summary{
  display:grid;
  grid-template-columns:repeat(5,minmax(120px,1fr));
  gap:12px;
  margin:14px 0;
}
.taxly-admin-stat{
  border:1px solid rgba(149,162,196,.22);
  border-radius:18px;
  padding:12px 14px;
  background:rgba(255,255,255,.82);
  box-shadow:0 8px 18px rgba(15,23,42,.04);
  min-height:78px;
}
.taxly-admin-stat strong{
  display:block;
  font-size:24px;
  color:#101828;
  line-height:1.1;
  margin-bottom:4px;
}
.taxly-admin-stat span{
  display:block;
  color:#667085;
  font-weight:850;
  font-size:13px;
}
.taxly-admin-stat em{
  display:block;
  margin-top:5px;
  color:#0f172a;
  font-style:normal;
  font-weight:950;
  font-size:13px;
}
.taxly-admin-dash-toolbar{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin:12px 0 14px;
  flex-wrap:wrap;
}
.taxly-admin-filter-row{
  display:flex;
  align-items:center;
  gap:8px;
  flex-wrap:wrap;
}
.taxly-admin-filter{
  border:1px solid rgba(149,162,196,.34);
  background:#fff;
  color:#344054;
  border-radius:999px;
  padding:8px 13px;
  font-weight:950;
  cursor:pointer;
  transition:.16s ease;
}
.taxly-admin-filter:hover{transform:translateY(-1px);box-shadow:0 8px 18px rgba(15,23,42,.06)}
.taxly-admin-filter.is-active{background:#101828;color:#fff;border-color:#101828}
.taxly-admin-search{
  display:flex;
  align-items:center;
  gap:8px;
  color:#667085;
  font-weight:900;
}
.taxly-admin-search input{
  min-width:260px;
  border:1px solid rgba(149,162,196,.34);
  border-radius:999px;
  padding:10px 14px;
  font-weight:850;
  color:#101828;
  outline:none;
  background:#fff;
}
.taxly-admin-search input:focus{border-color:#175cd3;box-shadow:0 0 0 3px rgba(23,92,211,.10)}
.taxly-admin-open-case{white-space:nowrap;padding:7px 11px!important;font-size:12px!important}
.taxly-admin-empty{text-align:center;color:#667085;font-weight:900;padding:18px!important}
.taxly-admin-dash-table{min-width:1120px}
@media(max-width:900px){
  .taxly-admin-dash-summary{grid-template-columns:1fr 1fr}
  .taxly-admin-search{width:100%;align-items:stretch;flex-direction:column}
  .taxly-admin-search input{min-width:0;width:100%}
  .taxly-admin-dash-table{min-width:980px}
}

/* v46 admin dashboard compact card layout: removes wide horizontal scroll */
.taxly-ai-lab-dashboard{overflow:visible}
.taxly-admin-case-list{display:grid;gap:14px;margin-top:12px}
.taxly-admin-case-card{
  border:1px solid rgba(149,162,196,.24);
  background:#fff;
  border-radius:20px;
  padding:14px;
  box-shadow:0 10px 24px rgba(15,23,42,.045);
}
.taxly-admin-case-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:12px}
.taxly-admin-case-id{font-size:14px;word-break:break-all;text-align:right}
.taxly-admin-case-updated{margin-top:4px;color:#667085;font-size:12px;font-weight:800}
.taxly-admin-case-main{display:grid;grid-template-columns:2fr repeat(5,minmax(92px,1fr));gap:10px;align-items:stretch}
.taxly-admin-case-main>div{border:1px solid rgba(149,162,196,.18);background:#f8fbff;border-radius:14px;padding:10px 12px;min-width:0}
.taxly-admin-case-main span{display:block;color:#667085;font-size:12px;font-weight:900;margin-bottom:4px}
.taxly-admin-case-main strong{display:block;color:#101828;font-size:15px;font-weight:950;line-height:1.35;word-break:break-word}
.taxly-admin-case-main small{display:block;color:#667085;font-size:12px;font-weight:800;line-height:1.35;margin-top:3px;word-break:break-word}
.taxly-admin-case-docs{margin-top:10px;border:1px dashed rgba(149,162,196,.36);background:#fffdf7;border-radius:14px;padding:10px 12px;color:#344054;font-size:13px;font-weight:850;line-height:1.55}
.taxly-admin-case-docs span{color:#101828;font-weight:950}
.taxly-admin-case-actions{display:flex;justify-content:flex-start;margin-top:10px}
.taxly-admin-case-actions .taxly-admin-open-case{font-size:13px!important;padding:9px 14px!important}
@media(max-width:1100px){
  .taxly-admin-case-main{grid-template-columns:1fr 1fr 1fr}
}
@media(max-width:720px){
  .taxly-admin-dash{padding:14px;border-radius:18px}
  .taxly-admin-dash-summary{grid-template-columns:1fr 1fr}
  .taxly-admin-case-head{flex-direction:column;align-items:stretch}
  .taxly-admin-case-head .taxly-admin-chip{align-self:flex-start}
  .taxly-admin-case-main{grid-template-columns:1fr}
  .taxly-admin-filter-row{gap:6px}
  .taxly-admin-filter{padding:7px 10px;font-size:12px}
}


/* Taxly v47 — admin dashboard action polish */
.taxly-admin-case-badges{display:flex;align-items:center;justify-content:flex-start;gap:8px;flex-wrap:wrap}
.taxly-admin-balance-chip{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 10px;font-weight:950;border:1px solid rgba(149,162,196,.30);white-space:nowrap;font-size:12px}
.taxly-admin-balance-chip.is-payment,.taxly-admin-case-balance.is-payment{background:#fff7ed!important;color:#b54708!important;border-color:#fed7aa!important}
.taxly-admin-balance-chip.is-refund,.taxly-admin-case-balance.is-refund{background:#ecfdf3!important;color:#067647!important;border-color:#b7ebcc!important}
.taxly-admin-balance-chip.is-neutral,.taxly-admin-case-balance.is-neutral{background:#f8fbff!important;color:#344054!important;border-color:rgba(149,162,196,.22)!important}
.taxly-admin-case-actions{display:flex;justify-content:flex-start;align-items:center;gap:10px;margin-top:12px;flex-wrap:wrap}
.taxly-admin-case-actions .taxly-admin-open-case.btn.primary{font-size:14px!important;padding:11px 18px!important;border-radius:999px!important;font-weight:950!important;background:linear-gradient(135deg,#175cd3,#0b4eb2)!important;color:#fff!important;border:1px solid rgba(23,92,211,.35)!important;box-shadow:0 12px 26px rgba(23,92,211,.18)!important}
.taxly-admin-case-actions .taxly-admin-open-case.btn.primary:hover{transform:translateY(-1px);box-shadow:0 16px 32px rgba(23,92,211,.24)!important}
.taxly-admin-copy-summary{font-size:13px!important;padding:10px 14px!important;border-radius:999px!important;font-weight:900!important}
@media(max-width:760px){.taxly-admin-case-badges{justify-content:flex-start}.taxly-admin-case-actions{justify-content:stretch}.taxly-admin-case-actions .btn{width:100%}}

/* Taxly v48 — admin dashboard export action layout */
.taxly-admin-dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: flex-start;
}

/* Taxly v50 — persistent cases and draft cleanup */
.taxly-admin-drafts-toggle{
  background:#fff7ed!important;
  border-color:#fed7aa!important;
  color:#9a3412!important;
}
.taxly-admin-drafts-toggle.is-active{
  background:#9a3412!important;
  color:#fff!important;
  border-color:#9a3412!important;
}
.taxly-admin-case-actions .btn.danger,
.taxly-admin-delete-draft{
  color:#b42318!important;
  background:#fff5f5!important;
  border:1px solid #fecaca!important;
  border-radius:999px!important;
  font-weight:950!important;
  padding:10px 14px!important;
}
.taxly-admin-case-actions .btn.danger:hover,
.taxly-admin-delete-draft:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(180,35,24,.12)!important;
}

/* Taxly v51 — full admin case management */
.taxly-admin-case-card.is-archived{
  opacity:.82;
  background:linear-gradient(135deg,#ffffff,#f8fafc);
  border-style:dashed;
}
.taxly-admin-archive-chip,
.taxly-admin-chip.taxly-admin-archive-chip{
  background:#f2f4f7!important;
  color:#344054!important;
  border-color:#d0d5dd!important;
}
.taxly-admin-management-chip{font-size:12px}
.taxly-admin-case-main{grid-template-columns:2fr repeat(6,minmax(92px,1fr));}
.taxly-admin-status-select{
  display:inline-flex;
  align-items:center;
  gap:7px;
  border:1px solid rgba(149,162,196,.34);
  background:#fff;
  color:#344054;
  border-radius:999px;
  padding:6px 10px;
  font-weight:950;
}
.taxly-admin-status-select span{font-size:12px;color:#667085;font-weight:950}
.taxly-admin-status-select select{
  border:0;
  background:transparent;
  color:#101828;
  font-weight:950;
  outline:none;
  cursor:pointer;
}
.taxly-admin-archive-toggle{
  background:#f8fafc!important;
  border-color:#d0d5dd!important;
  color:#344054!important;
}
.taxly-admin-archive-toggle.is-active{
  background:#344054!important;
  color:#fff!important;
  border-color:#344054!important;
}
.taxly-admin-archive-case{font-size:13px!important;padding:10px 14px!important;border-radius:999px!important;font-weight:900!important}
.taxly-admin-delete-case{font-size:13px!important;padding:10px 14px!important;border-radius:999px!important;font-weight:950!important}
@media(max-width:1220px){.taxly-admin-case-main{grid-template-columns:1fr 1fr 1fr}}
@media(max-width:720px){.taxly-admin-status-select{width:100%;justify-content:space-between}.taxly-admin-status-select select{flex:1;text-align:right}}

/* v52 manager notes / document request panel. Does not affect official forms or print package. */
.taxly-admin-management-summary{
  margin-top:10px;
  border:1px solid rgba(23,92,211,.16);
  background:#f8fbff;
  border-radius:14px;
  padding:10px 12px;
  color:#344054;
  font-size:13px;
  font-weight:850;
  line-height:1.55;
}
.taxly-admin-management-summary span{color:#101828;font-weight:950}
.taxly-admin-management-panel{
  margin-top:10px;
  border:1px solid rgba(149,162,196,.28);
  background:#fff;
  border-radius:16px;
  padding:10px 12px;
}
.taxly-admin-management-panel summary{
  cursor:pointer;
  color:#101828;
  font-weight:950;
  font-size:13px;
  list-style:none;
}
.taxly-admin-management-panel summary::-webkit-details-marker{display:none}
.taxly-admin-management-panel summary:before{content:"+";display:inline-flex;align-items:center;justify-content:center;width:20px;height:20px;margin-left:8px;border-radius:999px;background:#eef4ff;color:#175cd3;font-weight:950}
.taxly-admin-management-panel[open] summary:before{content:"−"}
.taxly-admin-management-grid{
  display:grid;
  grid-template-columns:1fr 1.5fr;
  gap:10px;
  margin-top:12px;
}
.taxly-admin-management-grid label{display:flex;flex-direction:column;gap:6px;color:#667085;font-weight:950;font-size:12px}
.taxly-admin-management-grid input,
.taxly-admin-management-grid textarea{
  width:100%;
  border:1px solid rgba(149,162,196,.35);
  border-radius:12px;
  background:#fff;
  padding:10px 12px;
  font:inherit;
  font-size:13px;
  color:#101828;
  outline:none;
  resize:vertical;
}
.taxly-admin-management-grid input:focus,
.taxly-admin-management-grid textarea:focus{border-color:#175cd3;box-shadow:0 0 0 3px rgba(23,92,211,.10)}
.taxly-admin-management-wide{grid-column:1/-1}
.taxly-admin-management-actions{display:flex;gap:10px;flex-wrap:wrap;margin-top:10px}
.taxly-admin-save-management,
.taxly-admin-copy-client-request{font-size:13px!important;padding:10px 14px!important;border-radius:999px!important;font-weight:900!important}
@media(max-width:820px){.taxly-admin-management-grid{grid-template-columns:1fr}.taxly-admin-management-actions .btn{width:100%}}

/* v53 manager workflow: structured missing documents and internal tasks */
.taxly-admin-structured-summary{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
  margin-top:8px;
}
.taxly-admin-structured-summary>div{
  border:1px dashed rgba(149,162,196,.36);
  background:#f8fbff;
  border-radius:14px;
  padding:9px 12px;
  color:#344054;
  font-size:12.5px;
  font-weight:850;
  line-height:1.55;
}
.taxly-admin-structured-summary span{color:#101828;font-weight:950}
.taxly-admin-subpanel{
  margin-top:12px;
  border:1px solid rgba(149,162,196,.22);
  border-radius:16px;
  background:#fff;
  padding:12px;
}
.taxly-admin-subpanel h4{margin:0 0 4px;color:#101828;font-size:14px;font-weight:950}
.taxly-admin-subpanel p{margin:0 0 10px;color:#667085;font-size:12.5px;font-weight:800;line-height:1.55}
.taxly-admin-structured-row{
  display:grid;
  grid-template-columns:1.5fr 150px 1.2fr;
  gap:8px;
  align-items:end;
  padding:8px;
  border-radius:14px;
  background:#f8fbff;
  border:1px solid rgba(149,162,196,.16);
  margin-top:8px;
}
.taxly-admin-task-row{grid-template-columns:1.4fr 120px 120px 1.2fr}
.taxly-admin-structured-row label{display:flex;flex-direction:column;gap:5px;color:#667085;font-weight:950;font-size:12px}
.taxly-admin-structured-row input,
.taxly-admin-structured-row select{
  width:100%;
  border:1px solid rgba(149,162,196,.34);
  border-radius:12px;
  padding:9px 10px;
  font:inherit;
  font-weight:850;
  color:#101828;
  background:#fff;
}
.taxly-admin-structured-row input:focus,
.taxly-admin-structured-row select:focus{outline:none;border-color:#175cd3;box-shadow:0 0 0 3px rgba(23,92,211,.10)}
@media(max-width:900px){
  .taxly-admin-structured-summary{grid-template-columns:1fr}
  .taxly-admin-structured-row,
  .taxly-admin-task-row{grid-template-columns:1fr}
}

/* v54 — manager full-case card. Operational UI only; does not affect forms/print/tax engine. */
.taxly-admin-full-card{
  margin:16px 0 18px;
  border:1px solid rgba(23,92,211,.18);
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  border-radius:24px;
  padding:18px;
  box-shadow:0 18px 44px rgba(15,23,42,.08);
}
.taxly-admin-full-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;margin-bottom:14px}
.taxly-admin-full-eyebrow{margin:0 0 4px;color:#175cd3;font-size:12px;font-weight:950;letter-spacing:.02em}
.taxly-admin-full-head h3{margin:0 0 5px;color:#101828;font-size:22px;font-weight:950;word-break:break-all}
.taxly-admin-full-head p{margin:0;color:#667085;font-weight:800;line-height:1.55}
.taxly-admin-full-actions{display:flex;gap:8px;flex-wrap:wrap;justify-content:flex-start}
.taxly-admin-full-actions .btn{border-radius:999px!important;font-size:13px!important;padding:10px 14px!important;font-weight:950!important}
.taxly-admin-full-metrics{display:grid;grid-template-columns:repeat(7,minmax(115px,1fr));gap:10px;margin:12px 0 14px}
.taxly-admin-full-metrics>div{border:1px solid rgba(149,162,196,.18);background:#fff;border-radius:16px;padding:11px 12px;min-width:0}
.taxly-admin-full-metrics span{display:block;color:#667085;font-size:12px;font-weight:950;margin-bottom:4px}
.taxly-admin-full-metrics strong{display:block;color:#101828;font-size:15px;font-weight:950;line-height:1.35;word-break:break-word}
.taxly-admin-full-metrics strong.is-payment{color:#b54708}.taxly-admin-full-metrics strong.is-refund{color:#067647}.taxly-admin-full-metrics strong.is-neutral{color:#344054}.taxly-admin-full-metrics strong.is-error{color:#b42318}.taxly-admin-full-metrics strong.is-done{color:#067647}.taxly-admin-full-metrics strong.is-working{color:#b54708}
.taxly-admin-full-metrics small{display:block;color:#667085;font-size:11px;font-weight:850;margin-top:2px}
.taxly-admin-full-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.taxly-admin-full-box{border:1px solid rgba(149,162,196,.18);background:#fff;border-radius:18px;padding:14px;min-width:0}
.taxly-admin-full-box h4{margin:0 0 10px;color:#101828;font-size:15px;font-weight:950}
.taxly-admin-full-wide{grid-column:1/-1}
.taxly-admin-full-list{margin:0;padding:0 20px 0 0;color:#344054;font-weight:850;line-height:1.75}
.taxly-admin-full-list li{margin:2px 0}
.taxly-admin-full-row{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;border-top:1px solid rgba(149,162,196,.14);padding:9px 0}
.taxly-admin-full-row:first-child{border-top:0;padding-top:0}
.taxly-admin-full-row strong{display:block;color:#101828;font-size:14px;font-weight:950;line-height:1.45;word-break:break-word}
.taxly-admin-full-row small{display:block;color:#667085;font-size:12px;font-weight:800;line-height:1.55;margin-top:2px;word-break:break-word}
.taxly-admin-full-row span{display:inline-flex;align-items:center;justify-content:center;white-space:nowrap;border:1px solid rgba(149,162,196,.24);background:#f8fbff;border-radius:999px;padding:5px 9px;color:#344054;font-size:12px;font-weight:950}
.taxly-admin-full-empty{color:#667085;font-weight:850;font-size:13px;padding:6px 0}
.taxly-admin-full-case{font-size:13px!important;padding:10px 14px!important;border-radius:999px!important;font-weight:900!important}
@media(max-width:1180px){.taxly-admin-full-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}.taxly-admin-full-head{flex-direction:column}.taxly-admin-full-actions{width:100%}}
@media(max-width:760px){.taxly-admin-full-card{padding:14px;border-radius:18px}.taxly-admin-full-metrics,.taxly-admin-full-grid{grid-template-columns:1fr}.taxly-admin-full-actions .btn{width:100%}.taxly-admin-full-row{flex-direction:column}.taxly-admin-full-row span{align-self:flex-start}}

/* Taxly v55 — manager decision workflow */
.taxly-admin-decision-panel{
  margin:12px 0;
  border:1px solid rgba(181,71,8,.22);
  background:linear-gradient(180deg,#fffaf2,#ffffff);
  border-radius:18px;
  padding:14px;
}
.taxly-admin-decision-panel h4,
.taxly-admin-full-decision h4{margin:0 0 6px;color:#101828;font-size:15px;font-weight:950}
.taxly-admin-decision-panel p,
.taxly-admin-full-decision p{margin:0 0 12px;color:#667085;font-size:12px;font-weight:850;line-height:1.55}
.taxly-admin-decision-panel select{
  width:100%;
  border:1px solid #d0d7e2;
  border-radius:14px;
  padding:11px 12px;
  background:#fff;
  color:#101828;
  font-weight:900;
  direction:rtl;
}
.taxly-admin-decision-quick{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.taxly-admin-decision-quick .btn{border-radius:999px!important;font-size:12px!important;font-weight:950!important;padding:9px 12px!important}
.taxly-admin-copy-final-client{border-color:rgba(47,143,91,.35)!important;background:#f0fdf4!important;color:#067647!important}
@media(max-width:760px){.taxly-admin-decision-quick .btn{width:100%}}


/* OPENAI LIVE V60 status and field alignment */
.taxly-openai-live{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px 16px;
  margin:14px 0 16px;
  padding:12px 16px;
  border-radius:18px;
  border:1px solid rgba(17, 127, 90, .28);
  background:rgba(230, 255, 243, .78);
  color:#075c3f;
  font-weight:700;
  direction:ltr;
}
.taxly-openai-live span{font-weight:600; color:#334155;}
.taxly-openai-live.is-error{background:rgba(255, 242, 242, .92); border-color:rgba(220, 38, 38, .28); color:#991b1b;}
.taxly-ai-lab-table{table-layout:fixed; width:100%; border-collapse:separate; border-spacing:0;}
.taxly-ai-lab-table th,.taxly-ai-lab-table td{vertical-align:middle; line-height:1.45; padding:12px 14px;}
.taxly-ai-lab-table th:first-child,.taxly-ai-lab-table td:first-child{width:84px; text-align:center; white-space:nowrap;}
.taxly-ai-lab-table th:nth-child(3),.taxly-ai-lab-table td:nth-child(3){width:150px; text-align:center; white-space:nowrap; font-variant-numeric:tabular-nums;}
.taxly-ai-lab-summary,.taxly-official-anchor-panel,.taxly-draft-forms{direction:rtl;}
.taxly-official-anchor-panel table td,.taxly-official-anchor-panel table th{text-align:right;}
.taxly-official-anchor-panel table td:first-child,.taxly-official-anchor-panel table th:first-child,
.taxly-official-anchor-panel table td:nth-child(3),.taxly-official-anchor-panel table th:nth-child(3){text-align:center;}

/* OPENAI LIVE V61: source-locked official field cleanup */


.taxly-openai-live.is-manager{border:1px solid #f2c94c;background:#fff8db;color:#4a3a00;border-radius:16px;padding:12px 14px;margin:12px 0;display:flex;gap:12px;align-items:center;flex-wrap:wrap;box-shadow:0 10px 30px rgba(180,140,0,.12)}
.taxly-openai-live.is-manager strong{font-weight:800}
.taxly-openai-live.is-manager span{font-size:.92rem}
