/* STROGIS.AI — redesign layer styles (paired with redesign.js). Same navy /
   champagne palette as index.html; calmer spacing, one dock, tabs. */
.rd .internal-nav{display:none}
.rd main{padding-bottom:120px}
.rd #alert-stack{bottom:96px}
@media(max-width:850px){.rd #alert-stack{bottom:96px}}
.rd #note-fab{display:none!important}

/* ---- shared bits */
.rd-cap{color:#8a9bb5;font-size:12px;letter-spacing:.14em;text-transform:uppercase;margin:2px 0 6px}
.rd-h1{font-size:30px;line-height:1.12;margin:0 0 6px;letter-spacing:-.01em;color:#f1f5fb}
.rd-sub{color:#aebbd0;margin:0 0 14px;font-size:15px}
.rd-sec{display:flex;align-items:baseline;justify-content:space-between;margin:22px 0 10px}
.rd-sec h2{font-size:17px;margin:0;color:#f1f5fb}
.rd-sec span{color:#8a9bb5;font-size:13px;display:flex;gap:10px;align-items:center}
.rd-sec a{color:#8a9bb5;cursor:pointer}.rd-sec a:hover{color:#e6c48c}
.rd-scope{background:#111f30;color:#dbe4ee;border:1px solid #2a3a4c;border-radius:9px;padding:4px 8px;font-size:13px}
.rd-empty{color:#8a9bb5;font-size:14px;margin:4px 0 0}
.rd-orb{width:34px;height:34px;border-radius:50%;background:radial-gradient(circle at 35% 30%,#fff3d6,#e6c48c 55%,#c9a55e);display:grid;place-items:center;color:#2a1d05;font-size:15px;flex:none;box-shadow:0 0 0 4px rgba(230,196,140,.12)}
.rd-orb.sm{width:28px;height:28px;font-size:12px}
.rd-dot{width:7px;height:7px;border-radius:50%;background:#5fd39a;display:inline-block;margin-left:2px}
.rd-tag{display:inline-block;white-space:nowrap;font-size:11px;padding:2px 8px;border-radius:999px;background:rgba(230,196,140,.12);color:#e6c48c;letter-spacing:.02em}
.rd-tag.red{background:rgba(255,107,107,.14);color:#ff9b9b}.rd-tag.green{background:rgba(95,211,154,.14);color:#5fd39a}.rd-tag.blue{background:rgba(120,160,255,.14);color:#a9c0ff}.rd-tag.amber{background:rgba(246,179,90,.16);color:#f6b35a}
.rd-chip{border:1px solid #e6c48c;color:#e6c48c;border-radius:999px;padding:7px 12px;font-size:13px;font-weight:600;background:transparent;cursor:pointer}
.rd-chip.solid{background:#e6c48c;color:#241a06}
.rd-pill{display:inline-flex;align-items:center;gap:6px;font-size:12.5px;color:#c7d2e3;background:#111f30;border:1px solid #2a3a4c;border-radius:999px;padding:5px 10px;margin:8px 8px 0 0;white-space:nowrap}
.rd-pill.rd-stage{cursor:pointer;color:#e6c48c;border-color:#6d5b40}
.rd-bar{display:flex;gap:4px;margin-top:12px}.rd-bar i{flex:1;height:4px;border-radius:2px;background:#2a3a4c}.rd-bar i.on{background:#e6c48c}
.rd-bar-labels{display:flex;justify-content:space-between;font-size:11px;color:#8a9bb5;margin-top:5px;gap:6px}.rd-bar-labels span{flex:1;text-align:center}.rd-bar-labels span:first-child{text-align:left}.rd-bar-labels span:last-child{text-align:right}
.rd-foot{color:#8a9bb5;font-size:12.5px;text-align:center;margin:26px 0 0}.rd-foot a{color:#8a9bb5;cursor:pointer}.rd-foot a:hover{color:#e6c48c}
.rd-actions{display:flex;gap:8px;margin:10px 0 12px;flex-wrap:wrap}

/* ---- Mission Control */
.rd-home{max-width:720px}
.rd-say{display:flex;gap:12px;align-items:flex-start;background:linear-gradient(180deg,#182b4b,#132340);border:1px solid #2a3a4c;border-radius:20px;padding:14px;margin:14px 0 6px;box-shadow:0 10px 30px rgba(0,0,0,.25);cursor:pointer}
.rd-say-body{flex:1;min-width:0}
.rd-who{font-size:12px;color:#8a9bb5;margin-bottom:4px;display:flex;gap:6px;align-items:center}
.rd-say-text{font-size:15px;line-height:1.45;color:#eef3fa}.rd-say-text p{margin:0 0 6px}.rd-say-text ul{margin:4px 0 6px;padding-left:18px}.rd-say-text li{margin:2px 0}
.rd-acts{display:flex;gap:8px;margin-top:10px;flex-wrap:wrap}
.rd-row{display:flex;gap:12px;align-items:flex-start;padding:12px 14px;background:#111f30;border:1px solid #2a3a4c;border-radius:16px;margin-bottom:8px}
.rd-ck{width:24px;height:24px;border-radius:8px;border:2px solid #8a9bb5;background:transparent;flex:none;margin-top:1px;cursor:pointer}.rd-ck:hover{border-color:#5fd39a}
.rd-q{width:24px;height:24px;border-radius:8px;background:rgba(230,196,140,.12);color:#e6c48c;display:grid;place-items:center;font-weight:700;flex:none;font-size:13px}
.rd-t{flex:1;min-width:0;cursor:pointer}.rd-t b{display:block;font-weight:600;color:#f1f5fb}.rd-t small{color:#8a9bb5;font-size:12.5px}.rd-t .warn{color:#ff9b9b}
.rd-go{color:#e6c48c;font-size:13px;font-weight:600;white-space:nowrap;background:none;border:0;cursor:pointer;padding:2px 0}
.rd-balls{display:flex;gap:10px;overflow:auto;margin:0 -18px;padding:0 18px 6px;scrollbar-width:none}.rd-balls::-webkit-scrollbar{display:none}
.rd-ball{flex:none;width:210px;background:#111f30;border:1px solid #2a3a4c;border-radius:16px;padding:12px;cursor:pointer}
.rd-ball b{display:block;font-size:14px;margin-top:6px;color:#f1f5fb}.rd-ball small{color:#8a9bb5;font-size:12px;display:block;margin-top:2px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-until{margin-top:8px;font-size:12px;color:#c7d2e3}.rd-until .warn{color:#f6b35a}
.rd-deal{background:#111f30;border:1px solid #2a3a4c;border-radius:18px;padding:14px;margin-bottom:10px;cursor:pointer;transition:border-color .15s}.rd-deal:hover{border-color:#6d5b40}
.rd-deal-h{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.rd-deal b{font-size:15.5px;line-height:1.3;color:#f1f5fb}
.rd-biz{font-size:11.5px;color:#8a9bb5;letter-spacing:.06em;text-transform:uppercase;margin-bottom:4px}
.rd-where{color:#aebbd0;font-size:13.5px;margin:8px 0 2px}
.rd-meta{display:flex;justify-content:space-between;font-size:12px;color:#8a9bb5;margin-top:8px;gap:8px}

/* ---- Project */
.rd-project{max-width:760px}
.rd-crumb{color:#8a9bb5;font-size:12.5px;margin-top:4px;display:flex;align-items:center;gap:8px}
.rd-back{width:30px;height:30px;border-radius:10px;background:#111f30;border:1px solid #2a3a4c;color:#dbe4ee;font-size:18px;line-height:1;cursor:pointer}
.rd-title{font-size:24px;line-height:1.2;margin:8px 0 2px;color:#f1f5fb;letter-spacing:-.01em}
.rd-pills{display:flex;flex-wrap:wrap}
.rd-menu{display:flex;flex-wrap:wrap;gap:6px;margin-top:10px}.rd-menu button{border:1px solid #2a3a4c;background:#111f30;color:#dbe4ee;border-radius:999px;padding:6px 10px;font-size:12.5px;cursor:pointer}.rd-menu button.on{border-color:#e6c48c;color:#e6c48c}.rd-menu button.muted{color:#8a9bb5}
.rd-stand{background:linear-gradient(180deg,#182b4b,#132340);border:1px solid rgba(230,196,140,.35);border-radius:20px;padding:14px;margin-top:16px}
.rd-k{font-size:11.5px;letter-spacing:.14em;color:#e6c48c;text-transform:uppercase}
.rd-stand h3{margin:6px 0 6px;font-size:17px;line-height:1.3;color:#f1f5fb}
.rd-stand>p{margin:0;color:#aebbd0;font-size:14px}
.rd-waits{margin-top:4px}
.rd-waits .rd-pill{display:flex;white-space:normal;align-items:flex-start;border-radius:12px;max-width:100%;box-sizing:border-box;line-height:1.35;overflow-wrap:anywhere}
.pill{max-width:100%;overflow-wrap:anywhere}
.rd-stand .b-move{margin-top:12px;background:rgba(230,196,140,.08);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:8px}.rd-stand .b-move .tiny{display:none}.rd-stand .b-move strong{font-size:14px;color:#f1f5fb;display:block}.rd-stand .b-move p{margin:2px 0 0;color:#8a9bb5;font-size:12.5px}.rd-stand .b-move .actions{display:flex;gap:8px;flex-wrap:wrap;margin:4px 0 0}
.rd-stand-status .eyebrow{display:none}.rd-stand-status .mini-btn{margin-left:6px}
.rd-move{margin-top:12px;background:rgba(230,196,140,.08);border-radius:14px;padding:10px 12px;display:flex;gap:10px;align-items:center}
.rd-move-t{flex:1;min-width:0}.rd-move-t b{font-size:14px;color:#f1f5fb}.rd-move-t small{display:block;color:#8a9bb5;font-size:12px;margin-top:2px}
.rd-move-acts{display:flex;gap:8px;flex-wrap:wrap;margin-top:10px}
.rd-stand-foot{margin-top:10px;font-size:13px;color:#8a9bb5}.rd-stand-foot a{color:#e6c48c;cursor:pointer}
.rd-fold{margin-top:12px}.rd-fold .card{margin:0;background:transparent;border:0;padding:0}.rd-fold .b-head{display:none}
.rd-tabs{display:flex;gap:4px;border-bottom:1px solid #2a3a4c;margin:18px 0 12px;overflow:auto;scrollbar-width:none}.rd-tabs::-webkit-scrollbar{display:none}
.rd-tab{background:none;border:0;border-bottom:2px solid transparent;color:#8a9bb5;padding:10px 10px;font-size:14px;white-space:nowrap;cursor:pointer;margin-bottom:-1px}
.rd-tab.on{color:#f1f5fb;border-bottom-color:#e6c48c;font-weight:600}
.rd-tab i{font-style:normal;font-size:11px;background:#1b2d47;color:#aebbd0;border-radius:999px;padding:1px 6px;margin-left:3px}
.rd-pane>.card,.rd-pane>.section>.card{margin-top:0;margin-bottom:12px}
.rd-pane .checklist .ck-head h3{font-size:15px}
.rd-pane .section{margin-top:0}
.rd-tl{position:relative;padding-left:22px;margin-top:6px}
.rd-tl:before{content:"";position:absolute;left:7px;top:6px;bottom:0;width:2px;background:#2a3a4c}
.rd-ev{position:relative;padding:0 0 16px;cursor:default}.rd-ev[role=button]{cursor:pointer}
.rd-ev:before{content:"";position:absolute;left:-19px;top:5px;width:10px;height:10px;border-radius:50%;background:#e6c48c;box-shadow:0 0 0 3px #0b1526}
.rd-ev.g:before{background:#5c6d86}
.rd-ev small{color:#8a9bb5;font-size:12px;display:block}.rd-ev b{font-weight:600;font-size:14px;color:#f1f5fb;display:block;margin-top:2px}
.rd-ev-line{margin:4px 0 0;color:#aebbd0;font-size:13.5px}.rd-ev-line b{display:inline;font-size:13.5px;color:#c7d2e3}

/* ---- Dock */
#cmd-bubble .rd-dock{position:fixed;left:14px;right:14px;bottom:14px;display:flex;align-items:center;gap:8px;background:#162741;border:1px solid #2a3a4c;border-radius:999px;padding:6px 6px 6px 16px;box-shadow:0 12px 30px rgba(0,0,0,.4);max-width:720px;margin:0 auto}
@media(min-width:851px){#cmd-bubble .rd-dock{left:auto;right:24px;bottom:22px;width:420px}}
.rd-dock-in{flex:1;min-width:0;background:none;border:0;color:#8a9bb5;font-size:15px;text-align:left;padding:8px 0;cursor:text;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.rd-dock-btn{width:38px;height:38px;border-radius:50%;background:#111f30;border:1px solid #2a3a4c;color:#c7d2e3;font-size:17px;display:grid;place-items:center;cursor:pointer;flex:none}
.rd-dock-orb{position:relative;width:44px;height:44px;border-radius:50%;border:0;background:radial-gradient(circle at 35% 30%,#fff3d6,#e6c48c 55%,#c9a55e);color:#2a1d05;font-size:18px;display:grid;place-items:center;cursor:pointer;flex:none;box-shadow:0 0 0 4px rgba(230,196,140,.14);animation:rdBreathe 4s ease-in-out infinite}
.rd-dock-orb.thinking{animation:rdBreathe 1.2s ease-in-out infinite}
@keyframes rdBreathe{0%,100%{box-shadow:0 0 0 4px rgba(230,196,140,.14)}50%{box-shadow:0 0 0 8px rgba(230,196,140,.07)}}
@media(prefers-reduced-motion:reduce){.rd-dock-orb{animation:none}}
#cmd-bubble:not(.open){position:static;display:block}
@media(max-width:850px){.rd-bar-labels span{display:none}.rd-bar-labels span:first-child,.rd-bar-labels span:last-child{display:block}}
.rd-pane .checklist .ck-head h3{display:none}
.rd-pane .checklist .ck-head{justify-content:flex-end}
/* Phones: tabs. Computers: everything visible in two columns (no tabs). */
.rd-pane-h{display:none;font-size:15px;color:#8a9bb5;letter-spacing:.08em;text-transform:uppercase;margin:6px 0 10px}
@media(min-width:851px){
  .rd-project{max-width:1100px}
  .rd-tabs{display:none}
  .rd-panes{display:grid;grid-template-columns:minmax(0,3fr) minmax(0,2fr);gap:0 20px;grid-auto-flow:dense;align-items:start;margin-top:18px}
  .rd-pane[hidden]{display:block}
  .rd-pane[data-tab=steps],.rd-pane[data-tab=timeline]{grid-column:1}
  .rd-pane[data-tab=knowledge],.rd-pane[data-tab=files],.rd-pane[data-tab=proposal]{grid-column:2}
  .rd-pane-h{display:block}
  .rd-home{max-width:760px}
}
.rd-nudge{display:flex;gap:12px;align-items:center;background:#111f30;border:1px dashed #2a3a4c;border-radius:16px;padding:12px 14px;margin-top:22px;cursor:pointer}.rd-nudge b{display:block;font-size:14px;color:#f1f5fb}.rd-nudge small{color:#8a9bb5;font-size:12.5px}.rd-nudge>div:nth-child(2){flex:1}
/* ---- Light mode (Settings → Appearance) */
:root[data-theme=light] .rd-h1,:root[data-theme=light] .rd-sec h2,:root[data-theme=light] .rd-t b,:root[data-theme=light] .rd-deal b,:root[data-theme=light] .rd-ball b,:root[data-theme=light] .rd-stand h3,:root[data-theme=light] .rd-title,:root[data-theme=light] .rd-ev b,:root[data-theme=light] .rd-tab.on,:root[data-theme=light] .rd-say-text,:root[data-theme=light] .rd-nudge b,:root[data-theme=light] .rd-stand .b-move strong,:root[data-theme=light] .rd-move-t b{color:#13202f}
:root[data-theme=light] .rd-sub,:root[data-theme=light] .rd-where,:root[data-theme=light] .rd-stand>p,:root[data-theme=light] .rd-ev-line,:root[data-theme=light] .rd-until,:root[data-theme=light] .rd-pill,:root[data-theme=light] .rd-dock-btn{color:#3b4a5e}
:root[data-theme=light] .rd-cap,:root[data-theme=light] .rd-sec span,:root[data-theme=light] .rd-t small,:root[data-theme=light] .rd-meta,:root[data-theme=light] .rd-biz,:root[data-theme=light] .rd-ball small,:root[data-theme=light] .rd-who,:root[data-theme=light] .rd-ev small,:root[data-theme=light] .rd-tab,:root[data-theme=light] .rd-foot,:root[data-theme=light] .rd-foot a,:root[data-theme=light] .rd-crumb,:root[data-theme=light] .rd-stand-foot,:root[data-theme=light] .rd-empty,:root[data-theme=light] .rd-dock-in,:root[data-theme=light] .rd-nudge small,:root[data-theme=light] .rd-pane-h,:root[data-theme=light] .rd-bar-labels{color:#5b6b80}
:root[data-theme=light] .rd-row,:root[data-theme=light] .rd-deal,:root[data-theme=light] .rd-ball,:root[data-theme=light] .rd-pill,:root[data-theme=light] .rd-back,:root[data-theme=light] .rd-dock-btn,:root[data-theme=light] .rd-menu button,:root[data-theme=light] .rd-nudge,:root[data-theme=light] .rd-scope{background:#fff;border-color:#d7dee8;color:#13202f}
:root[data-theme=light] .rd-say,:root[data-theme=light] .rd-stand{background:linear-gradient(180deg,#fbf7ee,#fff);border-color:#e6d6b4}
:root[data-theme=light] #cmd-bubble .rd-dock{background:#fff;border-color:#d7dee8;box-shadow:0 12px 30px rgba(20,30,50,.18)}
:root[data-theme=light] .rd-bar i,:root[data-theme=light] .rd-tabs,:root[data-theme=light] .rd-tl:before{background:#d7dee8;border-color:#d7dee8}
:root[data-theme=light] .rd-bar i.on{background:#c9a55e}
:root[data-theme=light] .rd-tab.on{border-bottom-color:#c9a55e}
:root[data-theme=light] .rd-ev:before{box-shadow:0 0 0 3px #f3f5f8}
:root[data-theme=light] .rd-chip,:root[data-theme=light] .rd-go,:root[data-theme=light] .rd-stand-foot a,:root[data-theme=light] .rd-k,:root[data-theme=light] .rd-pill.rd-stage{color:#8a6a1f;border-color:#c9a55e}
:root[data-theme=light] .rd-chip.solid{background:#c9a55e;color:#1b1407}
:root[data-theme=light] .rd-tag{background:rgba(201,165,94,.18);color:#7a5c14}
:root[data-theme=light] .rd-stand .b-move,:root[data-theme=light] .rd-move{background:rgba(201,165,94,.12)}

/* Updates pill: stays put just under the header while the page scrolls, and never covers the header (owner Oct 23 3:19 PM) */
.rd #alert-stack{position:fixed!important;z-index:3!important;top:calc(var(--header-h,118px) + 10px)!important;bottom:auto!important;left:auto!important;right:14px!important;width:auto;max-width:min(380px,calc(100vw - 28px));align-items:flex-end}
.rd #alert-stack.folded{width:auto}
@media(max-width:850px){.rd #alert-stack{top:calc(var(--header-h,118px) + 8px)!important}}
.rd .rd-home .rd-cap,.rd .rd-project .rd-crumb{padding-right:150px}
@media(max-width:850px){.rd .rd-home .rd-cap{padding-right:140px}}

/* Strogis panel in the new style: no duplicate navigation chips, roomier header, ✕ well apart */
.rd .mate-panel>.cmd-chips{display:none}
.rd .mate-panel{background:linear-gradient(180deg,#132340,#0f1c31);border-color:#2a3a4c;border-radius:22px}
.rd .mate-head{gap:12px;padding-right:6px}
.rd .mate-head .cmd-x{width:40px;height:40px;margin-left:6px}
.rd .mate-panel .cmd-row{gap:8px}
.rd .mate-panel .cmd-row .field{border-radius:999px;padding-left:16px}
.rd .mate-panel .cmd-row .btn{border-radius:999px;min-width:44px}
:root.rd[data-theme=light] .mate-panel{background:linear-gradient(180deg,#fff,#f7f3ea);border-color:#e6d6b4}
.rd body:has(#nav.menu-open) #alert-stack,.rd body.rd-mate-open #alert-stack{display:none!important}
.scap-btn{display:grid;place-items:center;cursor:pointer;min-width:44px;border-radius:999px!important;font-size:17px}
.mate-panel.scap-drop{outline:2px dashed #e6c48c;outline-offset:-8px}
#capture-panel.scap-mode label:not(.dropzone),#capture-panel.scap-mode #cap-read,#capture-panel.scap-mode .dropzone,#capture-panel.scap-mode textarea,#capture-panel.scap-mode select,#capture-panel.scap-mode input:not([type=file]){display:none!important}
.scap-head{color:#e6c48c;font-size:14px;margin:6px 0 12px}

/* Reactions (tapbacks) sit on the message they belong to, like iMessage. */
.transcript .msg { position: relative; }
.msg-react { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; font-size: 12px; line-height: 18px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); color: var(--muted, #9fb0c4); vertical-align: middle; white-space: nowrap; }
:root[data-theme="light"] .msg-react { background: #eef1f5; border-color: #d9dee6; color: #4a5566; }
.mate-sources { margin-top: 8px; font-size: 12px; color: var(--muted, #9fb0c4); line-height: 1.6; }
.mate-sources a { color: #e6c48c; text-decoration: underline; }

.rd-since{margin-top:6px;font-size:12.5px;color:var(--muted,#9aa4b2);line-height:1.4}

/* Timestamps in the Strogis chat (owner Oct 22: every exchange timestamped for reference) */
.mate-when{text-align:center;font-size:11.5px;letter-spacing:.02em;color:var(--muted,#9aa4b2);margin:14px 0 6px;opacity:.85}
.mate-time{font-size:11px;color:var(--muted,#9aa4b2);opacity:.75;margin:-4px 0 8px;line-height:1.2}
.mate-time.you{text-align:right;padding-right:6px}
.mate-time.mate{padding-left:52px}

/* Photos he sends to Strogis show in the chat like Messages (owner Oct 22 11:20) */
.mate-photos{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:6px;margin:8px 0 4px}
.mate-photos img{max-width:62%;max-height:260px;border-radius:18px;object-fit:cover;display:block;box-shadow:0 2px 10px rgba(0,0,0,.25)}
.mate-photos img:only-child{max-width:70%}
.mate-photo-missing{font-size:28px;opacity:.6;padding:18px 24px;border-radius:18px;background:rgba(127,127,127,.15)}

/* A picture waiting to be sent sits above the box, like Messages */
.scap-staged{display:flex;align-items:flex-end;gap:8px;flex-wrap:wrap;padding:8px 12px 2px}
.scap-chip{position:relative;display:inline-block}
.scap-chip img{width:64px;height:64px;object-fit:cover;border-radius:12px;display:block;border:1px solid rgba(127,127,127,.35)}
.scap-chip button{position:absolute;top:-6px;right:-6px;width:22px;height:22px;border-radius:50%;border:0;background:#222c3d;color:#fff;font-size:12px;line-height:22px;padding:0;cursor:pointer}
.scap-hint{opacity:.7;margin-left:4px}
.scap-chip.scap-doc{padding:10px 14px;border-radius:12px;border:1px solid rgba(127,127,127,.35);background:rgba(127,127,127,.08);max-width:220px}
.scap-docname{font-size:13px;display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.mate-files{gap:6px}
.mate-file{display:inline-flex;align-items:center;gap:6px;max-width:80%;padding:10px 14px;border-radius:16px;border:1px solid rgba(214,180,120,.55);background:rgba(214,180,120,.14);color:inherit;font:inherit;font-size:14px;cursor:pointer;text-align:left}
.mate-file span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.mate-file i{font-style:normal;opacity:.75;font-size:12px;white-space:nowrap}
.mate-file[disabled]{opacity:.7;cursor:default}
.prop-tailor ol{margin:8px 0 6px 18px;padding:0}
.prop-tailor li{margin:4px 0}
.prop-was{text-decoration:line-through;opacity:.65}

/* Ideas page (Oct 23) */
.idea-group h3 a{cursor:pointer;color:inherit;text-decoration:none}
.idea-row{padding:12px 0;border-top:1px solid rgba(255,255,255,.08)}
.idea-row:first-of-type{border-top:0}
.idea-row p{margin:6px 0;white-space:pre-wrap;overflow-wrap:anywhere}
.idea-row .actions{flex-wrap:wrap}
.idea-undo{display:flex;align-items:center;gap:10px;margin:8px 0 14px;flex-wrap:wrap}
.idea-dropped summary{cursor:pointer}
[data-theme="light"] .idea-row{border-top-color:rgba(0,0,0,.08)}

/* Long deal titles in "Related records" wrap instead of pushing the page wider than the screen (owner Oct 23 audit). */
.row>.recordlink{min-width:0;flex:1 1 0;text-align:left;overflow-wrap:anywhere}
/* To-dos page (Oct 23) */
.todo-link{color:var(--gold,#d6b46a);cursor:pointer;text-decoration:underline;text-underline-offset:2px}
.todo-row.todo-done strong{text-decoration:line-through;opacity:.7}
.todo-donebox summary{cursor:pointer;font-weight:600;padding:10px 0}

/* ===== Strogis chat, Claude-style (owner Oct 24 6:23 PM: "I want the chat for strogis to have more of the look and feel
   of chat in here with Claude. It feels cheap the way it is set up right now.") — Strogis speaks in plain serif text on
   the page (no bubble, no avatar per message), his messages sit in a soft grey bubble, buttons are quiet chips, one
   rounded input box, and the chat fills the phone screen. ===== */
.rd .mate-panel{background:#0f1a2b;border:1px solid #223047;box-shadow:0 24px 60px rgba(0,0,0,.45)}
.rd .mate-head{border-bottom:1px solid rgba(255,255,255,.06);padding-top:12px;padding-bottom:10px}
.rd .mate-head .mate-avatar{width:30px;height:30px;font-size:13px;box-shadow:none}
.rd .mate-name strong{font-size:16px;font-weight:600;letter-spacing:0}
.rd .mate-name .tiny{opacity:.6}
.rd .mate-head .cmd-x{background:transparent;border:0;color:#c9d2de;opacity:.7}
.rd .mate-head .cmd-x:hover{opacity:1;background:rgba(255,255,255,.06)}
.rd .mate-body{padding:18px 18px 8px}
/* Strogis: plain text, no bubble */
.rd .mate-msg{margin:0 0 18px}
.rd .mate-msg.mate{display:block}
.rd .mate-msg.mate .mate-av{display:none}
.rd .mate-text{background:transparent;border:0!important;box-shadow:none;border-radius:0;padding:0;color:#ece6da;
  font-family:"Iowan Old Style","Palatino Linotype",Palatino,Georgia,ui-serif,serif;font-size:17px;line-height:1.6;letter-spacing:.005em}
.rd .mate-text p{margin:0 0 10px}.rd .mate-text ul{margin:6px 0 10px;padding-left:20px}.rd .mate-text li{margin:5px 0}
.rd .mate-text strong{color:#fff;font-weight:600}
.rd .mate-msg.err .mate-text{color:#f0b8ad}
.rd .mate-tag{display:block;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:11.5px;letter-spacing:.08em;text-transform:uppercase;color:#b8a27a;margin:0 0 6px;opacity:.9}
/* His messages: a soft grey bubble on the right */
.rd .mate-msg.you{margin:0 0 6px auto;max-width:85%;width:fit-content;background:#22314a;color:#f2efe8;border-radius:18px;padding:10px 15px;
  font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:16px;line-height:1.45;font-weight:400;box-shadow:none}
.rd .mate-photos img{border-radius:14px;box-shadow:none}
/* Times: quiet */
.rd .mate-when{font-size:11px;opacity:.55;margin:18px 0 12px}
.rd .mate-time{font-size:10.5px;opacity:.45;margin:-12px 0 14px}
.rd .mate-time.you{margin:4px 4px 16px;text-align:right}
.rd .mate-time.mate{padding-left:0}
/* Buttons: quiet chips, not big gold pills */
.rd .mate-acts{gap:8px;margin-top:12px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif}
.rd .mate-act,.rd .mate-act.go{background:rgba(255,255,255,.05);color:#efe7d6;border:1px solid rgba(255,255,255,.14);border-radius:12px;padding:8px 13px;
  font-size:14px;font-weight:500;line-height:1.3;box-shadow:none;text-align:left;max-width:100%}
.rd .mate-act:hover,.rd .mate-act.go:hover{background:rgba(255,255,255,.09);border-color:rgba(230,196,140,.5)}
.rd .mate-act.go{color:#e6c48c}
.rd .mate-did{font-size:13px;font-weight:500;color:#9fd6a8;opacity:.9}
.rd .mate-undo{border:1px solid rgba(255,255,255,.18);color:#d9d2c4;border-radius:10px;padding:4px 10px;font-size:12.5px}
.rd .mate-draft{border:1px solid rgba(255,255,255,.14);background:rgba(255,255,255,.03);border-radius:14px;font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:15px}
.rd .mate-sources{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;font-size:12.5px;opacity:.85}
/* Hear-it button: small, after the text */
.rd .mate-speak{position:static;display:inline-block;margin-top:6px;padding:2px 4px;font-size:13px;opacity:.35;filter:grayscale(1)}
.rd .mate-speak:hover,.rd .mate-speak.on{opacity:.9;filter:none}
/* Follow-up suggestions */
.rd .mate-asks.follow{margin:0 0 16px}
.rd .mate-asks.follow .cmd-chip{background:transparent;border:1px solid rgba(255,255,255,.14);color:#d9d2c4;border-radius:12px;font-size:14px;font-weight:400}
/* One rounded input box; buttons in a row underneath, send in gold */
.rd .mate-panel .cmd-row{flex-wrap:wrap;gap:6px;margin:6px 12px 12px;padding:10px 10px 8px 14px;border:1px solid rgba(255,255,255,.13);border-top:1px solid rgba(255,255,255,.13);
  background:#17243a;border-radius:22px;align-items:center}
.rd .mate-panel .cmd-row .field{flex:1 1 100%;order:0;height:auto;min-height:30px;padding:4px 2px;border:0;background:transparent;box-shadow:none;border-radius:0;
  font-size:16px;color:#f2efe8;outline:none}
.rd .mate-panel .cmd-row textarea.field{resize:none;min-height:30px;line-height:22px;overflow-y:hidden;white-space:pre-wrap;word-wrap:break-word;font-family:inherit;display:block}
.rd .mate-panel .cmd-row .field::placeholder{color:#8f9bad}
.rd .mate-panel .cmd-row .btn{order:1;height:36px;min-width:36px;width:36px;padding:0;border-radius:50%;background:transparent;border:1px solid rgba(255,255,255,.14);color:#c9d2de;font-size:15px;box-shadow:none}
.rd .mate-panel .cmd-row .cmd-mic{margin-left:auto}
.rd .mate-panel .cmd-row .btn[aria-label="Send"]{background:#e6c48c;border-color:#e6c48c;color:#0b1420;font-size:14px}
.rd .mate-panel .cmd-row .btn[aria-label="Send"]:disabled{opacity:.45}
.rd .mate-panel .cmd-row .btn.qn-rec.on{background:#c0533f;border-color:#c0533f;color:#fff}
/* Phone: the chat fills the screen, like this one */
@media(max-width:850px){
  .rd #cmd-bubble.open,.rd #cmd-bubble.open.full{inset:0!important;right:0!important;bottom:0!important;padding:0!important;background:#0f1a2b}
  .rd #cmd-bubble.open .mate-panel{width:100vw!important;height:100vh!important;height:100dvh!important;max-width:none;border-radius:0;border:0;box-shadow:none;padding-top:env(safe-area-inset-top)}
  .rd .mate-panel .cmd-row{margin-bottom:calc(10px + env(safe-area-inset-bottom))}
  .rd .mate-body{padding:16px 16px 6px}
}
/* Light mode */
:root.rd[data-theme=light] .mate-panel{background:#faf8f3;border-color:#e4ddcf}
:root.rd[data-theme=light] .mate-text{color:#2a2620}
:root.rd[data-theme=light] .mate-text strong{color:#14110c}
:root.rd[data-theme=light] .mate-msg.you{background:#ece6da;color:#1f1b14}
:root.rd[data-theme=light] .mate-act,:root.rd[data-theme=light] .mate-act.go{background:#fff;color:#3a3226;border-color:#ddd3c2}
:root.rd[data-theme=light] .mate-act.go{color:#845f21}
:root.rd[data-theme=light] .mate-panel .cmd-row{background:#fff;border-color:#ddd3c2}
:root.rd[data-theme=light] .mate-panel .cmd-row .field{color:#1f1b14}
:root.rd[data-theme=light] .mate-asks.follow .cmd-chip{border-color:#ddd3c2;color:#3a3226}
@media(max-width:850px){:root.rd[data-theme=light] #cmd-bubble.open{background:#faf8f3}}

/* Phone menu opens where you are (owner Oct 24 6:47 PM: scrolled down To-dos, tapped ☰ — only the ✕ appeared, because the
   menu opened at the top of the page, off screen). It now sits right under the header, over the page, with its own scroll. */
@media(max-width:850px){
  .rd #nav.menu-open{position:fixed!important;top:var(--header-h,104px);left:0;right:0;bottom:0;z-index:30;overflow-y:auto;-webkit-overflow-scrolling:touch;
    overscroll-behavior:contain;background:#0b1626;margin:0;padding:12px 16px 120px;box-sizing:border-box;border-top:1px solid rgba(255,255,255,.06)}
  :root.rd[data-theme=light] #nav.menu-open{background:#f6f3ec}
}
#mate-body .mate-link,.mate-link{color:#e6c48c;text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}

/* Home board: working on / keep up on / on the horizon (owner Oct 25) */
.rd-board{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:14px 0 4px}
.rd-col{border:1px solid var(--line,rgba(255,255,255,.1));border-radius:14px;padding:12px 14px;min-width:0}
.rd-col h3{font-size:11px;letter-spacing:.08em;text-transform:uppercase;opacity:.7;margin:0 0 8px;font-weight:600}
.rd-col ul{list-style:none;margin:0;padding:0}.rd-col li{padding:7px 0;border-top:1px solid var(--line,rgba(255,255,255,.07));cursor:pointer;overflow-wrap:anywhere}
.rd-col li:first-child{border-top:0}.rd-col li b{display:block;font-size:14px;font-weight:600}.rd-col li small{display:block;font-size:12px;opacity:.7;margin-top:2px}
.rd-col .rd-more{font-size:12px;cursor:pointer;opacity:.8}.rd-col .rd-empty{font-size:13px;margin:4px 0}
@media (max-width:850px){.rd-board{grid-template-columns:1fr}}

/* Deal card meta: the stage never wraps word by word (audit Oct 25) */
.rd-meta span:first-child{white-space:nowrap;flex:none}

/* Waiting-on pills in the briefing wrap as tidy blocks, not broken capsules (audit Oct 25) */
.b-wait{display:flex;flex-wrap:wrap;gap:6px}.b-wait .pill{white-space:normal;border-radius:10px;line-height:1.35;padding:5px 9px;text-align:left}

/* Saved items: one short line, tap to read it all (owner Oct 25 4:02 PM) */
.mate-did-x{display:block}.mate-did-x>summary{cursor:pointer;list-style:none}.mate-did-x>summary::-webkit-details-marker{display:none}
.mate-did-x .mate-more{font-size:12px;opacity:.65;text-decoration:underline;margin-left:4px}.mate-did-x[open] .mate-more{display:none}
.mate-did-full{margin:6px 0 4px 18px;font-size:14px;line-height:1.5;opacity:.9;overflow-wrap:anywhere}
/* No cut-off names (owner standard, audit Oct 25): sidebar deals and "who has the ball" lines wrap instead of "…" */
.np-title{white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3}
.rd-ball small{white-space:normal;overflow:visible;text-overflow:clip}
/* Oct 26 clean-up: nothing on a deal page may be wider than the phone. Long client names wrap inside their chip, and the
   tab row scrolls inside its own box instead of pushing the page sideways. */
.rd-pill{max-width:100%;box-sizing:border-box;white-space:normal;overflow-wrap:anywhere;line-height:1.35}
.rd-tabs{max-width:100%;min-width:0;box-sizing:border-box}
#main,.rd-rec{min-width:0;max-width:100%}
/* Oct 26 clean-up: the phone menu is the five places at the top, then your projects — no stretched gaps. */
@media (max-width:850px){
  .rd #nav.menu-open{align-content:start;grid-auto-rows:auto}
  .rd #nav.menu-open .nav-projects{order:99;margin-top:14px;padding-top:12px;border-top:1px solid rgba(255,255,255,.08)}
}
:root.rd[data-theme=light] #nav.menu-open .nav-projects{border-top-color:#d7dee8}

/* Opened updates make room instead of covering the page (owner Oct 26): the panel sits at the top of the page, scrolls with it,
   and the page starts below it. */
.rd body.rd-alerts-open #alert-stack{position:absolute!important}
.rd body.rd-alerts-open #main::before{content:"";display:block;height:calc(var(--rd-alerts-h,0px) + 14px)}

/* Strogis's whisper sits above the Ask bar, never on top of it (owner Oct 27 7:19 AM screenshot). */
.rd .mate-whisper{right:14px!important;bottom:84px!important;max-width:min(320px,calc(100vw - 28px))}
@media(min-width:851px){.rd .mate-whisper{right:24px!important;bottom:92px!important}}

/* Emails Strogis writes: To / Subject / message on the card, sent from his Gmail on one tap (Nov 2). */
.mate-email label { display: block; margin: 6px 0; }
.mate-email .field { width: 100%; box-sizing: border-box; margin-top: 3px; font-size: 15px; }
.mate-email textarea.field { min-height: 150px; line-height: 1.45; }
.mail-files { margin: 6px 0; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.mail-file { border: 1px solid rgba(127,127,127,.35); border-radius: 999px; padding: 2px 4px 2px 10px; overflow-wrap: anywhere; }
.mail-file .mate-x { background: none; border: 0; color: inherit; cursor: pointer; padding: 0 4px; }
html:not(.one) header{padding-top:calc(14px + env(safe-area-inset-top))}
