@font-face{font-family:Systemia;src:url('assets/Systemia-Regular.otf');font-weight:400;font-display:swap}
@font-face{font-family:Systemia;src:url('assets/Systemia-Medium.otf');font-weight:500 800;font-display:swap}
@font-face{font-family:Ivar;src:url('assets/IvarDisplayCondensed-Regular.otf');font-weight:400;font-display:swap}
:root{font-family:Systemia,Arial,sans-serif;color:#000;background:#F2EFEC;font-synthesis:none;--muted:#65615d;--ink2:#353230;--subtle:#74706B;--line:#ECE9E5;--green:#009A33;--mint:#B2FFBF;--beige:#F2EFEC;--yellow:#F2C94C;--yellow-light:#FFE39B;--red:#D73333;--red-light:#FFBBBB;--gray:#CDC8C2}
*{box-sizing:border-box}body{margin:0;-webkit-font-smoothing:antialiased}h1,h2,h3,p{margin:0}button,input,select{font:inherit}button{color:inherit;border:0;background:none;cursor:pointer}a{color:inherit}button,a,input,select,summary{outline-offset:4px;-webkit-tap-highlight-color:transparent}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #246cbd}svg{width:24px;height:24px;vertical-align:middle;flex-shrink:0}[hidden]{display:none!important}.sr-only{position:absolute;width:1px;height:1px;margin:-1px;clip:rect(0,0,0,0);overflow:hidden;white-space:nowrap}

/* Studio shell (same chrome as the wallet, full-width cards and signup prototypes) */
.studio-header{margin:0 42px;height:80px;border-bottom:1px solid #d6d1ca;display:flex;align-items:center;gap:40px}.studio-header>img{width:110px;height:auto}.studio-header>span{font-size:14px;flex:1}.studio-header b{font-weight:400;border:1px solid #ccc6bf;border-radius:20px;padding:4px 9px;margin-left:10px;font-size:11px}.studio-header button{border:1px solid #c9c3bc;padding:9px 13px;border-radius:8px;font-size:12px}.prototype-label{text-align:center;font-size:11px;color:var(--muted);padding:15px 0 0}
.workbench{display:grid;grid-template-columns:230px 426px 270px;gap:48px;max-width:1180px;margin:27px auto 50px;padding:0 24px;align-items:start}
.workbench.compare{grid-template-columns:884px 270px;max-width:1260px}.workbench.compare .overview{display:none}
.overview{padding-top:58px}.overview .eyebrow{font-size:13px;margin:0 0 18px}.overview h1{font:400 53px/1.03 Ivar,serif;letter-spacing:-.7px}.overview>p:not(.eyebrow){font-size:14px;line-height:1.7;color:var(--muted);margin-top:24px}
#review{list-style:none;margin:30px 0 0;padding:0}#review li{margin:4px 0}#review button{display:flex;align-items:center;gap:12px;font-size:13px;color:var(--muted);text-align:left;padding:5px 0;min-height:36px}#review button span{width:25px;height:25px;border:1px solid #bdb7b0;border-radius:50%;display:grid;place-items:center;font-size:11px;flex-shrink:0}#review button.current{color:#000;font-weight:500}#review button.current span{background:#000;color:#fff;border-color:#000}#review button:hover{color:#000}
.stage{display:flex;align-items:flex-start;flex-direction:column}.stages{display:flex;gap:48px;align-items:flex-start}.stage-col{display:flex;flex-direction:column;align-items:center;gap:12px}.stage-col>p{font-size:12px;color:var(--muted)}
.stage-caption{max-width:400px;font-size:11px;line-height:1.5;color:var(--muted);text-align:center;margin:17px auto 0}
.controls{padding-top:19px}.controls-heading{display:flex;justify-content:space-between;align-items:center;margin-bottom:22px}.controls h2{font-size:18px;font-weight:500}.controls label{font-size:12px;display:block;margin:15px 0 7px}.controls select{width:100%;height:41px;border:1px solid #c9c3bc;border-radius:8px;background:#fbfaf8;padding:0 10px;font-size:12px;color:#000}.control-button{width:100%;min-height:42px;text-align:left;border:1px solid #c9c3bc;border-radius:8px;padding:10px 12px;font-size:12px;margin-top:12px;background:#fff}.control-button[aria-pressed=true]{background:#000;color:#fff;border-color:#000}
.controls-disclaimer{font-size:11px;line-height:1.5;color:var(--muted);margin:-8px 0 8px}
.controls h3.group{font-size:13px;font-weight:500;margin:24px 0 0;padding-top:18px;border-top:1px solid #d6d1ca}
.rule-note{margin-top:22px;padding-top:19px;border-top:1px solid #d6d1ca}.rule-note h3{font-size:13px;font-weight:500;margin:0 0 10px}.rule-note ul{padding-left:0;list-style:none;margin:0;font-size:12px;line-height:1.55;color:var(--muted)}.rule-note li{margin:9px 0;display:flex;gap:8px;align-items:flex-start}.rule-note li b{color:#000;font-weight:500;min-width:96px;flex-shrink:0}.rule-note li span{flex:1}
.chip{display:inline-block;font-size:10px;font-weight:500;padding:1px 6px;border-radius:3px;white-space:nowrap;margin-left:4px;vertical-align:1px}.chip-same{background:#B2FFBF;color:#00471B}.chip-extra{background:#FFE39B;color:#996B00}.chip-ask{background:#FFBBBB;color:#8B1A1A}.chip-derived{background:#E6E1DC;color:#353230}
.review-details{border-top:1px solid #d6d1ca;padding:15px 0;font-size:12px;line-height:1.65;margin-top:14px}.review-details summary{cursor:pointer;font-weight:500}.review-details p{color:var(--muted);margin-top:10px}#close-controls{display:none}
.mobile-controls{display:none}

/* Phone */
.phone{height:902px;width:418px;border:6px solid #191919;border-radius:42px;box-shadow:0 12px 35px #35323012;overflow:hidden;position:relative;display:flex;flex-direction:column;background:var(--beige);--ts:1}
.status-bar{height:44px;padding:13px 24px 7px;display:flex;justify-content:space-between;align-items:center;font-size:16px;background:#fff;font-weight:500;flex-shrink:0}.home-indicator{height:15px;display:grid;place-items:center;background:var(--beige);flex-shrink:0}.home-indicator:before{content:'';width:114px;height:4px;background:#000;border-radius:4px}
.app{display:flex;flex-direction:column;flex:1;min-height:0;position:relative;background:var(--beige)}

/* Device detail, mirroring the Flutter design system tokens:
   AppHeader 56 · AppSpacing xxxs 4 / xxs 8 / xs 12 / s 16 / m 24 / xl 40 · AppCard radius 4, padding 16 ·
   headlineXL 32/36 −1 · headlineLarge 28/32 −1 · headlineMedium 20/28 −0.5 · headlineSmall 18/26 −0.5 ·
   bodyLarge 16/24 · bodyMedium 14/20 · bodyMediumMedium 14/20 500 · bodySmall 12/16 */
.appbar{height:calc(56px * var(--ts));min-height:56px;background:#fff;display:grid;grid-template-columns:44px minmax(0,1fr) 44px;align-items:center;padding:0 8px;flex-shrink:0;gap:8px}
.appbar h1{font-size:calc(20px * var(--ts));line-height:calc(28px * var(--ts));letter-spacing:-.5px;font-weight:400;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.icon-btn{width:44px;height:44px;display:grid;place-items:center;border-radius:22px;padding:0}.icon-btn svg{width:calc(24px * var(--ts));height:calc(24px * var(--ts))}
.mobile-controls-row{display:none}
.scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain}

/* AppBanner, error variant: full-bleed under the header */
.banner{display:flex;gap:8px;align-items:flex-start;padding:12px 16px;background:var(--red-light);color:var(--ink2);font-size:calc(14px * var(--ts));line-height:calc(20px * var(--ts));font-weight:500}.banner svg{width:20px;height:20px;margin-top:0}.banner button{font-weight:500;text-decoration:underline;text-underline-offset:2px;padding:0;color:inherit}

/* Hero: render, readout while producing, status block (as ChargeboxDetailView, without the button) */
.hero{background:#fff;padding:8px 16px 24px;display:flex;flex-direction:column;align-items:center}
.hero img{width:120px;height:120px;object-fit:contain}
.readout{margin-top:16px;display:flex;align-items:baseline;gap:4px}.readout .v{font-size:calc(32px * var(--ts));line-height:calc(36px * var(--ts));letter-spacing:-1px}.readout .u{font-size:calc(20px * var(--ts));line-height:calc(28px * var(--ts));letter-spacing:-.5px}
.status{margin-top:12px;display:flex;flex-direction:column;align-items:center;gap:4px;text-align:center}.status-row{display:flex;align-items:center;gap:8px}.status-row .slot{width:24px;display:grid;place-items:center}
.status-row h2{font-size:calc(20px * var(--ts));line-height:calc(28px * var(--ts));letter-spacing:-.5px;font-weight:400}.status p{font-size:calc(14px * var(--ts));line-height:calc(20px * var(--ts));color:var(--ink2)}
.dot{width:16px;height:16px;border-radius:8px;display:grid;place-items:center}.dot i{width:8px;height:8px;border-radius:4px}
.dot.yellow{background:var(--yellow-light)}.dot.yellow i{background:var(--yellow)}
.dot.gray{background:var(--beige)}.dot.gray i{background:var(--gray)}
.dot.red{background:var(--red-light)}.dot.red i{background:var(--red)}
.dot.pulse{animation:dotpulse .8s ease-in-out infinite alternate}
@keyframes dotpulse{from{transform:scale(1)}to{transform:scale(1.4)}}

.cards{padding:16px 16px 24px;display:flex;flex-direction:column;gap:12px}.cards>*{min-width:0}
.card{background:#fff;border-radius:4px;padding:16px;display:block;width:100%;text-align:left;color:inherit;font:inherit}
button.card{cursor:pointer}button.card:active{background:#faf8f6}
.row2{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}

/* DeviceDetailMeasurementTile: value headlineLarge, unit bodyMedium, label bodyMedium */
.tile-v{display:flex;align-items:baseline;gap:4px;flex-wrap:wrap}.tile-v b{font-weight:400;font-size:calc(28px * var(--ts));line-height:calc(32px * var(--ts));letter-spacing:-1px;overflow-wrap:anywhere}.tile-v small,.tile-l{font-size:calc(14px * var(--ts));line-height:calc(20px * var(--ts))}
.tile-l{margin-top:4px;overflow-wrap:anywhere}
.tiles{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px}
.card-head{display:flex;align-items:center;gap:12px}.card-head h3{flex:1;font-size:calc(18px * var(--ts));line-height:calc(26px * var(--ts));letter-spacing:-.5px;font-weight:400;overflow-wrap:anywhere}.card-head svg{width:calc(24px * var(--ts));height:calc(24px * var(--ts))}
.one-card .tiles{margin-top:16px}

/* AnalysisCard.figures: title + chevron, ValueHeadline figures (headlineXL / headlineMedium / bodyMedium), 40 apart */
.a-cap{margin-top:2px;font-size:calc(14px * var(--ts));line-height:calc(20px * var(--ts));color:var(--subtle)}
.figs{display:flex;flex-wrap:wrap;gap:12px 40px;margin-top:12px}
.fig b{display:block;font-weight:400;font-size:calc(32px * var(--ts));line-height:calc(36px * var(--ts));letter-spacing:-1px;white-space:nowrap}.fig b small{font-size:calc(20px * var(--ts));line-height:calc(28px * var(--ts));letter-spacing:-.5px}
.fig span{display:block;margin-top:4px;font-size:calc(14px * var(--ts));line-height:calc(20px * var(--ts))}
.trends{margin-top:16px;display:flex;flex-direction:column;gap:4px}.trend{display:flex;gap:6px;align-items:flex-start;font-size:calc(14px * var(--ts));line-height:calc(20px * var(--ts));color:var(--subtle)}.trend svg{width:calc(20px * var(--ts));height:calc(20px * var(--ts))}.trend.neg svg{color:var(--red)}.trend.pos svg{color:#000}
.a-chart{margin-top:24px}.a-unit{font-size:calc(12px * var(--ts));line-height:calc(16px * var(--ts));color:var(--subtle)}
.a-plot{position:relative;height:120px;margin-top:6px;display:grid;grid-template-columns:repeat(30,minmax(0,1fr));column-gap:3px;align-items:end;border-bottom:1px solid var(--line)}
.a-bar{display:flex;flex-direction:column-reverse;justify-content:flex-start;height:100%;align-items:center}.a-bar i{display:block;width:6px;flex-shrink:0}.a-bar i:last-child{border-radius:2px 2px 0 0}.a-bar .use{background:var(--yellow)}.a-bar .sold{background:#000}
.a-x{display:grid;grid-template-columns:repeat(30,minmax(0,1fr));column-gap:3px;margin-top:4px;font-size:calc(12px * var(--ts));line-height:calc(16px * var(--ts));color:var(--subtle);text-align:center}.a-x span{overflow:visible;white-space:nowrap}
.legend{list-style:none;margin:12px 0 0;padding:0;display:flex;flex-direction:column;gap:6px;font-size:calc(14px * var(--ts));line-height:calc(20px * var(--ts))}.legend li{display:flex;align-items:center;gap:8px}.legend i{width:10px;height:10px;border-radius:50%}.legend b{margin-left:auto;font-weight:400}
.note{margin-top:12px;font-size:calc(12px * var(--ts));line-height:calc(16px * var(--ts));color:var(--subtle)}

/* Skeleton */
.sk{background:#ECE8E3;border-radius:4px;animation:sk 1.2s ease-in-out infinite alternate}
@keyframes sk{from{opacity:1}to{opacity:.55}}
.hero .sk-img{width:120px;height:120px}

/* Today's screen (replica of the shipping SolarPanelDetailView) */
.today-hero{background:#fff;padding:8px 16px 24px;display:flex;flex-direction:column;align-items:center}
.today-hero img{width:120px;height:120px;object-fit:contain;margin-top:16px}
.today-hero .readout{margin-top:16px}
.pill{margin-top:4px;display:inline-flex;align-items:center;min-height:calc(24px * var(--ts));padding:4px 12px;border-radius:99px;font-size:calc(12px * var(--ts));line-height:calc(16px * var(--ts));font-weight:500;background:var(--green);color:#fff}
.pill.pulse{animation:pillpulse 1.6s ease-in-out infinite alternate}
@keyframes pillpulse{from{opacity:1}to{opacity:.45}}
.today-stats{padding:12px 16px;display:grid;grid-template-columns:1fr 1fr;gap:12px}
.today-stats .card b{font-weight:400;font-size:calc(28px * var(--ts));line-height:calc(32px * var(--ts));letter-spacing:-1px}.today-stats .card small,.today-stats .card p{font-size:calc(14px * var(--ts));line-height:calc(20px * var(--ts))}

.toast{position:absolute;left:16px;right:16px;bottom:28px;background:#191919;color:#fff;border-radius:8px;padding:12px 16px;font-size:14px;line-height:20px;z-index:40;animation:fade .15s ease-out}
@keyframes fade{from{opacity:0}}
.new-mark{outline:2px dashed var(--green);outline-offset:3px}

@media(min-width:1051px){#toggle-controls{display:none}}
@media(max-width:1300px){.workbench.compare{grid-template-columns:860px 250px;gap:24px;max-width:1160px}.workbench.compare .stages{gap:24px}}
@media(max-width:1150px){.workbench{gap:24px;grid-template-columns:190px 418px 250px;max-width:1000px}.overview h1{font-size:46px}.studio-header{margin:0 26px}}
@media(max-width:1050px){.workbench,.workbench.compare{grid-template-columns:190px 418px;max-width:680px;gap:25px}.workbench.compare .overview{display:block}.stages>.stage-col+.stage-col{display:none}.controls{display:none;position:fixed;z-index:100;right:0;top:0;bottom:0;width:320px;max-width:90vw;overflow:auto;background:#F2EFEC;padding:25px;box-shadow:-20px 0 50px #0002}.controls.open{display:block}#close-controls{display:block;font-size:18px;min-height:40px}.studio-header{height:66px}}
@media(max-width:680px){.studio-header,.prototype-label{display:none}.workbench,.workbench.compare{display:block;padding:0;margin:0;max-width:none}.overview{display:none!important}.stage,.stages,.stage-col{display:block;width:100%}.stage-col>p{display:none}.phone{height:100dvh;min-height:450px;width:100%;border:0;border-radius:0;box-shadow:none;padding-top:env(safe-area-inset-top);background:#fff}.status-bar{display:none}.home-indicator{height:max(7px,env(safe-area-inset-bottom))}.home-indicator:before{display:none}.stage-caption{display:none}.mobile-controls-row{display:flex;justify-content:flex-end;background:#fff;padding:0 16px}.mobile-controls{display:block;min-height:32px;font-size:11px;text-decoration:underline;text-underline-offset:3px;color:var(--muted)}#close-controls{font-size:13px;text-decoration:underline;text-underline-offset:3px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important;scroll-behavior:auto!important}}
