:root{--bg:#faf6ef;--surface:#fff;--text:#1f2430;--text-muted:#4d5563;--border:#ded4c2;--primary:#2f7a5f;--primary-hover:#26654e;--primary-contrast:#fff;--danger:#a4231c;--danger-hover:#7e1a15;--danger-bg:#fbe9e7;--success:#1e6b42;--success-bg:#e6f4ea;--focus-ring:#1d5fae;--sans:system-ui, "Segoe UI", Roboto, sans-serif;font:20px/1.5 var(--sans);--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;color:var(--text);background:var(--bg);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial;--bg:#14181c;--surface:#1f262c;--text:#f1efe9;--text-muted:#b7c0c9;--border:#333c44;--primary:#4fae86;--primary-hover:#3f9772;--primary-contrast:#0c120f;--danger:#ff8079;--danger-hover:#e35a52;--danger-bg:#3a1c1c;--success:#7ad9a4;--success-bg:#163826;--focus-ring:#7cb2ec}}*{box-sizing:border-box}body{min-height:100svh;margin:0}#root{flex-direction:column;min-height:100svh;display:flex}h1,h2{color:var(--text);margin:0 0 16px;font-weight:700}h1{font-size:2rem;line-height:1.2}h2{font-size:1.4rem;line-height:1.25}p{margin:0}button,input,textarea{font-family:inherit}:focus-visible{outline:3px solid var(--focus-ring);outline-offset:2px}@media (width<=480px){:root{font:19px/1.5 var(--sans)}}.screen{flex-direction:column;flex:1;gap:24px;width:100%;max-width:720px;margin:0 auto;padding:24px 20px 48px;display:flex}.screen-centered{text-align:center;justify-content:center;align-items:center;min-height:100svh}.screen-wide{max-width:960px}.screen-header{flex-direction:column;gap:12px;display:flex}.screen-header h1{text-align:center}.screen-header-row{grid-template-columns:1fr auto 1fr;align-items:center;gap:12px;display:grid}.screen-header-row h1{grid-column:2;margin:0}.screen-header-row .btn-back{grid-column:1;justify-self:start}.screen-header-spacer{grid-column:3}.btn-back{width:auto;min-height:auto;padding:10px 20px;font-size:1rem}.app-title{text-align:center;color:var(--primary)}.card{background:var(--surface);border:1px solid var(--border);border-radius:20px;padding:32px 28px;box-shadow:0 6px 20px #0000000f}.login-card{flex-direction:column;gap:20px;width:100%;max-width:420px;display:flex}.field{text-align:left;flex-direction:column;gap:8px;display:flex}.field-label{color:var(--text);font-size:1.05rem;font-weight:600}.field input,.field textarea{border:2px solid var(--border);background:var(--bg);color:var(--text);border-radius:12px;width:100%;padding:14px 16px;font-size:1.25rem}.field input.field-invalid,.field textarea.field-invalid{border-color:var(--danger);background:var(--danger-bg)}.field-error{color:var(--danger);margin:0;font-size:.95rem;font-weight:600}.field input:disabled,.field textarea:disabled{opacity:.6}.field textarea{font-family:inherit}.note-textarea{resize:none}.btn{cursor:pointer;border:2px solid #0000;border-radius:14px;min-height:60px;padding:16px 24px;font-size:1.15rem;font-weight:600}.btn:disabled{opacity:.6;cursor:not-allowed}.btn-large{width:100%;font-size:1.3rem}.btn-primary{background:var(--primary);color:var(--primary-contrast)}.btn-primary:hover:not(:disabled){background:var(--primary-hover)}.btn-secondary{color:var(--text);border-color:var(--border);background:0 0}.btn-secondary:hover:not(:disabled){border-color:var(--text-muted)}.btn-danger{background:var(--danger);color:#fff;border-color:#0000}.btn-danger:hover:not(:disabled),.btn-danger:focus-visible:not(:disabled){background:var(--danger-hover)}.btn-link{color:var(--text-muted);background:0 0;border:none;align-self:center;min-height:auto;padding:12px;font-size:1.1rem;text-decoration:underline}.error-banner{background:var(--danger-bg);color:var(--danger);border-radius:12px;padding:14px 16px;font-size:1.05rem;font-weight:600}.success-banner{background:var(--success-bg);color:var(--success);border-radius:12px;padding:16px 18px;font-size:1.2rem;font-weight:700}.info-text{color:var(--text-muted);text-align:center;font-size:1.05rem}.patient-grid{grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:20px;display:grid}.patient-card{background:var(--surface);border:2px solid var(--border);cursor:pointer;border-radius:24px;flex-direction:column;align-items:center;gap:16px;min-height:260px;padding:28px 16px;display:flex}.patient-card:hover{border-color:var(--primary)}.patient-illustration{width:130px;height:156px}.patient-name{color:var(--text);font-size:1.6rem;font-weight:700}.measurement-form{flex-direction:column;gap:28px;display:flex}.form-section{border:none;flex-direction:column;gap:12px;margin:0;padding:0;display:flex}.form-section legend{justify-content:flex-start;align-items:center;gap:8px;margin-bottom:4px;padding:0;font-size:1.3rem;font-weight:700;display:flex}.form-section-icon{width:26px;height:26px;color:var(--primary);flex-shrink:0}.bp-row{flex-wrap:wrap;align-items:flex-end;gap:12px;display:flex}.field-compact{flex:100px;min-width:100px}.bp-separator{font-size:1.6rem;font-weight:700}.field-unit{color:var(--text-muted);font-size:1.1rem;font-weight:600}.field-with-unit{align-items:center;gap:12px;display:flex}.field-with-unit input{flex:1}.form-actions{flex-direction:column;gap:14px;display:flex}.today-header{grid-template-columns:1fr auto 1fr;grid-template-areas:"back identity new";align-items:center;gap:16px;display:grid}.today-header .btn-back{grid-area:back;justify-self:start}.today-identity{text-align:center;grid-area:identity;min-width:0}.today-identity h1{text-align:center;margin:0}.today-date{color:var(--text-muted);margin:4px 0 0;font-size:1.05rem;font-weight:600}.btn-new-measurement{grid-area:new;justify-self:end}@media (width<=640px){.today-header{grid-template-columns:1fr 1fr;grid-template-areas:"back new""identity identity";row-gap:12px}}.today-history{flex-direction:column;gap:16px;display:flex}.today-list{flex-direction:column;gap:16px;margin:0;padding:0;list-style:none;display:flex}.today-item{border:1px solid var(--border);border-radius:16px;flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:8px 16px;padding:16px 18px;font-size:1.1rem;display:flex}.today-item-details{flex-direction:column;gap:6px;min-width:220px;display:flex}.today-item-time{color:var(--primary);white-space:nowrap;font-weight:700}@media (width>=640px){.form-actions{flex-direction:row}.form-actions .btn{flex:1}}.admin-screen{flex-direction:column;gap:20px;width:100%;max-width:1100px;margin:0 auto;padding:24px 20px 48px;display:flex}.admin-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:16px;display:flex}.admin-header h1{margin-bottom:4px}.admin-username{color:var(--text-muted);font-size:.95rem}.admin-tabs{flex-wrap:wrap;gap:12px;display:flex}.admin-tab{border:2px solid var(--border);background:var(--surface);color:var(--text);cursor:pointer;border-radius:12px;padding:14px 22px;font-size:1.05rem;font-weight:600}.admin-tab-active{border-color:var(--primary);color:var(--primary);background:var(--success-bg)}.admin-content{flex-direction:column;gap:20px;display:flex}.admin-card{flex-direction:column;gap:16px;display:flex}.admin-filter-row{align-items:flex-end;gap:16px;display:flex}.admin-filter-row .admin-field{max-width:240px}.admin-field{text-align:left;flex-direction:column;gap:6px;display:flex}.admin-field-label{color:var(--text);font-size:.9rem;font-weight:600}.admin-field input,.admin-field select{border:2px solid var(--border);background:var(--bg);color:var(--text);border-radius:8px;width:100%;padding:8px 10px;font-size:1rem}.admin-field input:disabled,.admin-field select:disabled{opacity:.6}.admin-form{flex-direction:column;gap:14px;max-width:360px;display:flex}.admin-table-wrap{overflow-x:auto}.admin-table{border-collapse:collapse;width:100%;font-size:.95rem}.admin-table th,.admin-table td{text-align:left;border-bottom:1px solid var(--border);white-space:nowrap;padding:10px 12px}.admin-table th{color:var(--text-muted);font-weight:700}.admin-users{flex-direction:column;gap:20px;display:flex}@media (width<=640px){.admin-table thead{display:none}.admin-table,.admin-table tbody,.admin-table tr,.admin-table td{width:100%;display:block}.admin-table tr{border:1px solid var(--border);border-radius:12px;margin-bottom:12px;padding:8px 12px}.admin-table td{white-space:normal;border-bottom:none;padding:6px 0}.admin-table td:before{content:attr(data-label);color:var(--text-muted);font-size:.8rem;font-weight:700;display:block}}
