:root{--ap-bg:#f4f6fa;--ap-surface:#fff;--ap-soft:#f8f9fc;--ap-ink:#151525;--ap-muted:#687086;--ap-border:#dfe3ec;--ap-violet:#6547ed;--ap-teal:#069b9b;--ap-green:#087e5b;--ap-amber:#a76500;--ap-shadow:0 16px 42px rgba(27,28,52,.09)}
*{box-sizing:border-box}body.rc-avery-public{margin:0;min-height:100vh;background:var(--ap-bg);color:var(--ap-ink);font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}.rc-avery-public-topbar{position:sticky;top:0;z-index:20;display:grid;grid-template-columns:1fr auto 1fr;align-items:center;height:72px;padding:0 clamp(18px,3vw,48px);background:rgba(255,255,255,.94);border-bottom:1px solid var(--ap-border);backdrop-filter:blur(16px)}.rc-avery-public-brand img{display:block;width:112px}.rc-avery-public-topbar nav{justify-self:end;display:flex;align-items:center;gap:8px}.rc-avery-public-topbar a{color:var(--ap-ink);text-decoration:none;font-size:14px;font-weight:800;padding:10px 12px;border-radius:6px}.rc-avery-public-topbar a:hover{background:#f0f1f7}.rc-avery-public-topbar .rc-avery-public-start{background:var(--ap-violet);color:#fff}.rc-avery-session-state{display:flex;align-items:center;gap:8px;color:var(--ap-muted);font-size:13px;font-weight:700}.rc-avery-status-dot{width:8px;height:8px;border-radius:50%;background:#21b889;box-shadow:0 0 0 4px rgba(33,184,137,.13)}
.rc-avery-planner{display:grid;grid-template-columns:minmax(0,1fr) minmax(360px,470px);width:min(1480px,calc(100% - 40px));min-height:calc(100vh - 104px);margin:20px auto;overflow:hidden;background:var(--ap-surface);border:1px solid var(--ap-border);border-radius:8px;box-shadow:var(--ap-shadow)}.rc-avery-workspace{min-width:0;padding:clamp(24px,3vw,42px);border-right:1px solid var(--ap-border)}.rc-avery-workspace-head{display:flex;justify-content:space-between;gap:30px;align-items:flex-start;margin-bottom:24px}.rc-eyebrow{margin:0 0 7px;color:var(--ap-violet);font-size:12px;font-weight:900;text-transform:uppercase;letter-spacing:.08em}.rc-avery-workspace-head h1{margin:0;font-size:clamp(30px,4vw,52px);line-height:1.02;letter-spacing:0}.rc-avery-workspace-head p:last-child{max-width:700px;margin:12px 0 0;color:var(--ap-muted);font-size:17px;line-height:1.5}.rc-icon-button{flex:0 0 auto;width:42px;height:42px;border:1px solid var(--ap-border);border-radius:6px;background:#fff;color:var(--ap-ink);font-size:26px;cursor:pointer}.rc-icon-button:hover{border-color:var(--ap-violet);color:var(--ap-violet)}
.rc-avery-motion{display:grid;grid-template-columns:1fr 1fr;gap:8px;padding:5px;margin-bottom:22px;background:#eef0f5;border-radius:7px}.rc-avery-motion button{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border:1px solid transparent;border-radius:5px;background:transparent;color:var(--ap-muted);text-align:left;cursor:pointer}.rc-avery-motion button strong{color:inherit;font-size:15px}.rc-avery-motion button span{font-size:12px}.rc-avery-motion button.is-active{background:#fff;border-color:var(--ap-border);color:var(--ap-ink);box-shadow:0 2px 8px rgba(20,20,40,.06)}
.rc-avery-public-chat{display:flex;flex-direction:column;min-height:520px}.rc-avery-public-messages{display:flex;flex-direction:column;gap:14px;min-height:260px;max-height:43vh;overflow:auto;padding:8px 4px 18px}.rc-avery-msg{max-width:min(760px,88%)}.rc-avery-msg>div{margin:0 0 5px;color:var(--ap-muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.07em}.rc-avery-msg p{margin:0;padding:14px 16px;border:1px solid var(--ap-border);border-radius:7px 7px 7px 2px;background:var(--ap-soft);line-height:1.55;white-space:pre-wrap}.rc-avery-msg.is-user{align-self:flex-end}.rc-avery-msg.is-user>div{text-align:right}.rc-avery-msg.is-user p{border-color:#22202b;border-radius:7px 7px 2px 7px;background:#1d1b25;color:#fff}.rc-avery-thinking{display:flex;align-items:center;gap:5px;margin:0 0 10px;color:var(--ap-muted);font-size:12px}.rc-avery-thinking span{width:6px;height:6px;border-radius:50%;background:var(--ap-violet);animation:averyPulse 1s infinite alternate}.rc-avery-thinking span:nth-child(2){animation-delay:.18s}.rc-avery-thinking span:nth-child(3){animation-delay:.36s}@keyframes averyPulse{to{opacity:.25;transform:translateY(-2px)}}
.rc-avery-public-composer{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:end;gap:10px;padding:9px;border:1px solid #aaa4c2;border-radius:7px;background:#fff;box-shadow:0 8px 24px rgba(30,29,55,.07)}.rc-avery-public-composer:focus-within{border-color:var(--ap-violet);box-shadow:0 0 0 3px rgba(101,71,237,.1)}.rc-avery-public-composer textarea{width:100%;min-height:64px;max-height:160px;padding:13px;border:0;outline:0;resize:none;color:var(--ap-ink);background:transparent;font:inherit;line-height:1.45}.rc-avery-public-composer button{height:46px;padding:0 20px;border:0;border-radius:5px;background:var(--ap-violet);color:#fff;font-weight:900;cursor:pointer}.rc-avery-public-composer button:disabled{opacity:.55;cursor:wait}.rc-avery-public-prompts{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}.rc-avery-public-prompts button{padding:9px 11px;border:1px solid var(--ap-border);border-radius:5px;background:#fff;color:var(--ap-muted);font-size:12px;font-weight:750;cursor:pointer}.rc-avery-public-prompts button:hover{border-color:var(--ap-violet);color:var(--ap-violet)}
.rc-avery-blueprint{min-width:0;padding:clamp(24px,3vw,38px);background:#fafbfe}.rc-avery-blueprint-head{display:flex;justify-content:space-between;gap:18px;align-items:flex-start}.rc-avery-blueprint-head h2{margin:0;font-size:26px;line-height:1.15}.rc-avery-blueprint-head>strong{color:var(--ap-violet);font-size:22px}.rc-avery-progress{height:7px;margin:18px 0 22px;overflow:hidden;border-radius:4px;background:#e5e7ef}.rc-avery-progress span{display:block;width:0;height:100%;background:linear-gradient(90deg,var(--ap-violet),var(--ap-teal));transition:width .25s}.rc-avery-fit{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 0;margin-bottom:8px;border-bottom:1px solid var(--ap-border)}.rc-avery-fit span{color:var(--ap-muted);font-size:12px;font-weight:800}.rc-avery-fit strong{color:var(--ap-violet);font-size:13px}.rc-avery-blueprint-fields{display:grid;gap:0}.rc-avery-blueprint-field{padding:13px 0;border-bottom:1px solid var(--ap-border)}.rc-avery-blueprint-field>div{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:5px}.rc-avery-blueprint-field span{color:var(--ap-muted);font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.05em}.rc-avery-blueprint-field em{padding:3px 6px;border-radius:4px;background:#ececf2;color:#656579;font-size:9px;font-style:normal;font-weight:900;text-transform:uppercase}.rc-avery-blueprint-field em.is-confirmed{background:#dcf6ed;color:var(--ap-green)}.rc-avery-blueprint-field em.is-inferred{background:#fff0d5;color:var(--ap-amber)}.rc-avery-blueprint-field strong{display:block;font-size:14px;line-height:1.35}.rc-avery-blueprint-field strong.is-empty{color:#a0a4b1;font-weight:650}.rc-avery-source-panel{margin-top:16px}.rc-avery-source-panel>button{width:100%;display:flex;justify-content:space-between;padding:10px 0;border:0;background:transparent;color:var(--ap-muted);font-weight:800;cursor:pointer}.rc-avery-source-panel article{padding:10px;border:1px solid var(--ap-border);background:#fff;margin-top:6px}.rc-avery-source-panel article strong,.rc-avery-source-panel article small{display:block}.rc-avery-source-panel article small{margin-top:3px;color:var(--ap-muted);overflow-wrap:anywhere}.rc-avery-handoff{margin-top:20px;padding:18px;border:1px solid #cfcaef;border-radius:7px;background:#f1efff}.rc-avery-handoff span{color:var(--ap-green);font-size:11px;font-weight:900;text-transform:uppercase}.rc-avery-handoff h3{margin:5px 0 7px;font-size:20px}.rc-avery-handoff p{margin:0;color:var(--ap-muted);font-size:13px;line-height:1.45}.rc-avery-handoff button{width:100%;margin-top:14px;padding:13px;border:0;border-radius:5px;background:var(--ap-violet);color:#fff;font-weight:900;cursor:pointer}.rc-avery-handoff small{display:block;margin-top:8px;color:var(--ap-muted);text-align:center}
@media(max-width:1050px){.rc-avery-planner{grid-template-columns:1fr}.rc-avery-workspace{border-right:0;border-bottom:1px solid var(--ap-border)}.rc-avery-public-messages{max-height:48vh}.rc-avery-blueprint{display:grid;grid-template-columns:1fr 1fr;gap:0 28px}.rc-avery-blueprint-head,.rc-avery-progress,.rc-avery-fit{grid-column:1/-1}.rc-avery-handoff{align-self:start;margin-top:0}}
@media(max-width:700px){.rc-avery-public-topbar{grid-template-columns:1fr auto;height:64px;padding:0 14px}.rc-avery-session-state{display:none}.rc-avery-public-topbar nav a:first-child{display:none}.rc-avery-planner{width:100%;margin:0;border:0;border-radius:0;box-shadow:none}.rc-avery-workspace,.rc-avery-blueprint{padding:22px 16px}.rc-avery-workspace-head h1{font-size:34px}.rc-avery-motion{grid-template-columns:1fr}.rc-avery-public-chat{min-height:500px}.rc-avery-public-messages{max-height:none}.rc-avery-public-composer{position:sticky;bottom:8px}.rc-avery-public-composer button{padding:0 14px}.rc-avery-blueprint{display:block}.rc-avery-handoff{margin-top:18px}}

/* v9.8.1 Plan with Avery: Avery-first planning, no manual product switcher, no forced uppercase chat text. */
body.rc-avery-public .rc-eyebrow,
body.rc-avery-public .rc-avery-msg>div,
body.rc-avery-public .rc-avery-blueprint-field span,
body.rc-avery-public .rc-avery-blueprint-field em,
body.rc-avery-public .rc-avery-handoff span,
body.rc-avery-public .rc-avery-source-panel>button{
  text-transform:none!important;
  letter-spacing:0!important;
}
body.rc-avery-public .rc-eyebrow{font-size:13px;font-weight:850;color:var(--ap-violet)}
body.rc-avery-public .rc-avery-msg>div{font-size:12px;font-weight:850;color:var(--ap-muted)}
body.rc-avery-public .rc-avery-public-composer textarea,
body.rc-avery-public .rc-avery-public-composer textarea::placeholder{font:inherit;text-transform:none!important;letter-spacing:0!important}
body.rc-avery-public .rc-avery-public-prompts button{text-transform:none!important;letter-spacing:0!important;border-radius:999px;padding:10px 13px;background:#fff}
body.rc-avery-public .rc-avery-blueprint-field span{font-size:12px;font-weight:850;color:#596176}
body.rc-avery-public .rc-avery-blueprint-field em{font-size:10px;font-weight:850;border-radius:999px;padding:4px 8px;background:#f0f1f6;color:#6b7280}
body.rc-avery-public .rc-avery-blueprint-field em.is-needs_input{background:#f0f1f6;color:#6b7280}
body.rc-avery-public .rc-avery-fit strong{color:#596176}
body.rc-avery-public .rc-avery-fit strong:not(:empty){font-weight:850}
body.rc-avery-public .rc-avery-motion{display:none!important}

/* v9.8.2 agentic planner surfaces */
body.rc-avery-public .rc-avery-agent-state,
body.rc-avery-public .rc-avery-brief-card,
body.rc-avery-public .rc-avery-action-preview{margin:14px 0;padding:14px;border:1px solid var(--ap-border);border-radius:8px;background:#fff;box-shadow:0 6px 18px rgba(30,29,55,.045)}
body.rc-avery-public .rc-avery-agent-state strong,
body.rc-avery-public .rc-avery-brief-card h3,
body.rc-avery-public .rc-avery-action-preview h3{display:block;margin:0 0 10px;color:var(--ap-ink);font-size:14px;font-weight:850;text-transform:none;letter-spacing:0}
body.rc-avery-public .rc-avery-agent-state div{display:flex;flex-wrap:wrap;gap:7px}
body.rc-avery-public .rc-avery-agent-state span{display:inline-flex;align-items:center;gap:5px;padding:6px 8px;border-radius:999px;background:#f2f3f8;color:#667085;font-size:11px;font-weight:750;text-transform:none;letter-spacing:0}
body.rc-avery-public .rc-avery-agent-state span:before{content:"";width:6px;height:6px;border-radius:50%;background:#a0a4b1}
body.rc-avery-public .rc-avery-agent-state span.is-complete{background:#e9f8f1;color:#157a55}
body.rc-avery-public .rc-avery-agent-state span.is-complete:before{background:#21b889}
body.rc-avery-public .rc-avery-agent-state span.is-active{background:#f0edff;color:var(--ap-violet)}
body.rc-avery-public .rc-avery-agent-state span.is-active:before{background:var(--ap-violet);box-shadow:0 0 0 4px rgba(101,71,237,.12)}
body.rc-avery-public .rc-avery-brief-card p{display:grid;grid-template-columns:110px minmax(0,1fr);gap:12px;margin:9px 0;color:var(--ap-muted);font-size:12px;line-height:1.35}
body.rc-avery-public .rc-avery-brief-card p span{font-weight:800;color:#7b8190;text-transform:none;letter-spacing:0}
body.rc-avery-public .rc-avery-brief-card p strong{font-size:13px;color:var(--ap-ink);font-weight:800}
body.rc-avery-public .rc-avery-action-preview article{padding:10px 0;border-top:1px solid var(--ap-border)}
body.rc-avery-public .rc-avery-action-preview article:first-of-type{border-top:0}
body.rc-avery-public .rc-avery-action-preview article strong{display:inline-block;color:var(--ap-ink);font-size:13px;font-weight:850}
body.rc-avery-public .rc-avery-action-preview article span{float:right;padding:3px 7px;border-radius:999px;background:#f0f1f6;color:#6b7280;font-size:10px;font-weight:800;text-transform:none;letter-spacing:0}
body.rc-avery-public .rc-avery-action-preview article p{clear:both;margin:5px 0 0;color:var(--ap-muted);font-size:12px;line-height:1.45}

/* v9.8.3 Avery Canvas preview + 50% save CTA */
body.rc-avery-public .rc-avery-canvas-preview{margin:14px 0;padding:15px;border:1px solid rgba(30,29,55,.10);border-radius:14px;background:linear-gradient(135deg,#fffaf3,#f6f8ff);box-shadow:0 12px 34px rgba(30,29,55,.07)}
body.rc-avery-public .rc-avery-canvas-preview-head{display:flex;justify-content:space-between;gap:14px;align-items:flex-start;margin-bottom:12px}
body.rc-avery-public .rc-avery-canvas-preview-head h3{margin:0 0 5px;font-size:16px;letter-spacing:-.02em;color:var(--ap-ink)}
body.rc-avery-public .rc-avery-canvas-preview-head p{margin:0;color:var(--ap-muted);font-size:12px;line-height:1.4}
body.rc-avery-public .rc-avery-canvas-preview-head strong{border-radius:999px;padding:7px 9px;background:#1d1b25;color:#fff;font-size:12px;white-space:nowrap}
body.rc-avery-public .rc-avery-mini-map{position:relative;height:180px;border:1px solid rgba(30,29,55,.09);border-radius:14px;overflow:hidden;background:linear-gradient(rgba(30,29,55,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(30,29,55,.04) 1px,transparent 1px),#fff;background-size:30px 30px;margin-bottom:12px}
body.rc-avery-public .rc-avery-mini-map span{position:absolute;left:var(--x);top:var(--y);transform:translate(-50%,-50%);max-width:112px;min-width:84px;border:1px solid rgba(30,29,55,.12);border-radius:13px;padding:8px 9px;background:#fff;box-shadow:0 10px 24px rgba(30,29,55,.10);font-size:11px;color:var(--ap-muted);text-align:center;line-height:1.2}
body.rc-avery-public .rc-avery-mini-map span b{display:block;color:var(--ap-ink);font-size:11px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.rc-avery-public .rc-avery-mini-map span.is-attention,body.rc-avery-public .rc-avery-mini-map span.is-blocked{border-color:#f3c3bd;background:#fff5f3}
body.rc-avery-public .rc-avery-mini-map span.is-research_ready,body.rc-avery-public .rc-avery-mini-map span.is-research_workspace{border-color:#bde6e3;background:#f0fffe}
body.rc-avery-public .rc-avery-canvas-layers{display:flex;flex-wrap:wrap;gap:7px}
body.rc-avery-public .rc-avery-canvas-layers span{border-radius:999px;background:#fff;border:1px solid rgba(30,29,55,.10);padding:6px 8px;color:#596176;font-size:11px;font-weight:750}
body.rc-avery-public .rc-avery-handoff{border-color:#dac6a8;background:linear-gradient(135deg,#fff7ea,#f2efff)}
body.rc-avery-public .rc-avery-handoff button{background:#1d1b25;border-radius:999px;color:#fff}
