:root{
  --lk-calc-primary:#3563ff;
  --lk-calc-primary-2:#6b8cff;
  --lk-calc-soft:#edf3ff;
  --lk-calc-border:#cfe0ff;
  --lk-calc-ink:#13233d;
  --lk-calc-muted:#6a7892;
  --lk-calc-card:#ffffff;
  --lk-calc-success:#0b8b64;
}

.main-card{
  display:flex;
  flex-direction:column;
}

.main-card>*{
  order:6;
}

.main-card>.section:nth-of-type(2){
  order:1;
}

.main-card>.ad-slot:first-of-type{
  order:2;
}

.main-card>.section.intro{
  order:3;
}

.main-card>.ad-slot.small:first-of-type{
  order:4;
}

.main-card>.section:nth-of-type(n+3){
  order:7;
}

.hero-wrap{
  max-width:1280px;
  padding:14px 18px 6px;
}

.hero-card{
  border-radius:28px;
  padding:18px 24px;
  background:linear-gradient(135deg,#10244d 0%,#1842cc 55%,#2f60ff 100%);
}

.hero-card h1{
  margin:0 0 6px;
  font-size:clamp(30px,3.6vw,52px);
  line-height:1.08;
  color:#fff;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.hero-card p{
  max-width:760px;
  margin:0;
  font-size:15px;
  line-height:1.45;
  color:#eaf1ff;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.hero-card a,
.hero-card a:visited,
.hero-card a:hover{
  color:#eaf1ff;
  text-decoration:none;
}

.hero-card .tag,
.hero-card .result-pill,
.hero-card .ad-label{
  color:#eaf1ff;
  background:rgba(255,255,255,.08);
  border-color:rgba(255,255,255,.18);
}

.hero-card .eyebrow{
  background:rgba(255,255,255,.08);
  color:#fff;
  border-color:rgba(255,255,255,.18);
}

.hero-badges span{
  background:#fff;
  color:#19305b;
  font-size:13px;
}

.hero-badges{
  display:none !important;
}

.page-wrap{
  max-width:1280px;
  padding-top:14px;
  min-width:0;
}

.layout{
  grid-template-columns:minmax(0,1fr) 320px;
  min-width:0;
}

.main-card{
  padding:20px;
  min-width:0;
}

.calc-box{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1.35fr) minmax(320px,.82fr);
  gap:20px;
  align-items:start;
  padding:18px;
  border:2px solid #5d7dff;
  border-radius:24px;
  background:linear-gradient(180deg,#ffffff 0%,#f8fbff 100%);
  box-shadow:0 20px 45px rgba(24,66,204,.08);
  min-width:0;
}

.calc-head,
.copy-note{
  grid-column:1/-1;
}

.calc-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:12px;
  margin-bottom:0;
}

.calc-head h2{
  margin:0;
  font-size:22px;
  line-height:1.2;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.calc-head p{
  margin:4px 0 0;
  color:var(--lk-calc-muted);
  font-size:14px;
  line-height:1.4;
  max-width:620px;
  word-break:break-word;
  overflow-wrap:anywhere;
}

.calc-toolbar{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:10px;
}

.theme-toggle,
.currency-switch{
  min-height:42px;
  border:1px solid var(--lk-calc-border);
  border-radius:14px;
  background:#fff;
  color:var(--lk-calc-ink);
  font-weight:800;
}

.theme-toggle{
  padding:8px 14px;
  cursor:pointer;
}

.currency-switch{
  min-width:160px;
  padding:8px 12px;
  max-width:100%;
}

#calc-form{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:12px 14px;
}

.field{
  position:relative;
  min-width:0;
}

.field.full{
  grid-column:1/-1;
}

.field label{
  display:block;
  margin-bottom:6px;
  font-size:14px;
  font-weight:900;
  color:#223250;
}

.input-shell{
  display:flex;
  align-items:center;
  min-height:42px;
  border:1px solid var(--lk-calc-border);
  border-radius:14px;
  background:#fff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.7);
  min-width:0;
}

.field-prefix{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:48px;
  padding:0 12px;
  color:var(--lk-calc-primary);
  font-weight:900;
}

.field input,
.field select,
.field textarea{
  width:100%;
  min-width:0;
  border:0;
  border-radius:14px;
  background:transparent;
  padding:9px 12px;
  color:var(--lk-calc-ink);
  font-weight:700;
}

.field input:focus,
.field select:focus,
.field textarea:focus{
  outline:none;
}

.field .help{
  display:none;
}

.range-row{
  margin-top:6px;
}

.range-row input[type=range]{
  width:100%;
  accent-color:var(--lk-calc-primary);
  cursor:pointer;
}

.range-ticks{
  display:flex;
  justify-content:space-between;
  margin-top:2px;
  color:#7c8aa4;
  font-size:11px;
  font-weight:700;
}

.actions{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:8px;
}

.btn{
  min-height:40px;
  padding:8px 10px;
  border-radius:14px;
  font-size:13px;
}

.btn,
button,
a{
  cursor:pointer;
}

.btn-primary{
  background:linear-gradient(135deg,#2d61ff,#4b7dff);
}

.btn-secondary{
  background:#dde8ff;
  color:#1b4dc5;
}

.btn-success{
  background:linear-gradient(135deg,#16a26c,#2bcf8e);
}

.btn-warning{
  background:linear-gradient(135deg,#ffba12,#ff9d00);
}

.btn-danger{
  background:linear-gradient(135deg,#f85d7b,#dc3658);
}

.result-box{
  display:block;
  margin-top:0;
  min-height:100%;
  min-width:0;
  max-height:390px;
  overflow:auto;
  border:1px solid #dce7ff;
  border-radius:22px;
  padding:12px;
  background:linear-gradient(180deg,#ffffff 0%,#f5f9ff 100%);
  box-shadow:0 18px 38px rgba(24,66,204,.08);
}

.result-box:not(.show){
  visibility:hidden;
}

.result-box.show{
  visibility:visible;
}

.result-box.error{
  background:linear-gradient(180deg,#fff6f7,#fffafb);
}

.result-table{
  width:100%;
  min-width:560px;
  border-collapse:collapse;
}

.result-table th,
.result-table td{
  padding:8px 10px;
  white-space:nowrap;
}

.result-hero{
  margin-bottom:8px;
}

.result-hero strong{
  display:block;
  margin-top:6px;
  color:#0b4fe4;
  font-size:clamp(24px,2.2vw,34px);
  line-height:1.1;
}

.result-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  border:1px solid #d8e2ff;
  border-radius:999px;
  background:#fff;
  color:#3752a0;
  font-size:13px;
  font-weight:900;
}

.metrics{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:10px;
}

.metric{
  padding:10px;
  border:1px solid #dce6ff;
  border-radius:18px;
  background:#fff;
}

.metric span{
  display:block;
  margin-bottom:6px;
  color:#71819d;
  font-size:11px;
  letter-spacing:.04em;
  text-transform:uppercase;
  font-weight:900;
}

.metric strong{
  display:block;
  color:#162440;
  font-size:20px;
  line-height:1.2;
}

.steps,
.formula-card,
.faq-card,
.related-card,
.cta-card,
.table-card{
  border-radius:20px;
}

.copy-note{
  display:none;
}

.ad-slot{
  padding:10px 12px 12px;
  border-style:solid;
  border-color:#d9e5f1;
  border-radius:18px;
  background:#fff;
  text-align:center;
  text-transform:none;
  letter-spacing:0;
  color:#5d7189;
}

.ad-slot .ad-label{
  display:block;
  margin-bottom:10px;
  color:#7b8da5;
  font-size:11px;
  font-weight:800;
  letter-spacing:.08em;
  text-transform:uppercase;
}

.ad-slot ins{
  min-height:90px;
}

.side-card{
  top:90px;
}

.side-card .ad-slot.small{
  margin-top:18px;
}

@media (max-width:1180px){
  .layout{
    grid-template-columns:1fr;
  }

  .side-card{
    position:static;
  }
}

@media (max-width:980px){
  .calc-box{
    grid-template-columns:1fr;
  }

  .calc-toolbar{
    justify-content:flex-start;
  }

  .result-box{
    max-height:none;
  }
}

@media (max-width:720px){
  .main-card{
    padding:16px;
  }

  .hero-card{
    padding:16px 18px;
  }

  .hero-card h1{
    font-size:clamp(26px,8vw,38px);
    line-height:1.1;
  }

  .hero-card p{
    font-size:14px;
    line-height:1.38;
  }

  .hero-badges{
    gap:8px;
    margin-top:14px;
  }

  .hero-badges span{
    padding:7px 10px;
    font-size:12px;
  }

  .calc-box{
    padding:16px;
  }

  .calc-head{
    align-items:stretch;
  }

  .calc-head h2{
    font-size:20px;
  }

  .calc-head p{
    font-size:13px;
    max-width:100%;
  }

  .form-grid,
  .metrics{
    grid-template-columns:1fr;
  }

  .actions{
    grid-template-columns:1fr 1fr;
  }
}

@media (max-width:560px){
  body{
    overflow-x:hidden;
  }

  .hero-wrap{
    padding:10px 12px 4px;
  }

  .page-wrap{
    padding:10px 12px 40px;
  }

  .hero-card{
    border-radius:20px;
    padding:14px 14px 12px;
  }

  .hero-card h1{
    font-size:30px;
    margin-bottom:4px;
  }

  .hero-card p{
    font-size:13px;
  }

  .hero-badges{
    display:none;
  }

  .main-card{
    padding:12px;
  }

  .actions{
    grid-template-columns:1fr;
    gap:8px;
  }

  .calc-head{
    flex-direction:column;
    gap:8px;
  }

  .calc-toolbar{
    width:100%;
    flex-direction:column;
    align-items:stretch;
    gap:6px;
  }

  .currency-switch,
  .theme-toggle{
    width:100%;
    min-width:0;
  }

  .calc-box{
    gap:10px;
    padding:12px;
    border-radius:16px;
  }

  .field label{
    font-size:12px;
  }

  .input-shell{
    min-height:36px;
  }

  .field input,
  .field select,
  .field textarea{
    padding:7px 9px;
    font-size:14px;
  }

  .range-ticks{
    font-size:9px;
  }

  .form-grid{
    gap:10px;
  }

  .field{
    gap:6px;
  }

  .field-meta{
    margin-bottom:4px;
  }

  .result-box{
    max-height:300px;
    padding:9px;
    border-radius:16px;
  }

  .result-hero{
    margin-bottom:4px;
  }

  .result-hero strong{
    font-size:22px;
  }

  .metric strong{
    font-size:16px;
  }

  .metric{
    padding:8px;
    border-radius:14px;
  }

  .metrics{
    gap:6px;
  }

  .metric span{
    margin-bottom:4px;
    font-size:10px;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-success,
  .btn-warning,
  .btn-danger{
    min-height:40px;
    font-size:13px;
  }
}

@media (max-width:420px){
  .hero-wrap{
    padding-left:10px;
    padding-right:10px;
  }

  .page-wrap{
    padding-left:10px;
    padding-right:10px;
  }

  .main-card{
    padding:10px;
  }

  .calc-box{
    padding:10px;
  }

  .hero-card h1{
    font-size:28px;
  }

  .calc-head h2{
    font-size:18px;
  }

  .result-box{
    padding:8px;
  }

  .result-table{
    min-width:520px;
  }
}

@media (max-width:560px){
  html,body{max-width:100%;overflow-x:hidden}
  .hero-wrap{padding:6px 10px 0}
  .hero-card{border-radius:12px;padding:10px 12px;background:#fff;border:1px solid var(--lk-calc-border);box-shadow:0 8px 20px rgba(19,35,61,.06)}
  .hero-card .eyebrow,.hero-badges{display:none!important}
  .hero-card h1{color:var(--lk-calc-ink);font-size:23px;line-height:1.1;margin:0}
  .hero-card p{color:var(--lk-calc-muted);font-size:12px;line-height:1.25;margin-top:3px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
  .page-wrap{width:100%;max-width:100%;padding:6px 10px 22px;overflow:hidden}
  .layout{display:block;width:100%;max-width:100%}
  .main-card{width:100%;max-width:100%;padding:6px;border-radius:13px;overflow:hidden}
  .main-card>.section{margin-bottom:14px;padding:0}
  .main-card>.section:first-child{margin-bottom:10px}
  .calc-box{width:100%;max-width:100%;display:flex;flex-direction:column;gap:7px;padding:9px;border-width:1px;border-radius:13px;overflow:hidden}
  .calc-box>*{min-width:0;max-width:100%}
  .calc-head{display:block}
  .calc-head h2{font-size:20px;line-height:1.15;white-space:normal}
  .calc-head p{display:none}
  .calc-toolbar{display:grid;grid-template-columns:1fr 1fr;gap:6px;width:100%;margin-top:8px}
  .currency-switch,.theme-toggle{width:100%;min-width:0;min-height:34px;padding:6px 7px;border-radius:10px;font-size:12px}
  .theme-toggle{width:auto;white-space:nowrap}
  #calc-form{gap:7px}
  .form-grid{gap:7px}
  .field{gap:3px}
  .field label{font-size:11px;margin-bottom:3px;line-height:1.25}
  .input-shell{min-height:34px;border-radius:9px}
  .field-prefix{min-width:34px;padding:0 7px}
  .field input,.field select,.field textarea{padding:6px 7px;font-size:14px;border-radius:9px}
  .range-row{display:none!important}
  .range-row input[type=range]{display:block;width:100%;max-width:100%}
  .range-ticks{width:100%;overflow:hidden;font-size:9px}
  .actions{display:grid;grid-template-columns:1fr 1fr;gap:6px}
  .btn,.btn-primary,.btn-secondary,.btn-success,.btn-warning,.btn-danger{min-height:34px;border-radius:9px;font-size:12px;padding:6px 7px}
  .result-box{max-height:none;padding:8px;border-radius:11px}
  .result-hero{padding:8px;margin-bottom:5px;border-radius:10px}
  .result-hero strong{font-size:20px}
  .metrics{grid-template-columns:1fr 1fr;gap:5px}
  .metric{padding:7px;border-radius:9px}
  .metric strong{font-size:14px}
  .metric span{font-size:9px;margin-bottom:2px}
  .copy-note{font-size:11px;line-height:1.35;margin:0}
  .ad-slot{min-height:90px!important;margin:12px 0!important}
}

@media (prefers-color-scheme: dark){
  :root{
    --lk-calc-primary:#78a0ff;
    --lk-calc-primary-2:#9db6ff;
    --lk-calc-soft:#132138;
    --lk-calc-border:#29405c;
    --lk-calc-ink:#edf4ff;
    --lk-calc-muted:#a6b7cf;
    --lk-calc-card:#0f1b2b;
  }

  .calc-box,
  .result-box,
  .metric,
  .input-shell,
  .theme-toggle,
  .currency-switch,
  .ad-slot{
    background:#102033;
    color:var(--lk-calc-ink);
    border-color:#29405c;
  }

  .field label,
  .metric strong,
  .result-hero strong{
    color:#edf4ff;
  }

  .field input,
  .field select,
  .field textarea{
    color:#edf4ff;
  }

  .metric span,
  .calc-head p,
  .ad-slot .ad-label,
  .range-ticks{
    color:#9db0c9;
  }
}

/* LoanKaise compact professional calculator template - 2026-07-12 */
html{
  scroll-padding-top:82px;
}

body{
  background:#f6f8fb!important;
  color:#12233b!important;
}

.topline{
  display:none!important;
  height:0!important;
  background:transparent!important;
}

.site-header{
  background:#fff!important;
  border-bottom:1px solid #e3eaf4!important;
  box-shadow:none!important;
}

.nav{
  max-width:1180px!important;
  padding:10px 18px!important;
}

.logo{
  width:34px!important;
  height:34px!important;
  border-radius:10px!important;
  background:#0b63ce!important;
  box-shadow:none!important;
}

.brand{
  font-size:20px!important;
}

.navlinks{
  gap:16px!important;
}

.hero-wrap{
  max-width:1180px!important;
  padding:14px 18px 0!important;
}

.hero-card{
  display:block!important;
  padding:0!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  box-shadow:none!important;
  color:#12233b!important;
}

.hero-card .eyebrow,
.hero-badges{
  display:none!important;
}

.hero-card h1{
  color:#12233b!important;
  font-size:clamp(24px,2.35vw,34px)!important;
  line-height:1.15!important;
  margin:0!important;
  letter-spacing:-.02em!important;
}

.hero-card p{
  max-width:780px!important;
  margin:4px 0 0!important;
  color:#66758b!important;
  font-size:14px!important;
  line-height:1.45!important;
}

.page-wrap{
  max-width:1180px!important;
  padding:12px 18px 42px!important;
}

.layout{
  grid-template-columns:minmax(0,1fr) 280px!important;
  gap:16px!important;
}

.main-card,
.side-card{
  border:1px solid #e2eaf5!important;
  border-radius:16px!important;
  box-shadow:none!important;
  background:#fff!important;
}

.main-card{
  padding:14px!important;
}

.main-card>.section{
  margin:0 0 16px!important;
}

.main-card>.section:nth-of-type(2){
  margin-bottom:12px!important;
}

.calc-box{
  display:grid!important;
  grid-template-columns:minmax(0,1.08fr) minmax(300px,.78fr)!important;
  gap:12px!important;
  padding:14px!important;
  border:1px solid #dfe8f5!important;
  border-radius:16px!important;
  background:#fff!important;
  box-shadow:none!important;
}

.calc-head{
  grid-column:1/-1!important;
  display:flex!important;
  align-items:flex-start!important;
  justify-content:space-between!important;
  gap:10px!important;
  margin:0!important;
}

.calc-head h2{
  font-size:21px!important;
  line-height:1.18!important;
  margin:0!important;
  color:#12233b!important;
}

.calc-head p{
  display:none!important;
}

.calc-toolbar{
  display:flex!important;
  gap:8px!important;
  align-items:center!important;
  justify-content:flex-end!important;
  flex-wrap:nowrap!important;
}

.currency-switch,
.theme-toggle{
  min-height:34px!important;
  border-radius:10px!important;
  border:1px solid #d6e1ef!important;
  background:#fff!important;
  color:#1d2f4a!important;
  font-size:12px!important;
  font-weight:800!important;
  box-shadow:none!important;
}

.currency-switch{
  min-width:135px!important;
  max-width:180px!important;
  padding:6px 9px!important;
}

.theme-toggle{
  display:none!important;
}

#calc-form{
  gap:9px!important;
}

.form-grid{
  grid-template-columns:1fr 1fr!important;
  gap:9px 10px!important;
}

.field label{
  margin-bottom:4px!important;
  color:#24344d!important;
  font-size:12px!important;
  line-height:1.25!important;
}

.input-shell{
  min-height:36px!important;
  border-radius:10px!important;
  border:1px solid #d6e1ef!important;
  box-shadow:none!important;
}

.field-prefix{
  min-width:36px!important;
  padding:0 8px!important;
  color:#0b63ce!important;
}

.field input,
.field select,
.field textarea{
  padding:7px 9px!important;
  border-radius:10px!important;
  font-size:14px!important;
  font-weight:750!important;
}

.range-row{
  margin-top:4px!important;
}

.range-row input[type=range]{
  height:14px!important;
  accent-color:#0b63ce!important;
}

.range-ticks{
  display:none!important;
}

.actions{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:6px!important;
}

.btn,
.btn-primary,
.btn-secondary,
.btn-success,
.btn-warning,
.btn-danger{
  min-height:34px!important;
  padding:6px 8px!important;
  border-radius:10px!important;
  font-size:12px!important;
  font-weight:850!important;
  box-shadow:none!important;
  transform:none!important;
}

.btn-primary{
  background:#0b63ce!important;
  color:#fff!important;
}

.btn-secondary,
.btn-success,
.btn-warning,
.btn-danger{
  background:#eef4fb!important;
  color:#17345f!important;
}

.result-box{
  min-height:100%!important;
  max-height:310px!important;
  padding:10px!important;
  border:1px solid #dfe8f5!important;
  border-radius:14px!important;
  background:#fbfdff!important;
  box-shadow:none!important;
}

.result-box:not(.show){
  visibility:hidden!important;
}

.result-pill{
  border:1px solid #d6e1ef!important;
  background:#fff!important;
  color:#44546b!important;
  font-size:11px!important;
  padding:5px 9px!important;
}

.result-hero{
  margin-bottom:7px!important;
}

.result-hero strong{
  margin-top:4px!important;
  color:#0b63ce!important;
  font-size:clamp(24px,2.15vw,32px)!important;
}

.metrics{
  grid-template-columns:1fr 1fr!important;
  gap:7px!important;
}

.metric{
  padding:8px!important;
  border:1px solid #e1e9f4!important;
  border-radius:12px!important;
  background:#fff!important;
}

.metric span{
  margin-bottom:3px!important;
  color:#6d7b91!important;
  font-size:9.5px!important;
  letter-spacing:.03em!important;
}

.metric strong{
  color:#15243b!important;
  font-size:15px!important;
  line-height:1.2!important;
}

.steps{
  margin-top:8px!important;
  padding:10px!important;
  border-radius:12px!important;
}

.steps h3{
  margin:0 0 6px!important;
  font-size:14px!important;
}

.steps ol{
  margin:0!important;
  padding-left:18px!important;
}

.steps li{
  font-size:12px!important;
  line-height:1.35!important;
}

.side-card{
  top:72px!important;
  padding:14px!important;
}

.lk-sidebar-title{
  margin:0 0 9px!important;
  color:#12233b!important;
  font-size:17px!important;
  line-height:1.2!important;
}

.lk-sidebar-list{
  display:grid!important;
  gap:6px!important;
  margin:0 0 14px!important;
  padding:0!important;
  list-style:none!important;
}

.lk-sidebar-list a{
  display:flex!important;
  justify-content:space-between!important;
  gap:10px!important;
  padding:8px 9px!important;
  border:1px solid #e2eaf5!important;
  border-radius:10px!important;
  background:#fff!important;
  color:#17345f!important;
  font-size:13px!important;
  font-weight:750!important;
  line-height:1.25!important;
  text-decoration:none!important;
}

.lk-sidebar-list a:hover{
  border-color:#bed2eb!important;
  background:#f8fbff!important;
}

.lk-all-calculators{
  display:block!important;
  padding:10px 12px!important;
  border-radius:10px!important;
  background:#0b63ce!important;
  color:#fff!important;
  font-size:13px!important;
  font-weight:900!important;
  text-align:center!important;
  text-decoration:none!important;
}

.side-card .ad-slot,
.side-card p,
.side-card>ul{
  display:none!important;
}

.ad-slot{
  border-color:#e1e9f4!important;
  border-radius:12px!important;
  box-shadow:none!important;
}

@media(max-width:1180px){
  .layout{
    grid-template-columns:1fr!important;
  }

  .side-card{
    position:static!important;
  }
}

@media(max-width:900px){
  .calc-box{
    grid-template-columns:1fr!important;
  }

  .result-box{
    max-height:none!important;
    min-height:0!important;
  }
}

@media(max-width:640px){
  .nav{
    padding:9px 12px!important;
  }

  .hero-wrap{
    padding:10px 12px 0!important;
  }

  .hero-card h1{
    font-size:24px!important;
  }

  .hero-card p{
    display:none!important;
  }

  .page-wrap{
    padding:8px 10px 28px!important;
  }

  .main-card{
    padding:8px!important;
    border-radius:12px!important;
  }

  .calc-box{
    padding:9px!important;
    border-radius:12px!important;
    gap:8px!important;
  }

  .calc-head{
    display:block!important;
  }

  .calc-toolbar{
    margin-top:7px!important;
    display:grid!important;
    grid-template-columns:1fr!important;
  }

  .currency-switch{
    width:100%!important;
    max-width:none!important;
  }

  .form-grid,
  .metrics{
    grid-template-columns:1fr 1fr!important;
    gap:7px!important;
  }

  .field label{
    font-size:11px!important;
  }

  .range-row{
    display:none!important;
  }

  .actions{
    grid-template-columns:1fr 1fr 1fr!important;
  }

  .btn,
  .btn-primary,
  .btn-secondary,
  .btn-success,
  .btn-warning,
  .btn-danger{
    font-size:11px!important;
    min-height:32px!important;
    padding:5px 6px!important;
  }
}

@media(max-width:430px){
  .form-grid,
  .metrics{
    grid-template-columns:1fr!important;
  }

  .actions{
    grid-template-columns:1fr 1fr!important;
  }
}

/* Calculator ad optimization: ads stay outside calculator controls and unfilled units collapse */
.ad-slot.ad-pending,
.ad-section.ad-pending{
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:transparent!important;
}

.ad-slot.ad-collapsed,
.ad-section.ad-collapsed,
.ad-slot:has(.adsbygoogle[data-ad-status="unfilled"]),
.ad-slot:has(.adsbygoogle[data-ad-status="unfill-optimized"]),
.ad-slot:has(.adsbygoogle[data-ad-status="unfilled-optimized"]){
  display:none!important;
  height:0!important;
  min-height:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  overflow:hidden!important;
}

.main-card>.ad-slot.ad-visible,
.side-card>.ad-slot.ad-visible,
.layout>.ad-slot.ad-visible{
  margin:14px 0!important;
  padding:6px!important;
  border:1px solid #e5edf6!important;
  border-radius:12px!important;
  background:#fff!important;
  min-height:90px!important;
}

.calc-box .ad-slot,
.result-box .ad-slot{
  display:none!important;
}

@media(max-width:760px){
  .main-card>.ad-slot.ad-visible,
  .side-card>.ad-slot.ad-visible,
  .layout>.ad-slot.ad-visible{
    min-height:80px!important;
    margin:12px 0!important;
    padding:4px!important;
  }
}
