/* Ask Aimee v5 (2026-10-18): floating Aimee, Good Morning, My Schedule, Family Care, Settings. Large text, 56px+ targets. */
:root{--a5-navy:#16365f;--a5-blue:#0a6fc2;--a5-green:#0b8a52;--a5-gold:#f4b400;--a5-red:#c62828;--a5-ink:#1b2430;--a5-mut:#4b5966;--a5-bg:#f6f8fb;--a5-card:#fff;--a5-line:#d7dee7}
/* ---------- home entry cards ---------- */
.a5-home{margin:12px 12px 0;display:grid;gap:10px}
.a5-gm{display:flex;align-items:center;gap:14px;width:100%;min-height:92px;padding:14px 16px;border:0;border-radius:20px;cursor:pointer;text-align:left;color:#3a2300;
  background:linear-gradient(120deg,#ffe08a 0%,#ffc658 45%,#ff9f6b 100%);box-shadow:0 6px 18px rgba(255,140,60,.35);font:inherit;word-break:keep-all}
.a5-gm .sun{font-size:2.8rem;line-height:1;filter:drop-shadow(0 2px 2px rgba(0,0,0,.15))}
.a5-gm b{display:block;font-size:1.32rem;line-height:1.2}.a5-gm small{display:block;font-size:.95rem;font-weight:700;opacity:.85;margin-top:2px}
.a5-gm .go{margin-left:auto;font-size:2rem;opacity:.7}
.a5-row{display:grid;grid-template-columns:repeat(3,1fr);gap:10px}
.a5-tile{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-height:96px;border-radius:18px;border:2px solid var(--a5-line);background:#fff;color:var(--a5-ink);font:inherit;font-weight:800;font-size:1.02rem;cursor:pointer;text-align:center;word-break:keep-all;box-shadow:0 2px 6px rgba(0,0,0,.06);padding:8px 4px}
.a5-tile .i{font-size:2rem;line-height:1}.a5-tile.fam{border-color:#f3b8c6;background:#fff6f8}.a5-tile.sch{border-color:#b9d6f2;background:#f3f8ff}.a5-tile.set{border-color:#d5d9de;background:#fafbfc}
/* ---------- floating Aimee ---------- */
.a5-fab{position:fixed;right:14px;bottom:calc(84px + env(safe-area-inset-bottom,0px));z-index:900;display:flex;align-items:center;gap:8px;padding:6px 16px 6px 6px;border-radius:999px;border:3px solid #fff;
  background:linear-gradient(135deg,#7c4dff,#d81b60);color:#fff;font:inherit;font-weight:900;font-size:1.05rem;box-shadow:0 8px 22px rgba(124,77,255,.45);cursor:pointer;min-height:62px}
.a5-fab .face{width:50px;height:50px;border-radius:50%;background:#fff url(aimee2w-awake.jpg?v=20261027w4) center/cover;flex:0 0 auto;box-shadow:0 0 0 2px rgba(255,255,255,.6)}
.a5-fab:focus-visible{outline:4px solid #ffd54f;outline-offset:3px}
.a5-fab[hidden]{display:none!important}
body.a5-padfab main{padding-bottom:84px}
/* ---------- overlays / pages ---------- */
.a5-ov{position:fixed;inset:0;z-index:2500;background:rgba(10,20,35,.5);display:flex;align-items:flex-end;justify-content:center}
.a5-ov[hidden]{display:none!important}
.a5-sheet{background:var(--a5-bg);color:var(--a5-ink);width:100%;max-width:640px;height:86vh;height:86dvh;border-radius:24px 24px 0 0;display:flex;flex-direction:column;box-shadow:0 -10px 30px rgba(0,0,0,.3);overflow:hidden}
.a5-page .a5-sheet{height:100vh;height:100dvh;border-radius:0;max-width:720px}
@media (min-width:760px){.a5-ov{align-items:center}.a5-sheet{height:min(860px,92vh);border-radius:24px}.a5-page .a5-sheet{height:min(900px,96vh);border-radius:24px}}
.a5-head{display:flex;align-items:center;gap:10px;padding:12px 12px 10px 16px;background:#fff;border-bottom:1px solid var(--a5-line);flex:0 0 auto}
.a5-head h2{margin:0;font-size:1.35rem;line-height:1.2;flex:1;color:var(--a5-navy)}
.a5-head .face{width:42px;height:42px;border-radius:50%;background:#fff url(aimee2w-awake.jpg?v=20261027w4) center/cover;flex:0 0 auto}
.a5-x{min-width:96px;min-height:52px;border-radius:14px;border:2px solid var(--a5-ink);background:#fff;color:var(--a5-ink);font:inherit;font-weight:900;font-size:1.05rem;cursor:pointer}
.a5-x:focus-visible,.a5-btn:focus-visible,.a5-tile:focus-visible,.a5-gm:focus-visible,.a5-chip:focus-visible{outline:4px solid #ffb300;outline-offset:2px}
.a5-body{flex:1;overflow-y:auto;padding:12px 14px 28px;-webkit-overflow-scrolling:touch}
.a5-bar{display:flex;flex-wrap:wrap;gap:8px;padding:10px 12px;background:#fff;border-bottom:1px solid var(--a5-line);flex:0 0 auto}
.a5-btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;min-height:52px;padding:6px 14px;border-radius:14px;border:2px solid var(--a5-line);background:#fff;color:var(--a5-ink);font:inherit;font-weight:800;font-size:1.02rem;cursor:pointer;text-decoration:none;word-break:keep-all}
.a5-btn.pri{background:var(--a5-blue);border-color:var(--a5-blue);color:#fff}.a5-btn.grn{background:var(--a5-green);border-color:var(--a5-green);color:#fff}
.a5-btn.red{background:var(--a5-red);border-color:var(--a5-red);color:#fff}.a5-btn.gold{background:#ffd54f;border-color:#f4b400;color:#3a2a00}
.a5-btn.wide{width:100%}.a5-btn[disabled]{opacity:.5}
.a5-card{background:var(--a5-card);border:1px solid var(--a5-line);border-radius:18px;padding:14px 16px;margin:0 0 12px;box-shadow:0 2px 8px rgba(0,0,0,.05)}
.a5-card h3{margin:0 0 6px;font-size:1.2rem;color:var(--a5-navy);display:flex;align-items:center;gap:8px}
.a5-card h3 .sp{margin-left:auto}
.a5-card p{margin:.35rem 0;line-height:1.6;font-size:1.05rem;word-break:keep-all}
.a5-mut{color:var(--a5-mut);font-size:.95rem}
.a5-wx{display:flex;align-items:center;gap:14px}.a5-wx .t{font-size:2.6rem;font-weight:900;color:#d35400;line-height:1}.a5-wx .ic{font-size:2.6rem}
.a5-wis{background:linear-gradient(135deg,#eef0ff,#fff);border-color:#c7cdf5}.a5-wis h4{margin:.2rem 0;font-size:1.15rem;color:#3a3f9e}
.a5-wis .close{background:#e8eafe;border-left:5px solid #5c6bc0;border-radius:10px;padding:.5rem .8rem;font-weight:800;color:#2a2f7a}
.a5-item{border-top:1px dashed var(--a5-line);padding:10px 0}.a5-item:first-of-type{border-top:0}
.a5-item b{font-size:1.08rem}.a5-item .when{color:var(--a5-blue);font-weight:800}
.a5-acts{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.a5-acts .a5-btn{min-height:46px;font-size:.95rem;padding:4px 12px}
.a5-alert{background:#fff4e5;border:2px solid #f0a020;border-radius:14px;padding:10px 12px;font-weight:700;margin-bottom:12px}
.a5-911{display:flex;align-items:center;justify-content:center;gap:10px;width:100%;min-height:64px;border-radius:18px;background:var(--a5-red);color:#fff;font-weight:900;font-size:1.35rem;text-decoration:none;box-shadow:0 4px 12px rgba(198,40,40,.35)}
.a5-phone{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding:8px 0;border-top:1px dashed var(--a5-line)}
.a5-phone:first-of-type{border-top:0}.a5-phone .n{font-weight:900;font-size:1.15rem;letter-spacing:.5px}.a5-phone .l{flex:1 1 100%;font-weight:700}
.a5-field{display:block;margin:10px 0}.a5-field span{display:block;font-weight:800;margin-bottom:4px}
.a5-field input,.a5-field select,.a5-field textarea{width:100%;box-sizing:border-box;min-height:52px;font:inherit;font-size:1.1rem;padding:10px 12px;border:2px solid #98a2ad;border-radius:12px;background:#fff;color:var(--a5-ink)}
.a5-check{display:flex;gap:10px;align-items:flex-start;font-weight:700;margin:10px 0;line-height:1.5}.a5-check input{width:28px;height:28px;flex:0 0 auto;margin-top:2px}
.a5-seg{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px}
.a5-seg button{min-height:54px;border-radius:12px;border:2px solid var(--a5-line);background:#fff;font:inherit;font-weight:800;cursor:pointer;color:var(--a5-ink)}
.a5-seg button[aria-pressed=true]{background:var(--a5-navy);border-color:var(--a5-navy);color:#fff}
.a5-chip{min-height:44px;padding:4px 14px;border-radius:999px;border:2px solid var(--a5-line);background:#fff;font:inherit;font-weight:800;cursor:pointer;color:var(--a5-ink)}
.a5-chip[aria-pressed=true]{background:#7c4dff;border-color:#7c4dff;color:#fff}
.a5-langs{display:flex;flex-wrap:wrap;gap:6px;padding:8px 12px;background:#fff;border-bottom:1px solid var(--a5-line)}
.a5-langs .lbl{font-weight:800;align-self:center;margin-right:4px;font-size:.95rem}
.a5-panel-body #chat{min-height:120px}
.a5-panel-body .ask-row{position:sticky;bottom:0}
.a5-hint{background:#ede7f6;border-radius:12px;padding:8px 10px;margin:8px 0;font-weight:700}
.a5-shortcuts{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:10px 0}
.a5-shortcuts button{min-height:60px;border-radius:14px;border:2px solid var(--a5-line);background:#fff;font:inherit;font-weight:800;font-size:.95rem;cursor:pointer;word-break:keep-all}
.a5-toast{position:fixed;left:50%;transform:translateX(-50%);bottom:110px;z-index:3000;background:#1b2430;color:#fff;padding:12px 18px;border-radius:14px;font-weight:800;max-width:90vw;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.a5-dlg{position:fixed;inset:0;z-index:3500;background:rgba(10,20,35,.55);display:flex;align-items:center;justify-content:center;padding:16px}
.a5-dlg .box{background:#fff;color:var(--a5-ink);border-radius:20px;max-width:460px;width:100%;padding:18px;box-shadow:0 10px 30px rgba(0,0,0,.35)}
.a5-dlg h3{margin:0 0 8px;font-size:1.3rem}.a5-dlg p{font-size:1.1rem;line-height:1.6;margin:.4rem 0;word-break:keep-all}
.a5-dlg .msg{background:#f1f8e9;border-radius:12px;padding:10px 12px;font-weight:700}
.a5-dlg .a5-acts{margin-top:14px}.a5-dlg .a5-acts .a5-btn{flex:1;min-height:56px;font-size:1.05rem}
.a5-empty{color:var(--a5-mut);padding:6px 0}
.a5-remind{position:fixed;left:12px;right:12px;top:12px;z-index:3600;background:#fff8e1;border:3px solid #f4b400;border-radius:18px;padding:14px;box-shadow:0 8px 24px rgba(0,0,0,.3);font-weight:800}
.tts-bar button[data-tts=slow]{background:#fff3e0}
@media (max-width:560px){.a5-bar{display:grid;grid-template-columns:repeat(3,1fr);gap:6px;padding:8px}.a5-bar .a5-btn{min-height:50px;padding:4px 6px;font-size:.95rem}}
.a5-foot{flex:0 0 auto;background:#fff;border-top:1px solid var(--a5-line);padding:8px 12px calc(10px + env(safe-area-inset-bottom,0px));display:grid;gap:8px}
.a5-foot .ask-row{margin:0}.a5-foot .talk{margin:0;min-height:56px}
.a5-foot #a5-hint:empty{display:none}

/* GitHub #27: Neighbor Help buttons - put the existing "Korean only" pill under the words so nothing overlaps (it overflowed at 390 px) */
.a5-nb .a5-acts .a5-btn{flex-direction:column;flex-wrap:nowrap;gap:4px;padding:8px 10px;min-width:0;text-align:center;line-height:1.25}
.a5-nb .ko-only{margin:0;max-width:100%;white-space:normal;font-size:.8rem}
html:lang(zh) .a5-nb p,html:lang(zh) .a5-nb h3{word-break:normal;overflow-wrap:anywhere} /* Chinese has no spaces: allow normal line breaks so text never runs past the card */
/* GitHub #27 round 2: Neighbor Help in English / Chinese (nbhelp.js) */
.nh-beta{background:#fff3cd;color:#6b4f00;border:1px solid #e0c25a;border-radius:999px;padding:1px 10px;font-size:.8rem;font-weight:800}
.nh-status{background:#fff8e1;border-left:6px solid #e6a700;border-radius:10px;padding:8px 12px;color:#4a3a00;font-size:1rem!important}
.nh-acts{display:grid;grid-template-columns:repeat(auto-fit,minmax(150px,1fr));gap:8px;margin:10px 0}
.nh-acts .a5-btn{flex-direction:column;min-height:64px;line-height:1.25;text-align:center}
.nh-acts .a5-btn small{font-weight:700;font-size:.82rem;opacity:.95}
.nh-acts .a5-btn[aria-expanded="true"]{outline:4px solid #ffb300;outline-offset:1px}
.nh-form{border:2px solid var(--a5-navy,#1B3A6B);border-radius:14px;padding:8px 12px;margin:8px 0;background:#f6f9ff}
.nh-form h4{margin:4px 0;font-size:1.1rem;color:var(--a5-navy,#1B3A6B)}
.nh-langs{border:0;padding:0;margin:6px 0;display:flex;flex-wrap:wrap;gap:0 14px}
.nh-langs legend{font-weight:800;margin-bottom:2px}
.nh-langs .a5-check{margin:4px 0}
.nh-err{color:#8a1c14;font-weight:800}
.nh-err:empty,.nh-msg:empty{display:none}
.nh-msg{background:#e6f4ea;border:2px solid #14532d;color:#14532d;border-radius:12px;padding:8px 12px;font-weight:800}
.nh-ko{margin-top:10px;border-top:1px solid var(--a5-line,#d9e1ec);padding-top:6px}
.nh-ko summary{min-height:48px;display:flex;align-items:center;font-weight:800;cursor:pointer;color:var(--a5-navy,#1B3A6B)}
.nh-sent summary{min-height:48px;display:flex;align-items:center;font-weight:800;cursor:pointer}
.nh-sent ul{margin:4px 0;padding-left:20px}
.nh .a5-acts .a5-btn{flex-direction:row}
/* very narrow screens (200% zoom): long words and Chinese lines wrap inside the card */
.a5-check span,.hp-open>span,.a5-card h3{min-width:0;overflow-wrap:anywhere}
html:lang(zh) #a5-body-fam p,html:lang(zh) #a5-body-fam .a5-btn,html:lang(zh) #a5-body-fam h3{word-break:normal;overflow-wrap:anywhere}
.appver{font-size:.85rem;color:#55637a}
.appver-btn{min-height:44px;padding:4px 12px;margin-left:6px;border-radius:22px;border:2px solid #d9e1ec;background:#fff;color:#1B3A6B;font:inherit;font-weight:700;cursor:pointer}
#app-update{position:fixed;left:8px;right:8px;top:8px;z-index:3000;min-height:56px;border:0;border-radius:16px;background:#1B3A6B;color:#fff;font:inherit;font-weight:800;font-size:1rem;padding:8px 14px;box-shadow:0 4px 16px rgba(0,0,0,.35);cursor:pointer}
#app-update:focus-visible{outline:4px solid #ffb300;outline-offset:2px}
.hp-open .hp-ic,.hp-open .chev{flex:0 0 auto;min-width:auto;text-align:center} /* the lock and arrow never shrink under the text */

/* #131 Ask Aimee welcome: short intro, six topic buttons (tap fills the box), one boundary line, closed details */
.a5-welcome .a5w-label{display:inline-block;margin:0 0 6px;padding:2px 10px;border-radius:999px;background:#e7f1ea;color:#1d5b33;font-weight:800;font-size:.95rem}
.a5-welcome .a5w-hello{margin:0;font-weight:800;font-size:1.2rem;color:var(--a5-navy)}
.a5-welcome .a5w-intro{margin:.4rem 0 .6rem;line-height:1.6;font-size:1.05rem;word-break:keep-all}
.a5-welcome .a5w-topics{display:grid;grid-template-columns:repeat(auto-fit,minmax(8em,1fr));gap:8px}
.a5-welcome .a5w-topic{display:flex;align-items:center;gap:6px;min-height:52px;padding:6px 10px;border-radius:14px;border:2px solid var(--a5-line);background:#f7fbff;color:var(--a5-ink);font:inherit;font-weight:800;font-size:1rem;text-align:left;cursor:pointer;word-break:keep-all}
.a5-welcome .a5w-topic:focus-visible{outline:4px solid #ffb300;outline-offset:2px}
.a5-welcome .a5w-tap{margin:.5rem 0 .2rem;color:var(--a5-mut);font-size:.98rem}
.a5-welcome .a5w-bound{margin:.4rem 0;padding:.45em .6em;border-radius:10px;background:#fff6d6;color:#4a3a00;font-size:1rem;line-height:1.5}
.a5-welcome .a5w-more summary{min-height:48px;display:flex;align-items:center;cursor:pointer;font-weight:800;color:var(--a5-blue)}
.a5-welcome .a5w-more ul{margin:.2rem 0 .4rem;padding-left:1.2em}.a5-welcome .a5w-more li{margin:.3em 0;line-height:1.5}
.a5-welcome .a5w-911{display:inline-flex;align-items:center;min-height:48px;padding:0 16px;border-radius:12px;background:var(--a5-red);color:#fff;font-weight:800;text-decoration:none}

.a5-welcome .a5w-zh p,.a5-welcome .a5w-zh li,.a5-welcome .a5w-zh .a5w-topic{word-break:normal;overflow-wrap:anywhere}
