/* ==========================================================================
   EsyCloudSim in the esylys.com design language.
   Loaded after custom_styles.css (Dash loads assets alphabetically).
   Tokens match the website: one background black, Geist type, calm accents.
   ========================================================================== */
@font-face{font-family:Geist;src:url(fonts/geist.woff2) format('woff2');font-weight:100 900;font-display:swap}
@font-face{font-family:'Geist Mono';src:url(fonts/geist-mono.woff2) format('woff2');font-weight:100 900;font-display:swap}

:root{
  --ink:#060807; --ink-2:#0c100e; --ink-3:#141a17;
  --fg:#e1e6e3; --fg-muted:#8f9a96; --fg-faint:#4d5652;
  --line:rgba(255,255,255,.09);
  --green:#238e51; --green-bright:#4cc57d; --ember:#e08939; --cyan:#69c0e0; --violet:#aa96e0;
  --grad-brand:linear-gradient(100deg,#4cc57d 0%,#238e51 45%,#e08939 100%);
  --glass-green:linear-gradient(120deg,rgba(99,211,139,.96) 0%,rgba(37,168,92,.93) 45%,rgba(32,123,74,.96) 100%);
  --glass-clear:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.04));
  --glass-edge:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.3);
  --r:14px; --r-sm:10px;
  --sans:Geist,-apple-system,"Segoe UI",system-ui,sans-serif;
  --mono:'Geist Mono',ui-monospace,Menlo,monospace;
  --ease:cubic-bezier(.16,1,.3,1);
}

html,body{background:var(--ink) !important;color:var(--fg);font-family:var(--sans) !important;
  -webkit-font-smoothing:antialiased;letter-spacing:-.005em}
h1,h2,h3,h4,h5{font-family:var(--sans);color:var(--fg);letter-spacing:-.02em}
.esy-app{min-height:100vh;background:var(--ink);color:var(--fg);display:flex;flex-direction:column}
.esy-main{flex:1;overflow-x:clip}

/* ---------- header: logo left, pill tabs right ---------- */
.esy-nav{position:sticky;top:0;z-index:50;background:rgba(6,8,7,.78);
  backdrop-filter:saturate(180%) blur(20px);-webkit-backdrop-filter:saturate(180%) blur(20px);
  border-bottom:1px solid rgba(255,255,255,.06)}
.esy-nav__bar{display:flex;align-items:center;gap:20px;height:68px;padding:0 clamp(16px,3vw,40px)}
.esy-brand{display:flex;align-items:center;gap:12px;margin-right:auto;min-width:0}
.esy-brand__logo{height:40px;width:auto}
.esy-brand__name{display:block;font-weight:650;font-size:17px;letter-spacing:-.02em;color:var(--fg);line-height:1.1}
.esy-brand__by{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted)}
.esy-tabs{display:flex;align-items:center;gap:2px;padding:4px;border-radius:999px;background:var(--glass-clear);
  box-shadow:var(--glass-edge),0 8px 24px -12px rgba(0,0,0,.6);overflow-x:auto;scrollbar-width:none}
.esy-tabs::-webkit-scrollbar{display:none}
.nav-tab{display:inline-flex;align-items:center;height:32px;padding:0 15px;border-radius:999px;cursor:pointer;
  color:rgba(225,230,227,.68);font-size:14px;font-weight:500;white-space:nowrap;user-select:none;
  transition:color .3s,background-color .3s,box-shadow .3s}
.nav-tab:hover{color:var(--fg);background:rgba(255,255,255,.07)}
.nav-tab.is-on{color:var(--fg);background:linear-gradient(180deg,rgba(255,255,255,.22),rgba(255,255,255,.08));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),inset 0 1px 0 rgba(255,255,255,.45),inset 0 -1px 0 rgba(76,197,125,.3)}
.esy-panels{display:flex;align-items:flex-end;gap:10px;overflow-x:auto;scrollbar-width:none}
.esy-panels::-webkit-scrollbar{display:none}
.esy-panel{display:flex;flex-direction:column;align-items:center;gap:4px;flex:none}
.esy-panel__label{font-family:var(--mono);font-size:12px;font-weight:500;letter-spacing:.12em;text-transform:uppercase;
  color:rgba(225,230,227,.45);white-space:nowrap;user-select:none;line-height:1}
.esy-panels .esy-tabs{overflow:visible}
/* one colour per phase: green planning, blue scale up, red monitoring (Home stays neutral) */
.esy-panel{--ph:#e1e6e3;--ph-bg:rgba(255,255,255,.035);--ph-edge:rgba(255,255,255,.14)}
.esy-panel--planning{--ph:#4cc57d;--ph-bg:rgba(76,197,125,.07);--ph-edge:rgba(76,197,125,.32)}
.esy-panel--scale-up{--ph:#69c0e0;--ph-bg:rgba(105,192,224,.07);--ph-edge:rgba(105,192,224,.34)}
.esy-panel--monitoring{--ph:#e07a6f;--ph-bg:rgba(224,122,111,.07);--ph-edge:rgba(224,122,111,.34)}
.esy-panel__label{color:var(--ph);opacity:.95}
.esy-panels .esy-tabs{background:var(--ph-bg);box-shadow:inset 0 0 0 1px var(--ph-edge),0 8px 24px -12px rgba(0,0,0,.6)}
/* the current page: its text in the phase colour with a short line under it, no pill inside the pill */
.esy-panels .nav-tab,.esy-panels .nav-tab:hover,.esy-panels .nav-tab.is-on{background:none !important;box-shadow:none !important}
.esy-panels .nav-tab{position:relative}
.esy-panels .nav-tab:hover{color:var(--fg)}
.esy-panels .nav-tab.is-on{color:var(--ph);font-weight:600}
.esy-panels .nav-tab.is-on::after{content:"";position:absolute;left:50%;bottom:4px;width:18px;height:2px;border-radius:2px;
  background:var(--ph);transform:translateX(-50%)}
.esy-user{display:flex;align-items:center}
/* the sign-in bar now sits inside the header */
.esy-user .logout-container{position:static !important;inset:auto !important;background:none !important;border:0 !important;
  box-shadow:none !important;padding:0 !important;margin:0 !important;backdrop-filter:none !important}
.esy-user .user-info{display:flex;align-items:center;gap:10px;background:none !important;padding:0 !important;border:0 !important;box-shadow:none !important}
.esy-user .current-username{color:var(--fg-muted) !important;font-size:13px !important;white-space:nowrap}
.esy-user .logout-button{border-radius:999px !important;background:var(--glass-clear) !important;border:0 !important;
  box-shadow:var(--glass-edge) !important;color:var(--fg) !important;font-size:13px !important;padding:6px 14px !important}
.esy-user .logout-button:hover{background:rgba(255,255,255,.14) !important}
.esy-user .logout-button i{display:none}

/* ---------- pages ---------- */
.esy-page{padding:28px clamp(16px,3vw,40px) 40px;max-width:1680px;margin:0 auto}
.esy-eyebrow,.esy-card__eyebrow{display:flex;align-items:center;gap:8px;font-family:var(--mono);font-size:11px;
  letter-spacing:.14em;text-transform:uppercase;color:var(--fg-muted);margin:0 0 10px}
.esy-eyebrow::before,.esy-card__eyebrow::before{content:"";width:6px;height:6px;border-radius:50%;background:var(--green-bright)}
.esy-hero{padding:34px 0 30px}
.esy-h1{font-size:clamp(40px,5.4vw,76px);font-weight:600;line-height:1.02;letter-spacing:-.045em;margin:0}
.esy-grad{background:linear-gradient(100deg,#4cc57d 0%,#6fc7b0 55%,#69c0e0 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.esy-lead{max-width:56ch;margin:16px 0 0;font-size:clamp(16px,1.3vw,19px);line-height:1.5;color:var(--fg-muted)}
.esy-grid{display:grid;gap:14px}
.esy-grid--tools{grid-template-columns:repeat(auto-fill,minmax(230px,1fr))}
.esy-grid--home{grid-template-columns:minmax(0,2.3fr) minmax(240px,1fr);margin-top:14px;align-items:start}

.esy-card{background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.015));border-radius:var(--r);
  box-shadow:inset 0 0 0 1px var(--line),inset 0 1px 0 rgba(255,255,255,.08),0 24px 60px -34px rgba(0,0,0,.8);
  padding:20px 22px;min-width:0}
.esy-card__title{font-size:19px;font-weight:600;margin:0 0 6px;letter-spacing:-.02em}
.esy-card__text{margin:0;color:var(--fg-muted);font-size:14px;line-height:1.5}
.esy-tool{transition:transform .5s var(--ease),box-shadow .4s}
.esy-tool:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),inset 0 1px 0 rgba(255,255,255,.1),0 24px 60px -30px rgba(0,0,0,.9)}
.esy-card--diagram img{width:100%;height:auto;display:block;border-radius:var(--r-sm)}
.esy-units{width:100%;border-collapse:collapse;font-size:14px}
.esy-units td{padding:8px 0;border-bottom:1px solid var(--line) !important;border-top:0 !important}
.esy-units td:last-child{text-align:right}
.esy-mut{color:var(--fg-muted)}

/* ---------- tool pages: side panel + content ---------- */
.esy-toolpage{display:grid;grid-template-columns:minmax(280px,340px) minmax(0,1fr);gap:14px;align-items:start}
.esy-side{display:flex;flex-direction:column;gap:14px;position:sticky;top:84px}
.esy-summary .esy-card__title{font-size:22px}
.esy-summary--row{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:14px}
.esy-summary--row .esy-card__text{max-width:60ch}
.esy-params{display:flex;flex-direction:column;gap:12px}
.esy-params .param-row-compact{margin:0 !important}
.esy-params label,.esy-params .form-label{color:var(--fg-muted) !important;font-size:13px !important;text-align:left !important;margin:0 !important}
.esy-params .param-row-compact .col-4{flex:0 0 42%;max-width:42%}
.esy-params .param-row-compact .col-5{flex:0 0 40%;max-width:40%}
.esy-params .param-row-compact .col-3{flex:0 0 18%;max-width:18%;color:var(--fg-muted)}
.esy-params > div[style*="5mm"]{display:none}
.esy-quads > div{gap:14px !important}
.esy-chart{padding:10px 12px !important;overflow:hidden}
/* Economics: size, view, assumption sliders (econ_page.py) and the sources card */
.econ-card{display:flex;flex-direction:column;gap:10px}
.econ-card > .esy-card__eyebrow{margin:0 0 2px}
.econ-card__top{display:flex;align-items:center;justify-content:space-between}
.econ-card__top .esy-card__eyebrow{margin:0}
.econ-reset{background:none;border:0;padding:4px 10px;border-radius:999px;font:500 12px var(--sans);color:var(--fg-muted);
  cursor:pointer;box-shadow:inset 0 0 0 1px var(--line);transition:color .3s,box-shadow .3s}
.econ-reset:hover{color:var(--fg);box-shadow:inset 0 0 0 1px rgba(76,197,125,.5)}
.econ-s{padding:8px 0 2px}
.econ-s__head{display:flex;align-items:baseline;justify-content:space-between;gap:10px;margin:0 0 4px}
.econ-s__l{font-size:13px;color:#c9d1cd}
.econ-s__v{font:500 12.5px var(--mono);color:var(--green-bright);white-space:nowrap;font-variant-numeric:tabular-nums}
.econ-s__slider{padding:0 !important;margin:0 2px}
.econ-s .rc-slider{padding:6px 0}
.econ-s .rc-slider-rail,.econ-s .rc-slider-track{height:3px}
.econ-s .rc-slider-handle{width:14px;height:14px;margin-top:-5.5px;border-width:2px;opacity:1}
.econ-s .rc-slider-handle:active,.econ-s .rc-slider-handle:focus-visible{box-shadow:0 0 0 6px rgba(76,197,125,.22) !important}
.econ-seg{display:grid;grid-template-columns:1fr 1fr;padding:3px;border-radius:999px;margin-top:6px;
  background:rgba(255,255,255,.035);box-shadow:inset 0 0 0 1px var(--line)}
.econ-seg__opt{position:relative;margin:0 !important;padding:7px 0;border-radius:999px;text-align:center;cursor:pointer;
  font-size:13px;color:var(--fg-muted);transition:color .3s,background-color .3s}
.econ-seg__opt:has(.econ-seg__in:checked){color:var(--fg);background:rgba(76,197,125,.16);box-shadow:inset 0 0 0 1px rgba(76,197,125,.4)}
.econ-seg__in{position:absolute;opacity:0;pointer-events:none}
.econ-acc{border-top:1px solid var(--line)}
.econ-acc__head{display:flex;align-items:center;gap:10px;padding:12px 2px;cursor:pointer;list-style:none;user-select:none}
.econ-acc__head::-webkit-details-marker{display:none}
.econ-acc__t{flex:1;font-size:14px;font-weight:600;color:#c9d1cd;letter-spacing:-.01em;transition:color .3s}
.econ-acc__head:hover .econ-acc__t,.econ-acc[open] > .econ-acc__head .econ-acc__t{color:var(--fg)}
.econ-acc__body{padding:0 2px 10px}
.econ-acc[open] > .econ-acc__body{animation:econ-rise .45s var(--ease) both}
.econ-chev{width:8px;height:8px;border-right:1.5px solid var(--fg-muted);border-bottom:1.5px solid var(--fg-muted);
  transform:rotate(45deg);margin:0 4px 4px;transition:transform .4s var(--ease)}
.econ-acc[open] > .econ-acc__head .econ-chev,.econ-src[open] > .econ-src__head .econ-chev{transform:rotate(225deg);margin:4px 4px 0}
@keyframes econ-rise{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
.econ-src{margin-top:14px;padding:0 !important}
.econ-src__head{display:flex;align-items:center;gap:12px;padding:16px 22px;cursor:pointer;list-style:none;user-select:none}
.econ-src__head::-webkit-details-marker{display:none}
.econ-src__head .econ-src__eb{margin:0}
.econ-src__sub{flex:1;font-size:13px;color:var(--fg-muted)}
.econ-src__body{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:22px;padding:4px 22px 22px}
.econ-src[open] > .econ-src__body{animation:econ-rise .45s var(--ease) both}
.econ-src__list{display:flex;flex-direction:column}
.econ-src__row{display:grid;grid-template-columns:150px minmax(0,1fr);gap:14px;padding:8px 0;border-top:1px solid var(--line)}
.econ-src__k{font-size:13px;color:#c9d1cd}
.econ-src__s{font-size:12.5px;line-height:1.45;color:var(--fg-muted)}
.econ-src__calc{margin:0;white-space:pre-wrap;font:12px/1.65 var(--mono);color:#c9d1cd;background:var(--ink-2);
  padding:14px 16px;border-radius:var(--r-sm);box-shadow:inset 0 0 0 1px var(--line);align-self:start}
@media (max-width:1100px){.econ-src__body{grid-template-columns:minmax(0,1fr)}}
@media (max-width:760px){.econ-reset{width:auto !important;min-width:0 !important;min-height:0 !important;flex:none !important;padding:4px 12px !important}
  .esy-chart .js-plotly-plot .plotly .modebar-container{display:none !important}
  .econ-src__head{padding:14px 16px}.econ-src__body{padding:4px 16px 16px}
  .econ-src__row{grid-template-columns:minmax(0,1fr);gap:2px}.econ-src__sub{display:none}}
.esy-figure img{border-radius:var(--r-sm)}
.esy-map{padding:8px !important;overflow:hidden}

/* workflow card on the tool pages */
.esy-flow{display:flex;flex-direction:column;padding:22px 24px !important;min-height:400px}
.esy-flow__lead{margin:0 0 auto;font-size:clamp(18px,1.6vw,24px);font-weight:600;letter-spacing:-.02em;color:var(--fg);max-width:26ch}
.esy-flow__rows{display:flex;flex-direction:column;gap:18px;margin-top:28px}
.esy-flow__row{display:grid;grid-template-columns:74px minmax(0,1fr);align-items:center;gap:12px}
.esy-flow__label{font-family:var(--mono);font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:var(--fg-muted)}
.esy-flow__steps{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.esy-flow__step{padding:7px 14px;border-radius:999px;font-size:14px;color:var(--fg-muted);box-shadow:inset 0 0 0 1px var(--line)}
.esy-flow__step.is-on{color:#06110a;font-weight:600;background:var(--green-bright);box-shadow:0 0 18px -4px rgba(76,197,125,.6)}
.esy-flow__arrow{color:var(--fg-faint)}

/* ---------- buttons ---------- */
.esy-btn{width:100%;border:0 !important;border-radius:999px !important;padding:11px 18px !important;font-weight:600 !important;
  font-size:14px !important;letter-spacing:-.005em;transition:transform .2s,box-shadow .3s,background .3s}
.esy-btn--primary{background:var(--glass-green) !important;color:#fff !important;
  box-shadow:inset 0 0 0 1px rgba(161,224,187,.38),inset 0 1px 0 rgba(255,255,255,.5),0 10px 26px -10px rgba(76,197,125,.75) !important}
.esy-btn--primary:hover{transform:translateY(-1px)}
.esy-btn--primary:disabled{opacity:.6}
.esy-btn--ghost{background:var(--glass-clear) !important;color:var(--fg) !important;box-shadow:var(--glass-edge) !important}
.esy-btn--ghost:hover{background:rgba(255,255,255,.14) !important}

/* ---------- inputs, dropdowns, sliders ---------- */
.dark-input,.esy-params input{background:#0e1210 !important;border:1px solid var(--line) !important;border-radius:var(--r-sm) !important;
  color:var(--fg) !important;font-family:var(--sans) !important}
.dark-input:focus,.esy-params input:focus{border-color:rgba(76,197,125,.55) !important;box-shadow:0 0 0 3px rgba(76,197,125,.15) !important;outline:0}
.dark-dropdown,.dark-dropdown *{font-family:var(--sans) !important}
.dark-dropdown div[class*="control"],.dark-dropdown .Select__control{background:#0e1210 !important;border:1px solid var(--line) !important;border-radius:var(--r-sm) !important;box-shadow:none !important}
div[class*="menu"],.Select__menu-list{background:#101412 !important;border:1px solid var(--line) !important;border-radius:var(--r-sm) !important}
div[class*="option"][class*="focused"],.Select__option--is-focused{background:rgba(255,255,255,.06) !important}
div[class*="option"][class*="selected"],.Select__option--is-selected{background:rgba(76,197,125,.18) !important;color:var(--fg) !important}
.rc-slider-track{background:var(--green-bright) !important}
.rc-slider-rail{background:rgba(255,255,255,.1) !important}
.rc-slider-handle{border-color:var(--green-bright) !important;background:var(--ink-3) !important;box-shadow:0 0 0 4px rgba(76,197,125,.18) !important}
.dash-slider [class*="range"],.dash-slider [class*="track"]{background:var(--green-bright)}

/* ---------- charts ---------- */
.js-plotly-plot .plotly .modebar{background:transparent !important}
.js-plotly-plot .plotly .modebar-btn path{fill:rgba(225,230,227,.45) !important}
.js-plotly-plot .plotly .modebar-btn:hover path{fill:var(--fg) !important}
.js-plotly-plot,.js-plotly-plot .main-svg{font-family:var(--sans) !important}

/* ---------- plant page ---------- */
.esy-page--plant{max-width:none}
.esy-plant{display:block;width:100%;height:calc(100vh - 230px);min-height:620px;border:0;border-radius:var(--r);
  background:var(--ink);box-shadow:inset 0 0 0 1px var(--line)}

/* ---------- footer ---------- */
.esy-foot{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;padding:18px clamp(16px,3vw,40px) 26px;
  border-top:1px solid rgba(255,255,255,.06);color:var(--fg-faint);font-size:12px;font-family:var(--mono);letter-spacing:.04em}

/* ---------- sign-in ---------- */
.login-page-container{background:var(--ink) !important}
.login-background{background:radial-gradient(60% 50% at 70% 30%,rgba(35,142,81,.12),transparent 70%) !important;animation:none !important}
.login-background::before{display:none !important}
.login-card{background:linear-gradient(180deg,rgba(255,255,255,.05),rgba(255,255,255,.02)) !important;border:0 !important;
  border-radius:18px !important;box-shadow:inset 0 0 0 1px var(--line),inset 0 1px 0 rgba(255,255,255,.08),0 30px 80px -30px rgba(0,0,0,.9) !important;
  backdrop-filter:blur(14px)}
.login-title{font-weight:650 !important;letter-spacing:-.03em !important;color:var(--fg) !important}
.login-subtitle,.login-label,.login-info,.login-footer{color:var(--fg-muted) !important}
.login-input{background:#0e1210 !important;border:1px solid var(--line) !important;border-radius:var(--r-sm) !important;color:var(--fg) !important}
.login-input:focus{border-color:rgba(76,197,125,.55) !important;box-shadow:0 0 0 3px rgba(76,197,125,.15) !important}
.login-button{background:var(--glass-green) !important;border:0 !important;border-radius:999px !important;color:#fff !important;font-weight:600 !important;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.45),0 10px 26px -10px rgba(76,197,125,.75) !important}

/* ---------- small screens ---------- */
@media (max-width:980px){
  .esy-toolpage{grid-template-columns:minmax(0,1fr)}
  .esy-side{position:static}
  .esy-grid--home{grid-template-columns:minmax(0,1fr)}
  .esy-quads > div{grid-template-columns:minmax(0,1fr) !important;grid-template-areas:"image" "graph1" "graph2" "graph3" !important}
}
.esy-menu{display:none}
@media (max-width:760px){
  /* phones: logo and a menu button; the tabs (by phase) and the account links open in a drawer */
  .esy-nav__bar{height:auto;min-height:60px;flex-wrap:wrap;padding-top:8px;padding-bottom:8px;gap:8px 10px}
  .esy-brand{flex:1}
  .esy-menu{display:inline-flex;flex-direction:column;justify-content:center;gap:5px;width:44px;height:40px;
    padding:0 11px;border:0;border-radius:12px;cursor:pointer;background:rgba(255,255,255,.06);
    box-shadow:inset 0 0 0 1px rgba(255,255,255,.14)}
  .esy-menu span{display:block;height:2px;border-radius:2px;background:var(--fg);transition:transform .25s,opacity .25s}
  .esy-nav.is-open .esy-menu span:nth-child(1){transform:translateY(7px) rotate(45deg)}
  .esy-nav.is-open .esy-menu span:nth-child(2){opacity:0}
  .esy-nav.is-open .esy-menu span:nth-child(3){transform:translateY(-7px) rotate(-45deg)}
  .esy-panels,.esy-user{display:none !important}
  .esy-nav.is-open .esy-panels{display:flex !important;order:3;width:100%;flex-direction:column;align-items:stretch;gap:14px;
    padding:8px 0 4px;overflow:visible}
  .esy-nav.is-open .esy-panel{align-items:flex-start;gap:6px}
  .esy-nav.is-open .esy-panel__label{font-size:13px}
  .esy-nav.is-open .esy-panels .esy-tabs{width:100%;flex-wrap:wrap;border-radius:16px}
  .esy-nav.is-open .esy-panels .nav-tab{height:40px;font-size:15px}
  .esy-nav.is-open .esy-user{display:flex !important;order:4;width:100%;padding:10px 0 6px;border-top:1px solid var(--line)}
  .esy-nav.is-open .esy-user .logout-container,.esy-nav.is-open .esy-user .user-info{width:100%;display:flex;align-items:center;
    justify-content:space-between;gap:10px}
  .esy-nav.is-open .esy-user .current-username{display:inline !important;margin-right:auto}
  .esy-nav.is-open .esy-user .logout-button{width:auto !important;flex:none}
  .esy-summary--row{flex-direction:column;align-items:start}
  .esy-tiles{grid-template-columns:repeat(2,minmax(0,1fr)) !important;gap:10px}
  .esy-tile{padding:14px}
  .esy-tile__v{font-size:22px}
  .esy-plant{min-height:400px}
  .esy-map .js-plotly-plot .plotly .modebar-group,.esy-proj__map .js-plotly-plot .plotly .modebar-group{display:flex !important;width:auto !important}
}


/* ==========================================================================
   Overview (the page after sign-in): each tool, one line
   ========================================================================== */
.esy-overview{max-width:1200px}
.esy-ovtitle{font-size:clamp(28px,3vw,40px);font-weight:600;letter-spacing:-.04em;line-height:1.05;margin:18px 0 28px}
.esy-tools{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.esy-tool__icon{width:40px;height:40px;border-radius:50%;display:grid;place-items:center;flex:none;
  background:rgba(255,255,255,.04);box-shadow:inset 0 0 0 1px var(--line)}
.esy-tool__icon img{width:20px;height:20px}
.esy-tool__icon--location{background:rgba(105,192,224,.10);box-shadow:inset 0 0 0 1px rgba(105,192,224,.35)}
.esy-tool__icon--feedstock,.esy-tool__icon--plant{background:rgba(76,197,125,.10);box-shadow:inset 0 0 0 1px rgba(76,197,125,.35)}
.esy-tool__icon--economics{background:rgba(224,184,74,.10);box-shadow:inset 0 0 0 1px rgba(224,184,74,.35)}
.esy-tool__icon--iot{background:rgba(170,150,224,.10);box-shadow:inset 0 0 0 1px rgba(170,150,224,.35)}
.esy-tool__icon--ai{background:rgba(224,155,89,.10);box-shadow:inset 0 0 0 1px rgba(224,155,89,.35)}
.esy-ov{display:flex;align-items:center;gap:16px;padding:22px;cursor:pointer;
  transition:transform .4s var(--ease),box-shadow .3s}
.esy-ov:hover{transform:translateY(-2px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16),inset 0 1px 0 rgba(255,255,255,.1),0 24px 60px -30px rgba(0,0,0,.9)}
.esy-ov:focus-visible{outline:2px solid var(--green-bright);outline-offset:3px}
.esy-ov .esy-tool__icon{width:48px;height:48px}
.esy-ov .esy-tool__icon img{width:22px;height:22px}
.esy-ov__text{min-width:0}
.esy-ov__name{font-size:19px;font-weight:600;letter-spacing:-.02em;margin:0 0 4px}
.esy-ov__line{margin:0;color:var(--fg-muted);font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.esy-proj{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:0;padding:0;overflow:hidden;margin-bottom:14px}
.esy-proj__info{padding:28px 30px;display:flex;flex-direction:column;gap:6px}
.esy-proj__name{font-size:clamp(22px,2vw,28px);font-weight:600;letter-spacing:-.03em;margin:4px 0 18px}
.esy-proj__fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 24px;margin:0}
.esy-proj__field dt{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted);font-weight:400;margin-bottom:4px}
.esy-proj__field dd{margin:0;font-size:16px;color:var(--fg)}
.esy-proj__map{min-height:300px;border-left:1px solid var(--line);background:#0e0e0e}
.esy-proj__map .esy-proj__graph,.esy-proj__map .js-plotly-plot,.esy-proj__map .plot-container{height:100% !important}
.esy-proj__map .esy-proj__graph{min-height:300px}
@media (max-width:760px){.esy-proj{grid-template-columns:minmax(0,1fr)}.esy-proj__map{border-left:0;border-top:1px solid var(--line);height:240px;min-height:240px}}
@media (max-width:1000px){.esy-tools{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:640px){.esy-tools{grid-template-columns:minmax(0,1fr)}}

/* Maps: dark credit line (the OpenStreetMap / CARTO credit must stay visible) */
.js-plotly-plot .plotly .maplibregl-ctrl.maplibregl-ctrl-attrib,.maplibregl-ctrl.maplibregl-ctrl-attrib{background:rgba(12,16,14,.85) !important;color:#aeb7b3 !important;font:11px/1.4 var(--sans) !important;border-radius:999px !important;padding:2px 28px 2px 10px !important}
.js-plotly-plot .plotly .maplibregl-ctrl-attrib a,.maplibregl-ctrl-attrib a,.maplibregl-ctrl-attrib-inner{color:#aeb7b3 !important}
.js-plotly-plot .plotly .maplibregl-ctrl-attrib-button{filter:invert(1) opacity(.7);background-color:transparent !important}
/* Maps: zoom buttons always visible, on a dark pill */
.esy-map .js-plotly-plot .plotly .modebar,.esy-proj__map .js-plotly-plot .plotly .modebar{opacity:1 !important;top:10px !important;right:10px !important}
.esy-map .js-plotly-plot .plotly .modebar-group,.esy-proj__map .js-plotly-plot .plotly .modebar-group{background:rgba(12,16,14,.85) !important;border-radius:999px;padding:3px 6px !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.12)}
.esy-map .js-plotly-plot .plotly .modebar-btn path,.esy-proj__map .js-plotly-plot .plotly .modebar-btn path{fill:rgba(225,230,227,.8) !important}

/* ==========================================================================
   IoT and AI (twin) pages
   ========================================================================== */
.esy-twin{display:flex;flex-direction:column;gap:14px}
.esy-note{font-size:13px;line-height:1.55;color:#d9c48a;background:rgba(224,184,74,.07);border-radius:12px;
  padding:11px 16px;box-shadow:inset 0 0 0 1px rgba(224,184,74,.22)}
.esy-tiles{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:14px}
.esy-tile{background:var(--card,#0c100e);border-radius:14px;padding:16px 18px;box-shadow:inset 0 0 0 1px var(--line)}
.esy-tile__k{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted)}
.esy-tile__v{font-size:26px;font-weight:600;letter-spacing:-.03em;color:var(--fg);margin:6px 0 2px}
.esy-tile__s{font-size:12.5px;color:var(--fg-muted);line-height:1.45}
.esy-ctlrow{display:flex;flex-wrap:wrap;gap:14px;align-items:flex-end}
.esy-ctl{display:flex;flex-direction:column;gap:6px;min-width:240px}
.esy-ctl--grow{flex:1;min-width:280px}
.esy-ctl__label{font-family:var(--mono);font-size:11px;letter-spacing:.12em;text-transform:uppercase;color:var(--fg-muted)}
.esy-ctl__dd{min-width:240px}
.esy-grid2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.esy-table{width:100%;border-collapse:collapse;font-size:13.5px;margin-top:10px}
.esy-table th{font-family:var(--mono);font-size:10.5px;letter-spacing:.1em;text-transform:uppercase;color:var(--fg-muted);
  font-weight:400;text-align:left;padding:8px 10px;border-bottom:1px solid var(--line)}
.esy-table td{padding:8px 10px;border-bottom:1px solid rgba(255,255,255,.05);color:var(--fg)}
.esy-table .n{text-align:right;font-variant-numeric:tabular-nums;white-space:nowrap}
.esy-table .muted{color:var(--fg-muted);font-size:12.5px}
.esy-dot{display:inline-block;width:7px;height:7px;border-radius:50%;margin-right:8px;vertical-align:1px}
.esy-dot.is-ok{background:#4cc57d}.esy-dot.is-bad{background:#e06a6a}.esy-dot.is-wait{background:#e0b84a}
.esy-list{margin:10px 0 0;padding-left:18px;color:var(--fg);font-size:13.5px;line-height:1.9}
@media (max-width:900px){.esy-grid2{grid-template-columns:minmax(0,1fr)}}
/* dark dropdowns on the twin pages (react-select markup) */
.esy-ctl__dd .Select-control{background:#0c100e !important;border:0 !important;border-radius:10px !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14) !important;min-height:40px;cursor:pointer}
.esy-ctl__dd.is-focused .Select-control{box-shadow:inset 0 0 0 1px rgba(76,197,125,.6) !important}
.esy-ctl__dd .Select-value-label,.esy-ctl__dd .Select-input>input{color:var(--fg) !important;font-size:14px}
.esy-ctl__dd .Select-value{line-height:38px !important}
.esy-ctl__dd .Select-arrow{border-top-color:var(--fg-muted) !important}
.esy-ctl__dd .Select-menu-outer{background:#0c100e !important;border:0 !important;border-radius:10px !important;margin-top:4px;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 18px 40px -18px rgba(0,0,0,.9) !important;overflow:hidden;z-index:30}
.esy-ctl__dd .Select-option{background:transparent !important;color:var(--fg-muted) !important;font-size:13.5px;padding:9px 14px}
.esy-ctl__dd .Select-option.is-focused{background:rgba(255,255,255,.06) !important;color:var(--fg) !important}
.esy-ctl__dd .Select-option.is-selected{color:#4cc57d !important}

/* Passkeys: login page button and the header link to /account */
.login-or{display:flex;align-items:center;gap:12px;margin:18px 0 12px;color:rgba(225,230,227,.4);font-size:12px}
.login-or::before,.login-or::after{content:"";flex:1;height:1px;background:rgba(255,255,255,.1)}
.login-passkey{width:100%;height:48px;border:0;border-radius:999px;cursor:pointer;font:600 15px var(--sans);
  color:var(--fg);background:rgba(255,255,255,.06);box-shadow:inset 0 0 0 1px rgba(255,255,255,.16);transition:background .3s}
.login-passkey:hover{background:rgba(255,255,255,.1)}
.login-passkey:disabled{opacity:.55;cursor:wait}
.login-passkey-msg{min-height:18px;margin-top:10px;font-size:13px;color:#d9c48a;text-align:center}
.esy-account-link{color:var(--fg-muted) !important;font-size:13px;text-decoration:none;margin:0 12px 0 10px;white-space:nowrap}
.esy-account-link:hover{color:var(--fg) !important}
/* ESYLYS logo in the footer and on the login card */
.esy-foot__brand{display:flex;align-items:center;gap:14px}
.esy-foot__logo{height:26px;width:auto;display:block;opacity:.92;transition:opacity .3s}
.esy-foot__brand a:hover .esy-foot__logo{opacity:1}
.login-foot-logo{height:22px;width:auto;display:block;margin:0 auto 8px;opacity:.9}
@media (max-width:640px){.esy-foot{flex-direction:column;align-items:flex-start;gap:8px}}
/* keep the ESYLYS logo at its size on phones (custom_styles.css stretches every .png there) */
img.login-foot-logo{width:auto !important;height:22px !important;margin:0 auto 8px !important}
img.esy-foot__logo{width:auto !important;height:26px !important;margin:0 !important}
/* short laptop screens: the login card fits without touching the edges */
@media (max-height:800px){
  .login-card{padding-top:26px !important;padding-bottom:22px !important}
  .login-logo{width:60px !important;height:60px !important;margin-bottom:8px !important}
  .login-or{margin:12px 0 8px}
  .login-input-group{margin-bottom:12px !important}
}

/* ==========================================================================
   Sign-in page: the brand and the three phases on the left, the sign-in card on the right
   ========================================================================== */
.lg{position:relative;min-height:100vh;max-width:1180px;margin:0 auto;display:grid;align-items:center;
  grid-template-columns:minmax(0,1.1fr) minmax(340px,430px);gap:clamp(32px,6vw,96px);padding:clamp(24px,5vw,64px)}
.lg-glow{position:fixed;inset:0;pointer-events:none;z-index:0;
  background:radial-gradient(40vw 40vw at 12% 18%,rgba(76,197,125,.10),transparent 70%),
             radial-gradient(34vw 34vw at 88% 86%,rgba(105,192,224,.07),transparent 70%),
             radial-gradient(28vw 28vw at 62% 6%,rgba(224,122,111,.05),transparent 70%)}
.lg-brand,.lg-card{position:relative;z-index:1}
.lg-brand__top{display:flex;align-items:center;gap:12px}
.lg-brand__logo{width:44px;height:auto}
.lg-brand__name{font-size:20px;font-weight:650;letter-spacing:-.02em;color:var(--fg)}
.lg-brand__title{font-size:clamp(36px,4.4vw,58px);font-weight:600;letter-spacing:-.045em;line-height:1.03;
  color:var(--fg);margin:36px 0 34px}
.lg-phases{list-style:none;margin:0;padding:0;display:grid;gap:12px;max-width:470px}
.lg-phase{--ph:#e1e6e3;display:flex;align-items:center;gap:14px;padding:14px 18px;border-radius:14px;
  background:rgba(255,255,255,.025);box-shadow:inset 0 0 0 1px rgba(255,255,255,.07)}
.lg-phase--planning{--ph:#4cc57d}.lg-phase--scale-up{--ph:#69c0e0}.lg-phase--monitoring{--ph:#e07a6f}
.lg-phase__dot{width:9px;height:9px;border-radius:50%;flex:none;background:var(--ph);box-shadow:0 0 0 4px rgba(255,255,255,.04),0 0 14px var(--ph)}
.lg-phase__name{display:block;font-size:15px;font-weight:600;color:var(--ph)}
.lg-phase__text{display:block;font-size:13.5px;color:var(--fg-muted);margin-top:1px}
.lg-card{border-radius:22px;padding:34px 32px 24px;text-align:left;
  background:linear-gradient(180deg,rgba(22,28,25,.94),rgba(12,16,14,.94));
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.1),inset 0 1px 0 rgba(255,255,255,.06),0 40px 90px -40px rgba(0,0,0,.95);
  backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px)}
.lg-card__logo{width:40px;height:auto;display:block;margin-bottom:18px}
.lg-card__title{font-size:26px;font-weight:600;letter-spacing:-.03em;color:var(--fg);margin:0}
.lg-card__lead{font-size:14px;color:var(--fg-muted);margin:6px 0 24px}
.lg-form .login-input-group{margin-bottom:14px}
.lg-form .login-button{width:100%;margin-top:4px}
.lg-passkey,.login-passkey{display:inline-flex !important;align-items:center;justify-content:center;gap:10px}
.lg-passkey img,.login-passkey img{width:20px;height:20px;flex:none}
.login-passkey img{filter:none;opacity:.9}
.lg-passkey{width:100%;height:54px;border:0;border-radius:999px;cursor:pointer;font:600 16px var(--sans);color:#fff;
  background:linear-gradient(120deg,rgba(99,211,139,.96),rgba(37,168,92,.93) 45%,rgba(32,123,74,.96));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 12px 30px -12px rgba(76,197,125,.75);transition:transform .25s,filter .25s}
.lg-passkey:hover{filter:brightness(1.07);transform:translateY(-1px)}
.lg-passkey:disabled{opacity:.6;cursor:wait;transform:none}
.lg-note{font-size:12.5px;color:var(--fg-muted);margin:12px 0 0;line-height:1.5}
.lg-note--center{text-align:center}
.lg-card .login-passkey-msg{margin-top:12px}
.lg-invite{font-size:12.5px;color:var(--fg-muted);margin:22px 0 0;padding-top:16px;border-top:1px solid var(--line);line-height:1.5}
.lg-card__foot{display:flex;flex-direction:column;align-items:center;gap:6px;margin-top:20px;font-size:11.5px;color:rgba(225,230,227,.45)}
.lg-card__foot img.login-foot-logo{margin:0 !important}
@media (max-width:900px){
  .lg{grid-template-columns:minmax(0,1fr);gap:26px;align-content:start;padding-top:32px}
  .lg-brand__title{font-size:34px;margin:22px 0 18px}
  .lg-phases{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:none}
  .lg-phase{flex-direction:column;align-items:flex-start;gap:8px;padding:12px}
  .lg-phase__text{display:none}
}
@media (max-width:420px){.lg-card{padding:28px 22px 22px}.lg-brand__title{font-size:30px}}
@media (prefers-reduced-motion:reduce){.lg-passkey{transition:none}}

/* ==========================================================================
   Dash 4 dropdowns (Monitor, AI, Scale up): the new component is themed with --Dash-* variables.
   The trigger carries .esy-ctl__dd; the menu opens in a portal (.dash-dropdown-content).
   ========================================================================== */
.esy-ctl__dd,.dash-dropdown-content{
  --Dash-Fill-Inverse-Strong:#0c100e; --Dash-Text-Strong:#e1e6e3; --Dash-Text-Weak:#8f9a96; --Dash-Text-Disabled:#4d5652;
  --Dash-Text-Primary:#4cc57d; --Dash-Fill-Interactive-Strong:#4cc57d; --Dash-Fill-Interactive-Weak:rgba(255,255,255,.06);
  --Dash-Fill-Primary-Hover:rgba(255,255,255,.06); --Dash-Fill-Primary-Active:rgba(76,197,125,.16);
  --Dash-Stroke-Strong:rgba(255,255,255,.14); --Dash-Stroke-Weak:rgba(255,255,255,.08);
  --Dash-Shading-Weak:rgba(0,0,0,.35); --Dash-Shading-Strong:rgba(0,0,0,.6)}
.dash-dropdown.esy-ctl__dd{min-height:40px;border-radius:10px !important;background:#0c100e !important;color:var(--fg) !important;
  border:0 !important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14) !important;font:14px var(--sans) !important;cursor:pointer;
  transition:box-shadow .3s var(--ease)}
.dash-dropdown.esy-ctl__dd:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.24) !important}
.dash-dropdown.esy-ctl__dd[data-state="open"],.dash-dropdown.esy-ctl__dd:focus-visible{box-shadow:inset 0 0 0 1px rgba(76,197,125,.6),0 0 0 3px rgba(76,197,125,.14) !important;outline:0}
.dash-dropdown.esy-ctl__dd .dash-dropdown-value,.dash-dropdown.esy-ctl__dd .dash-dropdown-value-item{color:var(--fg) !important;opacity:1 !important}
.dash-dropdown.esy-ctl__dd .dash-dropdown-trigger-icon{color:var(--fg-muted)}
.dash-dropdown-content{background:#0c100e !important;color:var(--fg) !important;border:0 !important;border-radius:12px !important;padding:4px !important;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 18px 40px -18px rgba(0,0,0,.9) !important;font-family:var(--sans) !important}
.dash-dropdown-content .dash-dropdown-option{border-radius:8px;color:var(--fg-muted) !important;font-size:13.5px}
.dash-dropdown-content .dash-dropdown-option:hover,.dash-dropdown-content .dash-dropdown-option:focus-visible{background:rgba(255,255,255,.06) !important;color:var(--fg) !important}
.dash-dropdown-content .dash-dropdown-option.selected{color:var(--fg) !important;background:rgba(76,197,125,.14) !important}
.dash-dropdown-content .dash-options-list-option-wrapper{position:absolute;width:1px;height:1px;overflow:hidden;
  clip:rect(0 0 0 0);white-space:nowrap}   /* visually hidden only: keyboard selection and screen readers keep the input */
