/* V1: plan creation and service delivery. Historical records remain untouched. */
.v1-rail-header{display:flex;align-items:center;justify-content:space-between;gap:8px;min-height:36px;flex-shrink:0}
.c-rail .v1-rail-header{margin-bottom:18px}
.v1-rail-header .c-brand,.v1-rail-header .logo{padding:0;min-width:0}
.v1-rail-header .v1-rail-toggle{display:grid;place-items:center;align-self:center;flex:0 0 32px;width:32px;height:32px;padding:0;border-color:transparent;color:#93a7c0}
.v1-rail-header .v1-rail-toggle:hover{background:#ffffff10;color:#edf6ff;border-color:#405773}
.v1-rail-header .v1-rail-toggle:focus-visible{outline:2px solid #a3edd6;outline-offset:2px}
.v1-rail-toggle[aria-expanded=false] svg{transform:scaleX(-1)}
.rail-collapsed .v1-rail-header,.merchant-rail-collapsed .v1-rail-header{gap:3px}
.rail-collapsed .v1-rail-header .c-brand span,.merchant-rail-collapsed .v1-rail-header .mark{width:20px;height:26px;border-radius:7px;font-size:12px;flex-shrink:0}
.rail-collapsed .v1-rail-header .v1-rail-toggle,.merchant-rail-collapsed .v1-rail-header .v1-rail-toggle{width:28px;height:32px;flex-basis:28px}
@media(max-width:760px){.c-rail .v1-rail-header{gap:3px}.v1-rail-header .c-brand strong{display:none}.v1-rail-header .c-brand span{width:20px;height:26px;border-radius:7px;font-size:12px}.c-rail .v1-rail-header .v1-rail-toggle{width:28px;flex-basis:28px}}
@media(max-width:900px){.sidebar .v1-rail-header{gap:3px}.sidebar .v1-rail-header .logo>div:nth-child(2){display:none}.sidebar .v1-rail-header .mark{width:20px;height:26px;border-radius:7px;font-size:12px}.sidebar .v1-rail-header .v1-rail-toggle{width:28px;flex-basis:28px}}
.flowdo-v1{background:#101725}.flowdo-v1 .c-rail{background:linear-gradient(165deg,#131d32,#111827);color:#c4d2e5;border-color:#25314a}
.flowdo-v1 .c-brand,.flowdo-v1 .c-account strong{color:#f3f7ff}.flowdo-v1 .c-nav button{color:#9cacbf}.flowdo-v1 .c-nav button.active{background:#273752;color:#b8f3e0}.flowdo-v1 .c-history-head,.flowdo-v1 .c-chat-row{color:#acbed5}.flowdo-v1 .c-history{border-color:#2d3951}
.flowdo-v1 .c-main{background:radial-gradient(ellipse at top right,#cff0e744,transparent 55%),#edf1f7}.flowdo-v1 .c-home-grid{grid-template-columns:1fr}.flowdo-v1 .c-growth-rail,.flowdo-v1 [data-view-jump=growth],.flowdo-v1 #growth,.flowdo-v1 #library,.flowdo-v1 #chat{display:none!important}
.flowdo-v1 .c-agent-stage{background:radial-gradient(ellipse at 50% 15%,#213c51,#101a2e 70%);border-color:#304963;color:#f4f8ff;min-height:610px}.flowdo-v1 .c-agent-title p{color:#a8c2d5}.flowdo-v1 .c-agent-title h2{color:#fff}.flowdo-v1 .c-agent-title small{color:#7ce0c1}.flowdo-v1 .c-starter-row button{background:#ffffff0d;color:#d8e9ef;border-color:#415265}
.v1-rail-toggle{background:transparent;color:#7d9bb6;border:1px solid #34455e;border-radius:8px;padding:8px;cursor:pointer;align-self:flex-end}.flowdo-v1.rail-collapsed .c-app{grid-template-columns:68px minmax(0,1fr)}.rail-collapsed .c-rail{padding:12px 8px}.rail-collapsed .c-brand strong,.rail-collapsed .c-nav span,.rail-collapsed .c-nav em,.rail-collapsed .c-history,.rail-collapsed .c-account>span:nth-child(2){display:none}.rail-collapsed .c-new-chat{font-size:0}.rail-collapsed .c-new-chat span{font-size:22px}.rail-collapsed .c-nav button{display:flex;justify-content:center}.v1-notification-trigger{background:transparent;border:0;padding:12px;color:#a8c2d5;cursor:pointer;display:flex;gap:10px}.rail-collapsed .v1-notification-trigger>span:nth-child(2){display:none}
.flowdo-v1 .c-security-item:has(#consumerWechatStatus){display:none!important}
body:has(.merchant-only) [data-view=team],body:has(.merchant-only) [data-view=agentRuns],body:has(.merchant-only) .expert-nav-link{display:none!important}
body:has(.merchant-only) .sidebar{background:linear-gradient(160deg,#14283a,#101725);border-color:#283f52}
.merchant-rail-collapsed .app{grid-template-columns:76px minmax(0,1fr)}.merchant-rail-collapsed .sidebar{padding:18px 10px}.merchant-rail-collapsed .logo>div:nth-child(2),.merchant-rail-collapsed .nav-title,.merchant-rail-collapsed .nav button span{display:none}.merchant-rail-collapsed .nav button{justify-content:center;font-size:20px}
.delivery-panel-collapsed .client-main{display:none}.delivery-panel-collapsed .client-shell{grid-template-columns:1fr}.delivery-panel-collapsed .client-side{max-width:850px;width:100%}
[hidden]{display:none!important}
.flowdo-v1 .v1-notification-trigger{position:fixed;right:18px;top:12px;z-index:50;border:1px solid #d4deeb;background:#fff;color:#425974;border-radius:50%;width:38px;height:38px;justify-content:center;align-items:center;padding:0;box-shadow:0 4px 15px #10203912}.flowdo-v1 .v1-notification-trigger>span:nth-child(2){display:none}.flowdo-v1 .v1-notification-trigger b{position:absolute;right:-3px;top:-3px}
@media(prefers-reduced-motion:reduce){.flowdo-v1 *{animation:none!important;transition:none!important}}
/* Focused home: one composer, no greeting/banner or outer card. */
html[data-flowdo-theme] .flowdo-v1 #home .c-agent-stage{min-height:calc(100dvh - 110px);padding:24px 0;border:0;border-radius:0;box-shadow:none;background:transparent}
.flowdo-v1 #home .c-agent-stage:before{display:none}
.flowdo-v1 #home .c-home-grid{display:block}
html[data-flowdo-theme] .flowdo-v1 #homeComposer{width:min(820px,100%);border:0;box-shadow:none}
.flowdo-v1 #homeComposer textarea{min-height:150px}
.flowdo-v1 #homeComposer .home-plan-actions{gap:10px;justify-content:flex-start}
.flowdo-v1 #homeComposer .home-plan-actions>span{margin-left:auto}
.flowdo-v1 #homeComposer input[hidden]{display:none}
.flowdo-v1 #homeComposer .home-plan-attachments{display:flex;justify-content:flex-start;flex-wrap:wrap;gap:8px;padding:0 16px}
.home-plan-attachments>span{display:flex;gap:8px;align-items:center;min-width:0;max-width:100%;padding:4px 8px;border-radius:8px;background:var(--fd-soft);color:var(--fd-text);font-size:12px}
.home-plan-attachments>span>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.flowdo-v1 #homeComposer .home-plan-attachments button{width:24px;height:24px;flex-shrink:0;font-size:16px;background:transparent;color:var(--fd-muted)}
#homePlanStatus{font-size:12px;color:var(--fd-accent);padding:0 18px;margin:4px 0}
#homePlanStatus:empty{display:none}
.home-plan-help{display:block;padding:4px 18px 14px;color:var(--fd-muted);font-size:10px;line-height:1.6}
.c-appearance{margin-bottom:18px}.c-appearance p{color:var(--fd-muted);font-size:12px}
