:root{
  --bg:#f5f7fb;
  --card:#ffffff;
  --ink:#122033;
  --muted:#607086;
  --line:#dce4ef;
  --primary:#0f766e;
  --primary-dark:#0b5f5a;
  --soft:#e7f6f3;
  --warn:#b45309;
  --warn-bg:#fff7ed;
  --danger:#b91c1c;
  --shadow:0 18px 45px rgba(15,30,55,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;font-family:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Tahoma,sans-serif;background:linear-gradient(rgba(245,247,251,.88),rgba(245,247,251,.92)),url("assets/solar-bg.svg") center top/cover fixed no-repeat,var(--bg);color:var(--ink);line-height:1.6}
.hero{background:linear-gradient(135deg,#053b3d,#0f766e 52%,#6ee7b7);color:white;padding:56px 20px 62px;position:relative;overflow:hidden}
.hero:after{content:"";position:absolute;right:-140px;top:-120px;width:420px;height:420px;background:rgba(255,255,255,.12);border-radius:50%}
.hero__content{max-width:1120px;margin:0 auto;position:relative;z-index:1}
.hero__layout{display:grid;grid-template-columns:minmax(280px,360px) 1fr;gap:28px;align-items:center}
.hero__brand-card{background:rgba(255,255,255,.95);border:1px solid rgba(255,255,255,.45);border-radius:28px;padding:18px;box-shadow:0 20px 40px rgba(0,0,0,.12);backdrop-filter:blur(4px)}
.hero__logo{display:block;width:100%;height:auto;max-width:100%;object-fit:contain;border-radius:18px;background:white}
.hero__text{min-width:0}
.badge{display:inline-flex;background:rgba(255,255,255,.16);border:1px solid rgba(255,255,255,.35);padding:6px 12px;border-radius:999px;font-weight:700;letter-spacing:.2px}
h1{font-size:clamp(30px,4vw,54px);line-height:1.08;margin:18px 0 12px}
.hero p{font-size:18px;max-width:780px;color:#effffb;margin:0 0 24px}.hero__actions{display:flex;gap:12px;flex-wrap:wrap}
button,a{font:inherit}.primary,.secondary{border:0;border-radius:12px;padding:12px 18px;font-weight:800;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}.primary{background:white;color:var(--primary-dark)}.secondary{background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.35);color:white}
.container{max-width:1120px;margin:-34px auto 56px;padding:0 20px;position:relative;z-index:2}.tabs{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-bottom:18px}.tab{border:1px solid var(--line);background:white;color:var(--muted);border-radius:16px;padding:14px 10px;font-weight:850;cursor:pointer;box-shadow:0 10px 24px rgba(15,30,55,.05)}.tab.active{background:var(--primary);color:white;border-color:var(--primary)}.tab{color:white;border:0;letter-spacing:.2px;transition:transform .15s ease,filter .15s ease,box-shadow .15s ease}.tab:hover{transform:translateY(-1px);filter:brightness(1.05)}.tab.tab-icbc{background:#dc2626;color:#fff;border-color:#dc2626}.tab.tab-tisco{background:#1d4ed8;color:#fff;border-color:#1d4ed8}.tab.tab-sme{background:#166534;color:#fff;border-color:#166534}.tab.active{color:#fff;box-shadow:0 14px 30px rgba(15,30,55,.18),inset 0 0 0 2px rgba(255,255,255,.55)}
.panel{display:none}.panel.active{display:block}.section-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start;margin:18px 0}.section-head h2,.details h2{margin:0;font-size:28px}.section-head p{margin:4px 0 0;color:var(--muted)}.pill{display:inline-flex;white-space:nowrap;background:var(--warn-bg);color:var(--warn);border:1px solid #fed7aa;border-radius:999px;padding:7px 12px;font-weight:800}
.grid{display:grid;gap:18px}.grid.two{grid-template-columns:minmax(310px,.8fr) minmax(320px,1.2fr)}.grid.three{grid-template-columns:repeat(3,1fr)}.card{background:rgba(255,255,255,.96);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow);padding:22px;margin-bottom:18px}.card h3{margin:0 0 16px;font-size:20px}.form-card label{display:block;font-weight:800;margin-bottom:14px}.form-card input,.form-card select{width:100%;margin-top:7px;border:1px solid #cfd8e6;background:#fff;border-radius:13px;padding:12px 13px;font-size:16px;outline:none}.form-card input:focus,.form-card select:focus{border-color:var(--primary);box-shadow:0 0 0 4px rgba(15,118,110,.12)}.checkline{display:flex!important;gap:10px;align-items:flex-start}.checkline input{width:auto;margin-top:5px}.notice{background:var(--soft);border:1px solid #c6eee7;color:#0e5f59;border-radius:14px;padding:12px;font-weight:700;font-size:14px}
.result-list{display:grid;grid-template-columns:1fr 1fr;gap:12px}.metric{border:1px solid var(--line);border-radius:16px;padding:14px;background:#fbfdff}.metric span{display:block;color:var(--muted);font-size:13px;font-weight:750}.metric strong{font-size:22px;display:block;margin-top:4px;line-height:1.15}.metric.highlight{background:linear-gradient(135deg,var(--soft),#fff);border-color:#9de0d4}.warning{display:none;margin-top:14px;border-radius:14px;padding:12px;background:#fef2f2;color:var(--danger);border:1px solid #fecaca;font-weight:800}.warning.show{display:block}.table-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.table-head h3{margin:0}.table-head span{color:var(--muted);font-weight:800}.table-wrap{overflow:auto;border:1px solid var(--line);border-radius:16px}table{border-collapse:collapse;width:100%;min-width:620px;background:white}th,td{padding:12px 13px;border-bottom:1px solid var(--line);text-align:right;white-space:nowrap}th:first-child,td:first-child{text-align:left;font-weight:800}th{background:#f0fdfa;color:#115e59;font-size:14px}tr:last-child td{border-bottom:0}.na{color:#9ca3af;font-style:italic}.details{margin-top:34px}.detail-card ul{padding-left:22px;margin:12px 0}.small{font-size:14px;color:var(--muted)}.formula-card{border-color:#bde9df;background:#fbfffe}footer{text-align:center;color:var(--muted);padding:28px 16px 42px}
@media(max-width:860px){.hero__layout{grid-template-columns:1fr;gap:18px}.hero__brand-card{max-width:560px;margin:0 auto}.tabs{grid-template-columns:1fr}.grid.two,.grid.three{grid-template-columns:1fr}.result-list{grid-template-columns:1fr}.section-head{display:block}.pill{margin-top:10px}.container{margin-top:-24px}.card{padding:18px}th,td{padding:10px}.hero{padding-top:42px}}
@media print{body{background:#fff!important}.tabs,.hero__actions,footer{display:none}.hero{padding:20px;background:white;color:#111}.hero p{color:#333}.hero__layout{grid-template-columns:240px 1fr;gap:18px}.hero__brand-card{box-shadow:none;border-color:#ddd}.container{margin:0 auto}.panel{display:block!important;break-inside:avoid}.card{box-shadow:none}.details{break-before:page}}

.hero__content--centered{text-align:center}
.hero__logo-wrap{display:flex;justify-content:center;align-items:center;margin:0 auto 20px}
.hero__logo--top{width:min(100%,760px);max-width:760px;border-radius:24px;background:rgba(255,255,255,.96);padding:10px 16px;box-shadow:0 20px 40px rgba(0,0,0,.15)}
.hero__actions--centered{justify-content:center}
.hero p{margin:0 auto 24px}
@media(max-width:860px){.hero__logo--top{width:min(100%,520px);padding:8px 12px;border-radius:18px}}
@media print{body{background:#fff!important}.hero__content--centered{text-align:left}.hero__logo-wrap{justify-content:flex-start}.hero__actions--centered{justify-content:flex-start}.hero__logo--top{max-width:340px;box-shadow:none;border:1px solid #ddd}}

/* === THE 1 ENERGY BRAND HEADER OVERRIDES === */

.hero__content--centered{
  text-align:center;
}
.hero__logo-wrap{
  display:flex;
  justify-content:center;
  align-items:center;
  margin:0 auto 20px;
}
.hero__logo--top{
  display:block;
  width:min(100%,760px);
  max-width:760px;
  height:auto;
  object-fit:contain;
  background:rgba(255,255,255,.97);
  border-radius:24px;
  padding:10px 16px;
  box-shadow:0 20px 44px rgba(0,0,0,.16);
}
.hero__content--centered .hero p{
  margin-left:auto;
  margin-right:auto;
}
.hero__content--centered .hero__actions,
.hero__actions--centered{
  justify-content:center;
}
.hero__content--centered > p{
  margin-left:auto;
  margin-right:auto;
}
@media(max-width:860px){
  .hero__logo--top{
    width:min(100%,520px);
    border-radius:18px;
    padding:8px 12px;
  }
}
@media print{body{background:#fff!important}
  .hero__content--centered{text-align:left}
  .hero__logo-wrap{justify-content:flex-start}
  .hero__logo--top{max-width:340px;box-shadow:none;border:1px solid #ddd}
  .hero__actions--centered{justify-content:flex-start}
}


/* === PRINT / PDF SUMMARY MODE === */
.section-actions{display:flex;flex-direction:column;gap:10px;align-items:flex-end}
.outline{border:1px solid var(--primary);background:#fff;color:var(--primary-dark);border-radius:12px;padding:10px 14px;font-weight:850;cursor:pointer;text-decoration:none;display:inline-flex;align-items:center;justify-content:center}
.outline:hover{background:var(--soft)}
.print-button{white-space:nowrap}

@media print{
  @page{size:A4;margin:10mm}
  html,body{background:#fff!important;color:#111!important;font-size:11px;line-height:1.35}
  .no-print,.tabs,.hero__actions,footer,.details,.compare-card{display:none!important}
  .hero{display:block!important;background:#fff!important;color:#111!important;padding:0 0 8px!important;border-bottom:1px solid #ddd;margin-bottom:8px}
  .hero:after,.badge,.hero p{display:none!important}
  .hero__content--centered{text-align:left!important;max-width:none!important}
  .hero__logo-wrap{justify-content:flex-start!important;margin:0 0 6px!important}
  .hero__logo--top{max-width:210px!important;width:210px!important;padding:4px 6px!important;border:1px solid #ddd!important;box-shadow:none!important;border-radius:8px!important}
  h1{font-size:18px!important;margin:4px 0 0!important;line-height:1.15}
  .container{max-width:none!important;margin:0!important;padding:0!important}
  .panel{display:none!important}
  .panel.active{display:block!important}
  .section-head{display:flex!important;justify-content:space-between!important;align-items:flex-start!important;gap:10px!important;margin:0 0 8px!important;break-inside:avoid!important}
  .section-head h2{font-size:16px!important;margin:0!important}
  .section-head p{font-size:10.5px!important;margin:2px 0 0!important;color:#333!important}
  .section-actions{display:block!important;text-align:right!important}
  .pill{font-size:10px!important;padding:3px 7px!important;border-radius:999px!important;white-space:nowrap!important}
  .print-button{display:none!important}
  .grid.two{display:grid!important;grid-template-columns:0.82fr 1.18fr!important;gap:8px!important}
  .card{box-shadow:none!important;border:1px solid #d5d5d5!important;border-radius:10px!important;padding:9px!important;margin-bottom:8px!important;background:#fff!important;break-inside:avoid!important}
  .card h3{font-size:13px!important;margin:0 0 7px!important}
  .form-card label{font-size:10.5px!important;margin-bottom:6px!important;font-weight:700!important}
  .form-card input,.form-card select{font-size:10.5px!important;padding:4px 6px!important;margin-top:2px!important;border-radius:6px!important;height:24px!important}
  .checkline{gap:5px!important;margin-top:2px!important}
  .checkline input{height:auto!important;margin-top:1px!important}
  .notice{display:none!important}
  .result-list{grid-template-columns:1fr 1fr!important;gap:6px!important}
  .metric{padding:6px!important;border-radius:8px!important;background:#fff!important}
  .metric span{font-size:9.5px!important;color:#555!important}
  .metric strong{font-size:12px!important;margin-top:1px!important;line-height:1.2!important}
  .metric.highlight{background:#f4fffb!important;border-color:#b7e6dc!important}
  .warning.show{display:block!important;font-size:10px!important;margin-top:6px!important;padding:6px!important;border-radius:8px!important}
}

/* === Integrated THE 1 ENERGY website navigation === */
.loan-site-header{position:sticky;top:0;z-index:1000;background:rgba(255,255,255,.96);backdrop-filter:blur(14px);border-bottom:1px solid rgba(220,228,239,.9);box-shadow:0 10px 30px rgba(15,30,55,.06)}
.loan-nav-row{max-width:1180px;margin:0 auto;padding:10px 20px;display:flex;align-items:center;gap:16px}
.loan-brand{display:flex;align-items:center;flex:0 0 auto;text-decoration:none}.loan-brand img{height:54px;width:auto;display:block;border-radius:10px;object-fit:contain;background:#fff}
.loan-nav{display:flex;align-items:center;gap:6px;margin-left:auto}.loan-nav a{color:#122033;text-decoration:none;font-weight:800;font-size:14px;padding:10px 12px;border-radius:999px;white-space:nowrap}.loan-nav a:hover,.loan-nav a.active{background:#e7f6f3;color:#0b5f5a}
.loan-nav-cta{background:#ff6b0f;color:#fff;text-decoration:none;font-weight:900;border-radius:999px;padding:11px 16px;white-space:nowrap;box-shadow:0 10px 22px rgba(255,107,15,.22)}
.loan-menu-toggle{display:none;margin-left:auto;border:1px solid #dce4ef;background:#fff;color:#122033;border-radius:12px;padding:8px 12px;font-size:22px;line-height:1;cursor:pointer}
.loan-floating-back{position:fixed;left:14px;bottom:14px;z-index:999}.loan-floating-back a{display:inline-flex;align-items:center;padding:10px 14px;border-radius:14px;background:#ff6b0f;color:#fff;text-decoration:none;font-weight:900;box-shadow:0 12px 28px rgba(15,30,55,.18)}
@media(max-width:980px){.loan-nav-row{flex-wrap:wrap}.loan-menu-toggle{display:inline-flex}.loan-nav{display:none;order:4;width:100%;margin-left:0;flex-direction:column;align-items:stretch;background:#fff;border:1px solid #dce4ef;border-radius:16px;padding:8px;box-shadow:0 14px 30px rgba(15,30,55,.08)}.loan-nav.open{display:flex}.loan-nav a{border-radius:12px}.loan-nav-cta{margin-left:auto}.loan-brand img{height:48px}}
@media(max-width:560px){.loan-nav-row{padding:8px 14px;gap:10px}.loan-brand img{height:42px}.loan-nav-cta{display:none}.loan-floating-back{left:10px;right:10px}.loan-floating-back a{width:100%;justify-content:center}}
@media print{.loan-site-header,.loan-floating-back{display:none!important}}


/* === V31 One-page Loan PDF Report === */
.loan-print-report{display:none}
@media print{
  @page{size:A4;margin:8mm}
  body.loan-print-report-mode *{visibility:hidden!important}
  body.loan-print-report-mode .loan-print-report,
  body.loan-print-report-mode .loan-print-report *{visibility:visible!important}
  body.loan-print-report-mode .loan-print-report{display:block!important;position:absolute!important;left:0!important;top:0!important;width:100%!important;background:#fff!important;color:#102033!important;font-family:Thonburi,"Noto Sans Thai",Tahoma,sans-serif!important}
  .loan-report-page{height:281mm!important;max-height:281mm!important;overflow:hidden!important;padding:0!important;box-sizing:border-box!important;background:#fff!important;page-break-after:auto!important;break-after:auto!important;font-family:Thonburi,"Noto Sans Thai",Tahoma,sans-serif!important}
  .loan-report-head{display:flex!important;align-items:center!important;gap:12px!important;border-bottom:3px solid var(--loan-accent,#0f766e)!important;padding-bottom:6px!important;margin-bottom:8px!important}
  .loan-report-head img{width:138px!important;height:auto!important;display:block!important;border-radius:8px!important}
  .loan-report-head h1{font-size:20px!important;margin:0 0 2px!important;line-height:1.12!important;color:#0f1e33!important;font-weight:1000!important}
  .loan-report-head p{font-size:10.8px!important;margin:0!important;color:#475569!important;font-weight:800!important}
  .loan-report-highlight{background:linear-gradient(135deg,#dc2626 0%, #ef4444 42%, #f97316 100%)!important;color:#fff!important;border-radius:18px!important;padding:12px 14px!important;margin:8px 0!important;text-align:center!important;box-shadow:0 14px 30px rgba(220,38,38,.24)!important;border:2px solid rgba(255,255,255,.45)!important}
  .loan-report-highlight span{display:block!important;font-size:13px!important;font-weight:900!important;opacity:1!important;color:#fff7ed!important;letter-spacing:.2px!important;text-shadow:0 1px 1px rgba(0,0,0,.18)!important}
  .loan-report-highlight strong{display:block!important;font-size:34px!important;line-height:1.05!important;margin:3px 0!important;font-weight:1000!important;color:#ffffff!important;text-shadow:0 2px 4px rgba(0,0,0,.18)!important}
  .loan-report-highlight small{display:block!important;font-size:9.8px!important;font-weight:850!important;opacity:1!important;color:#fff7ed!important;text-shadow:0 1px 1px rgba(0,0,0,.14)!important}
  .loan-report-kpis{display:grid!important;grid-template-columns:repeat(4,1fr)!important;gap:6px!important;margin:8px 0!important}
  .loan-report-kpis div{border:1px solid #dbe4ef!important;border-radius:10px!important;padding:6px 7px!important;background:#fbfdff!important;min-height:39px!important}
  .loan-report-kpis span{display:block!important;font-size:8.8px!important;color:#64748b!important;font-weight:900!important;line-height:1.15!important}
  .loan-report-kpis b{display:block!important;font-size:10.7px!important;color:#0f1e33!important;font-weight:1000!important;line-height:1.2!important;margin-top:2px!important}
  .loan-report-grid{display:grid!important;grid-template-columns:1fr 1fr!important;gap:7px!important;margin-top:7px!important}
  .loan-report-grid.three{grid-template-columns:repeat(3,1fr)!important}
  .loan-report-box{border:1px solid #dbe4ef!important;border-radius:12px!important;padding:8px 9px!important;background:#fff!important;break-inside:avoid!important}
  .loan-report-box h2{font-size:12.5px!important;color:var(--loan-accent,#0f766e)!important;margin:0 0 5px!important;font-weight:1000!important;line-height:1.2!important}
  .loan-report-box p,.loan-report-box li{font-size:9.3px!important;line-height:1.46!important;color:#334155!important;font-weight:800!important;margin:0!important}
  .loan-report-box ul{margin:0!important;padding-left:15px!important}
  .loan-report-box table{width:100%!important;min-width:0!important;border-collapse:collapse!important;font-size:9.4px!important}
  .loan-report-box td{border-bottom:1px solid #eef2f7!important;padding:4px 3px!important;white-space:normal!important;text-align:left!important;color:#334155!important}
  .loan-report-box td:first-child{width:42%!important;color:#64748b!important;font-weight:900!important}
  .loan-report-note{margin-top:5px!important;border-radius:9px!important;padding:5px!important;background:#fff7ed!important;border:1px solid #fed7aa!important;color:#9a3412!important;font-size:9.3px!important;font-weight:900!important;line-height:1.4!important}
  .loan-report-footer{margin-top:7px!important;border-top:1px solid #dbe4ef!important;padding-top:5px!important;font-size:8.9px!important;color:#64748b!important;font-weight:850!important;text-align:center!important}
}


/* === V32 all-month loan result / one-page A4 PDF === */
.all-month-screen-title{grid-column:1/-1;font-weight:950;color:#0f766e;background:#ecfdf5;border:1px solid #bbf7d0;border-radius:12px;padding:9px 12px;margin-bottom:4px}
.metric small{display:block;margin-top:4px;color:#8a4b00;font-size:12px;font-weight:800;line-height:1.35}
@media print{
  .loan-report-box.wide{grid-column:1 / -1!important;padding:7px 8px!important}
  .loan-report-month-table{width:100%!important;min-width:0!important;border-collapse:collapse!important;font-size:9.2px!important;margin-top:2px!important}
  .loan-report-month-table th{background:var(--loan-accent,#0f766e)!important;color:#fff!important;border:1px solid rgba(255,255,255,.25)!important;padding:4px!important;text-align:center!important;font-size:8.8px!important;font-weight:1000!important}
  .loan-report-month-table td{border:1px solid #dbe4ef!important;padding:4px!important;text-align:center!important;white-space:normal!important;color:#334155!important;font-weight:850!important}
  .loan-report-month-table .monthly-highlight{background:#fff7ed!important;color:#c2410c!important;font-size:11.5px!important;font-weight:1000!important;border:2px solid #fb923c!important}
  .loan-report-highlight strong{font-size:30px!important}
  .loan-report-kpis{gap:5px!important;margin:6px 0!important}
  .loan-report-grid{gap:6px!important;margin-top:6px!important}
  .loan-report-box{padding:7px 8px!important}
}


/* === V34 dark green monthly payment highlight === */
.metric.highlight{
  background:linear-gradient(135deg,#064e3b,#047857)!important;
  border:2px solid #022c22!important;
  color:#fff!important;
  box-shadow:0 12px 26px rgba(4,120,87,.24)!important;
}
.metric.highlight span,
.metric.highlight small{color:#dcfce7!important;opacity:1!important}
.metric.highlight strong{color:#ffffff!important;font-size:28px!important;font-weight:1000!important;text-shadow:0 2px 3px rgba(0,0,0,.22)!important}
@media print{
  .metric.highlight{background:#064e3b!important;border:2px solid #022c22!important;color:#fff!important}
  .metric.highlight span,.metric.highlight small{color:#dcfce7!important}
  .metric.highlight strong{color:#ffffff!important;font-size:16px!important;text-shadow:none!important}
  .loan-report-highlight{background:linear-gradient(135deg,#064e3b 0%,#047857 58%,#10b981 100%)!important;color:#fff!important;border:3px solid #022c22!important;box-shadow:0 10px 26px rgba(4,120,87,.28)!important}
  .loan-report-highlight span{color:#dcfce7!important;opacity:1!important}
  .loan-report-highlight strong{color:#ffffff!important;font-size:36px!important;text-shadow:0 2px 4px rgba(0,0,0,.22)!important}
  .loan-report-highlight small{color:#dcfce7!important;opacity:1!important}
  .loan-report-month-table .monthly-highlight{background:#064e3b!important;color:#ffffff!important;font-size:12.5px!important;font-weight:1000!important;border:2px solid #022c22!important;text-shadow:none!important}
}


/* === V35 red highlight fix: keep original loan months, make monthly payment readable in screen + PDF === */
.metric.highlight{
  background:linear-gradient(135deg,#b91c1c 0%,#ef4444 56%,#f97316 100%)!important;
  border:3px solid #7f1d1d!important;
  color:#ffffff!important;
  box-shadow:0 14px 30px rgba(185,28,28,.28)!important;
}
.metric.highlight span,
.metric.highlight small{
  color:#fff7ed!important;
  opacity:1!important;
  font-weight:950!important;
}
.metric.highlight strong{
  color:#ffffff!important;
  font-size:30px!important;
  font-weight:1000!important;
  text-shadow:0 2px 4px rgba(0,0,0,.25)!important;
}
@media print{
  body.loan-print-report-mode .loan-print-report,
  body.loan-print-report-mode .loan-print-report *,
  .loan-report-highlight,
  .loan-report-highlight *,
  .loan-report-month-table .monthly-highlight{
    -webkit-print-color-adjust:exact!important;
    print-color-adjust:exact!important;
  }
  body.loan-print-report-mode .loan-report-highlight,
  .loan-report-highlight{
    background:linear-gradient(135deg,#b91c1c 0%,#dc2626 48%,#f97316 100%)!important;
    color:#ffffff!important;
    border:3px solid #7f1d1d!important;
    box-shadow:0 12px 26px rgba(185,28,28,.28)!important;
  }
  body.loan-print-report-mode .loan-report-highlight span,
  .loan-report-highlight span{
    color:#fff7ed!important;
    opacity:1!important;
    font-weight:1000!important;
    text-shadow:0 1px 2px rgba(0,0,0,.24)!important;
  }
  body.loan-print-report-mode .loan-report-highlight strong,
  .loan-report-highlight strong{
    color:#ffffff!important;
    font-size:38px!important;
    font-weight:1000!important;
    text-shadow:0 2px 5px rgba(0,0,0,.30)!important;
    opacity:1!important;
    -webkit-text-fill-color:#ffffff!important;
  }
  body.loan-print-report-mode .loan-report-highlight small,
  .loan-report-highlight small{
    color:#fff7ed!important;
    opacity:1!important;
    font-weight:900!important;
  }
  .loan-report-month-table .monthly-highlight{
    background:#fee2e2!important;
    color:#b91c1c!important;
    font-size:12.8px!important;
    font-weight:1000!important;
    border:2px solid #dc2626!important;
    -webkit-text-fill-color:#b91c1c!important;
  }
}


/* ===== V39: bigger consistent menu on loan pages ===== */
.site-header{box-shadow:0 10px 26px rgba(15,30,51,.08)!important}
.site-header .nav a,.site-header nav a,.global-nav a{font-size:18px!important;font-weight:1000!important;letter-spacing:-.25px!important;line-height:1.25!important}
.site-header .btn,.global-consult{font-size:19px!important;font-weight:1000!important;border-radius:20px!important}
.tabs .tab,.tab{font-size:18px!important;font-weight:1000!important;min-height:56px!important;border-radius:18px!important}
@media(max-width:900px){.site-header .nav a,.site-header nav a,.global-nav a{font-size:18px!important}.tabs .tab,.tab{font-size:17px!important}}


/* === TISCO plan 2: zero-down NCB plan === */
.tisco-plan-two{
  margin-top:54px;
  padding-top:38px;
  border-top:4px solid #dbeafe;
  position:relative;
}
.tisco-plan-two:before{
  content:"";
  position:absolute;
  top:-4px;
  left:0;
  width:180px;
  height:4px;
  border-radius:999px;
  background:#1d4ed8;
}
.tisco-plan-two-head{margin-top:0}
.plan-kicker{
  display:inline-flex;
  align-items:center;
  margin-bottom:7px;
  padding:6px 12px;
  border-radius:999px;
  background:#dbeafe;
  color:#1e40af;
  font-size:14px;
  font-weight:1000;
  letter-spacing:.2px;
}
.pill-blue{
  background:#eff6ff!important;
  color:#1d4ed8!important;
  border-color:#bfdbfe!important;
}
.section-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;justify-content:flex-end}
.credit-explain{
  display:grid;
  grid-template-columns:78px 1fr;
  align-items:center;
  gap:18px;
  border:2px solid #bfdbfe;
  background:linear-gradient(135deg,#eff6ff,#ffffff);
}
.credit-explain__icon{
  width:72px;
  height:72px;
  display:flex;
  align-items:center;
  justify-content:center;
  border-radius:20px;
  background:#1d4ed8;
  color:#fff;
  font-size:20px;
  font-weight:1000;
  box-shadow:0 14px 28px rgba(29,78,216,.22);
}
.credit-explain h3{margin:0 0 5px}
.credit-explain p{margin:0;color:#334155;font-weight:700;line-height:1.65}
.ncb-rate-note{
  background:#eff6ff;
  border-color:#bfdbfe;
  color:#1e3a8a;
}
.detail-separator{height:1px;background:#dbe4ef;margin:18px 0}
.detail-card h4{font-size:17px;margin:0 0 8px;color:#1d4ed8}
@media(max-width:860px){
  .tisco-plan-two{margin-top:38px;padding-top:28px}
  .credit-explain{grid-template-columns:1fr;text-align:left}
  .credit-explain__icon{width:64px;height:64px}
  .section-actions{justify-content:flex-start;margin-top:12px}
}


/* === TISCO plan 2: show every NCB group together === */
.ncb-all-groups-box{
  display:flex;
  flex-direction:column;
  gap:5px;
  padding:12px 14px;
  border:1px solid #93c5fd;
  border-radius:13px;
  background:#eff6ff;
  color:#1e3a8a;
}
.ncb-all-groups-box b{font-size:15px;font-weight:1000}
.ncb-all-groups-box span{font-size:13px;font-weight:800;line-height:1.45;color:#334155}
.ncb-all-results{grid-column:1/-1}
.ncb-all-results__summary{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:10px;
  padding:10px 12px;
  border:1px solid #bfdbfe;
  border-radius:12px;
  background:#eff6ff;
  color:#1e3a8a;
  font-weight:900;
}
.ncb-all-results__summary small{color:#475569;font-weight:800}
.ncb-all-results-table{width:100%;min-width:820px;border-collapse:collapse}
.ncb-all-results-table th{
  background:#1d4ed8;
  color:#fff;
  border:1px solid #dbeafe;
  padding:9px 7px;
  text-align:center;
  font-size:12px;
  font-weight:1000;
}
.ncb-all-results-table td{
  border:1px solid #dbe4ef;
  padding:8px 7px;
  text-align:center;
  font-size:12px;
  font-weight:800;
  color:#334155;
  background:#fff;
}
.ncb-all-results-table tr:nth-child(even) td{background:#f8fbff}
.ncb-all-results-table td:first-child{text-align:left;font-weight:1000;color:#1e3a8a;min-width:210px}
.ncb-all-results-table .ncb-monthly-highlight{
  background:#fff7ed!important;
  color:#c2410c;
  font-size:13px;
  font-weight:1000;
  border:2px solid #fb923c;
}
@media(max-width:860px){
  .ncb-all-results-table{min-width:760px}
}
@media print{
  .tisco-ncb-all-report .loan-report-highlight strong{font-size:25px!important}
  .tisco-ncb-all-report .loan-report-kpis{grid-template-columns:repeat(4,1fr)!important}
  .tisco-ncb-report-table{width:100%!important;min-width:0!important;border-collapse:collapse!important;font-size:7.7px!important}
  .tisco-ncb-report-table th{background:#1d4ed8!important;color:#fff!important;border:1px solid #bfdbfe!important;padding:3px 2px!important;text-align:center!important;font-size:7.4px!important;font-weight:1000!important}
  .tisco-ncb-report-table td{border:1px solid #dbe4ef!important;padding:3px 2px!important;text-align:center!important;color:#334155!important;font-weight:850!important;line-height:1.18!important}
  .tisco-ncb-report-table td:first-child{text-align:left!important;width:25%!important;color:#1e3a8a!important;font-weight:1000!important}
  .tisco-ncb-report-table .monthly-highlight{background:#fff7ed!important;color:#c2410c!important;border:1.5px solid #fb923c!important;font-size:8.2px!important;font-weight:1000!important}
  .tisco-ncb-all-report .loan-report-box{padding:6px 7px!important}
  .tisco-ncb-all-report .loan-report-note{font-size:8.3px!important;line-height:1.3!important}
  .tisco-ncb-all-report .loan-report-footer{font-size:8px!important}
}


/* === Detailed lender explanations in one-page A4 PDF === */
@media print{
  .loan-report-detail-grid{display:grid!important;grid-template-columns:repeat(2,1fr)!important;gap:5px!important;margin-top:6px!important;break-inside:avoid!important}
  .loan-report-detail-item{border:1px solid #dbe4ef!important;border-left:4px solid var(--loan-accent,#0f766e)!important;border-radius:9px!important;padding:5px 7px!important;background:#fbfdff!important;break-inside:avoid!important}
  .loan-report-detail-item h3{margin:0 0 2px!important;font-size:9.8px!important;line-height:1.2!important;color:var(--loan-accent,#0f766e)!important;font-weight:1000!important}
  .loan-report-detail-item p{margin:0!important;font-size:7.95px!important;line-height:1.33!important;color:#334155!important;font-weight:800!important}
  .tisco-ncb-all-report .tisco-ncb-detail-grid{gap:4px!important;margin-top:4px!important}
  .tisco-ncb-all-report .loan-report-detail-item{padding:4px 6px!important;border-left-width:3px!important}
  .tisco-ncb-all-report .loan-report-detail-item h3{font-size:8.8px!important;margin-bottom:1px!important}
  .tisco-ncb-all-report .loan-report-detail-item p{font-size:7.15px!important;line-height:1.24!important}
  .tisco-ncb-all-report .tisco-ncb-report-table th{padding:2px 2px!important}
  .tisco-ncb-all-report .tisco-ncb-report-table td{padding:2px 2px!important;line-height:1.12!important}
  .tisco-ncb-all-report .loan-report-highlight{padding:8px 10px!important;margin:5px 0!important}
  .tisco-ncb-all-report .loan-report-kpis{margin:4px 0!important;gap:4px!important}
  .tisco-ncb-all-report .loan-report-kpis div{padding:4px 5px!important;min-height:32px!important}
  .tisco-ncb-all-report .loan-report-box.wide{padding:5px 6px!important}
}

/* === V52: true single-page lender PDF, lender logos and fuller explanations === */
@media print{
  html,body{margin:0!important;padding:0!important;width:100%!important;min-height:0!important;height:auto!important;background:#fff!important;overflow:visible!important}
  body.loan-print-report-mode{margin:0!important;padding:0!important}
  body.loan-print-report-mode > *:not(.loan-print-report){display:none!important}
  body.loan-print-report-mode .loan-print-report{
    display:block!important;
    position:static!important;
    inset:auto!important;
    width:100%!important;
    height:auto!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
  }
  body.loan-print-report-mode .loan-report-page{
    display:flex!important;
    flex-direction:column!important;
    width:100%!important;
    height:275mm!important;
    min-height:275mm!important;
    max-height:275mm!important;
    margin:0!important;
    padding:0!important;
    overflow:hidden!important;
    box-sizing:border-box!important;
    page-break-before:avoid!important;
    page-break-after:avoid!important;
    break-before:avoid-page!important;
    break-after:avoid-page!important;
  }
  body.loan-print-report-mode .loan-report-page:last-child{page-break-after:avoid!important;break-after:avoid-page!important}
  body.loan-print-report-mode .loan-report-head{
    display:grid!important;
    grid-template-columns:190px 1fr!important;
    align-items:center!important;
    gap:10px!important;
    min-height:45px!important;
    padding:0 0 5px!important;
    margin:0 0 5px!important;
  }
  .loan-report-logo-lockup{display:flex!important;align-items:center!important;gap:7px!important;height:42px!important;overflow:hidden!important}
  .loan-report-company-logo{width:91px!important;max-width:91px!important;height:36px!important;object-fit:contain!important;border-radius:5px!important}
  .loan-report-logo-divider{display:block!important;width:1px!important;height:31px!important;background:#cbd5e1!important;flex:0 0 1px!important}
  .loan-report-lender-logo{display:block!important;width:82px!important;max-width:82px!important;height:39px!important;object-fit:contain!important;object-position:center!important;border-radius:0!important}
  .loan-report-lender-logo--icbc{width:47px!important;max-width:47px!important;height:39px!important}
  .loan-report-lender-logo--tisco,.loan-report-lender-logo--tisco-ncb{width:90px!important;max-width:90px!important}
  .loan-report-lender-logo--sme{width:78px!important;max-width:78px!important}
  .loan-report-head-copy{min-width:0!important}
  .loan-report-head h1{font-size:18px!important;line-height:1.08!important;margin:0 0 2px!important}
  .loan-report-head p{font-size:9.8px!important;line-height:1.25!important}
  .loan-report-highlight{padding:8px 11px!important;margin:4px 0!important;border-radius:13px!important}
  .loan-report-highlight span{font-size:10.5px!important;line-height:1.1!important}
  .loan-report-highlight strong{font-size:28px!important;line-height:1.03!important;margin:2px 0!important}
  .loan-report-highlight small{font-size:8.3px!important;line-height:1.18!important}
  .loan-report-kpis{grid-template-columns:repeat(4,1fr)!important;gap:4px!important;margin:4px 0!important}
  .loan-report-kpis div{padding:4px 5px!important;min-height:31px!important;border-radius:8px!important}
  .loan-report-kpis span{font-size:7.7px!important;line-height:1.08!important}
  .loan-report-kpis b{font-size:9.3px!important;line-height:1.12!important;margin-top:1px!important}
  .loan-report-grid{gap:4px!important;margin-top:4px!important}
  .loan-report-box{padding:5px 6px!important;border-radius:8px!important}
  .loan-report-box h2{font-size:10px!important;margin-bottom:3px!important}
  .loan-report-box p,.loan-report-box li{font-size:7.65px!important;line-height:1.27!important}
  .loan-report-box table{font-size:7.75px!important}
  .loan-report-box td{padding:2px 2px!important;line-height:1.18!important}
  .loan-report-box.wide{padding:4px 5px!important}
  .loan-report-month-table{font-size:7.5px!important;margin-top:1px!important}
  .loan-report-month-table th{padding:2px!important;font-size:7.2px!important}
  .loan-report-month-table td{padding:2px!important;line-height:1.12!important}
  .loan-report-month-table .monthly-highlight{font-size:8.5px!important;border-width:1px!important}
  .loan-report-detail-grid,.loan-report-detail-grid--full{
    display:grid!important;
    grid-template-columns:repeat(3,1fr)!important;
    gap:4px!important;
    margin-top:4px!important;
    align-content:start!important;
    break-inside:avoid!important;
  }
  .loan-report-detail-item{padding:4px 5px!important;border-radius:7px!important;border-left-width:3px!important;min-height:43px!important}
  .loan-report-detail-item h3{font-size:8.25px!important;line-height:1.12!important;margin:0 0 1px!important}
  .loan-report-detail-item p{font-size:6.9px!important;line-height:1.22!important;font-weight:750!important}
  .loan-report-note{margin-top:4px!important;padding:4px 5px!important;font-size:7.4px!important;line-height:1.22!important}
  .loan-report-footer{margin-top:auto!important;padding-top:4px!important;font-size:7.5px!important;line-height:1.15!important}
  .tisco-ncb-all-report .loan-report-head{grid-template-columns:190px 1fr!important}
  .tisco-ncb-all-report .loan-report-highlight strong{font-size:23px!important}
  .tisco-ncb-all-report .tisco-ncb-report-table{font-size:6.8px!important}
  .tisco-ncb-all-report .tisco-ncb-report-table th{padding:1.5px 1px!important;font-size:6.5px!important;line-height:1.08!important}
  .tisco-ncb-all-report .tisco-ncb-report-table td{padding:1.35px 1px!important;font-size:6.55px!important;line-height:1.06!important}
  .tisco-ncb-all-report .tisco-ncb-report-table .monthly-highlight{font-size:6.9px!important;border-width:1px!important}
  .tisco-ncb-all-report .tisco-ncb-detail-grid{grid-template-columns:repeat(3,1fr)!important;gap:3px!important;margin-top:3px!important}
  .tisco-ncb-all-report .loan-report-detail-item{padding:3px 4px!important;min-height:35px!important}
  .tisco-ncb-all-report .loan-report-detail-item h3{font-size:7.3px!important}
  .tisco-ncb-all-report .loan-report-detail-item p{font-size:6.15px!important;line-height:1.15!important}
  .tisco-ncb-all-report .loan-report-note{font-size:6.7px!important;line-height:1.16!important;margin-top:3px!important;padding:3px 4px!important}
  .tisco-ncb-all-report .loan-report-footer{font-size:6.8px!important;padding-top:3px!important}
}

/* === V53: fuller one-page explanations and loan workflow === */
@media print{
  .loan-report-logo-lockup{height:47px!important;overflow:visible!important}
  body.loan-print-report-mode .loan-report-head{min-height:50px!important}
  .loan-report-lender-logo--icbc{width:44px!important;max-width:44px!important;height:44px!important}
  .loan-report-detail-item{min-height:16mm!important}
  .loan-report-detail-item p{font-size:7.35px!important;line-height:1.28!important}
  .loan-report-extended{display:grid!important;grid-template-rows:auto 1fr!important;gap:5px!important;margin-top:5px!important;break-inside:avoid!important}
  .loan-report-process-card{border:1px solid #dbe4ef!important;border-radius:9px!important;padding:5px 6px!important;background:#f8fafc!important}
  .loan-report-process-card h2{margin:0 0 4px!important;color:var(--loan-accent,#0f766e)!important;font-size:9.8px!important;line-height:1.15!important;font-weight:1000!important}
  .loan-report-steps{display:grid!important;grid-template-columns:repeat(5,1fr)!important;gap:4px!important}
  .loan-report-steps>div{position:relative!important;border:1px solid #dbe4ef!important;border-top:3px solid var(--loan-accent,#0f766e)!important;border-radius:7px!important;padding:5px 5px 4px 23px!important;min-height:25mm!important;background:#fff!important}
  .loan-report-steps b{position:absolute!important;left:5px!important;top:5px!important;display:flex!important;align-items:center!important;justify-content:center!important;width:14px!important;height:14px!important;border-radius:50%!important;background:var(--loan-accent,#0f766e)!important;color:#fff!important;font-size:7px!important;font-weight:1000!important}
  .loan-report-steps strong{display:block!important;color:#0f1e33!important;font-size:7.5px!important;line-height:1.16!important;margin-bottom:2px!important;font-weight:1000!important}
  .loan-report-steps span{display:block!important;color:#475569!important;font-size:6.75px!important;line-height:1.27!important;font-weight:750!important}
  .loan-report-guidance-grid{display:grid!important;grid-template-columns:repeat(3,1fr)!important;gap:4px!important}
  .loan-report-guidance-grid>div{border:1px solid #dbe4ef!important;border-left:4px solid var(--loan-accent,#0f766e)!important;border-radius:8px!important;padding:6px 7px!important;min-height:28mm!important;background:#fff!important}
  .loan-report-guidance-grid h3{margin:0 0 3px!important;color:var(--loan-accent,#0f766e)!important;font-size:8.4px!important;line-height:1.15!important;font-weight:1000!important}
  .loan-report-guidance-grid p{margin:0!important;color:#334155!important;font-size:7.15px!important;line-height:1.34!important;font-weight:780!important}
  .tisco-ncb-all-report .loan-report-detail-item{min-height:12mm!important}
  .tisco-ncb-all-report .loan-report-detail-item p{font-size:6.45px!important;line-height:1.2!important}
  .tisco-ncb-all-report .loan-report-process-card{padding:4px 5px!important}
  .tisco-ncb-all-report .loan-report-steps>div{min-height:20mm!important;padding:4px 4px 3px 21px!important}
  .tisco-ncb-all-report .loan-report-steps strong{font-size:6.8px!important}
  .tisco-ncb-all-report .loan-report-steps span{font-size:5.95px!important;line-height:1.2!important}
  .tisco-ncb-all-report .loan-report-guidance-grid>div{min-height:22mm!important;padding:4px 5px!important}
  .tisco-ncb-all-report .loan-report-guidance-grid h3{font-size:7.4px!important;margin-bottom:2px!important}
  .tisco-ncb-all-report .loan-report-guidance-grid p{font-size:6.15px!important;line-height:1.22!important}
}

/* === V54: use the full A4 height without creating extra pages === */
@media print{
  .loan-report-extended{flex:1 1 auto!important;min-height:0!important;grid-template-rows:auto minmax(0,1fr)!important}
  .loan-report-guidance-grid{height:100%!important;align-items:stretch!important}
  .loan-report-guidance-grid>div{height:100%!important;box-sizing:border-box!important}
}

/* === V55: detailed checklists inside the full-height guidance boxes === */
@media print{
  .loan-report-guidance-grid ul{margin:4px 0 0!important;padding-left:12px!important}
  .loan-report-guidance-grid li{margin:0 0 2px!important;color:#334155!important;font-size:6.9px!important;line-height:1.27!important;font-weight:760!important}
  .loan-report-guidance-grid li::marker{color:var(--loan-accent,#0f766e)!important}
  .tisco-ncb-all-report .loan-report-guidance-grid ul{margin-top:3px!important;padding-left:10px!important}
  .tisco-ncb-all-report .loan-report-guidance-grid li{font-size:5.85px!important;line-height:1.18!important;margin-bottom:1px!important}
}

/* === V15: prominent Red Glass print / PDF actions for every lender === */
body .print-button,
body .print-pdf-glass{
  position:relative!important;
  isolation:isolate!important;
  overflow:hidden!important;
  min-height:48px!important;
  padding:12px 18px!important;
  border-radius:15px!important;
  border:1px solid rgba(255,184,184,.78)!important;
  background:
    linear-gradient(135deg,rgba(105,15,28,.94) 0%,rgba(185,28,28,.92) 42%,rgba(239,68,68,.88) 72%,rgba(127,29,29,.94) 100%)!important;
  color:#fff!important;
  font-weight:950!important;
  letter-spacing:.1px!important;
  text-shadow:0 1px 2px rgba(0,0,0,.36)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.32),
    inset 0 -1px 0 rgba(255,255,255,.08),
    0 0 0 1px rgba(127,29,29,.38),
    0 10px 28px rgba(220,38,38,.30),
    0 0 26px rgba(239,68,68,.14)!important;
  backdrop-filter:blur(16px) saturate(150%)!important;
  -webkit-backdrop-filter:blur(16px) saturate(150%)!important;
  cursor:pointer!important;
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease,border-color .18s ease!important;
}
body .print-button::before,
body .print-pdf-glass::before{
  content:"";
  position:absolute;
  z-index:-1;
  inset:1px 1px auto 1px;
  height:48%;
  border-radius:13px 13px 48% 48%;
  background:linear-gradient(180deg,rgba(255,255,255,.26),rgba(255,255,255,.025));
  pointer-events:none;
}
body .print-button::after,
body .print-pdf-glass::after{
  content:"";
  position:absolute;
  top:-65%;
  left:-34%;
  width:28%;
  height:230%;
  transform:rotate(20deg);
  background:linear-gradient(90deg,transparent,rgba(255,255,255,.34),transparent);
  opacity:.55;
  pointer-events:none;
  transition:left .42s ease;
}
body .print-button:hover,
body .print-pdf-glass:hover{
  transform:translateY(-2px) scale(1.015)!important;
  filter:brightness(1.09) saturate(1.08)!important;
  border-color:rgba(255,224,224,.96)!important;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.42),
    0 0 0 1px rgba(248,113,113,.52),
    0 14px 34px rgba(220,38,38,.42),
    0 0 34px rgba(248,113,113,.24)!important;
}
body .print-button:hover::after,
body .print-pdf-glass:hover::after{left:112%;}
body .print-button:active,
body .print-pdf-glass:active{
  transform:translateY(0) scale(.995)!important;
  box-shadow:inset 0 2px 8px rgba(74,4,4,.34),0 7px 20px rgba(220,38,38,.28)!important;
}
body .print-button:focus-visible,
body .print-pdf-glass:focus-visible{
  outline:3px solid rgba(254,202,202,.92)!important;
  outline-offset:3px!important;
}
@media(max-width:560px){
  body .print-button,
  body .print-pdf-glass{
    width:100%!important;
    min-height:50px!important;
    white-space:normal!important;
    text-align:center!important;
  }
}
@media print{
  body .print-button,
  body .print-pdf-glass{display:none!important;}
}

/* === V22: TISCO Plan 2 NCB selector + high-contrast white text === */
.tisco-plan-two .form-card > h3,
.tisco-plan-two .result-card > h3,
.tisco-plan-two .ncb-group-field__label,
.tisco-plan-two .ncb-group-selector,
.tisco-plan-two .ncb-group-selector *,
.tisco-plan-two .ncb-all-results__summary,
.tisco-plan-two .ncb-all-results__summary *{
  color:#fffaf2;
}

.ncb-group-field{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ncb-group-field__label{
  display:block;
  font-size:14px;
  font-weight:950;
  letter-spacing:.1px;
}
.ncb-group-selector{
  position:relative;
  overflow:hidden;
  padding:14px;
  border:1px solid rgba(53,231,255,.30);
  border-radius:17px;
  background:
    linear-gradient(145deg,rgba(18,40,61,.92),rgba(8,21,35,.96)),
    rgba(5,18,30,.94);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 14px 34px rgba(0,0,0,.24),
    0 0 26px rgba(53,231,255,.06);
}
.ncb-group-selector::before{
  content:"";
  position:absolute;
  inset:0 0 auto 0;
  height:2px;
  background:linear-gradient(90deg,#39efb6,#35e7ff,#3b82f6);
  opacity:.95;
  box-shadow:0 0 16px rgba(53,231,255,.55);
}
.ncb-group-selector__head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  margin-bottom:12px;
}
.ncb-group-selector__head > div{
  display:flex;
  flex-direction:column;
  gap:3px;
}
.ncb-group-selector__head b{
  font-size:15px;
  font-weight:1000;
}
.ncb-group-selector__head small{
  color:rgba(255,250,242,.74)!important;
  font-size:12px;
  font-weight:750;
  line-height:1.4;
}
.ncb-select-all-btn{
  flex:0 0 auto;
  min-height:38px;
  padding:9px 14px;
  border:1px solid rgba(53,231,255,.40)!important;
  border-radius:999px!important;
  background:linear-gradient(135deg,rgba(35,95,135,.86),rgba(17,70,112,.90))!important;
  color:#fff!important;
  font-weight:1000!important;
  font-size:12px!important;
  cursor:pointer;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.13),0 8px 20px rgba(0,0,0,.18);
  transition:transform .18s ease,box-shadow .18s ease,filter .18s ease;
}
.ncb-select-all-btn:hover{
  transform:translateY(-2px) scale(1.025);
  filter:brightness(1.12);
  box-shadow:0 10px 26px rgba(53,231,255,.18),inset 0 1px 0 rgba(255,255,255,.18);
}
.ncb-select-all-btn.is-active{
  background:linear-gradient(135deg,rgba(22,163,120,.95),rgba(21,135,167,.95))!important;
  border-color:rgba(88,255,209,.55)!important;
  box-shadow:0 0 22px rgba(57,239,182,.15),inset 0 1px 0 rgba(255,255,255,.20);
}
.ncb-group-options{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:9px;
}
.ncb-group-chip{
  position:relative;
  display:flex!important;
  align-items:center;
  gap:9px;
  min-height:58px;
  margin:0!important;
  padding:10px 11px!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:14px!important;
  background:rgba(255,255,255,.045)!important;
  cursor:pointer;
  transition:transform .18s ease,border-color .18s ease,background .18s ease,box-shadow .18s ease;
}
.ncb-group-chip:hover{
  transform:translateY(-2px);
  border-color:rgba(53,231,255,.48)!important;
  background:rgba(53,231,255,.08)!important;
}
.ncb-group-chip.is-selected{
  border-color:rgba(57,239,182,.60)!important;
  background:linear-gradient(135deg,rgba(21,148,117,.18),rgba(23,102,145,.18))!important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.035),0 0 18px rgba(53,231,255,.07);
}
.ncb-group-chip input{
  appearance:none;
  -webkit-appearance:none;
  width:20px!important;
  height:20px!important;
  min-width:20px;
  margin:0!important;
  border:2px solid rgba(255,255,255,.55)!important;
  border-radius:6px!important;
  background:rgba(255,255,255,.06)!important;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.ncb-group-chip input::after{
  content:"✓";
  color:#06151f;
  font-size:14px;
  font-weight:1000;
  transform:scale(0);
  transition:transform .12s ease;
}
.ncb-group-chip input:checked{
  border-color:#55f0c1!important;
  background:linear-gradient(135deg,#55f0c1,#35e7ff)!important;
  box-shadow:0 0 12px rgba(53,231,255,.28);
}
.ncb-group-chip input:checked::after{transform:scale(1)}
.ncb-group-chip span{
  color:#fffaf2!important;
  font-size:12px;
  font-weight:900;
  line-height:1.45;
}
.ncb-selection-status{
  margin-top:10px;
  padding-top:9px;
  border-top:1px solid rgba(255,255,255,.08);
  color:#79f4d0!important;
  font-size:12px;
  font-weight:950;
}
.ncb-selection-status.is-warning{color:#ff9b9b!important}
.ncb-empty-state{
  padding:18px;
  border:1px dashed rgba(255,141,141,.45);
  border-radius:14px;
  color:#fff0f0;
  background:rgba(127,29,29,.13);
  font-weight:900;
  text-align:center;
}

/* Force the result summary text to remain readable on the dark glass theme. */
.tisco-plan-two .ncb-all-results__summary{
  background:linear-gradient(135deg,rgba(17,57,75,.92),rgba(9,36,53,.94))!important;
  border-color:rgba(53,231,255,.28)!important;
}
.tisco-plan-two .ncb-all-results__summary small{color:rgba(255,250,242,.78)!important}

@media(max-width:860px){
  .ncb-group-selector__head{align-items:flex-start;flex-direction:column}
  .ncb-select-all-btn{width:100%}
  .ncb-group-options{grid-template-columns:1fr}
}
