@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;600;700&family=Roboto:wght@400;500;700&display=swap');
:root{color-scheme:dark;--bg:#030305;--panel:#090911;--line:#39285c;--purple:#ac6cf4;--text:#eeeaf8;--muted:#b3a7ce}*{box-sizing:border-box}body{margin:0;background:var(--bg);font:16px 'Roboto Condensed','Arial Narrow',Arial,sans-serif;color:var(--text)}button,input,select,textarea{font:inherit}button,a{touch-action:manipulation}button{cursor:pointer;color:inherit}a{color:var(--purple);text-decoration:none}button:focus-visible,a:focus-visible,select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid #c599ff;outline-offset:3px}h1,h2,h3,p{margin-top:0}h1{font-size:27px;margin-bottom:10px}h2{font-size:18px;font-weight:600;margin:0;display:flex;align-items:center;gap:10px}h3{font-size:19px;margin-top:28px}small{font-size:13px}.icon{height:26px;width:26px;flex-shrink:0;color:var(--purple);vertical-align:middle}.letter-icon{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;font-weight:700;font-size:19px;color:var(--purple);flex-shrink:0}.letter-icon:not(:has(sub)){border:2px solid var(--purple);border-radius:50%}.letter-icon sub{font-size:10px;align-self:flex-end;margin-bottom:2px}.muted{color:var(--muted);line-height:1.5}
.topbar{height:77px;display:flex;align-items:center;gap:15px;padding-right:13px;position:fixed;inset:0 0 auto 0;background:linear-gradient(110deg,#050507,#020203);border-bottom:1px solid #25202f;z-index:30}.brand{display:flex;gap:12px;align-items:center;width:226px;flex-shrink:0;padding-left:16px;color:var(--text)}.brand>.icon{width:52px;height:52px;stroke-width:2.5;color:#9c2df6}.brand b{font-family:Roboto,Arial,sans-serif;font-size:30px;line-height:1;letter-spacing:-.5px}.brand b span{color:#9d32ef}.brand small{display:block;font:9px Roboto,Arial,sans-serif;letter-spacing:1px;color:#b099df;margin-top:6px;white-space:nowrap}.tank-picker{display:flex;align-items:center;height:59px;width:402px;border:1px solid #5a3788;border-radius:8px;background:linear-gradient(100deg,#090b16,#10091d);padding:7px 13px;box-shadow:inset 0 0 9px #6f29b915;flex-shrink:1;min-width:180px}.tank-thumb{height:43px;width:84px;flex-shrink:0;border:1px solid #392b57;background-image:url('assets/reef-reference.jpg');background-size:158% 393%;background-position:40% 21%;margin-right:16px}.tank-picker select{font-size:18px;font-weight:700;background:transparent;border:0;width:100%;appearance:none;padding:8px 0}.tank-picker>.icon{width:18px;color:#cbb5ef;pointer-events:none}.tank-picker option{background:#0b0813}.clock{margin-left:auto;display:flex;align-items:flex-start;gap:15px;line-height:1.5;font-size:16px;white-space:nowrap}.clock .icon{width:20px;margin-top:3px;color:#d1bbf7}.top-actions{display:flex;align-items:center;margin-left:16px;height:48px}.top-actions>button,.top-actions>a{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:5px;padding:0 20px;min-width:90px;border:0;border-left:1px solid #24202d;background:none;font-size:14px;color:#eee8fd;height:48px}.top-actions>button .icon,.top-actions>a .icon{height:24px;width:24px}.top-actions .profile-button{min-width:73px;padding-left:25px;padding-right:0}.profile-button .icon{height:49px!important;width:49px!important;border:1px solid #8954d9;border-radius:50%;padding:9px;background:#0d091a}
.sidebar{position:fixed;top:77px;left:0;bottom:0;width:226px;display:flex;flex-direction:column;padding:18px 10px 10px 4px;border-right:1px solid #241b31;background:linear-gradient(90deg,#050507,#020203);z-index:20;overflow-y:auto}nav{display:flex;flex-direction:column;gap:7px}nav a,.settings-link{display:flex;align-items:center;gap:20px;height:48px;padding:10px 15px;color:#d8cbea;border-radius:7px;font-size:17px;position:relative;flex-shrink:0}nav a>.icon,.settings-link>.icon{width:29px;height:29px}nav a.active,.settings-link.active{background:linear-gradient(100deg,#6100bd,#170d2c);color:white;box-shadow:inset 0 0 18px #672c9a33}nav a.active:before,.settings-link.active:before{content:'';position:absolute;left:0;top:0;bottom:0;width:6px;background:#a536ff;border-radius:5px 0 0 5px}nav a.active .icon{color:#f2dfff}nav a:hover,.settings-link:hover{background-color:#1a102a}.settings-link{margin-top:auto}.workspace{margin:77px 0 0 226px;padding:10px 7px 10px 10px;min-height:calc(100vh - 77px)}.panel{border:1px solid var(--line);border-radius:10px;background:linear-gradient(115deg,#0b0a13,#08080f);box-shadow:inset 0 0 14px #34204812;padding:20px;margin-bottom:12px}
.hero-grid{display:grid;grid-template-columns:minmax(0,3.12fr) minmax(310px,1fr);gap:12px;margin-bottom:10px}.tank-hero{height:300px;border:1px solid #4f3191;border-radius:10px;position:relative;overflow:hidden;background:#0c0922;box-shadow:0 0 5px #7c35d522}.reference-photo{position:absolute;inset:0;background-image:url('assets/reef-reference.jpg');background-size:158% 393%;background-position:40% 21%;background-repeat:no-repeat}.hero-shade{position:absolute;inset:0;background:linear-gradient(180deg,#03020a9c,transparent 25%,transparent 85%,#03020a35);pointer-events:none}.tank-caption{position:absolute;left:16px;top:12px;border-left:5px solid #00f578;padding-left:10px;display:flex;flex-direction:column;gap:5px;filter:drop-shadow(0 2px 2px black);font-size:16px}.tank-caption b{font-size:18px;font-weight:600}.tank-caption i{display:inline-block;width:11px;height:11px;border-radius:50%;background:#00f587;margin-right:4px}.tank-caption>span{display:flex;align-items:center}.camera-controls{position:absolute;top:9px;right:16px;display:flex;gap:5px}.camera-controls button{display:flex;align-items:center;justify-content:center;gap:9px;height:40px;background:#05040cdd;border:1px solid #45306c;padding:0 12px;border-radius:6px;font-size:14px;color:#e3d3f9}.camera-controls .icon{width:20px;height:20px}.camera-controls button.selected{background:linear-gradient(110deg,#4d0d98e8,#240c46dc);border-color:#9848e3}.camera-controls button:last-child{width:48px;margin-left:5px}.photo-settings{position:absolute;bottom:8px;right:10px;background:#080413a8;border:1px solid #7d4ac644;padding:3px 8px;border-radius:4px;font-size:11px;color:#e7d9ff;opacity:0}.tank-hero:hover .photo-settings,.photo-settings:focus-visible{opacity:1}.tank-status{height:300px;padding:12px 14px 13px;margin:0}.tank-status h2{padding-bottom:11px;border-bottom:1px solid #241d34;font-size:18px}.tank-status h2 .icon{width:22px;height:22px;fill:#a375db;stroke:none}.status-center{display:flex;align-items:center;gap:20px;padding:10px 0 14px;height:156px}.donut{width:130px;height:130px;flex-shrink:0;border-radius:50%;background:conic-gradient(#00e97d calc(var(--percent)*1%),#174c3b 0);padding:11px}.donut>div{height:100%;border-radius:50%;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#09090e}.donut b{font-size:34px;line-height:1.1;font-weight:700}.donut span{font-size:14px;color:#cdbfe4;margin-top:5px}.status-center ul{list-style:none;padding:0;margin:0;width:100%;font-size:15px}.status-center li{display:flex;align-items:center;gap:10px;margin:8px 0;white-space:nowrap}.status-center li i{height:14px;width:14px;border-radius:50%;flex-shrink:0}.green{background:#00ed80}.amber{background:#ffaf3d}.red{background:#ff4165}.gray{background:#8072b6}.status-center li b{margin-left:auto;color:#ba8bf2;font-weight:500;padding-right:4px}.status-bottom{border-top:1px solid #241d34;display:grid;grid-template-columns:1fr 1.1fr;padding-top:13px;gap:12px}.status-bottom>div{display:flex;align-items:flex-start;gap:9px}.status-bottom>div+div{border-left:1px solid #241d34;padding-left:12px}.status-bottom .icon{height:23px;width:23px;margin-top:3px}.status-bottom p{font-size:14px;margin:0;line-height:1.35;color:#e1d3f5}.status-bottom strong{display:block;font-weight:500;color:#cba8f4;margin-top:4px;font-size:16px}.status-bottom small{font-size:12px;display:block;color:#c7b5df;margin-top:4px}
.parameter-grid{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:10px;margin-bottom:11px}.parameter-card{border:1px solid #41305f;border-radius:10px;min-width:0;height:179px;background:linear-gradient(125deg,#0c0b15,#08080e);padding:8px 15px 5px 17px;position:relative;text-align:left;overflow:hidden;box-shadow:inset 0 0 10px #6038a61a;display:flex;flex-direction:column}.parameter-card:before{content:'';position:absolute;inset:0 auto 0 0;width:5px;background:linear-gradient(#00f080,#007e53);border-radius:8px 0 0 8px}.parameter-card.high:before{background:linear-gradient(#ff8709,#a14013)}.parameter-card.low:before{background:linear-gradient(#ff3e65,#752239)}.parameter-card.untested:before{background:linear-gradient(#8b55d4,#37294c)}.parameter-card:hover{border-color:#ab60f0}.card-title{display:flex;align-items:center;gap:10px;height:26px;flex-shrink:0}.card-title>.icon,.card-title>.letter-icon{height:27px;width:25px;flex-shrink:0}.card-title b{font-size:16px;font-weight:600;color:#f0edf7}.kebab{margin-left:auto;line-height:20px;font-size:24px;color:#dac5f7;position:relative;top:-1px}.reading-value{display:flex;align-items:baseline;justify-content:center;gap:5px;height:48px;flex-shrink:0}.reading-value b{font-size:39px;line-height:1.2;font-weight:700;letter-spacing:-.3px}.reading-value small{font-size:20px;color:#c1addf}.sparkline{display:block;width:100%;height:39px;flex-shrink:0;overflow:visible;filter:drop-shadow(0 0 3px #9c41ff45)}.last-reading{display:block;font-size:14px;color:#d2c5e7;white-space:nowrap;margin-top:3px;line-height:1.1}.range-track{display:block;background:#49416b;height:6px;border-radius:4px;margin-top:7px;overflow:hidden;flex-shrink:0}.range-track i{height:100%;display:block;border-radius:4px;background:linear-gradient(90deg,#42e7cc,#00ed77)}.high .range-track i{background:linear-gradient(90deg,#46e4cb,#f2ac3c)}.low .range-track i{background:linear-gradient(90deg,#ff6381,#bb2f57)}.range-label{display:block;text-align:center;font-size:14px;color:#ded1f1;margin-top:2px;line-height:1.2}.flow-card:before{background:linear-gradient(#ab12fa,#3b115e)}.pump-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:4px 0 0 11px;height:78px}.pump-grid>span+span{border-left:1px solid #31213e;padding-left:16px}.pump-grid small{font-size:14px;white-space:nowrap;color:#cebbe8}.pump-grid strong{font-size:27px;font-weight:600;display:block;white-space:nowrap;color:#e2cefa;line-height:1.15}.pump-grid strong small{font-size:20px;font-weight:400}.pump-grid>span>span{font-size:20px;color:#dec9fa;line-height:1.1}.flow-card .sparkline{height:28px}.flow-card .last-reading{font-size:13px;margin-top:4px}
.chart-panel{height:149px;padding:10px 13px 6px;margin-bottom:0;position:relative}.chart-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;height:33px}.chart-heading h2{gap:8px;min-width:0}.chart-heading .icon{height:25px;width:25px}.chart-heading select{width:200px;background:transparent;border:0;font-size:18px;font-weight:600;padding:0;color:#f2ebff;appearance:none}.chart-heading select option{background:#0e0a17}.chart-actions{display:flex;align-items:center;gap:17px}.periods{display:flex;border:1px solid #39294e;border-radius:6px;overflow:hidden;height:33px}.periods button{background:#08070e;border:0;border-left:1px solid #30243f;color:#ded1ef;padding:0 19px;font-size:14px;white-space:nowrap}.periods button:first-child{border:0}.periods button.selected{background:linear-gradient(110deg,#53209e,#3a0a78);box-shadow:inset 0 0 10px #ac59ec44;color:white}.periods button:last-child{display:none}.outline,.primary{display:inline-flex;align-items:center;justify-content:center;gap:9px;border:1px solid #7245af;border-radius:5px;color:#cda8ff;background:linear-gradient(110deg,#130b21,#0d0917);padding:7px 12px;font-size:14px;text-align:center}.outline .icon{height:19px;width:19px}.primary{color:white;background:linear-gradient(110deg,#6b1db5,#410d7d);padding:10px 18px;border-color:#a251eb}.outline:hover,.primary:hover{border-color:#c68dff}.chart-area{height:91px;position:relative;margin-top:4px}.chart-area canvas{width:100%;height:100%;display:block}.chart-area>p{position:absolute;inset:30px 0 auto 0;text-align:center;color:#bfa5dd;font-size:14px;pointer-events:none;margin:0}.chart-caption{font-size:11px;color:#c1a6e7;margin:0;position:absolute;left:50%;bottom:4px;transform:translateX(-50%);background:#0c0716ed;padding:3px 8px;border-radius:3px;display:none;max-width:90%;white-space:nowrap}.chart-panel:hover .chart-caption,.chart-panel.expanded .chart-caption{display:block}.chart-panel.expanded{height:430px;margin-bottom:12px}.chart-panel.expanded .chart-area{height:355px}.page-heading{display:flex;justify-content:space-between;align-items:center;margin:12px 0 20px;gap:12px}.page-heading h1{margin:0}.page-heading>div{display:flex;gap:10px}.workspace[data-view=trends] .chart-panel{height:340px;margin-bottom:18px}.workspace[data-view=trends] .chart-area{height:270px}
.table-scroll{overflow:auto}table{border-collapse:collapse;width:100%;white-space:nowrap;font-size:14px}th,td{padding:15px;border-bottom:1px solid #30223e;text-align:left}th{font-weight:500;color:#c3a6e5}td small,th small{display:block;color:#aa90c3;margin-top:3px;font-size:12px}td.notes{max-width:300px;min-width:140px;white-space:pre-wrap;overflow-wrap:anywhere}td form{display:inline}.delete{border:0;background:transparent;color:#f1a0bb;font-size:13px;padding-left:12px}.empty{padding:50px;text-align:center;color:#bba3d3}.welcome{margin-top:30px;max-width:700px;padding:40px}.welcome h1{font-size:34px}.error,.notice{border:1px solid #71394e;background:#321522;color:#f3bace;border-radius:7px;padding:13px;line-height:1.5;font-size:15px}.notice{background:#0d2e23;border-color:#225f45;color:#8ff1ba}.log-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:15px}.log-card h2{font-size:22px}.log-card p{margin-top:14px}.log-notes{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6}.timeline-photo{width:100%;height:230px;object-fit:cover;border-radius:5px;margin-bottom:15px}.log-card form{margin-top:20px}.settings-panel{max-width:1000px}.settings-panel>h2{font-size:26px}.target-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:20px 0}fieldset{border:1px solid #4a2f68;border-radius:6px;display:grid;grid-template-columns:1fr 1fr;gap:12px;padding:10px 12px 15px;margin:0;min-width:0}fieldset label{margin-top:5px}legend{font-size:15px;color:#cba4f8;padding:0 6px}.share-panel .outline{margin-left:12px}.report-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:25px;padding:25px 0}.report-grid strong{display:block;color:#d7b2ff;margin-top:8px;font-size:24px}
dialog{background:linear-gradient(125deg,#110c1c,#09070f);color:var(--text);border:1px solid #6d439a;border-radius:11px;width:min(650px,calc(100% - 30px));max-height:90vh;overflow:auto;padding:27px;box-shadow:0 20px 90px #000b}dialog::backdrop{background:#020105b8;backdrop-filter:blur(5px)}dialog p{line-height:1.5}.dialog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px}.dialog-head h2{font-size:23px}.close{border:0;background:none;font-size:30px;line-height:1;color:#b18bd8}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}label{display:block;font-size:15px;color:#d7c3ef;margin-top:17px}label small{color:#a98ac6;margin-left:4px}input,select,textarea{display:block;width:100%;background:#09060f;border:1px solid #4b3267;border-radius:5px;color:#f1e6ff;padding:10px;min-width:0}label input,label select,label textarea{margin-top:7px}textarea{resize:vertical}.wide{width:100%;margin-top:24px}.auth{max-width:480px;margin:70px auto;padding:20px}.auth>.brand{width:auto;margin-bottom:35px;padding:0}.auth>.panel{padding:30px}.auth h1{font-size:27px}.auth:before{content:'';position:fixed;z-index:-1;inset:0;background:radial-gradient(ellipse at 50% 0,#62169a24,transparent 60%)}
@media(min-width:1800px){.tank-hero,.tank-status{height:340px}.status-center{height:185px;justify-content:space-around}.donut{width:150px;height:150px}.parameter-card{height:198px;padding-top:12px}.reading-value{height:54px}.reading-value b{font-size:43px}.sparkline{height:47px}.chart-panel{height:174px}.chart-area{height:115px}.pump-grid{height:88px}.flow-card .sparkline{height:35px}}
@media(max-width:1400px){.topbar{gap:8px}.brand{width:205px;gap:8px;padding-left:12px}.brand b{font-size:27px}.brand>.icon{width:43px;height:43px}.brand small{font-size:8px}.sidebar{width:205px}.workspace{margin-left:205px}.tank-picker{width:330px}.clock{font-size:14px;gap:9px}.top-actions{margin-left:7px}.top-actions>button,.top-actions>a{padding:0 12px;min-width:73px}.top-actions .profile-button{min-width:60px;padding-left:15px}.hero-grid{grid-template-columns:minmax(0,2.6fr) 300px}.status-center{gap:13px}.donut{width:118px;height:118px;padding:10px}.status-center ul{font-size:14px}.status-bottom{gap:7px}.status-bottom strong{font-size:14px}.status-bottom .icon{width:20px}.status-bottom>div+div{padding-left:7px}.parameter-card{padding-left:12px;padding-right:10px;height:172px}.card-title{gap:7px}.card-title b{font-size:14px}.card-title>.icon,.card-title>.letter-icon{width:23px;height:23px}.reading-value b{font-size:35px}.reading-value small{font-size:17px}.last-reading{font-size:12px}.range-label{font-size:13px}.sparkline{height:35px}.pump-grid{padding-left:4px;gap:5px}.pump-grid>span+span{padding-left:8px}.pump-grid strong{font-size:23px}.pump-grid strong small{font-size:16px}.pump-grid>span>span{font-size:17px}.flow-card .last-reading{font-size:12px}.periods button{padding:0 13px}}
@media(max-width:1150px){.clock{display:none}.top-actions{margin-left:auto}.tank-picker{width:320px}.hero-grid{grid-template-columns:minmax(0,1fr) 290px}.camera-controls{right:8px;gap:3px}.camera-controls button{padding:0 8px;font-size:12px;height:34px}.camera-controls button:last-child{width:32px;margin-left:1px}.tank-caption{left:10px;top:58px}.tank-hero,.tank-status{height:280px}.status-center{height:145px}.status-bottom p{font-size:12px}.parameter-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.parameter-card{height:178px}.parameter-card .last-reading{font-size:14px}.card-title b{font-size:16px}.reading-value b{font-size:39px}.chart-heading{height:auto;flex-wrap:wrap}.chart-panel{height:188px}.chart-area{height:102px}.chart-actions{width:100%;justify-content:space-between;margin-top:5px}.periods button:last-child{display:block}.workspace[data-view=trends] .chart-area{height:250px}.log-grid,.target-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:800px){.topbar{position:sticky;height:auto;min-height:70px;flex-wrap:wrap;padding:10px 10px 9px;gap:10px}.brand{width:180px;padding:0}.brand b{font-size:25px}.brand small{font-size:7px}.brand>.icon{width:38px;height:38px}.tank-picker{order:3;width:100%;height:46px}.tank-thumb{height:32px;width:64px;margin-right:12px}.tank-picker select{font-size:16px}.top-actions{height:39px;gap:4px}.top-actions>button,.top-actions>a{height:39px;min-width:36px;padding:0 6px;border:0}.top-actions>button>span,.top-actions>a>span{display:none}.top-actions .profile-button{min-width:36px;padding:0}.profile-button .icon{height:34px!important;width:34px!important;padding:6px}.sidebar{position:sticky;top:0;width:100%;height:auto;padding:5px 8px;border:0;border-bottom:1px solid #322046;display:block;background:#06040b;z-index:25;overflow:auto}.sidebar nav{flex-direction:row;gap:5px;width:max-content}.sidebar nav a{font-size:13px;height:39px;gap:6px;padding:7px 10px}.sidebar nav a .icon{height:19px;width:19px}.sidebar .settings-link{display:inline-flex;font-size:13px;padding:5px 10px;height:30px;margin:0}.sidebar .settings-link .icon{width:18px;height:18px}.workspace{margin:0;padding:9px}.hero-grid{grid-template-columns:1fr}.tank-hero{height:240px}.tank-caption{top:12px}.camera-controls{top:auto;bottom:10px}.tank-status{height:auto;padding:13px}.status-center{height:auto;padding:15px 0;gap:30px;max-width:380px;margin:auto}.status-center ul{font-size:16px}.status-bottom{padding-bottom:3px}.status-bottom p{font-size:14px}.status-bottom strong{font-size:16px}.parameter-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.parameter-card{height:179px}.parameter-card .last-reading{font-size:12px}.card-title b{font-size:15px}.reading-value b{font-size:36px}.reading-value small{font-size:17px}.range-label{font-size:13px}.parameter-card .sparkline{height:38px}.flow-card .sparkline{height:26px}.flow-card .last-reading{font-size:12px}.pump-grid strong{font-size:23px}.pump-grid strong small{font-size:15px}.chart-panel{height:199px;padding:10px}.chart-heading select{width:195px;font-size:17px}.chart-actions{gap:7px}.periods{height:30px}.periods button{padding:0 8px;font-size:12px}.periods button:last-child{display:none}.chart-actions .outline{font-size:12px;padding:6px;gap:4px}.chart-actions .outline .icon{height:15px;width:15px}.chart-area{height:110px}.chart-panel.expanded{height:400px}.chart-panel.expanded .chart-area{height:310px}.workspace[data-view=trends] .chart-panel{height:360px}.workspace[data-view=trends] .chart-area{height:270px}.page-heading{align-items:flex-start}.page-heading h1{font-size:24px}.page-heading>div{flex-wrap:wrap;justify-content:flex-end;gap:6px}.log-grid,.target-grid{grid-template-columns:1fr}.report-grid{grid-template-columns:repeat(2,1fr)}.share-panel .outline{margin:12px 0 0}.photo-settings{opacity:1;right:auto;left:10px;bottom:12px;max-width:120px}.welcome{padding:25px}.empty{padding:35px 20px}.panel{padding:17px}.chart-panel{padding:10px}.tank-status{padding:13px}}
@media(max-width:370px){.brand{width:154px;gap:5px}.brand b{font-size:22px}.brand>.icon{width:31px;height:31px}.brand small{font-size:6px}.top-actions{gap:0}.top-actions>button,.top-actions>a{min-width:30px;padding:0 4px}.card-title b{font-size:13px}.parameter-card{padding-left:10px;padding-right:8px}.last-reading{font-size:11px!important}.reading-value b{font-size:32px}.periods button{padding:0 5px}.tank-caption b{font-size:16px}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}@media print{body{color:#111;background:white}.topbar,.sidebar,.page-heading button,.share-panel>a,.share-panel>button{display:none}.workspace{margin:0;padding:20px}.panel{background:white;border-color:#aaa;box-shadow:none}.muted{color:#555}.report-grid strong{color:#53168b}}

/* Spacious widescreen dashboard. Resolution, rather than physical screen size,
   controls scaling so 32-inch 1440p and 4K displays both stay readable. */
[hidden]{display:none!important}
.workspace{max-width:2160px;padding:20px 24px 30px;margin-left:max(226px,calc((100vw - 2160px + 226px)/2));margin-right:auto}
.hero-grid{grid-template-columns:minmax(0,1.85fr) minmax(350px,1fr);gap:18px;margin-bottom:20px;align-items:stretch}
.tank-hero{height:auto!important;aspect-ratio:16/9;width:100%;border-radius:12px}
.reference-photo:not([data-photo]){background-size:393.35% auto;background-position:45.1% 21.04%}
.tank-status{height:auto!important;min-height:0;display:flex;flex-direction:column;padding:23px;border-radius:12px}
.tank-status h2{font-size:21px;padding-bottom:18px}
.status-center{height:auto!important;flex:1;justify-content:space-evenly;gap:25px;padding:28px 0}
.donut{width:clamp(140px,10.5vw,220px);height:auto;aspect-ratio:1;padding:clamp(11px,1vw,16px)}
.donut b{font-size:clamp(36px,2.4vw,52px)}.donut span{font-size:17px}
.status-center ul{max-width:220px;font-size:18px}.status-center li{margin:15px 0}.status-center li i{width:15px;height:15px}
.status-bottom{padding-top:20px;gap:20px}.status-bottom p{font-size:16px}.status-bottom strong{font-size:18px;margin-top:9px;line-height:1.4}.status-bottom small{font-size:14px;margin-top:8px}
.parameter-grid{display:flex;flex-wrap:wrap;justify-content:center;gap:16px;margin-bottom:20px}
.parameter-card{flex:0 0 calc((100% - 64px)/5);height:clamp(250px,12vw,310px);padding:17px 20px 14px;border-radius:12px;min-width:0}
.card-title{height:30px;gap:10px}.card-title b{font-size:18px}.card-title>.icon,.card-title>.letter-icon{width:28px;height:28px}
.reading-value{height:67px;align-items:center;gap:7px}.reading-value b{font-size:46px}.reading-value small{font-size:21px;align-self:center;margin-top:13px}
.parameter-card .sparkline{height:70px;flex:1;min-height:44px;max-height:100px;margin:3px 0 8px}
.last-reading{font-size:14px;margin:4px 0 0;line-height:1.3}.range-track{height:7px;margin-top:12px}.range-label{font-size:15px;margin-top:6px}
.chart-panel{height:220px;padding:16px 18px 12px;border-radius:12px}.chart-area{height:154px;margin-top:10px}
.chart-panel.expanded{height:460px}.chart-panel.expanded .chart-area{height:390px}
.photo-settings{opacity:1;font-size:13px;padding:7px 11px;bottom:14px;right:14px;background:#10091ce8;border-color:#8958b999}
.timeline-photo{aspect-ratio:16/9;height:auto;width:100%;background-color:#090610;background-repeat:no-repeat;background-size:cover;background-position:center;border:1px solid #392452}
.photo-dialog{width:min(860px,calc(100% - 32px))}.photo-editor{margin-top:18px}.source-tabs{display:flex;gap:6px;background:#08060e;padding:5px;border:1px solid #3d2857;border-radius:8px}
.source-tabs button{flex:1;border:1px solid transparent;border-radius:5px;padding:10px;background:transparent;color:#bda3da;font-weight:500}.source-tabs button.selected{background:linear-gradient(110deg,#54218a,#321055);color:#f7efff;border-color:#8550b4}
.photo-editor input[type=file]{padding:11px;white-space:normal}.photo-editor input[type=file]::file-selector-button{background:#3d195d;color:#eddaff;border:1px solid #8050a1;padding:7px 12px;border-radius:4px;margin-right:12px;cursor:pointer}
.photo-editor [data-upload-fields]>small{display:block;margin-top:8px}.load-photo{margin-top:10px}
.crop-viewport{position:relative;aspect-ratio:16/9;border:1px solid #6e419e;border-radius:8px;overflow:hidden;background:#08070f;margin-top:20px;isolation:isolate}
.crop-viewport canvas{display:block;width:100%;height:100%;touch-action:none;cursor:grab;outline-offset:-3px}.crop-viewport canvas.dragging{cursor:grabbing}
.crop-grid{position:absolute;inset:0;pointer-events:none;background:linear-gradient(90deg,transparent calc(33.333% - .5px),#ffffff26 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#ffffff26 66.666%,transparent calc(66.666% + .5px)),linear-gradient(transparent calc(33.333% - .5px),#ffffff26 33.333%,transparent calc(33.333% + .5px),transparent calc(66.666% - .5px),#ffffff26 66.666%,transparent calc(66.666% + .5px))}
.crop-placeholder{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#d5b9ed;background:radial-gradient(ellipse,#27123877,transparent);font-size:18px;pointer-events:none;margin:0}.crop-placeholder span{font-size:13px;color:#9875b7}
.crop-ratio{position:absolute;right:10px;bottom:10px;border:1px solid #79509d99;background:#10091cd9;padding:4px 8px;border-radius:5px;font-size:12px;pointer-events:none}
.crop-tools{display:flex;align-items:center;gap:25px;margin-top:15px}.crop-tools label{display:flex;align-items:center;gap:15px;flex:1;margin:0;font-size:14px}.crop-tools input{margin:0;padding:0;accent-color:#b465f6;width:100%}.crop-tools button{white-space:nowrap}.crop-status{font-size:14px;margin:12px 0 0}.crop-error{color:#ff9abd}
.tank-hero:fullscreen,.tank-hero.image-expanded{height:100vh!important;width:100vw;aspect-ratio:auto;background:#030305}.tank-hero:fullscreen .reference-photo,.tank-hero.image-expanded .reference-photo{inset:50% auto auto 50%;width:min(100vw,177.7778vh);height:auto;aspect-ratio:16/9;transform:translate(-50%,-50%)}
@media(min-width:2400px){.topbar{height:88px}.sidebar{top:88px;width:246px;padding-top:23px}.brand{width:246px}.topbar .tank-picker{width:440px;height:63px}.topbar .clock{font-size:18px}.sidebar nav a,.settings-link{height:54px;font-size:19px}.workspace{margin-top:88px;min-height:calc(100vh - 88px);margin-left:max(246px,calc((100vw - 2160px + 246px)/2));padding:26px 30px 36px}.parameter-card{height:310px}.reading-value{height:78px}.reading-value b{font-size:51px}.card-title b{font-size:20px}.last-reading{font-size:16px}.range-label{font-size:17px}.tank-caption b{font-size:22px}.tank-caption{top:20px;left:22px;font-size:18px}.camera-controls{top:18px;right:20px}.camera-controls button{height:44px;font-size:16px}.chart-panel{height:245px}.chart-area{height:176px}.chart-heading select{font-size:21px;width:235px}.chart-actions button{font-size:16px}.periods{height:37px}}
@media(max-width:1599px){.workspace{padding:17px 20px 25px}.hero-grid{grid-template-columns:minmax(0,1.6fr) minmax(310px,1fr)}.tank-status{padding:19px}.status-center{gap:16px;padding:22px 0}.status-center ul{font-size:16px}.status-center li{margin:12px 0}.donut{width:145px;padding:12px}.donut b{font-size:37px}.donut span{font-size:15px}.status-bottom{gap:12px;padding-top:16px}.status-bottom p{font-size:14px}.status-bottom strong{font-size:16px}.status-bottom small{font-size:12px}.parameter-card{flex-basis:calc((100% - 32px)/3);height:260px;padding:17px 20px 14px}.reading-value b{font-size:45px}.parameter-card .sparkline{height:65px}.chart-panel{height:230px}.chart-area{height:160px}}
@media(max-width:1200px){.workspace{margin-left:205px;max-width:none;padding:14px}.hero-grid{grid-template-columns:minmax(0,1fr) 285px;gap:12px}.tank-status{padding:14px}.status-center{gap:12px;padding:16px 0}.donut{width:110px;padding:9px}.donut b{font-size:30px}.donut span{font-size:13px}.status-center ul{font-size:14px}.status-center li{gap:8px;margin:10px 0}.status-center li i{width:11px;height:11px}.status-bottom p{font-size:12px}.status-bottom strong{font-size:14px}.status-bottom .icon{width:18px;height:18px}.parameter-card{height:246px;padding:14px 16px 12px}.card-title b{font-size:17px}.reading-value b{font-size:41px}.last-reading{font-size:13px}.chart-panel{height:260px}.chart-area{height:170px}}
@media(max-width:1000px){.hero-grid{grid-template-columns:1fr}.tank-status{display:grid;grid-template-columns:1.15fr 1fr;gap:10px 24px;padding:18px}.tank-status h2{grid-column:1/-1;padding-bottom:12px}.status-center{padding:10px 0;justify-content:flex-start}.status-center ul{max-width:180px}.status-bottom{padding-top:10px;align-self:center;border:0;gap:10px}.status-bottom>div+div{padding-left:10px}.donut{width:120px}.tank-caption{top:14px;left:16px}.camera-controls{top:12px;bottom:auto;right:12px}}
@media(max-width:800px){.workspace{margin:0;padding:12px;max-width:none;min-height:auto}.hero-grid{gap:12px;margin-bottom:14px}.tank-status{display:flex;padding:17px;gap:0}.tank-status h2{font-size:19px}.status-center{padding:18px 0;justify-content:center;gap:28px}.donut{width:135px}.donut b{font-size:36px}.status-center ul{font-size:16px}.status-bottom{width:100%;border-top:1px solid #241d34;padding-top:16px;gap:17px}.status-bottom p{font-size:14px}.status-bottom strong{font-size:16px}.parameter-grid{gap:12px;margin-bottom:14px}.parameter-card{flex-basis:calc((100% - 12px)/2);height:245px;padding:13px 14px 12px}.card-title b{font-size:16px}.card-title>.icon,.card-title>.letter-icon{width:25px;height:25px}.reading-value{height:60px}.reading-value b{font-size:39px}.reading-value small{font-size:18px}.parameter-card .sparkline{min-height:38px;max-height:65px;margin-bottom:5px}.last-reading{font-size:12px}.range-label{font-size:14px;margin-top:5px}.range-track{margin-top:10px;height:6px}.camera-controls{top:10px;right:10px;bottom:auto;gap:4px}.camera-controls button{font-size:11px;height:31px;padding:0 6px;gap:5px}.camera-controls .icon{width:17px;height:17px}.camera-controls button:last-child{width:30px}.tank-caption{top:12px;left:12px;padding-left:7px}.tank-caption b{font-size:15px}.tank-caption>span{font-size:12px}.photo-settings{left:auto;right:10px;bottom:10px;max-width:none;font-size:12px;padding:5px 8px}.chart-panel{height:230px;padding:12px}.chart-area{height:140px}.crop-tools{gap:12px}.photo-dialog{padding:20px}.crop-placeholder{font-size:15px}.log-grid .timeline-photo{aspect-ratio:16/9;height:auto}}
@media(max-width:400px){.parameter-card{padding:12px 10px;height:231px}.card-title{gap:6px}.card-title b{font-size:14px}.card-title>.icon,.card-title>.letter-icon{width:22px;height:22px}.reading-value b{font-size:34px}.reading-value small{font-size:16px}.last-reading{font-size:11px}.range-label{font-size:13px}.tank-caption{top:50px}.camera-controls{top:8px}.crop-tools label{gap:8px}.crop-tools .outline{font-size:12px;padding:7px}.photo-dialog{padding:17px}}
@media print{.workspace{margin:0;max-width:none;padding:20px}.parameter-card{break-inside:avoid}}
@media(min-width:2200px){
 .workspace[data-view=overview]{display:grid;grid-template-columns:minmax(0,1.04fr) minmax(0,1fr);gap:20px;align-content:start;align-items:stretch}
 .workspace[data-view=overview]>.notice,.workspace[data-view=overview]>.error,.workspace[data-view=overview]>.welcome{grid-column:1/-1;margin:0}
 .workspace[data-view=overview]>.hero-grid{grid-column:1;display:flex;flex-direction:column;gap:20px;margin:0}
 .workspace[data-view=overview] .tank-hero{flex-shrink:0}
 .workspace[data-view=overview] .tank-status{flex:1;display:grid;grid-template-columns:1.07fr 1fr;gap:8px 22px;padding:20px}
 .workspace[data-view=overview] .tank-status h2{grid-column:1/-1;padding-bottom:12px;font-size:21px}
 .workspace[data-view=overview] .status-center{padding:12px 0;gap:20px;justify-content:flex-start}
 .workspace[data-view=overview] .donut{width:150px;padding:12px}.workspace[data-view=overview] .donut b{font-size:39px}.workspace[data-view=overview] .donut span{font-size:15px}
 .workspace[data-view=overview] .status-center ul{font-size:17px;max-width:180px}.workspace[data-view=overview] .status-center li{margin:12px 0}
 .workspace[data-view=overview] .status-bottom{border-top:0;border-left:1px solid #30203f;align-self:center;padding:10px 0 10px 20px;gap:16px}.workspace[data-view=overview] .status-bottom strong{font-size:17px}
 .workspace[data-view=overview]>.parameter-grid{grid-column:2;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:16px;margin:0}
 .workspace[data-view=overview] .parameter-card{height:auto;min-height:245px;padding:18px 20px 15px}
 .workspace[data-view=overview] .reading-value{height:70px}.workspace[data-view=overview] .reading-value b{font-size:47px}.workspace[data-view=overview] .card-title b{font-size:19px}
 .workspace[data-view=overview]>.chart-panel{grid-column:1/-1;margin:0;height:225px}.workspace[data-view=overview]>.chart-panel .chart-area{height:155px}
 .workspace[data-view=overview]>.chart-panel.expanded{height:460px}.workspace[data-view=overview]>.chart-panel.expanded .chart-area{height:385px}
}
.parameter-section{min-width:0}.parameter-toolbar{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.parameter-toolbar h2{font-size:21px}.parameter-toolbar>div{display:flex;gap:8px;flex-wrap:wrap}.parameter-toolbar .outline{font-size:14px;padding:8px 11px}.parameter-toolbar .icon{width:17px;height:17px}#parameter-target-ranges{scroll-margin-top:115px}
html:has(dialog[open]){overflow:hidden}
@media(min-width:2200px){.workspace[data-view=overview]>.parameter-section{grid-column:2;display:flex;flex-direction:column;min-height:0}.workspace[data-view=overview] .parameter-section>.parameter-grid{flex:1;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));grid-template-rows:repeat(3,minmax(0,1fr));gap:16px;margin:0}.workspace[data-view=overview] .parameter-toolbar{margin-bottom:16px}.workspace[data-view=overview] .parameter-toolbar h2{font-size:23px}}
@media(max-width:800px){.parameter-toolbar{align-items:flex-start;gap:8px}.parameter-toolbar h2{font-size:18px;margin-top:6px}.parameter-toolbar>div{justify-content:flex-end;gap:6px}.parameter-toolbar .outline{font-size:12px;padding:7px 8px;gap:5px}.parameter-toolbar .icon{width:15px;height:15px}#parameter-target-ranges{scroll-margin-top:105px}}

.manage-tank-button{display:flex;align-items:center;justify-content:center;flex-shrink:0;background:#211035;border:1px solid #573575;border-radius:5px;width:33px;height:33px;margin-left:10px;padding:5px}.manage-tank-button>.icon{width:20px;height:20px;color:#ceb0ef}
.image-fullscreen{position:absolute;right:15px;top:12px;width:40px;height:40px;display:grid;place-items:center;border:1px solid #5f3989;background:#0b0715da;border-radius:6px}.image-fullscreen>.icon{width:22px;height:22px}
.danger-zone{border-top:1px solid #69404d;margin-top:28px;padding-top:5px}.danger-zone h3{color:#f3a5bd}.danger-zone p{color:#d5b6c3;line-height:1.6}.danger-button{background:#652237;border:1px solid #d66a89;color:#ffe4ed;border-radius:6px;padding:11px 17px;font-weight:600}.danger-button:hover{background:#812b45}
.card-order-hint{font-size:13px;color:#b394d1;margin:-3px 0 14px;min-height:18px;line-height:1.4}.parameter-card{cursor:default}.card-open{display:flex;flex-direction:column;align-items:stretch;flex:1;min-height:0;width:100%;padding:0;border:0;background:none;text-align:left;color:inherit;cursor:pointer;border-radius:6px}.card-open:focus-visible{outline-offset:4px}.card-title b{min-width:0}.card-move{margin-left:auto;padding:1px 4px;border:0;border-radius:5px;background:transparent;color:#b995e5;font:26px/1 system-ui,sans-serif;touch-action:none;cursor:grab;flex-shrink:0}.card-move:hover{color:#edd7ff;background:#342045}.card-move:active{cursor:grabbing}.card-move:disabled{opacity:.4;cursor:wait}.parameter-card.is-dragging{opacity:.35;border:2px dashed #ad71e2}.reordering{user-select:none}.drag-ghost{position:fixed!important;z-index:1000;pointer-events:none;opacity:.92;transform:rotate(2deg) scale(.78);transform-origin:top left;box-shadow:0 20px 65px #000b;border-color:#c088fc!important;margin:0!important;min-height:0!important}
.spark-point{cursor:help;outline:none}.spark-point:hover>circle:last-child,.spark-point:focus>circle:last-child{fill:#fff;stroke:#c980ff;stroke-width:2;filter:drop-shadow(0 0 3px #a43bff)}
#spark-tooltip{position:fixed;z-index:1200;max-width:min(410px,calc(100vw - 16px));pointer-events:none;background:#1b102bed;border:1px solid #a374cf;border-radius:7px;box-shadow:0 6px 25px #0009;color:#f0ddff;padding:9px 12px;font-size:14px;line-height:1.5}
.graph-dialog{width:min(96vw,1900px);max-width:96vw;height:90vh;max-height:94vh;padding:24px;border-color:#8152b1}.graph-dialog[open]{display:flex;flex-direction:column;gap:16px}.graph-dialog>.dialog-head{flex-shrink:0;margin:0;padding-bottom:12px;border-bottom:1px solid #43265e}.graph-dialog .dialog-head h2{font-size:26px}.graph-dialog .close{font-size:37px;padding:0 7px}.graph-dialog .chart-panel{display:flex;flex-direction:column;flex:1;min-height:0;height:auto!important;margin:0;padding:18px 18px 12px}.graph-dialog .chart-heading{height:auto;min-height:38px;flex-shrink:0}.graph-dialog .chart-area{flex:1;min-height:180px;height:auto!important;margin:20px 0 14px}.graph-dialog .chart-caption{display:block;position:static;transform:none;white-space:normal;min-height:29px;max-width:none;text-align:center;background:#110b1b;padding:6px 10px;flex-shrink:0;font-size:14px}.graph-dialog .periods button:last-child{display:block}.graph-dialog .chart-heading select{width:240px}.graph-dialog .chart-empty{font-size:16px}.graph-dialog .chart-area>p{top:40%}
@media(min-width:2200px){.workspace[data-view=overview] .parameter-section>.parameter-grid{grid-template-rows:repeat(4,minmax(0,1fr))}.workspace[data-view=overview] .parameter-section>.parameter-grid>.parameter-card:nth-child(10){grid-column:2}.workspace[data-view=overview] .parameter-card{min-height:235px}.workspace[data-view=overview] .reading-value{height:60px}.workspace[data-view=overview] .tank-status{align-content:center}.workspace[data-view=overview] .status-center{padding:35px 0}.workspace[data-view=overview] .donut{width:180px}.workspace[data-view=overview] .card-order-hint{margin-bottom:16px}}
@media(max-width:800px){.manage-tank-button{width:31px;height:31px}.image-fullscreen{width:33px;height:33px;right:10px;top:10px}.card-order-hint{font-size:12px;margin-top:0}.card-move{font-size:25px;padding:2px}.graph-dialog{padding:15px;width:96vw;height:92vh;gap:10px}.graph-dialog .dialog-head h2{font-size:22px}.graph-dialog .chart-panel{padding:10px}.graph-dialog .chart-heading select{font-size:17px;width:205px}.graph-dialog .chart-actions{margin-top:12px}.graph-dialog .periods{width:100%}.graph-dialog .periods button{flex:1;padding:0 7px;font-size:13px}.graph-dialog .chart-caption{font-size:12px}.graph-dialog .chart-area{margin-top:16px}.card-title{gap:7px}#spark-tooltip{font-size:12px;padding:7px 10px}}
