/* Shared header only. Keeps existing search, dropdowns, language selector and
   accessible sheet dialogs; no homepage video/footer/payment selectors. */
html body #root nav#ifcs-reference-navigation.ifcs-nav-reference {
  --nav-ink:#102c50;--nav-control:#f4f7fc;--nav-line:#dce5ef;
  position:fixed!important;inset-inline:0!important;left:0!important;right:0!important;
  width:100%!important;max-width:none!important;height:auto!important;min-height:0!important;
  display:grid!important;grid-template-columns:220px minmax(140px,1fr) auto!important;
  align-items:center!important;gap:0 14px!important;margin:0!important;padding:0 28px 14px!important;
  border:0!important;border-bottom:1px solid #e0e7f0!important;border-radius:0!important;
  background:#fffffffa!important;color:var(--nav-ink)!important;box-shadow:0 3px 14px #08204009!important;
  backdrop-filter:blur(16px);z-index:60;overflow:visible!important;transform:none!important;
}
html body #root nav#ifcs-reference-navigation[data-ifcs-nav-surface=hero] {
  --nav-ink:#fff;--nav-control:#ffffff15;--nav-line:#ffffff62;
  background:linear-gradient(#091928b8,#07182565)!important;border-bottom-color:#ffffff1b!important;box-shadow:none!important;
}
html body #root nav#ifcs-reference-navigation :is(a,button,input,span,svg,div,strong,small) {color:var(--nav-ink)!important;}
html body #root nav#ifcs-reference-navigation :is(a,button):focus-visible {outline:3px solid #6ca9ff!important;outline-offset:4px!important;}
html body #root nav#ifcs-reference-navigation > .flex-1 {display:none!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-ribbon {
  grid-column:1/-1;display:flex!important;align-items:center;justify-content:space-between;gap:20px;
  min-height:33px;margin:0 -28px 12px;padding:5px 28px;background:#102236dc!important;border-bottom:1px solid #ffffff20;
}
html body #root nav#ifcs-reference-navigation .ifcs-nav-ribbon :is(div,a) {color:#edf3fb!important;background:transparent!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-contact,
html body #root nav#ifcs-reference-navigation .ifcs-nav-utility {display:flex!important;align-items:center;flex-wrap:wrap;gap:8px 16px;font-size:11px;line-height:1.5;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-ribbon a {text-decoration:none;white-space:nowrap;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-ribbon a:hover {text-decoration:underline;text-underline-offset:3px;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-brand {display:flex!important;align-items:center;gap:10px;min-width:0;text-decoration:none;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-brand > img {display:block!important;width:58px!important;height:58px!important;max-width:none!important;max-height:none!important;object-fit:contain!important;border-radius:0!important;flex-shrink:0;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-brand-copy {display:block!important;min-width:0;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong {display:block;font-size:12px;line-height:1.28;font-weight:750;letter-spacing:.025em;text-transform:uppercase;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-brand-copy small {display:block;font-size:6px;line-height:1.5;letter-spacing:.065em;margin-top:5px;text-transform:uppercase;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-search {display:flex!important;min-width:0!important;width:100%!important;max-width:none!important;margin:0!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-search > div {width:100%;min-width:0;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-search > div > div:first-child {width:100%!important;padding:11px 12px!important;border:1px solid var(--nav-line)!important;border-radius:11px!important;background:var(--nav-control)!important;box-shadow:none!important;gap:8px!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-search input {width:100%!important;min-width:0!important;font-size:12px!important;font-weight:400!important;letter-spacing:0!important;background:transparent!important;box-shadow:none!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-search input::placeholder {color:var(--nav-ink)!important;opacity:.7!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop {display:flex!important;align-items:center!important;gap:7px!important;min-width:0;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > a > div,
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > a > div,
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > button,
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > button {
  display:flex!important;align-items:center;justify-content:center;gap:7px!important;min-height:44px!important;padding:10px!important;
  border:1px solid var(--nav-line)!important;border-radius:10px!important;background:var(--nav-control)!important;box-shadow:none!important;transform:none!important;margin:0!important;
}
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > a > div > span,
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > a > div > span,
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > button > span {font-size:11px!important;font-weight:650!important;letter-spacing:0!important;white-space:nowrap;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > a > div > svg,
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > a > div > svg,
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > button > svg {width:17px;height:17px;flex-shrink:0;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-evaluations > a > div {background:linear-gradient(120deg,#0867f6,#1753eb)!important;border-color:#2775fc!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-evaluations > a > div :is(span,svg) {color:#fff!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-cart-count {display:inline-grid!important;place-items:center;position:static!important;min-width:21px;height:21px;padding:0 5px;border-radius:50%;background:#1663f5!important;color:white!important;font-size:10px!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop .absolute:not(.ifcs-nav-cart-count),
html body #root nav#ifcs-reference-navigation .ifcs-nav-search .absolute {--nav-ink:#102c50;color:#102c50!important;max-width:calc(100vw - 40px);}
html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop .absolute > div,
html body #root nav#ifcs-reference-navigation .ifcs-nav-search .absolute {background:#fffffff7!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-search .absolute {width:max(100%,280px)!important;}
html body #root nav#ifcs-reference-navigation .ifcs-nav-compact {display:none!important;}
@media(min-width:1550px) {
  html body #root nav#ifcs-reference-navigation.ifcs-nav-reference {grid-template-columns:320px minmax(240px,1fr) auto!important;padding-inline:40px!important;gap:0 22px!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-ribbon {margin-inline:-40px;padding-inline:40px;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-brand > img {width:76px!important;height:76px!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong {font-size:16px;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-brand-copy small {font-size:8px;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > a > div,
  html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > a > div,
  html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > button,
  html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > button {min-height:48px!important;padding-inline:13px!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > a > div > span,
  html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > a > div > span,
  html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop > div > button > span {font-size:12px!important;}
}
html body #root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-ribbon {display:none!important;}
html body #root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] {padding-top:12px!important;padding-bottom:12px!important;}
html body #root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-brand > img {width:50px!important;height:50px!important;}
@media(max-width:1239px) {
  html body #root nav#ifcs-reference-navigation.ifcs-nav-reference {grid-template-columns:260px minmax(0,1fr) 44px!important;gap:0 18px!important;padding-inline:22px!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-desktop {display:none!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-compact {display:grid!important;place-items:center;width:44px!important;height:44px!important;min-height:44px!important;padding:8px!important;border:1px solid var(--nav-line)!important;border-radius:10px!important;background:var(--nav-control)!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-ribbon {margin-inline:-22px;padding-inline:22px;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong {font-size:13px;}
}
@media(max-width:700px) {
  html body #root nav#ifcs-reference-navigation.ifcs-nav-reference {grid-template-columns:minmax(0,1fr) 44px!important;gap:10px 12px!important;padding:0 16px 12px!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-ribbon {min-height:29px;margin:0 -16px;padding:4px 16px;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-address,
  html body #root nav#ifcs-reference-navigation .ifcs-nav-utility {display:none!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-contact {width:100%;justify-content:space-between;gap:6px;font-size:10px;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-brand {grid-column:1;grid-row:2;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-brand > img {width:49px!important;height:49px!important;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-brand-copy {max-width:230px;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong {font-size:11px;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-compact {grid-column:2;grid-row:2;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-search {grid-column:1/-1;grid-row:3;}
  html body #root nav#ifcs-reference-navigation .ifcs-nav-search > div > div:first-child {padding:9px 12px!important;min-height:40px;}
  html body #root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-brand,
  html body #root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-compact {grid-row:1;}
  html body #root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-search {grid-row:2;}
}

html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>.ifcs-nav-evaluations>a>div{background:linear-gradient(120deg,#0867f6,#1753eb)!important;border-color:#2775fc!important}

/* Explicit placement defeats legacy search order/autoplacement above the ribbon.
   Phone layout retains its existing separate search row. */
@media(min-width:701px) {
  html body #root#root nav#ifcs-reference-navigation > .ifcs-nav-ribbon {
    grid-row:1!important;grid-column:1/-1!important;order:0!important;
  }
  html body #root#root nav#ifcs-reference-navigation > .ifcs-nav-brand {
    grid-row:2!important;grid-column:1!important;order:0!important;
  }
  html body #root#root nav#ifcs-reference-navigation > .ifcs-nav-search {
    grid-row:2!important;grid-column:2!important;order:0!important;
  }
  html body #root#root nav#ifcs-reference-navigation > .ifcs-nav-desktop,
  html body #root#root nav#ifcs-reference-navigation > .ifcs-nav-compact {
    grid-row:2!important;grid-column:3!important;order:0!important;
  }
  html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] > :is(.ifcs-nav-brand,.ifcs-nav-search,.ifcs-nav-desktop,.ifcs-nav-compact) {
    grid-row:1!important;
  }
}

html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true]{inset-inline:20px!important;left:20px!important;right:20px!important;top:12px!important;width:calc(100% - 40px)!important;border:1px solid #e2eaf5!important;border-radius:16px!important;box-shadow:0 12px 30px #08254a12!important;background:#fffffff5!important}
@media(max-width:700px){html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true]{inset-inline:10px!important;left:10px!important;right:10px!important;top:8px!important;width:calc(100% - 20px)!important;border-radius:12px!important}}

/* Shared glass header at the top; existing compact white header on scroll. */
html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=false]{--nav-ink:#fff;--nav-control:#ffffff18;--nav-line:#ffffff72;background:linear-gradient(110deg,#071a2ff5,#0d253bef)!important;border-bottom-color:#ffffff18!important;box-shadow:0 3px 18px #00112618!important;backdrop-filter:blur(17px);-webkit-backdrop-filter:blur(17px)}
html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=false][data-ifcs-nav-surface=hero]{background:linear-gradient(110deg,#0a1b2bbd,#0c1b285c)!important;box-shadow:none!important}
html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true]{--nav-ink:#102c50;--nav-control:#f4f7fc;--nav-line:#dce5ef;background:#fffffff5!important}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-ribbon{background:linear-gradient(100deg,#132434f0,#101820df)!important;min-height:34px}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact a{display:inline-flex;align-items:center;gap:7px}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact svg{width:14px;height:14px;flex-shrink:0;color:#edf3fb!important}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand>img{width:66px!important;height:66px!important}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong{font-size:12px;line-height:1.35;letter-spacing:.005em}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy small{font-size:6px;letter-spacing:.09em;line-height:1.5}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop .ifcs-header-icon{display:block;width:17px!important;height:17px!important;flex-shrink:0}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-evaluations>a>div{background:linear-gradient(110deg,#1268ff,#2152ef)!important;border-color:#286cff!important}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>button{backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-brand>img{width:50px!important;height:50px!important}
@media(min-width:1550px){
 html body #root#root nav#ifcs-reference-navigation{grid-template-columns:330px minmax(220px,1fr) auto!important;padding-inline:40px!important;gap:0 22px!important;padding-bottom:18px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-ribbon{margin-inline:-40px;padding-inline:40px;margin-bottom:15px;min-height:39px}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-utility{font-size:12px}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand>img{width:82px!important;height:82px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong{font-size:16px}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy small{font-size:7px}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search>div>div:first-child{min-height:51px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>button{min-height:51px!important;padding-inline:13px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div>span,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div>span,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button>span{font-size:12px!important}
}
@media(max-width:700px){html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand>img{width:52px!important;height:52px!important}html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong{font-size:11px}html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact{font-size:9px;gap:5px}html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact a{gap:4px}html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact svg{width:11px;height:11px}}
/* Home copy and user-supplied benefit strip. Original video source/player stays unchanged. */
html body #root#root .tesla-section.ifcs-home-reference{display:flex;flex-direction:column;justify-content:flex-start;align-items:stretch;position:relative;min-height:720px;height:100svh;overflow:hidden}
html body #root#root .ifcs-home-reference .ifcs-home-copy{position:relative;z-index:2;inset:auto;width:94%;max-width:1760px;margin:0 auto;padding:calc(var(--ifcs-header-offset,144px) + 38px) 0 132px;text-align:left;transform:none}
html body #root#root .ifcs-home-reference .ifcs-home-copy h1{max-width:850px;margin:0;font-size:clamp(37px,3.2vw,58px);font-weight:750;line-height:1.08;letter-spacing:-.035em;color:#fff!important;text-align:left!important}
html body #root#root .ifcs-home-reference .ifcs-home-copy h1 span{color:#ebbd59!important}
html body #root#root .ifcs-home-reference .ifcs-home-description{max-width:660px;margin:18px 0 0;font-size:clamp(16px,1.12vw,20px);font-weight:500;line-height:1.55;color:#f0f2f6!important;text-align:left}
html body #root#root .ifcs-home-reference .ifcs-home-actions{justify-content:flex-start;margin-top:28px;gap:14px}
html body #root#root .ifcs-home-reference .ifcs-home-actions a{padding:13px 22px;font-size:14px;border-radius:9px}
html body #root#root .ifcs-home-reference .ifcs-home-side-copy{position:absolute;z-index:2;top:calc(var(--ifcs-header-offset,144px) + 75px);right:4%;width:180px;margin:0;color:#fff;font-size:15px;font-weight:400;line-height:1.8;letter-spacing:.16em;text-transform:uppercase}
html body #root#root .ifcs-home-reference .ifcs-home-side-copy:after{content:'';display:block;width:58px;height:2px;margin-top:12px;background:#d5ae52}
html body #root#root .ifcs-home-trust-strip{position:absolute;bottom:0;left:0;right:0;z-index:3;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0;padding:24px 3%;min-height:94px;background:linear-gradient(110deg,#030d17f5,#071d2cf2);backdrop-filter:blur(10px);color:#fff}
html body #root#root .ifcs-home-trust-item{display:flex;align-items:center;gap:15px;padding:0 22px;border-left:1px solid #ffffff45;min-width:0}
html body #root#root .ifcs-home-trust-item:first-child{border-left:0;padding-left:0}
html body #root#root .ifcs-home-trust-item:last-child{padding-right:0}
html body #root#root .ifcs-home-trust-item>svg{width:34px;height:34px;flex-shrink:0;color:#e9b54f}
html body #root#root .ifcs-home-trust-item strong{display:block;font-size:14px;font-weight:700;line-height:1.45;color:#fff}
html body #root#root .ifcs-home-trust-item span{display:block;margin-top:3px;font-size:11px;line-height:1.45;color:#e0e6ee}
@media(max-width:1100px){html body #root#root .ifcs-home-reference .ifcs-home-side-copy{display:none}html body #root#root .ifcs-home-trust-item{padding-inline:12px;gap:10px}html body #root#root .ifcs-home-trust-item strong{font-size:12px}html body #root#root .ifcs-home-trust-item span{font-size:10px}html body #root#root .ifcs-home-trust-item>svg{width:27px;height:27px}}
@media(max-width:800px){html body #root#root .tesla-section.ifcs-home-reference{height:auto;min-height:100svh}html body #root#root .ifcs-home-reference .ifcs-home-copy{padding-top:calc(var(--ifcs-header-offset,160px) + 30px);padding-bottom:48px;width:90%;flex:1}html body #root#root .ifcs-home-trust-strip{position:relative;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 0;padding:22px 5%}html body #root#root .ifcs-home-trust-item{padding-inline:15px}html body #root#root .ifcs-home-trust-item:nth-child(odd){padding-left:0;border-left:0}html body #root#root .ifcs-home-trust-item:last-child{grid-column:1/-1}html body #root#root .ifcs-home-trust-item strong{font-size:13px}html body #root#root .ifcs-home-trust-item span{font-size:11px}}
@media(max-width:400px){html body #root#root .ifcs-home-reference .ifcs-home-copy h1{font-size:34px}html body #root#root .ifcs-home-reference .ifcs-home-actions a{padding-inline:16px}html body #root#root .ifcs-home-trust-item{gap:8px;padding-right:6px}html body #root#root .ifcs-home-trust-item strong{font-size:12px}}
@media(max-width:700px){html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact .ifcs-nav-address{display:none!important}}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-social{display:inline-flex;align-items:center;gap:10px;margin-left:4px}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-social a{display:inline-grid;place-items:center;width:24px;height:24px;border:1px solid #ffffff66;border-radius:50%;color:#fff!important}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-social svg{width:14px;height:14px}
html body #root .ifcs-footer-reference .ifcs-footer-social{display:flex;align-items:center;gap:10px;margin-top:18px}
html body #root .ifcs-footer-reference .ifcs-footer-social a{display:inline-grid;place-items:center;width:34px;height:34px;border:1px solid #b9c9df66;border-radius:50%;color:#e5edf8}
html body #root .ifcs-footer-reference .ifcs-footer-social a:hover{background:#ffffff18;color:#edc86b}
html body #root .ifcs-footer-reference .ifcs-footer-social svg{width:18px;height:18px}

/* Visual QA correction: complete search placeholder and visible locale at desktop. */
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-language-trigger{width:auto!important;min-width:76px!important;gap:6px!important;padding-inline:9px!important;border-radius:11px!important;white-space:nowrap}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-language-code{display:inline!important;font-size:11px!important;line-height:1;font-weight:650!important;letter-spacing:.025em!important}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-language-chevron{display:block!important;width:12px!important;height:12px!important;flex-shrink:0}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search{min-width:220px!important}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search>div>div:first-child{gap:8px!important;padding-inline:11px!important}
html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search input{font-size:12px!important;letter-spacing:0!important;padding:0!important;min-width:168px!important;text-overflow:clip!important}
html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=false][data-ifcs-nav-surface=hero]{--nav-control:#ffffff23;--nav-line:#ffffff85;background:linear-gradient(110deg,#0a1b2b8c,#0c1b2852)!important;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px)}
@media(min-width:1240px) and (max-width:1549px){
 html body #root#root nav#ifcs-reference-navigation{grid-template-columns:235px minmax(220px,1fr) auto!important;gap:0 10px!important;padding-inline:22px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-ribbon{margin-inline:-22px;padding-inline:22px}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand{gap:9px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand>img{width:66px!important;height:66px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong{font-size:12px!important;line-height:1.3!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy small{font-size:6px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop{gap:5px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>button{padding-inline:8px!important;gap:5px!important;min-height:46px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div>span,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div>span,html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button>span{font-size:11px!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true]{grid-template-columns:210px minmax(220px,1fr) auto!important;padding-inline:16px!important;gap:0 8px!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-brand>img{width:50px!important;height:50px!important}
}
@media(min-width:1550px){
 html body #root#root nav#ifcs-reference-navigation{grid-template-columns:330px minmax(270px,1fr) auto!important;gap:0 18px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search{min-width:270px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search input{font-size:13px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-language-trigger{min-width:82px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-language-code{font-size:12px!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true]{grid-template-columns:275px minmax(270px,1fr) auto!important}
}
@media(min-width:701px) and (max-width:1239px){html body #root#root nav#ifcs-reference-navigation{grid-template-columns:260px minmax(220px,1fr) 44px!important}}
@media(max-width:700px){html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search{min-width:0!important}html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search input{min-width:0!important}html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search>div>div:first-child{min-height:42px!important}}

/* Remove legacy section padding; the copy already accounts for the fixed header. */
html body #root#root .tesla-section.ifcs-home-reference{padding:0!important}
/* The help launcher must not cover the fifth trust statement at the hero foot. */
@media(min-width:801px){
 html body #root:has(nav#ifcs-reference-navigation[data-ifcs-nav-surface=hero][data-ifcs-nav-compact=false])>button[aria-label="Ask IFCS"]{bottom:120px!important}
}

/* Final reference proportions after desktop, 390px and 768px visual review. */
@media(min-width:1240px){
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy small{white-space:nowrap!important}
}
/* Retain one contact line on tablet instead of scattering email/social onto row two. */
@media(min-width:701px) and (max-width:1000px){
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact .ifcs-nav-address{display:none!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-ribbon{gap:12px!important;flex-wrap:nowrap!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-contact,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-utility{flex-wrap:nowrap!important;gap:10px!important;font-size:10px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-social{gap:6px!important;margin-left:0!important}
}
/* Mid-width desktops keep the proven button sizes; search does not absorb all spare width. */
@media(min-width:1550px) and (max-width:1799px){
 html body #root#root nav#ifcs-reference-navigation{grid-template-columns:330px minmax(270px,400px) max-content!important;justify-content:space-between!important;column-gap:18px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search{max-width:400px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop{justify-self:end!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true]{grid-template-columns:275px minmax(270px,400px) max-content!important}
}
/* Wide screens spend extra room on brand and controls, rather than a 700px search field.
   Minmax columns can shrink at 1800px while preserving unwrapped controls. */
@media(min-width:1800px){
 html body #root#root nav#ifcs-reference-navigation{grid-template-columns:minmax(310px,420px) minmax(320px,460px) max-content!important;justify-content:space-between!important;column-gap:18px!important;padding-inline:40px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand{gap:12px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand>img{width:98px!important;height:98px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy strong{font-size:clamp(16px,.94vw,19px)!important;line-height:1.3!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-brand-copy small{font-size:8px!important;letter-spacing:.055em!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search{min-width:320px!important;max-width:460px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search>div>div:first-child{min-height:54px!important;padding-inline:15px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search input{font-size:14px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop{gap:10px!important;justify-self:end!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>button{min-height:54px!important;padding-inline:16px!important;gap:8px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div>span,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div>span,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button>span{font-size:14px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div>svg,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div>svg,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button>svg,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>button>svg,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop .ifcs-header-icon{width:20px!important;height:20px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop .ifcs-nav-language-chevron{width:12px!important;height:12px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button>svg:last-child{width:12px!important;height:12px!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true]{grid-template-columns:minmax(260px,340px) minmax(320px,460px) max-content!important;padding-inline:26px!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-brand>img{width:58px!important;height:58px!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-brand-copy strong{font-size:16px!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true] .ifcs-nav-brand-copy small{font-size:7px!important}
}

/* Navigation sheet and its scrim must cover the fixed site header. */
body>[role="dialog"].inset-y-0:has(h2 img[alt="IFCS"]){z-index:90!important}
body:has(>[role="dialog"].inset-y-0[data-state="open"] h2 img[alt="IFCS"])>div.inset-0[data-state="open"]{z-index:89!important}
@media(min-width:1200px){
 .ifcs-footer-reference-final .ifcs-footer-brighter{transform:translateY(-18px) rotate(-12deg)}
}

@media (max-width: 800px) {
  body[data-ifcs-trust-help-hidden] button[data-ifcs-floating-help="true"] {
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

/* Only the compact-navigation drawer; desktop controls and desktop menu unchanged. */
html body .ifcs-mobile-service-menu {gap:8px;padding:18px 20px 26px;min-width:0;}
html body .ifcs-mobile-service-menu > * {margin-top:0!important;min-width:0;}
html body .ifcs-mobile-service-menu .ifcs-mobile-service-link,
html body .ifcs-mobile-service-menu button.ifcs-mobile-support {
  display:flex;align-items:center;justify-content:flex-start;gap:12px;
  min-height:52px;width:100%;padding:13px 15px;border-radius:10px;
  border:1px solid #dce6f1;background:#edf3fa;color:#143a64;
  font-size:14px;font-weight:650;line-height:1.35;text-decoration:none;text-align:left;
  box-shadow:none;white-space:normal;
}
html body .ifcs-mobile-service-menu .ifcs-mobile-service-link > svg,
html body .ifcs-mobile-service-menu button.ifcs-mobile-support > svg {width:20px;height:20px;flex-shrink:0;}
html body .ifcs-mobile-service-menu .ifcs-mobile-service-link > span,
html body .ifcs-mobile-service-menu button.ifcs-mobile-support > span {flex:1;min-width:0;}
html body .ifcs-mobile-service-menu .ifcs-mobile-evaluation {background:#2167ee;border-color:#2167ee;color:#fff;box-shadow:0 4px 12px #2167ee25;}
html body .ifcs-mobile-service-menu .ifcs-mobile-evaluation > svg:last-child {width:17px;height:17px;}
html body .ifcs-mobile-service-menu button.ifcs-mobile-support > svg:last-child {width:15px;height:15px;margin-left:auto;}
html body .ifcs-mobile-service-menu button.ifcs-mobile-support[aria-expanded="true"] {background:#e0ebfa;border-color:#a9c6ec;}
html body .ifcs-mobile-service-menu :is(a,button):focus-visible {outline:3px solid #3178ed;outline-offset:3px;}
@media(max-width:350px) {
  html body .ifcs-mobile-service-menu {padding-inline:16px;}
  html body .ifcs-mobile-service-menu .ifcs-mobile-service-link,
  html body .ifcs-mobile-service-menu button.ifcs-mobile-support {padding-inline:12px;gap:9px;font-size:13px;}
}

/* Locale-length correction only for the existing medium desktop header.
   Keep every action, the locale selector and menu reachable inside the viewport. */
@media(min-width:1240px) and (max-width:1549px){
 html body #root#root nav#ifcs-reference-navigation{grid-template-columns:220px minmax(200px,1fr) auto!important}
 html body #root#root nav#ifcs-reference-navigation[data-ifcs-nav-compact=true]{grid-template-columns:210px minmax(200px,1fr) auto!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search{min-width:200px!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-search input{min-width:0!important}
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>a>div>span,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>a>div>span,
 html body #root#root nav#ifcs-reference-navigation .ifcs-nav-desktop>div>button>span{max-width:92px!important;white-space:normal!important;line-height:1.25!important;text-align:center;overflow-wrap:normal!important;word-break:normal!important;hyphens:none!important}
}
