/* Quick notes under Today. Same frosted surface as the mini cards. */
.notes{display:flex;flex-direction:column;gap:8px;margin:-4px 0 2px}
.nt-box{position:relative;display:grid;grid-template-columns:auto 1fr;align-items:center;column-gap:10px;padding:11px 14px 11px 12px;border-radius:22px;background:rgba(255,255,255,.14);backdrop-filter:blur(20px) saturate(1.3);-webkit-backdrop-filter:blur(20px) saturate(1.3);box-shadow:inset 0 0 0 1px rgba(255,255,255,.2);color:#fff;cursor:text;transition:background .35s var(--ease),box-shadow .35s var(--ease),border-radius .35s var(--ease),padding .35s var(--ease)}
.nt-plus{display:grid;place-items:center;width:26px;height:26px;border-radius:50%;background:rgba(255,255,255,.2);transition:transform .35s var(--spring),background .3s}
.nt-plus .i{width:15px;height:15px;stroke-width:2.2}
.nt-box textarea{width:100%;min-width:0;border:0;background:none;resize:none;outline:none;font:inherit;font-size:16px;line-height:1.45;color:inherit;padding:2px 0;height:24px;max-height:220px;overflow-y:auto;scrollbar-width:none}
.nt-box textarea::placeholder{color:rgba(255,255,255,.72)}
.nt-bar{grid-column:1/-1;display:none;align-items:center;justify-content:space-between;gap:8px;margin-top:10px;font-size:12px;color:#6f6877}
.nt-btns{display:flex;gap:6px}
.nt-cancel,.nt-save{height:32px;padding:0 14px;border-radius:99px;font-size:13.5px;font-weight:550}
.nt-cancel{color:#6f6877}
.nt-save{background:#1f1a24;color:#fff;transition:opacity .2s,transform .2s var(--spring)}
.nt-save:disabled{opacity:.3}
.nt-save:not(:disabled):active{transform:scale(.94)}
.notes .nt-box:hover{background:rgba(255,255,255,.2)}

/* open: becomes a frosted writing card */
.notes .nt-box:has(textarea:focus),.notes.open .nt-box{align-items:start;padding:14px 14px 12px 14px;border-radius:24px;background:var(--frost);color:var(--frost-ink);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 16px 40px -18px rgba(0,0,0,.45)}
.notes.open .nt-plus{transform:rotate(45deg) scale(.9);background:rgba(31,26,36,.08)}
.notes.open .nt-box textarea{min-height:72px}
.notes.open .nt-box textarea::placeholder{color:#8a8190}
.notes.open .nt-bar{display:flex;animation:ntIn .3s var(--ease)}
@keyframes ntIn{from{opacity:0;transform:translateY(-4px)}}

/* saved notes */
.nt-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:6px}
.nt{padding:11px 14px 10px;border-radius:20px;background:var(--frost);color:var(--frost-ink);backdrop-filter:blur(20px);-webkit-backdrop-filter:blur(20px);box-shadow:inset 0 0 0 1px rgba(255,255,255,.5);cursor:pointer}
.nt p{margin:0;font-size:15px;line-height:1.42;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden;overflow-wrap:anywhere}
.nt.full p{-webkit-line-clamp:unset;display:block}
.nt-meta{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:11.5px;color:#7a7282}
.nt-dot{width:6px;height:6px;border-radius:50%;background:#b8b0c0}
.nt.busy .nt-dot{background:#e8a33d;animation:pulse 1s infinite}
.nt.filed .nt-dot{background:#2f9e6b}
.nt.fail .nt-dot{background:#e0533d}
.nt-del{margin-left:auto;height:24px;min-width:24px;padding:0 4px;border-radius:99px;display:grid;place-items:center;color:#9a92a2;font-size:12px;font-weight:600}
.nt-del .i{width:14px;height:14px}
.nt-del.armed{padding:0 10px;background:#e0533d;color:#fff}

/* approvals: the agent wants to send/create/delete something */
.ap-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:8px}
.ap{padding:14px 14px 12px 16px;border-radius:24px;background:var(--frost);color:var(--frost-ink);backdrop-filter:blur(24px) saturate(1.3);-webkit-backdrop-filter:blur(24px) saturate(1.3);box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 0 0 2px color-mix(in srgb,#e8a33d 55%,transparent),0 16px 40px -20px rgba(0,0,0,.45);animation:ntIn .4s var(--ease)}
.ap-k{display:flex;align-items:center;gap:7px;font-size:11px;letter-spacing:.09em;text-transform:uppercase;font-weight:600;color:#a86412}
.ap-k i{width:7px;height:7px;border-radius:50%;background:#e8a33d;animation:pulse 1.4s infinite}
.ap-what{margin:7px 0 0;font-family:var(--f-display);font-size:20px;line-height:1.2;letter-spacing:-.01em;overflow-wrap:anywhere}
.ap-why{margin:6px 0 0;font-size:13.5px;line-height:1.4;color:#6f6877}
.ap-args{margin-top:8px;font-size:12.5px;color:#6f6877}
.ap-args summary{cursor:pointer;list-style:none;display:inline-flex}
.ap-args summary::-webkit-details-marker{display:none}
.ap-args summary::after{content:" ›"}
.ap-args pre{margin:8px 0 0;max-height:180px;overflow:auto;font-family:var(--f-mono);font-size:11.5px;line-height:1.45;padding:9px 10px;border-radius:12px;background:rgba(31,26,36,.06);white-space:pre-wrap;overflow-wrap:anywhere}
.ap.settled{animation:none}
.ap.going{overflow:hidden;opacity:0;margin-bottom:-8px;padding-top:0;padding-bottom:0;transition:height .35s var(--ease),opacity .25s,padding .35s var(--ease),margin .35s var(--ease)}
.ap-btns{display:flex;justify-content:flex-end;gap:8px;margin-top:10px}
.ap-no,.ap-yes{height:36px;padding:0 18px;border-radius:99px;font-size:14px;font-weight:600;transition:transform .2s var(--spring)}
.ap-no{color:#6f6877;background:rgba(31,26,36,.06)}
.ap-yes{background:#1f1a24;color:#fff}
.ap-no:active,.ap-yes:active{transform:scale(.95)}
.ap-state{font-size:13px;font-weight:600;color:#6f6877;padding:8px 4px}
.ap.done{box-shadow:inset 0 0 0 1px rgba(255,255,255,.55),0 0 0 2px rgba(47,158,107,.5)}
.ap.done .ap-k,.ap.running .ap-k{color:#2f7a52}.ap.done .ap-k i{background:#2f9e6b;animation:none}
.ap.denied,.ap.failed{opacity:.7}
/* Note box first, then brief / Your day / approvals below it. */
.notes>.bf-slot{margin-top:10px}
