:root{font-family:Inter,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#173B63;background:#FAF8F2}*{box-sizing:border-box}body{margin:0;min-height:100vh;background:linear-gradient(180deg,#fbfaf5,#f4f8fb)}button,input,textarea{font:inherit}.shell{max-width:560px;margin:auto;min-height:100vh;padding-bottom:90px}.page{padding:28px 20px 40px}h1,h2,h3,p{margin-top:0}.eyebrow{color:#2F6FAE;font-weight:800;margin-bottom:6px}.muted{color:#667085}.brand{text-align:center;margin-bottom:28px}.logo{width:72px;height:72px;margin:0 auto 12px;border-radius:24px;display:grid;place-items:center;background:#e5f0fa;color:#F47A61;font-size:35px}.panel,.measure-card,.history-card,.settings-card{background:#fff;border-radius:24px;box-shadow:0 16px 50px rgba(23,59,99,.07)}.panel{width:min(92vw,460px);margin:46px auto;padding:28px}.field{display:block;margin:14px 0}.field span{display:block;font-weight:700;margin-bottom:7px}.field input,.field textarea{width:100%;border:1px solid #d8e1e8;background:#fff;border-radius:16px;padding:15px 16px;outline:none}.field input:focus,.field textarea:focus{border-color:#2F6FAE;box-shadow:0 0 0 3px rgba(47,111,174,.1)}textarea{min-height:96px;resize:vertical}.primary,.secondary{border:0;border-radius:18px;padding:15px 18px;font-weight:800;display:flex;gap:10px;align-items:center;justify-content:center;cursor:pointer;width:100%}.primary{background:#2F6FAE;color:#fff}.secondary{background:#eef4f8;color:#173B63}.big{font-size:18px;margin:18px 0}.privacy{font-size:13px;color:#667085;text-align:center;margin-top:16px}.error{color:#b42318;font-weight:700}.measure-card{padding:24px}.small-title{font-weight:800;color:#667085}.big-reading{font-size:46px;font-weight:900;letter-spacing:-2px;margin:12px 0}.big-reading small{font-size:15px;letter-spacing:0;color:#667085}.pulse{color:#F47A61;font-weight:800}.reassure{display:inline-block;background:#edf7ed;color:#4e8750;padding:9px 12px;border-radius:14px;margin-top:14px;font-weight:800}.grid2{display:grid;grid-template-columns:1fr 1fr;gap:14px}.tile{border:0;background:#fff;border-radius:22px;padding:18px;text-align:left;color:#173B63;box-shadow:0 12px 32px rgba(23,59,99,.06)}.tile b,.tile span{display:block;margin-top:8px}.tile span{font-size:13px;color:#667085}.numbers{display:grid;gap:14px}.number-box{background:#fff;border-radius:22px;padding:18px;text-align:center}.number-box>b{color:#2F6FAE}.number-row{display:grid;grid-template-columns:48px 1fr 48px;gap:10px;align-items:center;margin:10px 0}.number-row button{height:46px;border:0;border-radius:14px;background:#edf4fa;color:#2F6FAE;font-size:28px}.number-row input{width:100%;border:0;text-align:center;font-size:36px;font-weight:900;color:#173B63;background:transparent}.segmented{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.segmented button{border:0;background:#eaf0f4;color:#667085;padding:12px;border-radius:14px;font-weight:800}.segmented button.active{background:#2F6FAE;color:#fff}.list{display:grid;gap:12px}.history-card{padding:16px;display:flex;justify-content:space-between;gap:14px;align-items:center}.history-meta span,.history-value span{display:block;color:#667085;font-size:13px;margin-top:4px}.history-value{text-align:right;font-size:23px;font-weight:900}.history-value small{font-size:12px;color:#667085}.settings-card{padding:18px;margin-bottom:14px}.settings-card b,.settings-card span{display:block}.settings-card span{color:#667085;margin-top:6px}.bottom-nav{position:fixed;left:50%;bottom:0;transform:translateX(-50%);width:min(560px,100%);display:grid;grid-template-columns:repeat(5,1fr);background:rgba(255,255,255,.96);backdrop-filter:blur(16px);border-top:1px solid #e3e8ee;padding:8px 8px max(8px,env(safe-area-inset-bottom))}.bottom-nav button{border:0;background:transparent;color:#8793a1;padding:8px 4px;border-radius:14px;font-size:11px;display:grid;place-items:center;gap:4px}.bottom-nav button.active{color:#2F6FAE;background:#eef5fb}.nav-icon{font-size:20px}@media(min-width:520px){.numbers{grid-template-columns:repeat(3,1fr)}.number-row{grid-template-columns:38px 1fr 38px}.number-row input{font-size:30px}}
.empty-reading{font-size:30px}.section-title{margin-top:20px}.summary-header{text-align:center}.success-badge{width:58px;height:58px;margin:0 auto 12px;border-radius:50%;display:grid;place-items:center;background:#edf7ed;color:#4e8750;font-size:30px;font-weight:900}.average-card{background:#fff;border-radius:24px;padding:24px;text-align:center;box-shadow:0 16px 50px rgba(23,59,99,.07);margin-bottom:16px}.series-list{display:grid;gap:10px}.series-list article{background:#fff;border-radius:18px;padding:15px 16px;display:grid;grid-template-columns:1fr auto;gap:4px 14px;align-items:center;box-shadow:0 8px 26px rgba(23,59,99,.05)}.series-list article>div{display:flex;flex-direction:column}.series-list article>div span{font-weight:800}.series-list article small,.series-list article>span{color:#667085;font-size:13px}.series-list article>b{font-size:21px;text-align:right}.series-list article>b small{font-size:11px}.series-list article>span{grid-column:2;text-align:right;color:#F47A61;font-weight:800}.series-mini{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:14px}.series-mini>div{background:#fff;border-radius:16px;padding:12px;text-align:center;box-shadow:0 8px 24px rgba(23,59,99,.05)}.series-mini span,.series-mini small{display:block;color:#667085;font-size:11px}.series-mini b{display:block;margin:5px 0;font-size:16px}.secondary.big{margin-top:10px}
.header-row{display:flex;align-items:flex-start;justify-content:space-between;gap:16px}.icon-button{width:46px;height:46px;border:0;border-radius:15px;background:#fff;color:#2F6FAE;font-size:24px;font-weight:800;box-shadow:0 8px 24px rgba(23,59,99,.06)}.period-tabs{display:grid;grid-template-columns:repeat(5,1fr);gap:7px;margin:6px 0 16px}.period-tabs button{border:0;border-radius:13px;padding:11px 6px;background:#eaf0f4;color:#667085;font-size:12px;font-weight:800}.period-tabs button.active{background:#2F6FAE;color:#fff}.chart-card{background:#fff;border-radius:24px;padding:16px 12px 8px;box-shadow:0 16px 50px rgba(23,59,99,.07)}.chart-legend{display:flex;gap:18px;padding:2px 8px 8px;font-size:13px;font-weight:800;color:#667085}.chart-legend span{display:flex;align-items:center;gap:7px}.chart-legend i{width:10px;height:10px;border-radius:50%;display:inline-block}.legend-sys{background:#2F6FAE}.legend-dia{background:#6FA86E}.chart-svg{display:block;width:100%;height:auto;overflow:visible}.grid-line{stroke:#e7edf2;stroke-width:1}.axis-text{fill:#8793a1;font-size:10px}.line-sys,.line-dia{fill:none;stroke-width:3;stroke-linecap:round;stroke-linejoin:round}.line-sys{stroke:#2F6FAE}.line-dia{stroke:#6FA86E}.dot-sys{fill:#fff;stroke:#2F6FAE;stroke-width:3}.dot-dia{fill:#fff;stroke:#6FA86E;stroke-width:3}.chart-empty{min-height:210px;display:grid;place-items:center;color:#667085;text-align:center;padding:20px}.stats-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:9px;margin-top:14px}.stat-card{background:#fff;border-radius:18px;padding:14px 10px;text-align:center;box-shadow:0 8px 26px rgba(23,59,99,.05)}.stat-card span,.stat-card small{display:block;color:#667085;font-size:11px}.stat-card b{display:block;margin:7px 0 2px;font-size:21px;color:#173B63}@media(max-width:390px){.period-tabs button{font-size:11px;padding:10px 3px}.stat-card b{font-size:18px}}

.chart-access{margin:0 0 16px;font-size:16px}.charts-title{margin-bottom:8px}

/* V0.4 - Rapport imprimable / PDF */
.history-actions{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:16px}.history-actions .chart-access{margin:0}.chart-actions{margin-top:14px}.settings-action{margin:12px 0}.report-toolbar{margin-bottom:18px}.report-periods{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0 14px}.report-periods button{border:0;border-radius:14px;padding:11px 7px;background:#eaf0f4;color:#667085;font-size:12px;font-weight:800}.report-periods button.active{background:#2F6FAE;color:#fff}.custom-range{display:grid;grid-template-columns:1fr 1fr;gap:10px;align-items:end}.custom-range .field{margin:0}.custom-range .secondary{grid-column:1/-1}.report-buttons{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-top:14px}.report-paper{background:#fff;color:#173B63;border-radius:22px;box-shadow:0 16px 50px rgba(23,59,99,.08);padding:28px 24px}.report-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;border-bottom:2px solid #e6edf3;padding-bottom:18px;margin-bottom:18px}.report-brand{font-weight:900;color:#2F6FAE;margin-bottom:5px}.report-head h2{font-size:25px;margin-bottom:6px}.report-head p{margin-bottom:0;color:#667085}.report-logo{width:54px;height:54px;border-radius:18px;display:grid;place-items:center;background:#eaf3fb;color:#F47A61;font-size:27px}.report-summary{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin:16px 0 22px}.report-summary>div{border:1px solid #e4eaf0;border-radius:16px;padding:13px;text-align:center}.report-summary span,.report-summary small{display:block;color:#667085;font-size:11px}.report-summary b{display:block;font-size:21px;margin:6px 0 2px}.report-section{margin-top:22px}.report-section h3{font-size:17px;margin-bottom:10px}.report-table{width:100%;border-collapse:collapse;font-size:11px}.report-table th{background:#eef4f8;text-align:left;color:#173B63;padding:8px 7px;border-bottom:1px solid #d9e3eb}.report-table td{padding:8px 7px;border-bottom:1px solid #e7edf2;vertical-align:top}.report-table th:nth-child(3),.report-table th:nth-child(4),.report-table th:nth-child(5),.report-table td:nth-child(3),.report-table td:nth-child(4),.report-table td:nth-child(5){text-align:center}.report-empty{padding:28px;text-align:center;border:1px dashed #d8e1e8;border-radius:14px;color:#667085}.report-foot{border-top:1px solid #e2e8ee;margin-top:24px;padding-top:12px;display:flex;justify-content:space-between;gap:12px;color:#8793a1;font-size:10px}.no-print{display:block}
@media(max-width:420px){.history-actions,.report-buttons{grid-template-columns:1fr}.report-summary{grid-template-columns:1fr 1fr}.report-summary>div:last-child{grid-column:1/-1}.report-paper{padding:20px 14px}.report-table{font-size:9px}.report-table th,.report-table td{padding:7px 4px}.report-foot{display:grid}}
@page{size:A4 portrait;margin:12mm}
@media print{
 html,body{background:#fff!important;color:#111!important}.shell{max-width:none!important;min-height:0!important;padding:0!important}.page{padding:0!important}.bottom-nav,.no-print{display:none!important}.report-paper{display:block!important;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;border-radius:0!important;box-shadow:none!important;color:#111!important}.report-head{border-bottom:2px solid #555}.report-brand,.report-head h2,.report-head p,.report-summary b,.report-section h3{color:#111!important}.report-logo{border:1px solid #777;background:#fff!important;color:#111!important}.report-summary>div{border-color:#999}.report-summary span,.report-summary small,.report-foot{color:#444!important}.chart-card{box-shadow:none!important}.chart-svg{max-height:75mm}.line-sys{stroke:#111!important;stroke-width:3.2}.line-dia{stroke:#555!important;stroke-width:2.8;stroke-dasharray:7 5}.dot-sys{stroke:#111!important}.dot-dia{stroke:#555!important}.legend-sys{background:#111!important}.legend-dia{background:#777!important}.grid-line{stroke:#ccc!important}.axis-text{fill:#333!important}.report-table{font-size:9pt}.report-table thead{display:table-header-group}.report-table th{background:#eee!important;color:#111!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}.report-table tr{break-inside:avoid;page-break-inside:avoid}.report-section{break-inside:auto}.report-head,.report-summary,.chart-legend,.chart-svg{break-inside:avoid;page-break-inside:avoid}.report-foot{font-size:8pt}
}
.preview-label{font-size:12px;font-weight:900;letter-spacing:.08em;text-transform:uppercase;color:#8793a1;margin:18px 0 8px}
