*{box-sizing:border-box}body{margin:0;background:#f2f5f3;color:#163b43;font-family:system-ui,-apple-system,Segoe UI,sans-serif}button,input,textarea{font:inherit}button{cursor:pointer;border:0;border-radius:10px;padding:14px 20px;background:#176354;color:white;font-weight:650}button:disabled{opacity:.5;cursor:wait}button:hover{filter:brightness(.95)}button:focus-visible,input:focus,textarea:focus{outline:3px solid #7dc5ae;outline-offset:3px}[hidden]{display:none!important}.welcome{min-height:100svh;display:grid;place-items:center;padding:32px 24px;background:radial-gradient(ellipse at 90% 5%,#24605d 0,transparent 55%),#123c45;color:#fff}.intro{max-width:490px;text-align:center}.intro img{margin-bottom:25px}.eyebrow{font-size:11px;font-weight:750;letter-spacing:2px;color:#548475;margin:0 0 12px}.intro .eyebrow{color:#a8d7c3}.intro h1{font-size:clamp(32px,7vw,46px);line-height:1.13;font-weight:600;letter-spacing:-1.3px;margin:10px 0 28px}.intro h2{font-size:14px;letter-spacing:2px;line-height:1.8;color:#c7e5d8}.intro>p:not(.eyebrow){font-size:16px;color:#bcd0cf;line-height:1.8}.intro button{margin-top:30px;width:100%;background:#d4ebac;color:#173b36;text-align:left}.intro button span{float:right}header{display:flex;align-items:center;gap:12px;background:#123c45;color:white;padding:18px max(20px,calc((100vw - 940px)/2))}header strong{font-size:15px}header small{display:block;font-size:9px;letter-spacing:1px;color:#b6d5ce;margin-top:5px}.icon-button{margin-left:auto;background:transparent;font-size:26px;padding:4px 10px}.content{max-width:940px;margin:auto;padding:36px 20px}.heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:28px}h1{font-size:30px;letter-spacing:-1px;margin:0}h2{font-size:19px;margin:0}.badge{white-space:nowrap;font-size:11px;padding:8px 12px;border:1px solid #c8ded3;border-radius:20px;color:#2a7157;background:#e5f0e7}.card{background:#fff;border:1px solid #dce6e0;border-radius:16px;padding:26px;margin-bottom:20px}.section-title{display:flex;gap:14px;align-items:flex-start;margin-bottom:22px}.number{background:#eff4ef;color:#578272;border-radius:8px;padding:8px;font-size:12px;font-weight:750}.section-title p{font-size:13px;color:#6a7e7d;margin:6px 0 0;line-height:1.6}label{display:block;font-size:12px;font-weight:700;margin:0 0 9px}input,textarea{width:100%;background:#fafcfb;border:1px solid #cbdad2;border-radius:8px;padding:13px;color:#203e42;min-width:0}textarea{resize:vertical;line-height:1.7}.time-grid{display:grid;grid-template-columns:1fr 1fr;gap:20px;margin-bottom:24px}.input-action{display:flex;gap:6px}.input-action button{padding:8px;font-size:11px;background:#eaf2ed;color:#276953}.hint{color:#71817b;font-size:12px;line-height:1.6}.form-bottom{display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:16px}.history{margin-top:38px}.history-top{display:flex;align-items:center;justify-content:space-between;gap:12px}.history h2 span{font-size:12px;background:#dee9e2;padding:4px 8px;border-radius:6px;margin-left:6px}.secondary{background:white;border:1px solid #c7d8cf;color:#285c4f;font-size:12px}.record{position:relative;margin-top:15px;padding:22px;background:white;border:1px solid #dce6e0;border-left:3px solid #69a78c;border-radius:10px}.record small{color:#648476;font-size:11px;font-weight:700;letter-spacing:1px}.record .times{font-size:12px;color:#54706c;line-height:1.8;margin:10px 0}.record .body{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.8;color:#2f4947;font-size:14px}.empty{padding:35px;text-align:center;border:1px dashed #c2d4c8;border-radius:12px;color:#71867a;font-size:14px}footer{margin:35px 0 0;padding-top:20px;border-top:1px solid #d5e0d8;color:#788a80;font-size:11px;line-height:1.7}.backup{display:flex;gap:20px}.text-button{padding:5px 0;background:transparent;color:#326953;font-size:12px}#message{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);max-width:90%;padding:14px 22px;background:#123c45;color:white;border-radius:10px;box-shadow:0 6px 30px #0002;font-size:14px;display:none;z-index:5}@media(max-width:640px){.heading{align-items:flex-start;flex-direction:column}h1{font-size:26px}.content{padding:28px 16px}.card{padding:20px 16px}.time-grid{grid-template-columns:1fr;gap:18px}.form-bottom{align-items:stretch;flex-direction:column;gap:8px}.history-top{align-items:flex-start;flex-direction:column}.history h2{font-size:18px}header{padding:15px 16px}header strong{font-size:13px}header small{font-size:8px}.input-action input{flex:1}}

/* Interface de celular, inclusive em telas largas e na horizontal. */
body{width:100%;max-width:844px;margin-inline:auto;min-height:100svh}
html{background:#dce5e0}
header{padding:18px 20px}
.content{max-width:100%;padding:28px 16px}
.heading,.history-top{align-items:flex-start;flex-direction:column}
.card{padding:20px 16px}
#note-form{display:flex;flex-direction:column;gap:24px}
.form-field{min-width:0}
.form-field .hint{margin-bottom:0}
.input-action{flex-direction:column;align-items:stretch}
.input-action input{width:100%;min-height:48px}
.input-action button{align-self:flex-start;min-height:44px;padding:10px 20px;font-size:13px}
.form-bottom{flex-direction:column;align-items:stretch;margin-top:0;gap:0}
input,textarea{font-size:16px}
.history-actions{display:flex;gap:10px;margin-top:20px;align-items:stretch}
.history-actions button{flex:1;min-width:0;padding:14px 10px;font-size:12px}
#new-note{scroll-margin-top:16px}
.record{scroll-margin-top:16px}
#service{min-height:200px;field-sizing:content}
dialog{width:calc(100% - 32px);max-width:430px;border:0;border-radius:16px;padding:26px;color:#163b43;background:#fff;box-shadow:0 12px 60px #0003}
dialog::backdrop{background:#102c36b3}
dialog p{margin:0 0 20px;font-size:16px;line-height:1.7}
dialog h2{font-size:19px}
.dialog-actions{display:flex;gap:12px;margin-top:24px}
.dialog-actions button{flex:1;min-height:48px}
#export-no{background:#b33232;color:#fff}
@media(max-width:640px){header{padding:15px 16px}}
