.glucose-tool h2,.glucose-tool h3{text-wrap:balance}.glucose-tool p,.glucose-tool li{text-wrap:pretty}.glucose-tool .sheet-input{border:0;border-bottom:1px solid hsl(var(--muted-foreground) / .7);width:100%;min-width:0;height:2.75rem;color:hsl(var(--foreground));caret-color:hsl(var(--primary));background:0 0;border-radius:0;padding-inline:0;font-size:1rem;transition:background-color .15s ease-out;display:block}.glucose-tool .sheet-input:hover{background:hsl(var(--accent) / .4)}.glucose-tool .sheet-input:focus-visible{background:hsl(var(--accent) / .6)}.glucose-tool [data-time],.glucose-tool [data-value]{font-variant-numeric:tabular-nums;font-weight:600}.glucose-tool [data-time]:not([data-filled]){color:hsl(var(--muted-foreground));font-weight:400}.glucose-tool input::placeholder{color:hsl(var(--muted-foreground));opacity:1}.glucose-tool input[type=number]{-moz-appearance:textfield;appearance:textfield}.glucose-tool input[type=number]::-webkit-inner-spin-button,.glucose-tool input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;appearance:none;margin:0}.glucose-tool [data-reveal]{transition:none;opacity:1!important;transform:none!important}.glucose-tool .reading-head,.glucose-tool .reading-row{grid-template-columns:repeat(2,minmax(0,1fr)) 2.75rem;column-gap:.75rem;display:grid}.glucose-tool .reading-head{color:hsl(var(--muted-foreground));padding-bottom:.125rem;font-size:.75rem;font-weight:500}.glucose-tool .reading-head .head-main{color:hsl(var(--foreground));font-weight:600}.glucose-tool .row-label{clip-path:inset(50%);white-space:nowrap;width:1px;height:1px;position:absolute;overflow:hidden}.glucose-tool .entry-check{color:hsl(var(--foreground));grid-column:1/-1;padding-block:.25rem;font-size:.8125rem;line-height:1.35}.glucose-tool .entry-check:empty{display:none}.glucose-tool .unit-prompt{border-radius:var(--radius);background:hsl(var(--accent) / .5);color:hsl(var(--foreground));margin-bottom:1.25rem;padding:.75rem;font-size:.875rem;line-height:1.4}.glucose-tool [data-print-value],.glucose-tool .reading-row[data-collapsed],.glucose-tool .field-dose,.glucose-tool .field-notes,.glucose-tool .row-more{display:none}@media screen and (width<=639.98px){.glucose-tool .row-more:not([hidden]){width:2.75rem;height:2.75rem;color:hsl(var(--muted-foreground));justify-content:center;align-items:center;display:flex}.glucose-tool .row-more svg{transition:transform .15s ease-out}.glucose-tool .reading-row[data-expanded] .row-more svg{transform:rotate(180deg)}.glucose-tool .reading-row[data-expanded] .field-dose,.glucose-tool .reading-row[data-expanded] .field-notes{display:block}.glucose-tool .reading-row[data-expanded] .field-dose+.field-dose{grid-column:2/-1}.glucose-tool .reading-row[data-expanded] .field-notes{grid-column:1/-1}.glucose-tool .reading-row[data-expanded] .row-label{clip-path:none;white-space:normal;width:auto;height:auto;position:static;overflow:visible}.glucose-tool .reading-row[data-expanded] label:not(.field-dose,.field-notes) .row-label{clip-path:inset(50%);width:1px;height:1px;position:absolute;overflow:hidden}}@media screen and (width>=1024px){.glucose-tool .worksheet{grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:1.5rem;display:grid}.glucose-tool .tool-columns{display:contents}.glucose-tool .sheet-id,.glucose-tool .readings{grid-column:1;max-width:none}.glucose-tool .chart-column{grid-area:1/2/span 2}.glucose-tool .details{grid-column:1/-1}}@media screen and (width<=1023.98px){.glucose-tool .chart-column{display:contents}.glucose-tool .readings{order:1;margin-top:.25rem}}@media screen and (width<=1023.98px) and (height>=600px){.glucose-tool .chart-pin{z-index:10;border-bottom:1px solid hsl(var(--border));background:hsl(var(--card));margin-inline:-1rem;padding:.5rem 1rem;position:sticky;top:4rem}.glucose-tool .reading-row input{scroll-margin-top:20rem}}@media screen and (width>=640px) and (width<=1023.98px) and (height>=600px){.glucose-tool .chart-pin{margin-inline:-1.5rem;padding-inline:1.5rem}}.glucose-tool .print-button[data-ready]{background:hsl(var(--primary));color:hsl(var(--primary-foreground));border-color:#0000}.glucose-tool .print-button[data-ready]:hover{background:hsl(var(--primary) / .9)}.glucose-tool input[type=date],.glucose-tool input[type=time]{-webkit-appearance:none;appearance:none}.glucose-tool input::-webkit-date-and-time-value{text-align:left}.glucose-tool input[type=time]::-webkit-calendar-picker-indicator{display:none}.glucose-tool input:focus-visible,.glucose-tool button:focus-visible{outline:2px solid hsl(var(--primary));outline-offset:2px}@media (width>=640px){.glucose-tool .reading-head,.glucose-tool .reading-row{grid-template-columns:7.25rem 6.5rem 4.5rem 4.5rem minmax(0,1fr)}.glucose-tool .field-dose,.glucose-tool .field-notes{display:block}}.glucose-chart .chart-grid{stroke:hsl(var(--border));stroke-width:1px}.glucose-chart .chart-label{fill:hsl(var(--muted-foreground));font-variant-numeric:tabular-nums;font-size:12px}.glucose-chart .chart-day{stroke:hsl(var(--muted-foreground));stroke-width:1px;stroke-dasharray:3 3}.glucose-chart .chart-band{fill:hsl(var(--primary) / .14)}.glucose-chart .chart-line{fill:none;stroke:hsl(var(--primary));stroke-width:2.5px;stroke-linejoin:round}.glucose-chart .chart-point{fill:hsl(var(--primary));stroke:hsl(var(--card));stroke-width:2px}.glucose-chart .chart-callout{fill:hsl(var(--foreground));paint-order:stroke;stroke:hsl(var(--card));stroke-width:3px;stroke-linejoin:round;font-size:12px;font-weight:600}@media print{@page{margin:12mm}.glucose-tool,.glucose-tool *{color:#000!important;box-shadow:none!important}.glucose-tool .print-title{margin-bottom:3mm;font-size:14pt;display:block}.glucose-tool .print-footer{margin-top:3mm;font-size:8pt;line-height:1.3;display:block}.glucose-tool .worksheet{--tw-ring-shadow:0 0 #0000;background:0 0;border-radius:0;grid-template-columns:repeat(4,minmax(0,1fr));gap:1.5mm 3mm;padding:0;display:grid}.glucose-tool .sheet-id,.glucose-tool .details,.glucose-tool .details-grid{display:contents}.glucose-tool .target-field{grid-column:span 2}.glucose-tool .notes-field{grid-column:1/-1}.glucose-tool .tool-columns{flex-direction:column;order:1;grid-column:1/-1;gap:2.5mm;margin-top:1mm;display:flex}.glucose-tool .chart-column{order:-1;align-self:stretch;width:100%;position:static}.glucose-tool .glucose-chart{max-height:66mm}.glucose-tool .unit-row{margin-bottom:1mm}.glucose-tool input[type=radio]{accent-color:#000}.glucose-tool form[data-has-readings] .unit-row,.glucose-tool form:not([data-has-readings]) .unit-suffix{display:none}.glucose-tool input:focus,.glucose-tool input:focus-visible{outline:none}.glucose-tool .chart-summary{margin-top:1mm;font-size:9pt}.glucose-tool .chart-summary[data-empty]{display:none}.glucose-tool input[type=text],.glucose-tool input[type=number],.glucose-tool input[type=date],.glucose-tool input[type=time]{background:0 0;border:0;border-bottom:1px solid #777;border-radius:0;height:6mm;padding:0 1mm;font-size:9.5pt}.glucose-tool input[type=text]:has(+[data-print-value]:not(:empty)){display:none}.glucose-tool span[data-print-value]:not(:empty){overflow-wrap:anywhere;border-bottom:1px solid #777;min-height:6mm;padding:1mm;font-size:9.5pt;line-height:1.2;display:block}.glucose-tool input::placeholder{color:#0000}.glucose-tool input::-webkit-calendar-picker-indicator,.glucose-tool input::-webkit-inner-spin-button{display:none}.glucose-tool input[data-track-empty]:not([data-filled])::-webkit-datetime-edit{visibility:hidden}.glucose-tool label,.glucose-tool legend,.glucose-tool span{font-size:8pt;line-height:1.2}.glucose-tool fieldset .h-11{height:6mm}.glucose-tool .reading-head,.glucose-tool .reading-row,.glucose-tool .reading-row[data-collapsed]{grid-template-columns:22mm 24mm 22mm 22mm minmax(0,1fr);gap:0 2mm;padding-block:0;display:grid}.glucose-tool .reading-head{padding-bottom:1mm;font-size:8pt;font-weight:600}.glucose-tool .field-dose,.glucose-tool .field-notes{display:block}.glucose-chart .chart-line,.glucose-chart .chart-point{stroke:#000}.glucose-chart .chart-point{fill:#000}.glucose-chart .chart-grid{stroke:#bbb}.glucose-chart .chart-day{stroke:#555}.glucose-chart .chart-label,.glucose-chart .chart-callout{fill:#000}.glucose-chart .chart-callout{stroke:#fff}.glucose-chart .chart-band{fill:#e4e4e4;-webkit-print-color-adjust:exact;print-color-adjust:exact}}
