@font-face{font-family:DM;src:url(/art/DMSans-Regular.woff2)}@font-face{font-family:DM;src:url(/art/DMSans-SemiBold.woff2);font-weight:600 900}
*{box-sizing:border-box}body{margin:0;font:16px DM,-apple-system,sans-serif;color:#292340;background:#f7f4fb;display:flex}button,input,select,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:14px;padding:10px 15px;color:inherit;background:#fff9;min-height:42px}button:hover{filter:brightness(.96)}button:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #7354ca;outline-offset:2px}button:disabled{opacity:.56;cursor:default}aside{min-width:205px;width:18vw;max-width:255px;height:100dvh;position:sticky;top:0;padding:28px 15px;background:#edeaf0;border-right:1px solid #dcd8e2}aside strong{font-size:25px;padding:10px}nav button{display:flex;align-items:center;gap:10px;text-align:left;width:100%;background:transparent}nav button[aria-current=page]{background:#dbd4ef;color:#5939a0;font-weight:600}nav small{display:block;margin:25px 12px 8px}main{flex:1;min-width:0;min-height:100dvh}#toolbar{position:sticky;z-index:2;top:0;background:#f6f3f6ee;display:flex;gap:2px;align-items:center;padding:7px 20px;border-bottom:1px solid #dcd8e2}#toolbar button{background:transparent;padding:5px 12px;min-height:32px}#toolbar .end{margin-left:auto}article{min-height:calc(100dvh - 48px);padding:26px clamp(20px,4vw,60px) 48px;background:linear-gradient(#fbf9ffcf,#f5f1f9f2)}body[data-page=Home] article{background:linear-gradient(#ffffff29,#ffffff4a),url('/art/MacWorld.webp') center/cover fixed}article>*{max-width:1160px;margin-left:auto;margin-right:auto}h1,h2,h3,p{margin-top:0}h1{font-size:34px;margin-bottom:4px;letter-spacing:-1px}h2{font-size:22px;margin:20px 0 12px}p,small{color:#534e65}small{font-size:13px}.surface,.ring,.card{border:1px solid #ffffffab;box-shadow:0 3px 14px #30204a0c;background:#fffc;border-radius:22px;padding:18px}.row,.heading{display:flex;gap:12px;align-items:center;flex-wrap:wrap}.heading{justify-content:space-between}.pip img{width:128px;height:128px;object-fit:contain}.primary{background:#7051ba;color:white;font-weight:600}.cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.card{text-align:left;display:flex;align-items:center;gap:10px;height:72px;overflow:hidden;padding:12px 14px}.card.wide,.card.expanded{grid-column:1/-1;height:86px}.card.expanded{height:112px}.card img{width:29px;height:29px}.card span{min-width:0}.card b,.card small{display:block;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.sky{background:#dceffc}.rose{background:#f9dfe6}.lavender{background:#eae2fa}.peach{background:#fbe4d9}.mint{background:#dcefe4}.sunrise{background:#f9e9cd}.blue{background:#dce7fa}.rings{display:grid;grid-template-columns:repeat(auto-fit,minmax(175px,1fr));gap:10px}.ring{text-align:left;display:flex;gap:12px;align-items:center}.circle{width:70px;height:70px;flex-shrink:0;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#8966c8 var(--amount),#dcd3eb 0);position:relative}.circle:before{content:'';width:79%;height:79%;border-radius:50%;background:#fcfaff;position:absolute}.circle b{position:relative;font-size:15px}.list{display:grid;gap:8px}.item{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:11px 0;border-bottom:1px solid #e7e0ed}.item:last-child{border-bottom:none}.item small{display:block}.mobile,#tabs{display:none}dialog{position:fixed;width:min(520px,95vw);max-height:85dvh;border:0;border-radius:24px;padding:20px;color:inherit;background:#faf8ff;box-shadow:0 14px 80px #30204933}dialog header{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px}dialog header h2{margin:0}dialog::backdrop{background:#241e3c55;backdrop-filter:blur(4px)}label{display:grid;gap:6px;margin:12px 0;font-weight:600}label input,label select,textarea{width:100%;min-width:0;background:white;border:1px solid #d7cede;border-radius:12px;padding:11px;font-weight:400}#error:not(:empty){color:#8d2338;margin-top:15px}#notice:not(:empty){position:fixed;z-index:10;bottom:85px;left:50%;transform:translateX(-50%);padding:12px 18px;border-radius:16px;color:white;background:#43344f}.calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:4px;text-align:center}.calendar button{min-height:40px;padding:4px}.marked{background:#e1cef7}.calendar .selected{outline:2px solid #8052ad}.heroMobile{display:none}.orbital{display:grid;gap:8px}.calendar span{font-size:13px;color:#656070}.badge{display:inline-block;background:#fffc;padding:6px 12px;border-radius:99px}.spaced{margin-top:18px}
@media(max-width:759px){body{display:block}aside,.desktop,#toolbar .desktop{display:none}.mobile{display:block}main{width:100%}#toolbar{justify-content:space-between;background:#faf8ffb8;padding:8px 14px}#toolbar .end{margin:0}#tabs{display:flex;position:fixed;z-index:3;bottom:max(8px,env(safe-area-inset-bottom));left:5%;width:90%;background:#ffffffeb;border:1px solid #ece6f4;box-shadow:0 3px 20px #3a2a6022;border-radius:30px;padding:5px;backdrop-filter:blur(18px)}#tabs button{flex:1;justify-content:center;text-align:center;padding:8px 2px;border-radius:24px}article{padding:16px 16px 105px}body[data-page=Home] article{background:linear-gradient(#ffffff1a,#ffffff25),url('/art/DreamWorld.webp') center/cover}h1{font-size:30px}.heroMobile{display:grid;grid-template-columns:1.05fr 1fr;align-items:start;gap:6px}.heroMobile h1{font-size:33px}.heroMobile img{width:min(100%,190px);height:160px;object-fit:contain}.heroMobile .ring{justify-self:center;padding:6px;gap:3px;background:transparent;border:0;box-shadow:none;flex-direction:column;font-size:13px}.heroMobile .circle{width:74px;height:74px}.card{padding:8px}.surface{padding:15px}.heroMobile .row{gap:4px}.heroMobile .pip{text-align:center}.heroMobile .greeting{font-size:21px;margin:12px 0 1px}.heroMobile h1:after{content:'';display:block;width:90px;margin:5px 0 11px;border-bottom:3px solid #edbc59;border-radius:50%}dialog{width:100%;max-width:100%;max-height:90dvh;margin:auto 0 0;border-radius:24px 24px 0 0;padding-bottom:max(22px,env(safe-area-inset-bottom))}.heading{align-items:start}.calendar button{min-width:0}.item{flex-wrap:wrap}}
@media(max-width:320px){.cards{grid-template-columns:1fr}}@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto}}
#toolbar .desktop button{display:inline-flex;width:auto;gap:6px}#toolbar .desktop{display:flex;gap:4px}@media(max-width:759px){#toolbar .desktop{display:none}}
.quickInfo{display:grid;grid-template-columns:repeat(auto-fit,minmax(155px,1fr));gap:12px}.info{display:grid;text-align:left;height:116px}.info b{font-size:23px}.check{display:flex;align-items:center;gap:12px}.check input{width:auto}

#glucoseReport{display:none}
@media print{
  @page{size:A4;margin:14mm}
  body:has(#glucoseReport)>:not(#glucoseReport){display:none!important}
  body:has(#glucoseReport){display:block;color:#000;background:white;font:11pt system-ui,sans-serif}
  #glucoseReport{display:block}
  #glucoseReport .report-page{break-inside:avoid;break-after:page}
  #glucoseReport .report-page:last-child{break-after:auto}
  #glucoseReport h1{font-size:22pt;margin:0 0 7mm}
  #glucoseReport p{color:inherit;margin:0 0 2mm}
  #glucoseReport table{width:100%;border-collapse:collapse;margin:7mm 0}
  #glucoseReport th,#glucoseReport td{text-align:left;padding:1.35mm 0;border-bottom:.25pt solid #ddd}
  #glucoseReport footer{font-size:9pt}
}
.card{position:relative}
.card .card-progress{position:absolute;bottom:5px;left:14px;right:14px;height:2px;border-radius:2px;background:linear-gradient(to right,#7658b6 var(--value),#fff8 0)}
.journey-summaries,.journey-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,295px),1fr));gap:16px}
.journey-card{display:block;text-align:left}
.journey-chart{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;text-align:center;margin:12px 0}
.chart-area{height:48px;border-bottom:1px solid #e7dfed;display:block;position:relative}
.chart-bar,.chart-point{position:absolute;background:#8763c5}
.chart-bar{bottom:0;left:19%;right:19%;height:var(--height);border-radius:4px 4px 0 0}
.chart-point{bottom:min(calc(100% - 7px),var(--height));left:calc(50% - 3px);width:7px;height:7px;border-radius:50%}
