.app-header{color:#fff;background:#0d2b45;position:relative;box-shadow:0 2px 8px #0d2b451f}.app-header__inner{justify-content:space-between;align-items:center;gap:2rem;width:min(1400px,100% - 2rem);min-height:80px;margin:0 auto;display:flex}.app-header__brand{color:inherit;align-items:center;gap:.75rem;text-decoration:none;display:flex}.app-header__logo{flex:none;width:64px;height:auto;display:block}.app-header__name{letter-spacing:-.04em;font-size:1.75rem;font-weight:700}.app-header__name span{color:#2eccb5}.app-header__actions{align-items:center;display:flex}.app-header__button{margin-left:var(--spacing-s);color:#fff;background:#ffffff14;border:1px solid #ffffff40;border-radius:.5rem;align-items:center;gap:.5rem;padding:.6rem 1rem;font-size:.9rem;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s;display:inline-flex}.app-header__button span{font-size:1.1rem;line-height:1}.app-header__button:hover{background:#ffffff29;border-color:#fff6}.app-header__menu-button{display:none}@media (width<=600px){.app-header__inner{min-height:64px}.app-header__logo{width:48px}.app-header__name{font-size:1.4rem}.app-header__menu-button{cursor:pointer;background:#ffffff14;border:1px solid #ffffff40;border-radius:.5rem;flex-direction:column;justify-content:center;align-items:center;gap:5px;width:44px;height:44px;padding:0;display:flex}.app-header__menu-button span{background:#fff;border-radius:2px;width:20px;height:2px;transition:transform .15s,opacity .15s;display:block}.app-header__menu-button:hover{background:#ffffff29}.app-header__menu-button:focus-visible{outline-offset:2px;outline:3px solid #2eccb54d}.app-header__menu-button[aria-expanded=true] span:first-child{transform:translateY(7px)rotate(45deg)}.app-header__menu-button[aria-expanded=true] span:nth-child(2){opacity:0}.app-header__menu-button[aria-expanded=true] span:nth-child(3){transform:translateY(-7px)rotate(-45deg)}.app-header__actions{z-index:10;background:#0d2b45;flex-direction:column;padding:.5rem 1rem 1rem;display:none;position:absolute;top:100%;left:0;right:0;box-shadow:0 4px 8px #0d2b4526}.app-header__actions.is-open{display:flex}.app-header__button{justify-content:center;width:100%;margin:.25rem 0;padding:.7rem}}.app-footer{box-sizing:border-box;height:130px;color:var(--color-text-light);background:#f3f7f8;border-top:1px solid #dce7e9;flex:0 0 130px}.app-footer__inner{width:min(1400px, 100% - var(--spacing-s));justify-content:space-between;align-items:center;gap:var(--spacing-s);height:100%;margin:0 auto;display:flex}.app-footer__copyright{flex-direction:column;gap:.25rem;font-size:.8rem;display:flex}.app-footer__copyright strong{color:var(--color-primary);font-size:1rem}.app-footer__copyright a{color:var(--color-text-light);text-underline-offset:2px;text-decoration:underline;transition:color .15s}.app-footer__copyright a:hover{color:var(--color-primary)}.app-footer__copyright a:focus-visible{outline:2px solid var(--color-accent);outline-offset:2px;border-radius:2px}.app-footer__important{background:var(--color-white);border:1px solid #cbdde2;border-radius:.6rem;align-items:flex-start;gap:.75rem;max-width:500px;padding:.9rem 1rem;font-size:.8rem;display:flex}.app-footer__important-icon{background:var(--color-primary);width:26px;height:26px;color:var(--color-white);border-radius:50%;flex:none;justify-content:center;align-items:center;font-weight:700;display:flex}.app-footer__important strong{color:var(--color-primary);margin-bottom:.2rem;display:block}.app-footer__important p{margin:0;line-height:1.45}@media (width<=800px){.app-footer{flex-basis:auto;height:auto}.app-footer__inner{min-height:130px;padding:var(--spacing-s) 0;justify-content:center;gap:var(--spacing-s);flex-direction:column}}.chart-scroll{background:var(--color-white);border:1px solid #dce7e9;border-radius:.75rem;width:100%;margin-top:2rem;overflow-x:auto;box-shadow:0 4px 16px #0d2b450f}.chart-container{width:max-content;min-width:100%;height:500px;padding:1rem;position:relative}#glucose-chart{width:100%!important;height:100%!important}.glucose-form{width:min(100%,620px);padding:var(--spacing-l);gap:var(--spacing-l);background:var(--color-white);border:1px solid #dce7e9;border-radius:.75rem;flex-direction:column;margin:0 auto;display:flex;box-shadow:0 4px 16px #0d2b450f}.glucose-form__field{flex-direction:column;gap:.5rem;display:flex}.glucose-form__field>label,.glucose-form__label{color:var(--color-text-dark);font-size:.9rem;font-weight:600}.glucose-form input[type=text],.glucose-form select,.glucose-form input[type=time]{background:var(--color-white);width:100%;min-height:44px;color:var(--color-text-dark);font:inherit;border:1px solid #cbdde2;border-radius:.5rem;padding:.65rem .75rem;transition:border-color .15s,box-shadow .15s}.glucose-form input[type=text]:focus,.glucose-form select:focus,.glucose-form input[type=time]:focus{border-color:var(--color-accent);outline:none;box-shadow:0 0 0 3px #2eccb526}.glucose-form__submit{background:var(--color-accent);width:100%;min-height:48px;color:var(--color-white);font:inherit;cursor:pointer;border:0;border-radius:.5rem;justify-content:center;align-items:center;padding:.7rem 1.25rem;font-weight:700;transition:background .15s,transform .15s;display:flex}.glucose-form__submit:hover{background:#24b9a3}.glucose-form__submit:active{transform:translateY(1px)}.glucose-form__submit:focus-visible{outline-offset:2px;outline:3px solid #2eccb54d}.glucose-form__error{color:#d9534f;margin:0;font-size:.8rem}.file-dropzone{background:var(--color-background);min-height:190px;color:var(--color-text-dark);text-align:center;cursor:pointer;border:2px dashed #b9d0d6;border-radius:.75rem;flex-direction:column;justify-content:center;align-items:center;padding:2rem;transition:border-color .15s,background .15s,transform .15s;display:flex;position:relative}.file-dropzone input{opacity:0;pointer-events:none;width:1px;height:1px;position:absolute}.file-dropzone:hover,.file-dropzone.is-dragover{border-color:var(--color-accent);background:#2eccb50f}.file-dropzone.is-dragover{transform:scale(1.01)}.file-dropzone.has-file{border-style:solid;border-color:var(--color-accent);background:#2eccb50d}.file-dropzone__icon{background:var(--color-accent);width:48px;height:48px;color:var(--color-white);border-radius:50%;justify-content:center;align-items:center;margin-bottom:.75rem;font-size:1.5rem;font-weight:700;display:flex}.file-dropzone__title{font-size:1rem;font-weight:700}.file-dropzone__description{color:var(--color-text-light);margin-top:.3rem;font-size:.8rem}.file-dropzone__file{color:var(--color-primary);margin-top:.75rem;font-size:.85rem;font-weight:600;display:none}.file-dropzone.has-file .file-dropzone__file{display:block}.file-dropzone.has-error{background:#fff5f5;border-color:#d9534f}.injections{flex-direction:column;gap:.5rem;display:flex}.injection-row{align-items:center;gap:.5rem;display:flex}.injection-row input{flex:1}.remove-injection{background:var(--color-white);width:44px;height:44px;color:var(--color-text-dark);cursor:pointer;border:1px solid #cbdde2;border-radius:.5rem;flex:0 0 44px;justify-content:center;align-items:center;font-size:1.25rem;line-height:1;transition:background .15s,border-color .15s,color .15s;display:flex}.remove-injection:hover:not(:disabled){color:#d9534f;background:#fff5f5;border-color:#d9534f}.remove-injection:disabled{opacity:.4;cursor:not-allowed}.add-injection{color:var(--color-primary);font:inherit;cursor:pointer;background:0 0;border:0;align-self:flex-start;align-items:center;gap:.4rem;margin-top:.25rem;padding:0;font-size:.85rem;font-weight:600;transition:color .15s,opacity .15s;display:inline-flex}.add-injection:hover:not(:disabled){color:var(--color-accent);text-decoration:underline}.add-injection:disabled{opacity:.4;cursor:not-allowed}.add-injection span{font-size:1.2rem;line-height:1}@media (width<=600px){.glucose-form{padding:var(--spacing-s);gap:var(--spacing-s)}.file-dropzone{min-height:160px;padding:1.5rem}}.beta-notice{width:min(100%,620px);margin:0 auto var(--spacing-s);color:var(--color-text-dark);background:#fff8df;border:1px solid #e5c66b;border-radius:.75rem;padding:1rem 1.25rem;font-size:.9rem;line-height:1.5}.beta-notice strong{color:#765b00;margin-bottom:.4rem;font-size:.95rem;display:block}.beta-notice p{margin:0}.beta-notice p+p{margin-top:.6rem}.beta-notice a{color:#765b00;font-weight:600}.beta-notice a:hover{text-decoration:underline}.results h2{color:var(--color-primary);margin:0 0 2rem;font-size:1.75rem;line-height:1.2}.results h3{color:var(--color-primary);margin:2rem 0 .75rem;font-size:1.1rem;font-weight:700}.stats{gap:var(--spacing-s);grid-template-columns:repeat(4,1fr);margin-top:1rem;display:grid}.stats div{background:var(--color-white);text-align:center;border:1px solid #dce7e9;border-radius:.75rem;flex-direction:column;justify-content:center;align-items:center;gap:.4rem;min-height:100px;padding:1.25rem;display:flex;box-shadow:0 4px 16px #0d2b450f}.stats strong{color:var(--color-primary);font-size:1.4rem;font-weight:700;line-height:1.2;display:block}.stats span{color:var(--color-text-light);font-size:.8rem;line-height:1.3;display:block}.cycles-table-container{border:1px solid #dce7e9;border-radius:.75rem;width:100%;margin-top:1.5rem;overflow-x:auto;box-shadow:0 4px 16px #0d2b450f}.cycles-table{border-collapse:collapse;background:var(--color-white);width:100%;font-size:.9rem}.cycles-table thead{background:#f8fbfc}.cycles-table thead th{color:var(--color-primary);text-align:left;white-space:nowrap;border-bottom:1px solid #dce7e9;padding:.85rem 1rem;font-size:.8rem;font-weight:700}.cycles-table tbody tr{border-bottom:1px solid #edf2f3;transition:background .15s}.cycles-table tbody tr:nth-child(2n){background:#fbfcfc}.cycles-table tbody tr:hover{background:#2eccb50d}.cycles-table tbody tr:last-child{border-bottom:none}.cycles-table tbody td{color:var(--color-text-dark);white-space:nowrap;vertical-align:middle;padding:.8rem 1rem}.cycles-table td:nth-child(4){color:var(--color-primary);font-weight:700}.cycles-table td[colspan]{color:var(--color-text-light);text-align:center;padding:1.5rem;font-style:italic}@media (width<=900px){.stats{grid-template-columns:repeat(2,1fr)}}@media (width<=600px){.stats{grid-template-columns:1fr}.stats div{min-height:80px;padding:1rem}.stats strong{font-size:1.25rem}}.legal-title{width:min(100%,900px);margin:0 auto var(--spacing-l);color:var(--color-primary);letter-spacing:-.03em;font-size:1.75rem;font-weight:700}.legal-section{width:min(100%,900px);color:var(--color-text-dark);margin:0 auto;font-size:.9rem;line-height:1.6}.legal-section__title{color:var(--color-primary);margin:0 0 1rem;font-size:1.15rem;font-weight:700}.legal-section p{margin:0 0 .9rem}.legal-section strong{color:var(--color-primary);font-weight:700}.legal-section ul{margin:.75rem 0 1rem;padding-left:1.4rem}.legal-section li{margin-bottom:.4rem}.legal-section a{color:var(--color-primary)}.legal-section__back-button{background:var(--color-white);color:var(--color-primary);border:1px solid #cbdde2;border-radius:.5rem;align-items:center;margin-top:.5rem;padding:.6rem 1rem;font-size:.9rem;font-weight:600;text-decoration:none;transition:background .15s,border-color .15s,color .15s;display:inline-flex}.legal-section__back-button:hover{border-color:var(--color-accent);color:var(--color-accent);background:#2eccb50f}.legal-section__back-button:focus-visible{outline-offset:2px;outline:3px solid #2eccb54d}.separator{width:min(100%,900px);height:1px;margin:var(--spacing-l) auto;background:#dce7e9}@media (width<=600px){.legal-title{margin-bottom:var(--spacing-s);font-size:1.4rem}.legal-section{font-size:.85rem}.legal-section__title{font-size:1rem}.separator{margin:var(--spacing-s) auto}}:root{--color-primary:#0d2b45;--color-accent:#2eccb5;--color-chart-blue:#0064ff;--color-chart-green:#00b400;--color-chart-orange:orange;--color-chart-red:red;--color-text-light:#53636c;--color-text-dark:#374151;--color-background:#f5f5f5;--color-white:#fff;--spacing-s:20px;--spacing-l:50px;font-family:system-ui,sans-serif}html,body{box-sizing:border-box;min-height:100%}*,:before,:after{box-sizing:inherit}body{background:var(--color-background);flex-direction:column;min-height:100vh;margin:0;display:flex}main{flex-direction:column;flex:1;align-items:center;width:100%;display:flex}.container{width:min(1400px, 100% - var(--spacing-s));padding:var(--spacing-l) 0;margin:0 auto}.results{width:100%;margin-top:var(--spacing-l)}@media (width<=800px){:root{--spacing-s:10px;--spacing-l:25px}}
