body{--accent:#e4c47d;--surface:#24271fe8;--base:#171915;--ink:#eee5d0;background:linear-gradient(180deg,#10140e55,#10140edb),var(--scene),var(--base);background-size:cover;background-position:center;color:var(--ink)}body.no-scene{background:var(--base)}body[data-theme=blue]{--accent:#a8c6e4;--surface:#1c2d40ed;--base:#101925}body[data-theme=forest]{--accent:#d7b978;--surface:#263d2eed;--base:#15241c}body[data-theme=paper]{--accent:#85652c;--surface:#f7f1e4f5;--base:#e8dfca;--ink:#33291a;background:linear-gradient(#e8dfca99,#e8dfcaed),var(--scene),var(--base)}body[data-theme=paper].no-scene{background:var(--base)}h1,h2,summary,.daily-message strong,.tile svg{color:var(--accent)}.brand,#appNav,body:after{background:var(--base)}.meal,details,.rule,.tile,.daily-message,.v5grid button{background:var(--surface);border-color:#a69b694d;box-shadow:0 5px 18px #0002;border-radius:14px}.v5grid{display:grid;grid-template-columns:1fr 1fr;gap:9px;margin:12px 0}.v5grid button{text-align:left;min-height:76px}.v5grid strong,.v5grid small{display:block}.v5grid strong{margin-top:6px;color:var(--accent)}.journey-grid{display:grid;grid-template-columns:repeat(7,1fr);gap:5px}.journey-grid button{padding:8px 0}.journey-grid [data-state=full]{background:#355440}.journey-grid [data-state=partial]{background:#77643b}#offlineNotice{display:none}.offline #offlineNotice{display:block;background:#72592b;color:white;padding:5px;font-size:12px;order:-1}body[data-theme=paper] small{color:#584b36}body[data-theme=paper] button,body[data-theme=paper] select,body[data-theme=paper] textarea,body[data-theme=paper] #journal input:not([type=checkbox]),body[data-theme=paper] dialog{background:#f7f1e4;color:#33291a}body[data-theme=paper] #appNav button{color:#584b36}body[data-theme=paper] #appNav button[aria-current=page]{background:#d9c7a2;color:#33291a}body[data-theme=paper] .nut-ring>div{background:#f7f1e4}body[data-theme=paper] .nut-ring strong{color:#85652c}

/* Mobile modal layout: avoid iOS input focus zoom. */
dialog{position:fixed;inset:0;margin:auto;width:calc(100% - 32px);max-width:480px;max-height:calc(100dvh - 40px - env(safe-area-inset-top) - env(safe-area-inset-bottom));overflow:auto;overscroll-behavior:contain;padding:20px;font-size:16px;color:var(--ink);background:var(--surface);overflow-wrap:anywhere}dialog input,dialog select,dialog textarea,dialog button{font-size:16px!important;line-height:1.4;max-width:100%}dialog button{min-height:44px}dialog h2:focus{outline:none}.account-dialog button,.prayer-dialog button{display:block;width:100%;margin:10px 0}.account-dialog details{padding:12px}.prayer-dialog button:disabled{opacity:.55;cursor:not-allowed}
