.care-journal{color:#173b44;max-width:1260px;padding-top:40px;padding-bottom:56px;background:#f7f8f5}
.cj-heading h1{font-size:clamp(2rem,4vw,3.3rem);letter-spacing:-.045em;margin:8px 0 12px;color:#16343d}
.cj-heading>p:not(.cj-eyebrow){color:#4d6265;font-size:1.1rem;line-height:1.6}.cj-eyebrow{font-size:.75rem;font-weight:750;letter-spacing:.14em;color:#21756c}
.cj-notice{background:#eaf3ef;border:1px solid #ccdcd4;border-radius:16px;padding:18px 22px;margin:24px 0;color:#254b48;font-size:.9rem;line-height:1.6}.cj-notice p{margin:5px 0 0}
.cj-layout{display:grid;grid-template-columns:minmax(290px,.82fr) minmax(0,1.35fr);gap:22px;align-items:start}.cj-card{background:#fff;border:1px solid #dce3df;border-radius:16px;padding:26px;box-shadow:0 6px 22px #15393005}.cj-card h2{font-size:1.25rem;margin:0 0 20px;letter-spacing:-.025em}
.care-journal label{display:flex;flex-direction:column;gap:7px;font-size:.82rem;font-weight:650;color:#3f5b5a;margin-bottom:15px}.care-journal input,.care-journal select,.care-journal textarea{font:inherit;font-weight:400;font-size:1rem;width:100%;box-sizing:border-box;border:1px solid #bccdc6;border-radius:10px;background:#fff;color:#173b44;padding:11px 12px;min-height:46px}.care-journal textarea{resize:vertical}.care-journal :focus-visible{outline:3px solid #1f8c7c;outline-offset:3px}.care-journal [hidden]{display:none!important}
.cj-value{display:grid;grid-template-columns:minmax(0,1fr) 110px;gap:12px}.care-journal .cj-check{flex-direction:row;align-items:center;gap:10px;font-weight:400;font-size:.85rem;line-height:1.5}.care-journal .cj-check input{width:22px;height:22px;min-height:22px;flex-shrink:0;accent-color:#21756c}
.care-journal button{border:1px solid #b9ccc4;border-radius:10px;min-height:44px;padding:10px 15px;background:#fff;color:#24574e;font:inherit;font-size:.9rem;font-weight:650;cursor:pointer}.care-journal .cj-primary{background:#206d61;color:#fff;border-color:#206d61;width:100%}.care-journal button:hover{filter:brightness(.96)}.care-journal .cj-secondary{margin-top:10px;width:100%}.cj-status{font-size:.9rem;line-height:1.5;min-height:20px;color:#245b51}.cj-editing{font-size:.9rem;background:#fff2d7;padding:10px;border-radius:9px;line-height:1.5}
.cj-record-heading{display:flex;align-items:center;justify-content:space-between}.cj-record-heading span{background:#eaf3ef;border-radius:30px;padding:4px 10px;margin-bottom:20px;font-size:.85rem}.cj-filters{display:grid;grid-template-columns:1fr 1fr;gap:0 14px}.cj-actions{display:flex;flex-wrap:wrap;gap:8px}.cj-export-note{font-size:.76rem;color:#526665;line-height:1.6;margin:12px 0 20px}.cj-entry{border-top:1px solid #e1e8e3;padding:20px 0}.cj-entry-head{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}.cj-kind{background:#eff5f1;color:#2b6358;border-radius:20px;font-size:.76rem;padding:6px 11px;font-weight:650}.cj-entry time{font-size:.8rem;color:#55706a}.cj-entry-value{font-size:1.35rem;font-weight:650;margin:12px 0 5px;overflow-wrap:anywhere}.cj-notes{font-size:.95rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0}.cj-provenance{font-size:.73rem;color:#5c6f6a;line-height:1.65;overflow-wrap:anywhere;margin:5px 0}.cj-correct{margin-top:8px}.cj-old{font-size:.75rem;color:#765c2a;background:#fff4dc;display:inline-block;border-radius:7px;padding:5px 9px}.cj-empty{color:#687b74;line-height:1.65;text-align:center;padding:35px 15px}.cj-fallback{font-size:.9rem;padding:10px 0}
#cj-print-summary{display:none}
body.simple-mode>.topbar,body.simple-mode>.tabs,body.simple-mode>#footer,body.simple-mode>.legal,body.simple-mode>#landing{display:none!important}body.simple-mode #screen{display:block!important;padding-bottom:100px}body.simple-mode #screen [data-go],body.simple-mode #screen [data-tab],body.simple-mode .memo-choose{display:none!important}.simple-safe-controls{position:fixed;z-index:10050;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:12px;background:#f6f8f3f5;border-top:1px solid #d4ded5;padding:14px 18px max(14px,env(safe-area-inset-bottom));box-shadow:0 -4px 16px #15393010}.simple-safe-controls button{font:inherit;font-weight:650;min-height:52px;border:1px solid #29786d;border-radius:14px;padding:12px 22px;background:#fff;color:#1f554d}.simple-safe-controls button:first-child{background:#226e61;color:#fff}.simple-pin-note{font-size:.8rem;max-width:520px;text-align:center;color:#52665f;line-height:1.5;margin:14px auto}.simple-ov{padding-bottom:35px}.simple-vault-empty{padding:35px 10px}.simple-readonly-note{color:#50665f;font-size:1rem;line-height:1.7}
@media(max-width:780px){.cj-layout{grid-template-columns:1fr}.care-journal{padding-top:24px}.cj-card{padding:20px}.cj-actions button{flex:1;min-width:120px}}
@media(max-width:410px){.cj-filters{grid-template-columns:1fr}.cj-value{grid-template-columns:minmax(0,1fr) 95px}.simple-safe-controls button{padding:12px 16px}.cj-card{padding:17px}}
@media print{body.cj-printing>*{display:none!important}body.cj-printing>#cj-print-summary{display:block!important;background:#fff;color:#000;padding:0;margin:0;max-width:none}#cj-print-summary .cj-entry{break-inside:avoid}#cj-print-summary h1{font-size:22pt}.simple-safe-controls{display:none!important}}
.simple-mode #release-status{display:none!important}
/* ---------- Simple Mode (the person's screen): big type, big targets, high contrast, one column, no technical text ----------
   Base 22px; .meta >=18px; every button/input >=56px; chat bubbles 23px; vault single column; text colors >=7:1 on white. */
body.simple-mode{font-size:22px;line-height:1.45;--fs-base:22px;--fs-sm:18px;--fs-md:20px;--fs-lg:24px;--tap:56px;--muted:var(--ink-2)}
body.simple-mode .meta,body.simple-mode small{font-size:18px;color:var(--ink-2)}
body.simple-mode h2{font-size:30px}body.simple-mode h3{font-size:26px}
body.simple-mode button,body.simple-mode .btn,body.simple-mode .ghost,body.simple-mode input,body.simple-mode select{min-height:56px;font-size:20px}
body.simple-mode .memo-msg span{font-size:23px;line-height:1.45;max-width:92%;padding:14px 18px}
body.simple-mode .memo-log{max-height:44vh}
body.simple-mode .memo-chips{display:flex;flex-direction:column;gap:12px;margin:12px 0}
body.simple-mode .memo-chip{min-height:64px;font:inherit;font-size:22px;font-weight:700;border:2px solid var(--teal-ink);border-radius:18px;background:var(--card);color:var(--navy);padding:12px 18px;cursor:pointer;text-align:center}
body.simple-mode .memo-chip:active{transform:scale(.98)}
body.simple-mode .memo-mic-big{min-height:72px;font-size:24px;width:100%;touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.simple-mode #memo-mode,body.simple-mode .memo-choose,body.simple-mode .memo-sits,body.simple-mode #memo-consent{display:none!important}
body.simple-mode .grid.g2,body.simple-mode .grid.g3{grid-template-columns:1fr}
body.simple-mode .simple-ov{gap:18px}
body.simple-mode .simple-top{font:inherit;font-size:26px;font-weight:800;line-height:1.35;color:var(--navy);background:none;border:0;cursor:pointer;max-width:560px;padding:8px 12px;border-radius:14px;text-align:center}
body.simple-mode .simple-top:focus-visible{outline:3px solid var(--blue);outline-offset:2px}
body.simple-mode .simple-prompt{font-size:20px;color:var(--teal-ink)}
body.simple-mode .simple-btn{min-height:150px;color:var(--navy)}
body.simple-mode .simple-btn-img{width:120px;height:120px;object-fit:cover;border-radius:20px}
body.simple-mode .simple-call{text-decoration:none;font-size:72px}
body.simple-mode .simple-exit{min-height:56px;font-size:18px;color:var(--ink-2);padding:12px 22px;border:1px solid var(--line-2);border-radius:14px;background:var(--card);touch-action:manipulation;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
body.simple-mode .simple-exit.holding{border-color:var(--teal-ink);background:var(--teal-soft)}
body.simple-mode .simple-hold-hint{min-height:28px;font-size:18px;color:var(--ink-2);margin:4px 0 0;text-align:center}
body.simple-mode .simple-gate .pin-card{max-width:420px;font-size:20px}
body.simple-mode .simple-gate .pin-card .meta{color:var(--ink-2)}
body.simple-mode .simple-gate-link{display:block;margin:14px auto 0;min-height:56px}
body.simple-mode .simple-activities .g2-today{text-align:center}
body.simple-mode .simple-other-game{width:100%;min-height:64px;font-size:22px;margin-top:12px}
body.simple-mode .simple-vault .card{text-align:center}
body.simple-mode .simple-vault h3{font-size:28px}body.simple-mode .simple-vault p{font-size:22px}
body.simple-mode .simple-vault-empty{font-size:22px;text-align:center}
body.simple-mode .simple-safe-controls button{min-height:60px;font-size:20px;padding:12px 26px}
body.simple-mode .game-ov .game-card{font-size:20px}
/* 9.4 fix: the spoken orientation line wraps to three lines on phones; never clip or overlap the prompt below. */
body.simple-mode .simple-top{height:auto;min-height:56px;white-space:normal;overflow:visible;padding:10px 14px;margin:0 0 8px;display:block;width:100%}
/* 9.4 fix: when her screen is taller than the viewport, flex centering hid the top (logo, orientation) and shrank
   the orientation button. Start from the top, keep every child at its natural size, centre only when it fits. */
body.simple-mode .simple-ov{justify-content:flex-start;padding:16px 16px calc(110px + env(safe-area-inset-bottom))}
body.simple-mode .simple-ov>*{flex-shrink:0}
body.simple-mode .simple-ov>:first-child{margin-top:auto}
body.simple-mode .simple-ov>:last-child{margin-bottom:auto}
/* 9.5 Simple Mode: the orientation line keeps one style whatever the family-set context (home / hospital / elsewhere);
   while the PIN sheet is locked ("Tente de novo em N s") the input is disabled but stays ≥ 56px and legible. */
body.simple-mode .simple-gate .pin-input:disabled{opacity:.55;cursor:not-allowed}
body.simple-mode .simple-gate #simple-gate-msg{min-height:28px;line-height:1.4}
