/* Shared in-app feedback (app-ui.js). Toasts and confirms live on <body>, never inside
   a tab panel, because panels re-render by replacing their contents. */
.cc-toasts{position:fixed;right:22px;bottom:22px;z-index:70;display:grid;gap:9px;justify-items:end;pointer-events:none;max-width:min(380px,calc(100vw - 32px))}
.cc-toast{pointer-events:auto;background:var(--panel);color:var(--ink);border:1px solid var(--line);border-left:3px solid var(--green);border-radius:10px;padding:13px 16px;font-size:13px;line-height:1.5;box-shadow:0 14px 40px rgba(0,0,0,.42);opacity:0;transform:translateY(10px) scale(.98);transition:opacity .24s ease,transform .24s cubic-bezier(.2,.8,.3,1)}
.cc-toast.in{opacity:1;transform:none}
.cc-toast.bad{border-left-color:var(--red)}
.cc-confirm{background:var(--panel);color:var(--ink);border:1px solid var(--line);border-radius:14px;padding:22px;width:min(420px,calc(100vw - 32px));box-shadow:0 24px 70px rgba(0,0,0,.55)}
.cc-confirm::backdrop{background:rgba(0,0,0,.6)}
.cc-confirm-msg{margin:0 0 18px;font-size:15px;line-height:1.55}
.cc-confirm-actions{display:flex;gap:10px;justify-content:flex-end;flex-wrap:wrap}
.cc-confirm-actions button{min-height:44px;padding:10px 16px;border:1px solid var(--line);border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:14px;cursor:pointer;transition:background .16s ease,border-color .16s ease}
.cc-confirm-actions button:hover{background:var(--line)}
.cc-confirm-actions button:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
.cc-confirm-ok{background:var(--accent)!important;border-color:var(--accent)!important;color:#0a0b0c!important;font-weight:700}
.cc-confirm-ok.danger{background:var(--red)!important;border-color:var(--red)!important;color:#fff!important}
.cc-prompt-input{display:block;width:100%;box-sizing:border-box;min-height:46px;margin:0 0 12px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--bg,transparent);color:var(--ink);font:inherit;font-size:16px}
.cc-prompt-input:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.cc-prompt-chips{display:flex;flex-wrap:wrap;gap:8px;margin:0 0 16px}
.cc-prompt-chip{min-height:40px;padding:8px 14px;border:1px solid var(--line);border-radius:999px;background:transparent;color:var(--ink);font:inherit;font-size:13px;cursor:pointer}
.cc-prompt-chip:hover{background:var(--line)}
.cc-prompt-chip:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Failed-load state (ccError): a plain message and one Try again button. */
.cc-error{display:grid;justify-items:center;gap:14px;padding:32px 20px;text-align:center}
.cc-error-msg{margin:0;max-width:44ch;color:var(--ink);font-size:15px;line-height:1.55}
.cc-error-retry{min-height:44px;min-width:44px;padding:10px 20px;border:1px solid var(--accent);border-radius:10px;background:transparent;color:var(--ink);font:inherit;font-size:15px;font-weight:600;cursor:pointer;transition:background .16s ease}
.cc-error-retry:hover:not(:disabled){background:var(--line)}
.cc-error-retry:disabled{opacity:.6;cursor:default}
.cc-error-retry:focus-visible{outline:2px solid var(--accent);outline-offset:2px}
/* Phones: toasts sit above the bottom tab bar (about 58px plus the safe area, app-nav.css),
   never on it, so a message can never block navigation. */
@media(max-width:767px){.cc-toasts{right:12px;left:12px;bottom:calc(76px + env(safe-area-inset-bottom));justify-items:stretch;max-width:none}}
@media(max-width:600px){.cc-confirm-actions button{flex:1 1 auto}}
@media(prefers-reduced-motion:reduce){.cc-toast{transition:opacity .01s}.cc-error-retry{transition:none}}
