:root{color:#111827;background:#f8fafc;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif}*{box-sizing:border-box}body{margin:0}button,input,select{font:inherit}main{min-height:100vh}.errorScreen{display:grid;place-items:center;padding:24px;background:#020617}.hero{min-height:220px;display:flex;align-items:end;padding:28px 48px;color:#0f172a;background:#fff;border-bottom:1px solid #e2e8f0}.heroContent{width:min(760px,100%)}.brandRow{display:flex;gap:10px;align-items:center;justify-content:space-between;font-weight:700;margin-bottom:18px}.brandMark{display:inline-flex;align-items:center;gap:10px}.themeIconButton{width:42px;height:42px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #cbd5e1;border-radius:8px;color:#0f172a;background:#fff;cursor:pointer}h1{font-size:clamp(32px,5vw,64px);line-height:1;margin:0 0 18px;letter-spacing:0}p{font-size:18px;line-height:1.55;max-width:680px;margin:0 0 18px}.panelTabs{position:sticky;top:0;z-index:10;display:grid;grid-template-columns:repeat(4,1fr);gap:1px;padding:1px;background:#cbd5e1;border-bottom:1px solid #cbd5e1}.panelTab{min-height:48px;border:0;color:#475569;background:#fff;font-weight:900;text-transform:capitalize;cursor:pointer;transition:background-color .16s ease,color .16s ease}.panelTab.active{color:#020617;background:#22c55e}.start,.stop{min-height:48px;display:inline-flex;gap:10px;align-items:center;border:0;border-radius:8px;padding:0 18px;font-weight:800;color:#fff;background:#0f172a;cursor:pointer}.stop{background:#ef4444}.dashboard,.controls{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:1px;background:#e2e8f0;border-top:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.metric{min-height:156px;display:flex;flex-direction:column;gap:12px;padding:28px;background:#fff}.toolbarMetric{min-height:132px}.liveFocusMetric strong{color:#22c55e;font-size:38px}.pigmentMetric strong{color:#16a36a}.miniCurveMetric{min-height:156px}.miniBars{height:46px;display:flex;align-items:end;gap:3px}.miniBars i{flex:1;min-width:3px;border-radius:2px 2px 0 0;background:#9d54ff}.geometryGate{grid-column:1 / -1}.geometryPanel{min-height:156px;display:grid;gap:14px;padding:22px 28px;background:#fff;color:#0f172a;font-weight:800}.geometryPanel>div:first-child{display:grid;gap:6px}.geometryPanel strong{font-size:26px;letter-spacing:0}.geometryPanel small{color:#556155}.presetGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(132px,1fr));gap:8px}.presetButton{min-height:72px;display:flex;flex-direction:column;gap:4px;align-items:flex-start;justify-content:center;border:1px solid #cbd5e1;border-radius:8px;padding:10px 12px;color:#0f172a;background:#fff;cursor:pointer;text-align:left;outline:none;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.presetButton span{color:inherit;font-weight:900}.presetButton small{color:#64748b;font-size:12px}.presetButton.active,.presetButton:hover{border-color:#22c55e;background:#dcfce7}.presetButton:focus-visible,.choiceButton:focus-visible,.secondaryAction:focus-visible,.iconAction:focus-visible,.themeIconButton:focus-visible,.start:focus-visible,.stop:focus-visible,.panelTab:focus-visible{outline:3px solid #08ccef;outline-offset:2px}.optionGroup{min-height:104px;display:grid;grid-column:span 2;gap:10px;padding:22px 28px;background:#fff;color:#0f172a;font-weight:800}.optionGroup>span{color:#556155;font-size:13px;font-weight:900}.choiceGrid{display:grid;grid-template-columns:repeat(auto-fit,minmax(118px,1fr));gap:8px}.choiceButton{min-height:82px;display:grid;grid-template-columns:28px 1fr;grid-template-rows:auto auto;column-gap:10px;row-gap:2px;align-items:center;border:1px solid #cbd5e1;border-radius:8px;padding:10px;color:#0f172a;background:#fff;cursor:pointer;text-align:left;transition:background-color .16s ease,border-color .16s ease,color .16s ease}.choiceButton:hover,.choiceButton.active{border-color:#22c55e;background:#dcfce7}.choiceIcon{grid-row:1 / span 2;width:26px;height:26px;color:#0f766e}.choiceButton span{font-weight:950}.choiceButton small{color:#64748b;font-size:12px;font-weight:800}.choiceButton.active .choiceIcon,.choiceButton.active span{color:#064e3b}.chartSection{padding:34px 48px 42px;background:#f8fafc}.chartHeader{display:flex;align-items:end;justify-content:space-between;gap:18px;margin-bottom:16px}.chartHeader span{color:#627060;font-weight:800}.chartHeader h2{margin:4px 0 0;font-size:28px;letter-spacing:0}.chartDateControl{min-width:190px;display:grid;gap:6px}.chartDateControl label{color:#627060;font-size:13px;font-weight:850}.chartShell{overflow-x:auto}.uvaChart{min-width:720px;width:100%;height:auto;display:block;touch-action:none;-webkit-user-select:none;user-select:none}.uvaChart>rect{fill:#080d13}.gridLine line{stroke:#ffffff1c;stroke-width:1}.gridLine text,.timeTick{fill:#ffffff70;font-size:13px;text-anchor:middle}.gridLine text{text-anchor:start}.ambientLine,.skinLine,.pigmentLine{fill:none;stroke-linecap:round;stroke-linejoin:round;stroke-width:4}.ambientLine{stroke:#08ccef}.skinLine{stroke:#9d54ff;stroke-dasharray:8 8}.pigmentLine{stroke:#29d391;stroke-dasharray:2 9}.skinRangeLine{fill:none;stroke:#9d54ff5c;stroke-linecap:round;stroke-linejoin:round;stroke-width:2}.selectionBand{opacity:.16}.selectionBand.under{fill:#23d38b}.selectionBand.over{fill:#ff595e}.savedSection text{fill:#fff;font-size:12px;font-weight:850}.savedBand{opacity:.18}.savedBand.under{fill:#22c55e}.savedBand.over{fill:#ef4444}.selectionHandle{stroke:#ffffffd1;stroke-width:2}.hoverBar{stroke:#ffffffbd;stroke-width:1.5}.ambientDot,.skinDot,.pigmentDot{fill:#080d13;stroke-width:3}.ambientDot{stroke:#08ccef}.skinDot{stroke:#9d54ff}.pigmentDot{stroke:#29d391}.hoverDot{fill:#fff}.hoverReadout{pointer-events:none}.hoverDate,.hoverTime{fill:#fff;font-weight:850}.hoverDate{font-size:20px}.hoverTime{font-size:16px}.hoverAmbientText{fill:#08ccef;font-size:17px;font-weight:800}.hoverSkinText{fill:#9d54ff;font-size:17px;font-weight:800}.hoverPigmentText{fill:#29d391;font-size:14px;font-weight:800}.hoverMetaText{fill:#ffffffad;font-size:14px;font-weight:750}.chartLegend{display:flex;flex-wrap:wrap;gap:18px;margin-top:10px;color:#263429;font-weight:800}.chartLegend span{display:inline-flex;align-items:center;gap:7px}.chartLegend i{width:18px;height:3px;display:inline-block;border-radius:3px}.ambientSwatch{background:#08ccef}.skinSwatch{background:#9d54ff}.pigmentSwatch{background:#29d391}.selectionSummary{display:grid;grid-template-columns:minmax(120px,1fr) auto minmax(180px,1.5fr) auto;gap:14px;align-items:center;margin-top:14px;border-left:6px solid;padding:16px 18px;background:#fff;border-radius:8px;border-top:1px solid #e2e8f0;border-right:1px solid #e2e8f0;border-bottom:1px solid #e2e8f0}.sectionsPanel{margin-top:12px;border:1px solid #e2e8f0;border-radius:8px;background:#fff}.sectionsPanel p{margin:0;padding:18px;color:#64748b;font-size:15px}.sectionsHeader,.sectionItem{display:grid;gap:12px;align-items:center;padding:14px 16px}.sectionsHeader{grid-template-columns:minmax(160px,1fr) auto;border-bottom:1px solid #e2e8f0}.sectionsHeader span,.sectionItem span{color:#64748b;font-weight:750}.sectionItem{grid-template-columns:minmax(180px,1fr) auto 120px 120px auto auto auto;border-top:1px solid #f1f5f9}.sectionItem input{width:100%}.dosePill{min-width:100px;border-radius:999px;padding:8px 12px;text-align:center;font-weight:900}.dosePill.under{color:#166534;background:#dcfce7}.dosePill.over{color:#991b1b;background:#fee2e2}.hoverSummary{display:grid;grid-template-columns:minmax(90px,auto) minmax(180px,auto) 1fr;gap:14px;align-items:center;margin-top:8px;padding:12px 18px;background:#101820;color:#fff}.hoverSummary span{color:#fff;font-weight:900}.hoverSummary strong{color:#9d54ff;font-size:20px;letter-spacing:0}.hoverSummary small{color:#08ccef;font-weight:800}.selectionSummary.under{border-color:#23a96f}.selectionSummary.over{border-color:#e13f45}.selectionSummary span,.selectionSummary small{color:#59665a;font-weight:750}.selectionSummary strong{font-size:28px;letter-spacing:0}.controls{grid-template-columns:repeat(auto-fit,minmax(210px,1fr));border-top:0}.sectionLabel,.controls label,.actionPanel{min-height:104px;display:flex;flex-direction:column;gap:8px;justify-content:center;padding:22px 28px;background:#fff;color:#0f172a;font-weight:800}.sectionLabel{flex-direction:row;justify-content:flex-start;align-items:center}select,input[type=number],input[type=date],input[type=time]{min-height:40px;width:100%;border:1px solid #c8d0c0;border-radius:6px;padding:0 10px;background:#fff;color:#17221a}.controlLabel{display:inline-flex;gap:8px;align-items:center}.checkboxRow{flex-direction:row;align-items:center}.checkboxRow input{width:20px;height:20px}.secondaryAction{min-height:42px;display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid #b7c2af;border-radius:8px;background:#fff;color:#17221a;font-weight:850;cursor:pointer}.compactAction{min-height:38px;padding:0 12px}.iconAction{width:38px;height:38px;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e2e8f0;border-radius:8px;background:#fff;color:#0f172a;cursor:pointer}.iconAction.danger{color:#b91c1c}.metric span,.metric small{color:#556155}.metric strong{font-size:30px;letter-spacing:0}input[type=range]{width:100%}.notice{display:flex;gap:14px;align-items:start;padding:28px 48px;color:#263429}.notice p{margin:0}@media(max-width:900px){.hero{padding:32px 20px;min-height:190px}.dashboard,.controls{grid-template-columns:1fr}.optionGroup{grid-column:auto;padding:18px 20px}.choiceGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.panelTabs{grid-template-columns:repeat(4,minmax(0,1fr))}.panelTab{min-height:44px;font-size:13px}.chartSection{padding:28px 20px 34px}.chartHeader,.selectionSummary,.hoverSummary,.sectionItem,.sectionsHeader{grid-template-columns:1fr}.chartHeader{align-items:start;flex-direction:column}.notice{padding:24px 20px}}html[data-theme=dark]{color-scheme:dark;color:#e5e7eb;background:#020617}html[data-theme=dark] body,html[data-theme=dark] main,html[data-theme=dark] .chartSection{background:#020617}html[data-theme=dark] .hero,html[data-theme=dark] .metric,html[data-theme=dark] .geometryPanel,html[data-theme=dark] .optionGroup,html[data-theme=dark] .controls label,html[data-theme=dark] .actionPanel,html[data-theme=dark] .sectionLabel,html[data-theme=dark] .sectionsPanel,html[data-theme=dark] .selectionSummary{color:#e5e7eb;background:#0f172a}html[data-theme=dark] .hero,html[data-theme=dark] .sectionsPanel,html[data-theme=dark] .selectionSummary,html[data-theme=dark] .sectionItem,html[data-theme=dark] .sectionsHeader,html[data-theme=dark] .panelTabs{border-color:#1e293b}html[data-theme=dark] .dashboard,html[data-theme=dark] .controls,html[data-theme=dark] .panelTabs{background:#1e293b;border-color:#1e293b}html[data-theme=dark] .panelTab{color:#94a3b8;background:#0f172a}html[data-theme=dark] .panelTab.active{color:#020617;background:#22c55e}html[data-theme=dark] h1,html[data-theme=dark] .chartHeader h2,html[data-theme=dark] .brandRow,html[data-theme=dark] .metric strong,html[data-theme=dark] .selectionSummary strong,html[data-theme=dark] .sectionsHeader strong{color:#f8fafc}html[data-theme=dark] p,html[data-theme=dark] .metric span,html[data-theme=dark] .metric small,html[data-theme=dark] .chartHeader span,html[data-theme=dark] .selectionSummary span,html[data-theme=dark] .selectionSummary small,html[data-theme=dark] .sectionsPanel p,html[data-theme=dark] .sectionsHeader span,html[data-theme=dark] .sectionItem span{color:#94a3b8}html[data-theme=dark] select,html[data-theme=dark] input[type=number],html[data-theme=dark] input[type=date],html[data-theme=dark] input[type=time],html[data-theme=dark] .sectionItem input,html[data-theme=dark] .secondaryAction,html[data-theme=dark] .iconAction,html[data-theme=dark] .themeIconButton,html[data-theme=dark] .presetButton,html[data-theme=dark] .choiceButton{color:#f8fafc;background:#020617;border-color:#334155}html[data-theme=dark] .geometryPanel small,html[data-theme=dark] .optionGroup>span,html[data-theme=dark] .presetButton small,html[data-theme=dark] .choiceButton small{color:#94a3b8}html[data-theme=dark] .presetButton.active,html[data-theme=dark] .presetButton:hover,html[data-theme=dark] .choiceButton.active,html[data-theme=dark] .choiceButton:hover{color:#020617;border-color:#22c55e;background:#22c55e}html[data-theme=dark] .presetButton.active small,html[data-theme=dark] .presetButton:hover small,html[data-theme=dark] .choiceButton.active small,html[data-theme=dark] .choiceButton:hover small{color:#064e3b}html[data-theme=dark] .choiceButton.active .choiceIcon,html[data-theme=dark] .choiceButton.active span,html[data-theme=dark] .choiceButton:hover .choiceIcon,html[data-theme=dark] .choiceButton:hover span{color:#020617}
