html,body{margin:0;padding:0;background:#eef0f4;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
.zp-root *{box-sizing:border-box}
.zp-root a{color:#7c3aed;text-decoration:none}
.zp-root a:hover{color:#5b21b6}
.zp-root input,.zp-root textarea,.zp-root select,.zp-root button{font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
.zp-root input:focus,.zp-root textarea:focus{outline:2px solid #7c3aed55;outline-offset:0;border-color:#a78bfa}
.zp-root ::-webkit-scrollbar{width:10px;height:10px}
.zp-root ::-webkit-scrollbar-thumb{background:#c9cfd9;border-radius:6px;border:2px solid #eef0f4}
.zp-root ::-webkit-scrollbar-track{background:transparent}

@keyframes zpFadeUp{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.zp-fade-up{animation:zpFadeUp .15s ease}

.zp-root{height:100vh;display:flex;flex-direction:column;font-family:Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:#1a1f26;background:#eef0f4;overflow:hidden}

/* Header */
.zp-header{height:60px;background:#fff;border-bottom:1px solid #e2e5ec;display:flex;align-items:center;gap:12px;padding:0 18px;flex-shrink:0;z-index:30}
.zp-logo{display:flex;align-items:center;gap:10px;cursor:pointer}
.zp-badge{font-size:10px;font-weight:700;color:#7c3aed;background:#f1eafd;border-radius:99px;padding:3px 9px;letter-spacing:.05em;text-transform:uppercase}
.zp-header-spacer{flex:1}
.zp-header-actions{display:flex;align-items:center;gap:10px;margin-right:14px}
.zp-header-btn{display:flex;align-items:center;gap:7px;height:34px;padding:0 15px;border-radius:9px;cursor:pointer;background:transparent;border:1px solid #dde1e9;color:#3a4150;font-size:12.5px;font-weight:700;white-space:nowrap;font-family:inherit}
.zp-header-btn:hover{border-color:#7c3aed;color:#7c3aed}
/* Disabled header buttons (e.g. Test process while a build is still running) read as inert rather
   than clickable - the Publish button has its own disabled rule below that this must not fight. */
.zp-header-btn[disabled]{cursor:not-allowed;opacity:.4}
.zp-header-btn[disabled]:hover{border-color:#dde1e9;color:#3a4150}
.zp-header-btn-published{color:#065f46;border-color:#bbf1dd;background:#f0fdf6}
/* The version pill before there is a process to version: the application is a working, unpublished
   thing from the moment it exists, but there is no history behind it yet - so it reads the same and
   simply does not invite a click. */
.zp-header-btn-static{cursor:default;color:#8b93a1}
.zp-header-btn-static:hover{border-color:#dde1e9;color:#8b93a1}
.zp-header-btn-published:hover{border-color:#059669;color:#059669}
.zp-header-btn-past{color:#3730a3;border-color:#d9dbfa;background:#f6f6ff}
.zp-header-btn-past:hover{border-color:#4338ca;color:#4338ca}
/* A retired process has no version to act on - the pill is an inert badge, not a dropdown. Muted
   lavender so it reads as "set aside" rather than as a live Working/Published state. */
.zp-header-btn-retired{cursor:default;color:#6b6786;border-color:#e2ddf2;background:#f1edfb;letter-spacing:.04em;font-size:11px}
.zp-header-btn-retired:hover{border-color:#e2ddf2;color:#6b6786}
.zp-header-publish-btn{color:#fff;background:#7c3aed;border-color:#7c3aed}
.zp-header-publish-btn:hover{color:#fff;background:#6d28d9;border-color:#6d28d9}
.zp-header-publish-btn[disabled]{cursor:not-allowed;opacity:.4;background:transparent;color:#3a4150}
.zp-header-publish-btn[disabled]:hover{border-color:#dde1e9;color:#3a4150;background:transparent}
.zp-header-publish-locked,.zp-header-publish-locked:hover{cursor:not-allowed;opacity:.4;background:transparent;color:#3a4150;border-color:#dde1e9}
.zp-header-publish-lockwrap{position:relative;display:inline-flex}
.zp-header-publish-lockwrap::after{content:attr(data-tip);position:absolute;top:calc(100% + 8px);right:0;z-index:1000;width:max-content;max-width:260px;padding:7px 10px;border-radius:6px;background:#1f2430;color:#fff;font-size:12px;font-weight:500;line-height:1.4;white-space:normal;text-align:left;box-shadow:0 4px 14px rgba(0,0,0,.18);opacity:0;visibility:hidden;pointer-events:none;transition:opacity .12s ease}
.zp-header-publish-lockwrap:hover::after,.zp-header-publish-lockwrap:focus-within::after{opacity:1;visibility:visible}
.zp-user{display:flex;align-items:center;gap:9px;padding-left:12px;border-left:1px solid #e8eaf0;cursor:pointer;border-radius:8px}
/* signed in through Proxy Login: the account dropdown's "Proxied by <original>" line */
.zp-dp-proxy{color:#b45309}
.zp-user:hover{background:#f6f4fb}
.zp-user-wrap{position:relative}
.zp-user-caret{font-size:20px;line-height:1;color:#8b93a1}
/* billing plan under the user's name, links to the pricing page (designerPlan.js) */
.zp-user-plan{display:inline-block;margin-top:3px;font-size:10px;font-weight:700;color:#7c3aed;background:#f1eafd;border-radius:99px;padding:1px 8px;letter-spacing:.04em;text-transform:uppercase;text-decoration:none}
.zp-user-plan:hover{background:#e6dafb;text-decoration:underline}
.zp-user-plan-unlimited,.zp-user-plan-unlimited:hover{cursor:default;background:#f1eafd;text-decoration:none}
/* account dropdown: "Current plan" label, badge + "View plan details" link (designerPlan.js#planDetailsTemplate) */
.zp-dp-plan{margin-top:12px}
.zp-dp-plan-label{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#687588;margin-bottom:5px}
.zp-dp-plan-row{display:flex;align-items:center;justify-content:space-between;gap:10px}
.zp-dp-plan .zp-user-plan{margin-top:0;font-size:11px;padding:2px 10px;cursor:default}
.zp-dp-plan .zp-user-plan:hover{background:#f1eafd;text-decoration:none}
.zp-dp-plan-link{font-size:12.5px;font-weight:600;color:#7c3aed;text-decoration:none;white-space:nowrap}
.zp-dp-plan-link:hover{text-decoration:underline}
.zp-menu-backdrop{position:fixed;inset:0;z-index:40}
.zp-user-menu{position:absolute;top:calc(100% + 8px);right:0;width:300px;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 10px 15px -3px rgba(16,24,40,.1),0 4px 6px -4px rgba(16,24,40,.1);z-index:41;overflow:hidden;text-align:left}
.zp-user-menu-identity{padding:14px 18px 12px}
.zp-user-menu-name{font-size:16px;font-weight:700;color:#1a1c1e;line-height:1.3;word-break:break-word}
.zp-user-menu-role{margin-top:2px;font-size:13px;color:#687588}
.zp-user-menu-usage{padding:12px 18px;border-top:1px solid #eaecf0}
.zp-user-menu-usage .zp-credits-card{margin-bottom:0}
.zp-user-menu-label{font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3;margin-bottom:8px}
.zp-user-menu-actions{padding:4px;border-top:1px solid #eaecf0}
.zp-user-menu-item{display:block;width:100%;text-align:left;background:none;border:0;font:inherit;font-size:14px;color:#1a1c1e;padding:10px 14px;border-radius:4px;cursor:pointer}
.zp-user-menu-item:hover{background:#f7fafc}
.zp-avatar{width:30px;height:30px;border-radius:99px;background:#241c3d;color:#fff;display:flex;align-items:center;justify-content:center;font-size:11.5px;font-weight:600}
.zp-avatar-photo{overflow:hidden;background:#eceef3}
.zp-avatar-photo img{width:100%;height:100%;object-fit:cover;display:block}
.zp-form-error{font-size:12px;color:#c1392b;background:#fdeceb;border-radius:8px;padding:8px 11px;margin-bottom:14px}
.zp-link{font-size:12.5px;font-weight:600;color:#7c3aed;text-decoration:none}
.zp-link:hover{text-decoration:underline}

/* Home */
.zp-home{flex:1;overflow-y:auto;background:#eef0f4}
.zp-prod-block{max-width:460px;margin:90px auto 0;text-align:center;background:#fff;border:1px solid #fecaca;border-radius:18px;box-shadow:0 14px 34px rgba(150,20,20,.10);padding:40px 36px}
.zp-prod-block-title{font-size:20px;font-weight:800;color:#b91c1c;letter-spacing:-.01em}
.zp-prod-block p{font-size:13.5px;color:#5b6472;margin:10px 0 22px}
.zp-home-hero{background:transparent}
.zp-home-hero-inner{max-width:1060px;margin:0 auto;padding:64px 40px 52px;text-align:center}
.zp-home-hero h1{font-size:34px;font-weight:800;letter-spacing:-.025em;margin:0}
.zp-home-hero p{font-size:14.5px;color:#5b6472;margin:12px auto 26px;max-width:680px;text-wrap:pretty}
.zp-prompt-box{max-width:640px;margin:0 auto;position:relative}
.zp-prompt-card{background:#fff;border:1px solid #dcd7ee;border-radius:18px;box-shadow:0 14px 34px rgba(60,40,120,.10);padding:18px 18px 14px;text-align:left}
.zp-prompt-card textarea{width:100%;border:none;outline:none;resize:none;font-size:15px;line-height:1.5;font-family:inherit;color:#1a1f26;background:transparent}
.zp-prompt-card textarea:focus{outline:none;border:none}
.zp-prompt-toolbar{display:flex;align-items:center;justify-content:space-between;margin-top:8px}
/* Home prompt: the tools on the left (Prompt library, Attach document) and the attached document's chip */
.zp-prompt-tools{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.zp-prompt-attachment{display:inline-flex;align-items:center;gap:8px;max-width:100%;margin:6px 0 2px;padding:6px 8px 6px 10px;border:1px solid #e4dcf7;border-radius:9px;background:#faf8ff;font-size:12.5px;color:#2d2240}
.zp-prompt-attachment-name{font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-prompt-attachment-size{color:#8b93a1;flex:0 0 auto}
.zp-prompt-attachment-remove{flex:0 0 auto;width:22px;height:22px;border:0;border-radius:6px;background:none;color:#8b93a1;font-size:16px;line-height:1;cursor:pointer}
.zp-prompt-attachment-remove:hover{background:#efe9f8;color:#2d2240}
/* the document on a sent message */
.zp-chat-attachment{display:inline-block;margin:0 0 6px;padding:3px 8px;border-radius:7px;background:rgba(255,255,255,.22);font-size:12px;font-weight:600}
.zp-lib-btn{height:32px;padding:0 12px;border:1px solid #e2e5ec;border-radius:9px;background:#fbfaff;cursor:pointer;font-size:12px;font-weight:600;color:#5b6472;display:flex;align-items:center;gap:6px}
.zp-lib-btn:hover{background:#f3f0fb;color:#7c3aed}
.zp-lib-dropdown{position:absolute;top:38px;left:0;width:560px;max-width:calc(100vw - 32px);max-height:480px;overflow-y:auto;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 16px 40px rgba(20,12,50,.18);padding:14px 16px 10px;z-index:40;text-align:left}
.zp-lib-tabs{display:flex;flex-wrap:wrap;gap:8px;padding-bottom:12px;border-bottom:1px solid #eceaf5}
.zp-lib-tab{height:32px;padding:0 16px;border:1px solid #e2e5ec;border-radius:999px;background:#fff;cursor:pointer;font-size:13px;font-weight:600;color:#5b6472;white-space:nowrap}
.zp-lib-tab:hover{background:#f3f0fb;color:#7c3aed}
.zp-lib-tab.is-active{background:#7c3aed;border-color:#7c3aed;color:#fff}
.zp-lib-items{padding-top:6px}
.zp-lib-item{padding:12px 6px;border-radius:8px;cursor:pointer;line-height:1.35}
.zp-lib-item-title{font-size:14px;font-weight:700;color:#1a1f26}
.zp-lib-item-text{margin-top:4px;font-size:13px;line-height:1.5;color:#3d4452}
.zp-lib-item:hover{background:#f3f0fb}
.zp-lib-item:hover .zp-lib-item-title{color:#7c3aed}
.zp-build-btn{height:34px;padding:0 18px;border:none;border-radius:9px;background:#7c3aed;color:#fff;font-size:12.5px;font-weight:700;cursor:pointer}
.zp-build-btn:hover{background:#6d28d9}
.zp-build-btn:disabled{opacity:.45;cursor:default}
.zp-build-btn:disabled:hover{background:#7c3aed}

.zp-home-apps{max-width:1060px;margin:0 auto;padding:32px 40px 60px}
/* Retired processes get their own section below the active ones, set off by a divider and reading a
   touch quieter - they are out of service, not what you came here to work on. */
.zp-home-retired{padding-top:8px;padding-bottom:60px;border-top:1px solid #eceef3}
.zp-home-apps-title{display:flex;align-items:baseline;gap:10px;margin-bottom:16px}
.zp-home-apps-title h2{font-size:16px;font-weight:700;margin:0}
.zp-home-apps-title span{font-size:12px;color:#8b93a1}
.zp-app-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:18px}
.zp-apps-empty{font-size:13px;color:#8b93a1;padding:24px 0}
.zp-app-card{background:#fff;border:1px solid #e2e5ec;border-radius:14px;overflow:hidden;cursor:pointer;box-shadow:0 1px 2px rgba(20,24,32,.04);transition:box-shadow .15s,border-color .15s}
.zp-app-card:hover{border-color:#c4b5f0;box-shadow:0 8px 22px rgba(60,40,120,.10)}
.zp-app-thumb{height:132px;background:#f4f2fa;padding:16px 20px;display:flex;align-items:flex-end;justify-content:center}
.zp-app-thumb-card{width:100%;max-width:190px;background:#fff;border:1px solid #e6e3f0;border-radius:8px 8px 0 0;padding:10px 12px;display:flex;flex-direction:column;gap:6px}
.zp-app-thumb-dots{display:flex;gap:4px;margin-bottom:2px}
.zp-app-thumb-dots span{width:6px;height:6px;border-radius:99px}
.zp-app-thumb-bar{border-radius:3px}
.zp-app-body{padding:14px 16px;border-top:1px solid #eceef3}
.zp-app-name-row{display:flex;align-items:center;justify-content:space-between;gap:8px}
.zp-app-name{font-size:14px;font-weight:700;letter-spacing:-.01em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-app-building-badge{flex-shrink:0;display:flex;align-items:center;gap:5px;font-size:10px;font-weight:700;color:#7c3aed;background:#f1eafd;border-radius:99px;padding:3px 9px 3px 7px;white-space:nowrap}
.zp-app-building-spinner{width:8px;height:8px;border-radius:99px;border:1.5px solid #dcc9f7;border-top-color:#7c3aed;animation:spin .6s linear infinite}
.zp-app-process-count{font-size:11.5px;color:#5b6472;margin-top:3px}
.zp-app-chips{display:flex;flex-wrap:wrap;gap:5px;margin-top:8px}
.zp-app-chip{font-size:10.5px;font-weight:600;color:#5b6472;background:#f3f5f8;border:1px solid #e8eaf0;border-radius:99px;padding:2px 8px}
.zp-app-modified{font-size:11px;color:#8b93a1;margin-top:9px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}

/* Process card thumbnail: the flow itself, in miniature. Mirrors the canvas's step cards
   (.zp-flow-kicker / .zp-flow-title in designerFlow.css) at card scale, so the same process reads
   the same on both screens. The kicker reuses the canvas's own per-type colour classes. */
.zp-proc-thumb{height:132px;background:#f4f2fa;padding:12px 16px;display:flex;flex-direction:column;align-items:center;justify-content:flex-start;overflow:hidden}
.zp-proc-thumb-empty{align-items:center;justify-content:center}
.zp-proc-thumb-none{font-size:11.5px;color:#a0a7b4;font-style:italic}
.zp-proc-thumb-skeleton{width:60%;height:10px;border-radius:4px;background:#e9e4f5}
.zp-proc-thumb-step{width:100%;max-width:170px;background:#fff;border:1px solid #e6e3f0;border-radius:7px;padding:5px 9px;flex-shrink:0}
.zp-proc-thumb-kicker{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size:7.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#a184e4;line-height:1.3}
.zp-proc-thumb-title{font-size:10px;font-weight:700;color:#1a1f26;line-height:1.35;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-proc-thumb-link{width:1.5px;height:6px;background:#dcd6ea;flex-shrink:0}
.zp-proc-thumb-more{font-size:9.5px;font-weight:700;color:#8b93a1;margin-top:5px;flex-shrink:0}
/* Start-form thumbnail: the real form rendered at 2x width then scaled to half, so it reads as a
   miniature page; clipped by the thumb's fixed height. */
.zp-proc-thumb-form{display:block;position:relative;padding:12px 16px 0;pointer-events:none;user-select:none}
.zp-proc-thumb-page{width:200%;transform:scale(.5);transform-origin:top left;background:#fff;border:2px solid #e6e3f0;border-top:5px solid #7c3aed;border-radius:14px;overflow:hidden}
.zp-proc-thumb-page-head{padding:14px 28px;border-bottom:1px solid #eef0f4;font-size:17px;font-weight:800;color:#1a1f26;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-form-content.zp-proc-thumb-page-body{overflow:visible;padding:18px 28px}
.zp-proc-card-desc{font-size:11.5px;color:#5b6472;line-height:1.4;margin-top:5px;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.zp-proc-chip{font-size:10.5px;font-weight:600;color:#5b6472;background:#f3f5f8;border:1px solid #e8eaf0;border-radius:99px;padding:2px 8px}
.zp-proc-chip-published{color:#15803d;background:#eefbf2;border-color:#cdeed9}
.zp-proc-chip-building{color:#b45309;background:#fff7e6;border-color:#f6dfb0;display:inline-flex;align-items:center;gap:6px}
#zpHeaderBuildingChip{cursor:pointer}
#zpHeaderBuildingChip:hover{background:#ffefcc}
.zp-proc-chip-spinner{width:9px;height:9px;border:2px solid #f0c987;border-top-color:#b45309;border-radius:50%;animation:zpProcChipSpin .8s linear infinite}
/* the version the detail screen is on, beside the process title in the header (version history is in the "..." menu) */
.zp-version-chip{font-size:11px;font-weight:700;color:#5b21b6;background:#f3f0fb;border:1px solid #e2d9f7;border-radius:99px;padding:3px 9px;white-space:nowrap;flex-shrink:0}
.zp-version-chip-published{color:#15803d;background:#eefbf2;border-color:#cdeed9}
.zp-version-chip-past{color:#3730a3;background:#f6f6ff;border-color:#d9dbfa}
.zp-version-chip-retired{color:#6b6786;background:#f1edfb;border-color:#e2ddf2;letter-spacing:.04em;text-transform:uppercase}
@keyframes zpProcChipSpin{to{transform:rotate(360deg)}}
/* A supporting process the assistant created to make another one work - see isAIGeneratedProcess. */
.zp-proc-chip-ai{color:#6d28d9;background:#f4efff;border-color:#e2d6fb}
.zp-app-card-busy{opacity:.65;pointer-events:none}

/* Modal */
.zp-modal-overlay{position:fixed;inset:0;background:rgba(24,18,44,.45);z-index:80;display:flex;align-items:center;justify-content:center}
.zp-modal{width:520px;background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(20,12,50,.35);padding:28px}
.zp-modal-title{font-size:20px;font-weight:800;letter-spacing:-.015em}
.zp-modal-desc{font-size:12.5px;color:#5b6472;margin:6px 0 20px;text-wrap:pretty}
.zp-field-group{display:flex;flex-direction:column;gap:14px}
.zp-field-row{display:flex;gap:12px}
.zp-field-row .zp-field{flex:1;min-width:0}
.zp-field{display:flex;flex-direction:column;gap:6px}
.zp-field label{font-size:11.5px;font-weight:600;color:#5b6472}
.zp-field input{height:42px;border:1px solid #dde1e9;border-radius:10px;padding:0 13px;font-size:13.5px;background:#fbfcfe}
.zp-field select{height:42px;border:1px solid #dde1e9;border-radius:10px;padding:0 13px;font-size:13.5px;background:#fbfcfe;cursor:pointer}
.zp-field textarea{border:1px solid #dde1e9;border-radius:10px;padding:10px 13px;font-size:13.5px;background:#fbfcfe;resize:vertical;line-height:1.45}
.zp-modal-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:22px}
.zp-btn-secondary{height:40px;padding:0 16px;border:1px solid #dde1e9;border-radius:10px;background:#fff;cursor:pointer;font-size:13px;font-weight:600;color:#3a4150}
.zp-btn-secondary:hover{background:#f3f5f8}
.zp-btn-primary{height:40px;padding:0 20px;border:none;border-radius:10px;background:#7c3aed;color:#fff;cursor:pointer;font-size:13px;font-weight:700}
.zp-btn-primary:hover{background:#6d28d9}
.zp-btn-primary:disabled{opacity:.45;cursor:default}
.zp-btn-primary:disabled:hover{background:#7c3aed}
/* Loading state (e.g. publishing): stays full-colour with a spinner while disabled, rather than
   dimming like an inert disabled button. Reuses the `spin` keyframe defined further down. */
.zp-btn-primary.zp-btn-loading,.zp-btn-primary.zp-btn-loading:disabled{opacity:1;cursor:default;display:inline-flex;align-items:center;justify-content:center;gap:8px}
.zp-btn-spinner{display:inline-block;width:13px;height:13px;border:2px solid rgba(255,255,255,.45);border-top-color:#fff;border-radius:99px;animation:spin .6s linear infinite}
.zp-btn-danger{background:#dc2626}
.zp-btn-danger:hover{background:#b91c1c}

/* Sign-in */
.zp-signin-wrap{flex:1;display:flex;align-items:center;justify-content:center;background:linear-gradient(180deg,#f7f5fc 0%,#eef0f4 100%)}
.zp-signin-card{width:380px;background:#fff;border:1px solid #dcd7ee;border-radius:18px;box-shadow:0 14px 34px rgba(60,40,120,.10);padding:30px}
.zp-signin-logo{display:flex;align-items:center;gap:9px;font-size:17px;letter-spacing:-.01em;margin-bottom:22px}
.zp-signin-title{font-size:19px;font-weight:800;letter-spacing:-.015em}
.zp-signin-sub{font-size:12.5px;color:#5b6472;margin:6px 0 18px;text-wrap:pretty;line-height:1.5}
.zp-signin-error{font-size:12px;color:#c1392b;background:#fdeceb;border-radius:8px;padding:8px 11px;margin-bottom:14px}
.zp-signin-error a{color:#c1392b;font-weight:700;text-decoration:underline;cursor:pointer}
.zp-signin-card .zp-field{margin-bottom:14px}
.zp-signin-btn{width:100%;margin-top:4px}
.zp-checkbox-row{display:flex;align-items:center;gap:8px;font-size:12.5px;color:#3a4150;margin-bottom:16px;cursor:pointer}
.zp-checkbox-row input{width:15px;height:15px;cursor:pointer}
.zp-signin-switch{font-size:12.5px;color:#5b6472;text-align:center;margin-top:16px}
.zp-signin-switch a{color:#7c3aed;font-weight:600;text-decoration:none;cursor:pointer}
.zp-signin-switch a:hover{text-decoration:underline}
.zp-label-row{display:flex;justify-content:space-between;align-items:baseline}
.zp-label-aside{font-size:12.5px;color:#5b6472}
.zp-label-aside a{color:#7c3aed;font-weight:600;text-decoration:underline;cursor:pointer}

/* Header breadcrumb (detail screen) */
.zp-breadcrumb{display:flex;align-items:center;gap:10px;margin-left:6px}
.zp-breadcrumb-sep{color:#c9cfd9}
.zp-breadcrumb-app{font-weight:600;font-size:14px;color:#5b6472}
.zp-breadcrumb-app-link{cursor:pointer;border-radius:6px;padding:2px 6px;margin:-2px -6px}
.zp-breadcrumb-app-link:hover{color:#7c3aed;background:#f3f0fb}
.zp-proc-switch{position:relative;display:inline-flex}
.zp-proc-switch-btn{background:none;border:0;font:inherit;font-weight:600;font-size:14px;color:#5b6472;cursor:pointer;border-radius:6px;padding:2px 6px;margin:-2px -6px;display:inline-flex;align-items:center;gap:5px}
.zp-proc-switch-btn:hover,.zp-proc-switch-btn[aria-expanded="true"]{color:#7c3aed;background:#f3f0fb}
.zp-proc-switch-caret{font-size:10px}
.zp-proc-switch-menu{position:absolute;top:calc(100% + 8px);left:-6px;min-width:260px;max-width:360px;background:#fff;border:1px solid #d1d5db;border-radius:8px;box-shadow:0 10px 15px -3px rgba(16,24,40,.1),0 4px 6px -4px rgba(16,24,40,.1);z-index:41;padding:6px}
.zp-proc-switch-label{font-size:11px;font-weight:700;color:#8b93a1;text-transform:uppercase;letter-spacing:.04em;padding:6px 8px 4px}
.zp-proc-switch-item{display:flex;align-items:center;gap:8px;width:100%;text-align:left;background:none;border:0;font:inherit;font-size:13.5px;color:#1a1c1e;padding:8px;border-radius:6px;cursor:pointer}
.zp-proc-switch-item:hover{background:#f3f0fb}
.zp-proc-switch-item-current{font-weight:600}
.zp-proc-switch-name{flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-proc-switch-tag{font-size:10.5px;font-weight:700;color:#5b21b6;background:#f3f0fb;border:1px solid #e2d9f7;border-radius:99px;padding:1px 7px}
.zp-proc-switch-check{color:#7c3aed}

/* Application Detail (page 2) */
.zp-detail{flex:1;display:flex;flex-direction:column;min-height:0}

.zp-proc-switcher{height:56px;background:#f6f3fe;border-bottom:1px solid #e6ddf7;display:flex;align-items:center;gap:8px;padding:0 20px;flex-shrink:0}
.zp-proc-switcher-status{font-size:12.5px;color:#8b93a1;padding:0 4px}
.zp-proc-switcher-spacer{flex:1;min-width:12px}
.zp-global-data-btn{display:flex;align-items:center;gap:7px;height:32px;padding:0 13px;border:1px solid #e0d8f3;border-radius:9px;background:transparent;cursor:pointer;font-size:12.5px;font-weight:700;color:#5b6472;flex-shrink:0}
.zp-global-data-btn:hover{background:#fff;border-color:#c4b5f0;color:#5b21b6}
.zp-global-data-btn-active{background:#fff;border-color:#7c3aed;color:#5b21b6;box-shadow:0 0 0 2px rgba(124,58,237,.14)}
.zp-global-data-btn-icon{font-size:11px;line-height:1;color:#7c3aed}
.zp-proc-dot{width:7px;height:7px;border-radius:99px;background:#c9cfd9;flex-shrink:0}

/* The Process button wears .zp-global-data-btn too, so the four buttons on this bar are one
   toggle group rather than a heading next to three pills - everything below is only what Process
   needs ON TOP of that shared pill (a width cap for a long label, and the just-changed flash). Do
   not restate the pill's own border/padding/type here: these rules come later in the file and would
   silently win, which is how the two drifted apart in the first place.
   The dropdown that used to hang off this button is gone - see processSwitcherTemplate. */
.zp-proc-switcher-title{max-width:360px;transition:background .3s,box-shadow .3s,border-color .15s}
.zp-proc-switcher-title-updated{background:#f1eafd;border-color:#7c3aed;box-shadow:0 0 0 2px rgba(124,58,237,.18)}
.zp-proc-switcher-title span:last-child{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-proc-btn{display:flex;align-items:center;gap:7px;padding:10px 16px;border-radius:10px;cursor:pointer;background:#fff;border:1px solid #dcd2f5;color:#3a2a66;font-size:12.5px;font-weight:700;flex-shrink:0;margin-right:8px;white-space:nowrap}
.zp-proc-btn:hover{border-color:#7c3aed;color:#7c3aed}
.zp-history-wrap{position:relative;display:flex;flex-shrink:0}
.zp-history-dropdown{position:absolute;top:44px;right:0;width:300px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 16px 40px rgba(20,12,50,.18);padding:8px;z-index:40;max-height:340px;overflow-y:auto}
.zp-history-group-label{font-size:10px;font-weight:800;color:#9583c4;letter-spacing:.06em;text-transform:uppercase;padding:8px 11px 4px}
.zp-history-item{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:9px 11px;border-radius:9px;cursor:pointer;font-size:12.5px;font-weight:600;color:#1a1f26}
.zp-history-item:hover{background:#f3f0fb}
.zp-history-item-active{background:#f3f0fb;color:#7c3aed}
.zp-history-item-date{font-size:10.5px;font-weight:500;color:#8b93a1;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
.zp-history-item-name{white-space:nowrap;flex:1}
/* Publish, moved off the header into the version dropdown, INLINE on the right of the working
   version row. Compact purple pill; disabled (checked out, mid-build, nothing new to publish) reads
   as inert. flex-shrink:0 keeps it from being squeezed by the name/date to its left. */
.zp-history-publish-btn{flex-shrink:0;height:26px;padding:0 12px;border-radius:7px;border:1px solid #7c3aed;background:#7c3aed;color:#fff;font-size:11.5px;font-weight:700;cursor:pointer;font-family:inherit;white-space:nowrap}
.zp-history-publish-btn:hover{background:#6d28d9;border-color:#6d28d9}
.zp-history-publish-btn[disabled]{cursor:not-allowed;opacity:.4;background:transparent;color:#3a4150;border-color:#dde1e9}
.zp-history-publish-btn[disabled]:hover{background:transparent;color:#3a4150;border-color:#dde1e9}
.zp-publish-btn{padding:10px 18px;border-radius:10px;cursor:pointer;background:#7c3aed;border:none;color:#fff;font-size:12.5px;font-weight:700;flex-shrink:0}
.zp-publish-btn:hover{background:#6d28d9}
.zp-edit-btn{background:#1a1f26}
.zp-edit-btn:hover{background:#000}
.zp-checkout-label{font-size:12px;font-weight:700;color:#92400e;background:#fef3d6;border-radius:10px;padding:9px 14px;flex-shrink:0;white-space:nowrap}
.zp-proc-btn:disabled,.zp-publish-btn:disabled{opacity:.5;cursor:default;pointer-events:none}
.zp-discard-btn{color:#b91c1c;border-color:#f3c9c9}
.zp-discard-btn:hover{background:#fef2f2;border-color:#dc2626;color:#dc2626}

.zp-detail-body{flex:1;display:flex;min-height:0}

.zp-detail-sidebar{width:196px;background:#fff;border-left:1px solid #E7E4EF;flex-shrink:0;display:flex;flex-direction:column;padding:14px 10px;gap:4px}
.zp-back-link{display:flex;align-items:center;gap:8px;background:none;border:none;cursor:pointer;color:#8b93a1;font-size:12px;font-weight:600;padding:6px 10px;margin-bottom:8px;text-align:left}
.zp-back-link:hover{color:#7c3aed}
.zp-browse-label{padding:2px 10px 8px}
.zp-browse-label-title{font-size:10px;font-weight:800;color:#8b93a1;letter-spacing:.08em;text-transform:uppercase}
.zp-browse-label-sub{font-size:10.5px;color:#aeb6c2;margin-top:2px}
.zp-detail-tab{display:flex;align-items:center;gap:9px;padding:8px 12px;border-radius:9px;cursor:pointer;color:#5b6472}
.zp-detail-tab:hover{background:#f3f0fb}
.zp-detail-tab-active{background:#f1eafd;color:#5b21b6;font-weight:700}
.zp-detail-tab-icon{font-size:13px;line-height:1;width:18px;text-align:center}
.zp-detail-tab-label{font-size:12.5px;flex:1}
.zp-detail-tab-count{font-size:10.5px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;color:#8b93a1;background:#eef0f4;border-radius:99px;padding:1px 7px}
/* Global Data / Dashboards fill the same rail with their own artifacts, one row each, so a long
   object name has to truncate rather than wrap the row to two lines and break the rhythm of the
   list. The note is what stands in for the rows while they load or when there are none. */
.zp-detail-tab-label{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-browse-rail-note{font-size:11.5px;color:#aeb6c2;padding:8px 12px}

/* ===== Components rail (designerDetail.js#detailTabsTemplate) =====
   The right-hand panel of the process screen, after the "components rail" design: four section
   headings (How it starts / How it runs / What people use / Behind the scenes), each with group rows
   (purple icon + title + blurb + count pill + chevron) that list their artifacts inline. Collapses to a
   72px strip of icon buttons, one per group, with a count badge. Values are the mockup's. */
.zp-browse-rail{width:320px;padding:0;gap:0;overflow:hidden}
/* Collapsed strips (this rail and the chat's): the same 56px top bar as the chat header - a 36px button
   centred in 10px padding, then a full-width rule - with Tutorials under it. */
.zp-browse-rail-collapsed{width:56px;align-items:center;gap:6px;padding:0}
.zp-browse-rail-collapsed>.zp-browse-collapse-btn,.zp-chat-panel-collapsed>.zp-chat-collapse-toggle{width:36px;height:36px;border-radius:8px;margin:10px 0 4px}   /* 10+36+4 + the 6px gap = the chat header's 56px */
.zp-browse-rail-collapsed>.zp-rail-divider,.zp-chat-panel-collapsed>.zp-rail-divider{width:100%;margin:0 0 6px}
.zp-browse-scroll{flex:1;min-height:0;overflow-y:auto;padding:4px 12px 20px;display:flex;flex-direction:column;gap:4px}

/* The open/close button - 44px square, bordered, the same on both renderings. */
.zp-browse-collapse-btn{flex:none;width:44px;height:44px;display:flex;align-items:center;justify-content:center;border:1px solid #E7E4EF;border-radius:10px;background:#fff;color:#4A4560;cursor:pointer;font:inherit}
.zp-browse-collapse-btn:hover{background:#F4F2F9;color:#5B21B6;border-color:#D9D4E6}

/* Collapsed strip: a divider under the open button, then the Tutorials button (icon only). */
.zp-rail-divider{display:block;width:32px;height:1px;background:#EFEDF5;margin:6px 0;flex:none}
.zp-rail-divider-foot{margin-top:auto}
.zp-rail-mini{width:44px;min-height:44px;flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;padding:6px 0;border:0;border-radius:10px;background:transparent;color:#6D28D9;cursor:pointer;font:inherit}
.zp-rail-mini:hover{background:#F5F3FF;color:#6D28D9}
.zp-rail-mini-on{background:#F1EAFE;color:#5B21B6}
.zp-rail-mini-icon{position:relative;display:flex}
.zp-rail-mini-count{position:absolute;top:-8px;right:-12px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:#7C3AED;color:#fff;font-size:11px;font-weight:600;display:flex;align-items:center;justify-content:center;box-sizing:border-box}
.zp-rail-mini-label{font-size:11px;font-weight:500;line-height:1.2}

/* Heading row: title + blurb, Show all (only while focused on one group), the collapse button. */
/* the open panel's heading is the same 56px bar as the chat header, its button the same 36px */
.zp-browse-overview-row{display:flex;align-items:center;gap:8px;min-height:56px;padding:10px 14px 10px 20px;border-bottom:1px solid #EFEDF5;flex:none}
.zp-browse-overview-row .zp-browse-collapse-btn{width:36px;height:36px;border-radius:8px}
.zp-browse-overview{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.zp-browse-overview-label{font-size:15px;font-weight:700;color:#1E1B2E;line-height:1.3}
.zp-browse-overview-sub{font-size:12px;color:#6B6680}
.zp-browse-showall{flex:none;height:32px;padding:0 10px;border:0;border-radius:8px;background:#F4F2F9;color:#6D28D9;font-size:12px;font-weight:600;cursor:pointer;font:inherit;font-size:12px;font-weight:600}
.zp-browse-showall:hover{background:#EDE6FD}

/* "You are in a sub process" card above the sections (browseSubProcessBannerTemplate). */
.zp-browse-subproc{margin:12px 0 0;padding:10px 12px;border:1px solid #D9CCFA;border-left:4px solid #6D28D9;border-radius:10px;background:#F6F2FE;display:flex;flex-direction:column;gap:2px}
.zp-browse-subproc-tag{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#5B21B6}
.zp-browse-subproc-name{font-size:15px;font-weight:700;color:#1E1B2E;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-browse-subproc-sub{font-size:12px;color:#6B6680}
.zp-browse-item.zp-browse-subproc-back{min-height:32px;margin-top:6px;padding:4px 8px;width:auto;align-self:flex-start;background:#fff;border:1px solid #D9CCFA;color:#5B21B6;font-size:13px;font-weight:600}
.zp-browse-item.zp-browse-subproc-back:hover{background:#EDE6FD}

.zp-browse-divider{height:1px;background:#EFEDF5;margin:8px 8px 0}

.zp-browse-section{display:flex;flex-direction:column;gap:2px;padding-top:12px}
.zp-browse-section-title{font-size:11px;font-weight:700;letter-spacing:.1em;text-transform:uppercase;color:#6B6680;padding:0 8px}

.zp-browse-group-wrap{display:flex;flex-direction:column}
.zp-browse-group{width:100%;display:flex;align-items:center;gap:10px;min-height:44px;padding:4px 8px;border:0;border-radius:8px;background:transparent;cursor:pointer;text-align:left;font:inherit;color:#1E1B2E}
/* (The JS still adds .zp-browse-group-active; it carries no styling, as in the mockup - only the
   artifact rows and the collapsed strip's buttons show the selection.) */
.zp-browse-group:hover{background:#F4F2F9}
.zp-browse-group-icon{flex:none;width:18px;height:18px;display:flex;align-items:center;justify-content:center;font-size:14px;line-height:1;color:#6D28D9}
.zp-browse-group-text{flex:1;min-width:0;display:flex;flex-direction:column}
.zp-browse-group-label{font-size:15px;font-weight:600;line-height:1.3}
.zp-browse-group-desc{font-size:12px;line-height:1.35;color:#6B6680}
.zp-browse-group-count{flex:none;min-width:22px;height:22px;padding:0 6px;border-radius:11px;background:#EDE6FD;color:#5B21B6;font-size:12px;font-weight:600;display:flex;align-items:center;justify-content:center}
.zp-browse-group-chev{flex:none;display:flex;color:#6B6680;transition:transform .15s}
.zp-browse-group-chev-open{transform:rotate(90deg)}

/* Artifact rows: name over a meta line, indented under the group icon; the one open on the right is tinted. */
.zp-browse-items{display:flex;flex-direction:column;gap:2px;padding:0 0 4px 28px}
.zp-browse-item{width:100%;display:flex;flex-direction:column;min-width:0;min-height:44px;justify-content:center;padding:4px 10px;border:0;border-radius:8px;background:transparent;cursor:pointer;text-align:left;font:inherit;color:#1E1B2E}
.zp-browse-item:hover{background:#F4F2F9}
.zp-browse-item-active{background:#EDE6FD}
.zp-browse-item-name{font-size:14px;font-weight:500;line-height:1.3;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-browse-item-meta{font-size:12px;color:#6B6680;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-browse-subhead{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#6B6680;padding:8px 10px 3px}
.zp-browse-subhead:first-child{padding-top:2px}

/* Tutorial mock only (designerTutorial.js#tutorialSidebarMock) - the start-form row drawn as a group row. */
.zp-browse-item-startform{flex-direction:row;align-items:center;gap:10px;padding:4px 8px}
.zp-browse-item-startform .zp-browse-item-name{font-size:15px;font-weight:600}
.zp-browse-start-forms{display:flex;flex-direction:column;gap:1px;padding:0 0 2px}
.zp-chat-panel{position:relative;width:420px;background:#f7f8fb;border-right:1px solid #e2e5ec;flex-shrink:0;display:flex;flex-direction:column;min-height:0}
/* Collapsed, the chat is a 72px strip like the components rail's; both toggles ARE the rail's button
   (.zp-browse-collapse-btn - defined with the rail below), so the two edges of the screen match. */
.zp-chat-panel-collapsed{width:56px;align-items:center;padding-top:0}
.zp-chat-resize-handle{position:absolute;top:0;right:-4px;width:8px;height:100%;cursor:col-resize;z-index:5}
.zp-chat-resize-handle:hover,.zp-chat-resize-handle.zp-chat-resizing{background:rgba(124,58,237,.18)}
body.zp-resizing-chat{cursor:col-resize!important;user-select:none}
body.zp-resizing-chat *{user-select:none!important}
.zp-chat-header{padding:14px 16px 10px;border-bottom:1px solid #e8eaf0;flex-shrink:0;font-size:11px;font-weight:700;color:#8b93a1;letter-spacing:.06em;text-transform:uppercase;display:flex;align-items:center;justify-content:space-between}

.zp-chat-header-actions{display:flex;align-items:center;gap:6px}
.zp-chat-new-btn{border:1px solid #dde1e9;background:#fff;color:#3a4150;font-size:11px;font-weight:700;letter-spacing:0;text-transform:none;padding:5px 9px;border-radius:8px;cursor:pointer;white-space:nowrap}
.zp-chat-new-btn:hover{border-color:#7c3aed;color:#7c3aed}
.zp-chat-history-btn{width:24px;height:24px;border:1px solid #dde1e9;background:#fff;color:#8b93a1;cursor:pointer;font-size:12px;border-radius:8px;display:flex;align-items:center;justify-content:center}
.zp-chat-history-btn:hover{border-color:#7c3aed;color:#7c3aed}
.zp-chat-history-btn-active{background:#eee9fb;border-color:#dcc9f7;color:#7c3aed}

.zp-chat-history-sidebar-clip{position:absolute;inset:0;overflow:hidden;pointer-events:none;z-index:30}
.zp-chat-history-sidebar{position:absolute;inset:0;background:#fff;display:flex;flex-direction:column;transform:translateX(100%);transition:transform .2s ease;pointer-events:none}
.zp-chat-history-sidebar-open{transform:translateX(0);pointer-events:auto}
.zp-chat-history-sidebar-header{padding:14px 16px;border-bottom:1px solid #e8eaf0;flex-shrink:0;font-size:11px;font-weight:700;color:#8b93a1;letter-spacing:.06em;text-transform:uppercase;display:flex;align-items:center;justify-content:space-between}
.zp-chat-history-sidebar-close{width:24px;height:24px;border:none;background:transparent;color:#8b93a1;cursor:pointer;font-size:12px;border-radius:6px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.zp-chat-history-sidebar-close:hover{background:#eee9fb;color:#7c3aed}
.zp-chat-history-sidebar-list{flex:1;overflow-y:auto;padding:8px}
.zp-chat-history-row{padding:8px 10px;border-radius:9px;cursor:pointer;font-size:11.5px;font-weight:600;color:#1a1f26;overflow:hidden}
.zp-chat-history-row-title{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-chat-history-row-when{margin-top:2px;font-size:10.5px;font-weight:500;color:#8b93a1}
.zp-chat-history-row:hover{background:#f3f0fb}
.zp-chat-history-row-active{background:#f3f0fb;color:#7c3aed}
.zp-chat-body{flex:1;overflow-y:auto;padding:12px;display:flex;flex-direction:column;gap:8px}
.zp-chat-empty{margin-top:48px;text-align:center;padding:0 22px}
.zp-chat-empty-icon{width:44px;height:44px;border-radius:12px;background:#f1eafd;color:#7c3aed;font-size:19px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px}
.zp-chat-empty-title{font-size:13px;font-weight:700}
.zp-chat-empty-sub{font-size:12px;color:#8b93a1;margin-top:5px;text-wrap:pretty}
/* AI cost bar - sits between the transcript and the composer (designerCost.js). A single quiet
   line showing the credits this build has spent, and nothing else: not a control, so no cursor,
   hover or focus affordance. Deliberately low-contrast - it should be checkable at a glance, not
   compete with the conversation for attention. */
.zp-cost-bar{flex-shrink:0;display:flex;align-items:center;gap:8px;padding:7px 12px;border-top:1px solid #e8eaf0;background:#f7f8fb;font-size:11.5px}
.zp-cost-summary{display:flex;align-items:center;gap:7px;color:#6b7280;font-size:11.5px;min-width:0}
.zp-cost-total{font-weight:600;color:#1a1f26;font-variant-numeric:tabular-nums}
.zp-cost-label{color:#8b93a1;white-space:nowrap}
.zp-cost-spacer{flex:1;min-width:8px}
/* The signed-in user's all-time usage, on the right of the same row - see chatCostBarTemplate. */
.zp-cost-user{display:flex;align-items:center;gap:7px;flex-shrink:0}
.zp-cost-user-text{color:#8b93a1;font-variant-numeric:tabular-nums;white-space:nowrap}
/* Only rendered once the API reports an allowance; there is none today (see designerCost.js). */
.zp-cost-meter{position:relative;display:block;width:52px;height:5px;border-radius:99px;background:#e4e7ee;overflow:hidden;flex-shrink:0}
.zp-cost-meter i{position:absolute;left:0;top:0;bottom:0;border-radius:99px;background:#7c3aed}
.zp-cost-meter-low i{background:#d97706}
.zp-cost-meter-spent i{background:#dc2626}

/* All-time credits used, shown in the account details modal (designerUserProfile.js). */
.zp-credits-card{display:flex;align-items:baseline;gap:7px;background:#f7f8fb;border:1px solid #e8eaf0;border-radius:10px;padding:12px 14px;margin-bottom:14px}
.zp-credits-value{font-size:20px;font-weight:700;color:#1a1f26}
.zp-credits-label{font-size:11.5px;color:#8b93a1}
.zp-credits-loading{color:#8b93a1;font-size:11.5px;justify-content:center}

.zp-chat-composer{padding:12px;border-top:1px solid #e8eaf0;flex-shrink:0;background:#f7f8fb}
.zp-chat-composer-inner{display:flex;gap:4px;align-items:flex-end;background:#fff;border:1px solid #dde1e9;border-radius:12px;padding:8px;box-shadow:0 1px 2px rgba(20,24,32,.04)}
.zp-chat-credits-out{flex:1;align-self:center;display:flex;align-items:flex-start;gap:8px;padding:6px 8px;font-size:14.4px;line-height:1.45;color:#3a4150;font-weight:500}
.zp-chat-credits-out a{color:#7c3aed;font-weight:600;text-decoration:none}
.zp-chat-credits-out a:hover{text-decoration:underline !important}
.zp-chat-composer-inner textarea{flex:1;border:none;resize:none;font-size:12.8px;line-height:1.45;background:transparent;padding:7px 8px;outline:none}
/* process chat: the paperclip at the left of the composer, and the attached document above it */
.zp-chat-attach{width:32px;height:32px;flex-shrink:0;align-self:flex-start;border:0;border-radius:9px;background:none;color:#6b7280;cursor:pointer;display:flex;align-items:center;justify-content:center}
.zp-chat-attach:hover:not([disabled]){background:#f3f0fb;color:#7c3aed}
.zp-chat-attach[disabled]{opacity:.45;cursor:default}
.zp-chat-composer-attachment{margin:0 0 8px}
.zp-chat-send{width:32px;height:32px;border:none;border-radius:9px;background:#7c3aed;color:#fff;cursor:pointer;font-size:14px;flex-shrink:0}
.zp-chat-send:hover{background:#6d28d9}
.zp-chat-stop{background:#1a1f26;font-size:10px;line-height:1}
.zp-chat-stop:hover{background:#000}
.zp-chat-stop:disabled{background:#8b93a1;cursor:default}

.zp-chat-msg{font-size:12.8px;line-height:1.5;padding:9px 12px;border-radius:14px;max-width:92%;text-wrap:pretty;white-space:normal}
.zp-chat-msg-user{align-self:flex-end;background:#7c3aed;color:#fff;border-bottom-right-radius:4px}
.zp-chat-msg-assistant{align-self:flex-start;background:#fff;border:1px solid #e2e5ec;color:#1a1f26;border-bottom-left-radius:4px}
.zp-chat-msg-assistant.zp-chat-thinking{display:flex;align-items:center;gap:7px;color:#8b93a1;font-style:italic}

/* Settled Q&A / plan collapse to compact PILLS (chatInteractionPill), side by side; clicking one
   expands its detail full-width below (chat*PillDetail). Replaces the big settled cards. */
.zp-chat-pills{display:flex;flex-wrap:wrap;gap:8px;margin:2px 0}
.zp-chat-pill{display:inline-flex;align-items:center;gap:7px;height:30px;padding:0 12px;border:1px solid #e3dfea;border-radius:999px;background:#fff;color:#2b2834;font:inherit;font-size:12.8px;font-weight:600;cursor:pointer}
.zp-chat-pill:hover{background:#f4f1fb;border-color:#d7cff0}
.zp-chat-pill-open{background:#f1ecfb;border-color:#d7cff0}
.zp-chat-pill-check{flex-shrink:0}
.zp-chat-pill-x{flex-shrink:0;color:#b91c1c;font-weight:700;font-size:15px;line-height:1}
.zp-chat-pill-edit{flex-shrink:0;color:#7c3aed;font-size:13px;line-height:1}
/* Pending pill: a spinner, and a static (non-button) look since there is nothing to expand yet. */
.zp-chat-pill-pending{cursor:default;color:#5b21b6}
.zp-chat-pill-pending:hover{background:#fff;border-color:#e3dfea}
.zp-chat-pill-spin{flex-shrink:0;width:12px;height:12px;border-radius:50%;border:2px solid #e3dfea;border-top-color:#7c3aed;animation:zpFeedSpin .9s linear infinite}
.zp-chat-pill-detail{border:1px solid #ece9f3;border-radius:12px;background:#fff;padding:12px 14px;margin:2px 0}

/* A long assistant response is collapsible (chatAssistantBubbleTemplate): a "Response" header folds the
   summary away. */
.zp-chat-asst{align-self:flex-start;max-width:100%;min-width:0;display:flex;flex-direction:column;gap:4px}
.zp-chat-asst-toggle{align-self:flex-start;display:inline-flex;align-items:center;gap:5px;padding:2px 6px 2px 2px;border:0;background:transparent;font:inherit;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8b93a1;cursor:pointer;border-radius:6px}
.zp-chat-asst-toggle:hover{color:#7c3aed}
.zp-chat-asst-chev{transform:rotate(90deg);transition:transform .15s}
.zp-chat-asst-collapsed .zp-chat-asst-chev{transform:rotate(0deg)}
/* a stopped reply's marker: same type as the Response toggle above (bold, uppercase, letter-spaced) */
.zp-chat-status-row.zp-chat-stopped-row{font-style:normal;font-size:11.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8b93a1;gap:5px;padding:2px 6px 2px 2px}
.zp-chat-stopped-row .zp-chat-status-icon-done{font-size:9px;width:13px;text-align:center}
.zp-chat-asst-collapsed .zp-chat-asst-body{display:none}

/* The build broadcast feed in the chat (chatBuildFeedTemplate): one line per RAW AGENT, a spinner
   while it works and a green tick when it reports done. No AI icon. */
.zp-build-feed{display:flex;flex-direction:column;gap:0;min-width:0;margin:2px 0}
.zp-feed-rows{display:flex;flex-direction:column;gap:2px}
.zp-feed-err{color:#b91c1c;font-weight:700;font-size:14px}
.zp-feed-row{display:flex;flex-direction:column}
.zp-feed-row-head{width:100%;display:flex;align-items:center;gap:9px;min-height:34px;padding:4px 8px;margin-left:-8px;border:0;border-radius:8px;background:transparent;font:inherit;text-align:left;color:#1c1a24;cursor:default}
.zp-feed-row-expandable{cursor:pointer}
.zp-feed-row-expandable:hover{background:#f4f1fb}
.zp-feed-icon{width:16px;height:16px;flex-shrink:0;display:flex;align-items:center;justify-content:center}
.zp-feed-spinner{width:13px;height:13px;border-radius:50%;border:2px solid #e3dfea;border-top-color:#7c3aed;animation:zpFeedSpin .9s linear infinite}
@keyframes zpFeedSpin{to{transform:rotate(360deg)}}
.zp-feed-text{flex:1;min-width:0;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-feed-name{font-weight:600}
.zp-feed-sub{color:#5d5a6a}
.zp-feed-sub-active{color:#5b21b6;font-weight:700}

/* Live status labels (designerChat.js#pacedLabelHTML / #animatedDotsHTML): each new label fades up into
   place, and an active line ends in three bouncing dots. Both are driven by negative animation-delays set
   from elapsed time, so the chat's re-render on every event resumes them instead of restarting them. */
.zp-live-label{display:inline-block}
.zp-live-label-enter{animation:zpLiveLabelIn .25s ease-out both}
@keyframes zpLiveLabelIn{from{opacity:0;transform:translateY(3px)}to{opacity:1;transform:none}}
.zp-live-dots{display:inline-flex;align-items:flex-end;gap:2px;margin-left:3px;height:.9em;vertical-align:baseline}
.zp-live-dots span{width:3px;height:3px;border-radius:50%;background:currentColor;animation:zpLiveDot 1.2s ease-in-out infinite}
@keyframes zpLiveDot{0%,60%,100%{opacity:.3;transform:translateY(0)}30%{opacity:1;transform:translateY(-3px)}}
@media (prefers-reduced-motion:reduce){
	.zp-live-label-enter{animation:none}
	.zp-live-dots span{animation:none;opacity:.7}
}
.zp-feed-chev{flex-shrink:0;color:#8a8697;transition:transform .2s}
.zp-feed-chev-open{transform:rotate(90deg)}
.zp-feed-events{display:flex;flex-direction:column;gap:3px;padding:2px 0 8px 25px;font-size:12.8px;line-height:1.5;color:#5d5a6a}
.zp-feed-ready{font-size:13.5px;line-height:1.6;color:#2b2834;margin-top:8px}

/* Markdown inside an assistant bubble (zpRenderMarkdown). Every block resets its outer
   margin at the bubble edges so a heading or list never adds padding on top of the
   bubble's own, and everything is sized down to chat scale rather than document scale. */
.zp-chat-md > *:first-child{margin-top:0}
.zp-chat-md > *:last-child{margin-bottom:0}
.zp-chat-md p{margin:0 0 8px}
.zp-chat-md h1,.zp-chat-md h2,.zp-chat-md h3,.zp-chat-md h4,.zp-chat-md h5,.zp-chat-md h6{margin:12px 0 6px;font-size:13px;font-weight:700;line-height:1.35;color:#1a1f26}
.zp-chat-md h1{font-size:15px}
.zp-chat-md h2{font-size:14px}
.zp-chat-md ul,.zp-chat-md ol{margin:0 0 8px;padding-left:18px}
.zp-chat-md li{margin:2px 0}
.zp-chat-md li > p{margin:0}
.zp-chat-md strong{font-weight:700}
.zp-chat-md a{color:#7c3aed;text-decoration:underline;word-break:break-word}
.zp-chat-md code{font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;font-size:11.5px;background:#f3f4f8;border:1px solid #e6e8ef;border-radius:4px;padding:1px 4px}
.zp-chat-md pre{margin:0 0 8px;padding:8px 10px;background:#f7f8fb;border:1px solid #e6e8ef;border-radius:8px;overflow-x:auto}
.zp-chat-md pre code{background:none;border:none;padding:0;font-size:11.5px;line-height:1.45}
.zp-chat-md blockquote{margin:0 0 8px;padding:2px 0 2px 10px;border-left:3px solid #e2e5ec;color:#5c6472}
.zp-chat-md hr{border:none;border-top:1px solid #e6e8ef;margin:10px 0}
.zp-chat-md table{border-collapse:collapse;margin:0 0 8px;font-size:11.8px;display:block;max-width:100%;overflow-x:auto}
.zp-chat-md th,.zp-chat-md td{border:1px solid #e2e5ec;padding:4px 7px;text-align:left}
.zp-chat-md th{background:#f7f8fb;font-weight:600}
.zp-chat-md img{max-width:100%}
.zp-chat-thinking-icon{display:inline-block;color:#7c3aed;font-style:normal;animation:zpPulse 1.2s ease-in-out infinite}
@keyframes zpPulse{0%,100%{opacity:.35;transform:scale(.85)}50%{opacity:1;transform:scale(1.1)}}
.zp-chat-cursor{display:inline-block;margin-left:2px;color:#7c3aed;animation:zpBlink 1s step-start infinite}
@keyframes zpBlink{50%{opacity:0}}
.zp-chat-status-row{display:flex;align-items:center;gap:7px;font-size:11.5px;color:#8b93a1;font-style:italic;padding:0 4px;transition:font-size .15s,color .15s}
.zp-chat-status-active{font-size:14px;font-weight:600;color:#3a2a66;font-style:normal;padding:2px 4px}
.zp-chat-status-active .zp-chat-thinking-icon{font-size:15px}
.zp-chat-status-icon-done{color:#c7cbd3;font-style:normal}
.zp-chat-status-error{color:#dc2626;font-style:normal;font-weight:600}
.zp-chat-status-reconnecting{color:#b45309;font-style:normal}
.zp-chat-status-reconnecting .zp-chat-thinking-icon{color:#b45309}

.zp-chat-card{background:#fff;border:1px solid #e2e5ec;border-radius:14px;padding:12px 14px;display:flex;flex-direction:column;gap:8px}

/* Same card markup as the chat's, just resized to sit in the preview panel the way the
   building checklist (.zp-building-card) does while a question/plan is pending. */
.zp-interaction-card{width:100%;max-width:520px;align-self:center}
.zp-interaction-card .zp-chat-card{padding:24px 28px;border-radius:22px;box-shadow:0 14px 34px rgba(60,40,120,.10);border-color:#e6ddf7;gap:14px}

.zp-chat-pending-banner{display:flex;align-items:center;gap:8px;background:#f1eafd;color:#7c3aed;border-radius:12px;padding:10px 14px;font-size:12.5px;font-weight:600}
.zp-chat-pending-banner .zp-chat-thinking-icon{animation:zpPulse 1.2s ease-in-out infinite}
.zp-chat-card-title{font-size:11.5px;font-weight:700;color:#7c3aed;text-transform:uppercase;letter-spacing:.04em}
.zp-chat-card-status{font-size:12px;font-weight:700;color:#2f9e58}
.zp-chat-card-actions{display:flex;justify-content:flex-end;gap:8px}
.zp-chat-card-actions .zp-btn-secondary,.zp-chat-card-actions .zp-btn-primary{height:32px;padding:0 14px;font-size:12px}

.zp-cq-progress{display:flex;align-items:center;justify-content:space-between;gap:10px}
.zp-cq-progress-label{font-size:11px;font-weight:700;color:#8b93a1;text-transform:uppercase;letter-spacing:.04em}
.zp-cq-dots{display:flex;align-items:center;gap:5px}
.zp-cq-dot{width:6px;height:6px;border-radius:99px;background:#e2e5ec;transition:transform .15s}
.zp-cq-dot-current{background:#7c3aed;transform:scale(1.4)}
.zp-cq-dot-done{background:#c4b5f0}
.zp-cq-dot-skipped{background:#fff;border:1px solid #c7cbd3}
.zp-cq-nav{justify-content:space-between}
.zp-cq-nav-left,.zp-cq-nav-right{display:flex;gap:8px}

.zp-cq-q{display:flex;flex-direction:column;gap:6px}
.zp-cq-header{font-size:11px;font-weight:700;color:#8b93a1;text-transform:uppercase}
.zp-cq-question{font-size:13px;font-weight:600;color:#1a1f26}
.zp-cq-opt{display:flex;align-items:flex-start;gap:8px;padding:7px 8px;border:1px solid #e2e5ec;border-radius:9px;cursor:pointer}
.zp-cq-opt:hover{border-color:#c4b5f0}
.zp-cq-opt input{margin-top:2px}
.zp-cq-opt-body{display:flex;flex-direction:column;gap:1px}
.zp-cq-opt-label{font-size:12.5px;font-weight:600}
.zp-cq-opt-desc{font-size:11.5px;color:#8b93a1}
.zp-cq-opt-other{align-items:center}
.zp-cq-opt-other input.zp-cq-other-pick{margin-top:0}
.zp-cq-other{flex:1;min-width:0;height:28px;margin:0;border:none;padding:0 2px;font-size:12px;outline:none;background:transparent}

.zp-cq-q-answered{display:flex;flex-direction:column;gap:3px;padding:8px 0;border-top:1px solid #eef0f4}

/* request_smart_object_public_access - a permission request, not a questionnaire */
.zp-perm-title,.zp-perm-title.zp-cq-toggle{display:flex;align-items:center;justify-content:flex-start;gap:6px}
.zp-perm-icon{flex:none}
.zp-perm-title .zp-chat-card-status{margin-left:auto}
.zp-perm-title .zp-chat-card-status.zp-perm-kept{color:#5b6472}
.zp-perm-scope{display:flex;flex-direction:column;gap:8px;padding:10px 12px;border:1px solid #e2e5ec;border-radius:9px;background:#f8f9fb}
.zp-perm-scope-row{display:flex;flex-direction:column;gap:2px;font-size:12px;color:#5b6472}
.zp-perm-scope-label{font-size:11px;font-weight:700;color:#1a1f26;text-transform:uppercase;letter-spacing:.03em}
.zp-cq-q-answered:first-of-type{border-top:none;padding-top:0}

.zp-cq-toggle,.zp-pm-toggle{display:flex;align-items:center;justify-content:space-between;gap:8px;cursor:pointer}
.zp-cq-chevron{color:#8b93a1;font-size:11px;transition:transform .15s}
.zp-cq-collapsed .zp-cq-chevron,.zp-pm-collapsed .zp-cq-chevron{transform:rotate(-90deg)}
.zp-cq-answer-text{font-size:12.5px;font-weight:600;color:#7c3aed}

.zp-pm-summary{font-size:12.8px;color:#3a4150;line-height:1.5}
.zp-pm-deliv-title{font-size:11px;font-weight:700;color:#8b93a1;text-transform:uppercase;margin-top:2px}
.zp-pm-deliv{display:flex;flex-direction:column;gap:6px;align-items:flex-start;padding:8px 0;border-top:1px solid #eef0f4}
.zp-pm-deliv-type{flex-shrink:0;font-size:10px;font-weight:700;color:#7c3aed;background:#f1eafd;border-radius:99px;padding:3px 8px;text-transform:capitalize}
.zp-pm-deliv-body{display:flex;flex-direction:column;gap:1px;width:100%}
.zp-pm-deliv-name{font-size:12.5px;font-weight:600}
.zp-pm-deliv-purpose{font-size:11.5px;color:#8b93a1}
.zp-pm-feedback{display:none;border:1px solid #dde1e9;border-radius:9px;padding:8px 10px;font-size:12px;resize:none;outline:none}
.zp-pm-feedback-readonly{font-size:12px;color:#5b6472;font-style:italic;border-left:2px solid #e2e5ec;padding-left:8px}

/* "Who does what" role picker inside the closing build message (designerRoleAssign.js) */
.zp-wdw{display:flex;flex-direction:column;margin:0 0 10px;border:1px solid #e6e8ef;border-radius:10px;overflow:hidden}
.zp-wdw-role{display:flex;flex-direction:column;gap:3px;padding:9px 11px;border-top:1px solid #eef0f4}
.zp-wdw-role:first-child{border-top:none}
.zp-wdw-name{font-size:12.5px;font-weight:600;color:#1a1f26}
.zp-wdw-desc{font-size:12px;color:#5b6472;line-height:1.4}
.zp-wdw-note{margin:-4px 0 10px;font-size:12px;color:#5b6472;line-height:1.4}

/* "Review the changes" cards closing a follow-up change, each with an Open button (designerChangesMade.js) */
.zp-chg{display:flex;flex-direction:column;margin:0 0 10px;border:1px solid #e6e8ef;border-radius:10px;overflow:hidden}
.zp-chg-head{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;border:none;cursor:pointer;text-align:left;font-family:inherit;padding:8px 11px;font-size:11px;font-weight:700;color:#8b93a1;text-transform:uppercase;letter-spacing:.04em;background:#f8f9fb}
.zp-chg-head:hover{color:#5b6472}
.zp-chg-chev{flex-shrink:0;transition:transform .15s}
.zp-chg-collapsed .zp-chg-chev{transform:rotate(-90deg)}
.zp-chg-count{margin-left:4px;font-size:10px;color:#7c3aed;background:#f1eafd;border-radius:99px;padding:1px 6px;letter-spacing:0}
.zp-chg-item{display:flex;align-items:center;gap:10px;padding:9px 11px;border-top:1px solid #eef0f4}
.zp-chg-body{display:flex;flex-direction:column;gap:3px;flex:1;min-width:0}
.zp-chg-top{display:flex;align-items:center;gap:6px;min-width:0}
.zp-chg-kind{flex-shrink:0;font-size:10px;font-weight:700;color:#7c3aed;background:#f1eafd;border-radius:99px;padding:2px 7px}
.zp-chg-name{font-size:12.5px;font-weight:600;color:#1a1f26;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-chg-desc{font-size:12px;color:#5b6472;line-height:1.4}
.zp-chg-open{flex-shrink:0;border:1px solid #d9cdf7;background:#fff;color:#7c3aed;font-size:12px;font-weight:600;border-radius:8px;padding:5px 12px;cursor:pointer}
.zp-chg-open:hover{background:#f6f1fe;border-color:#7c3aed}

.zp-preview-panel{flex:1;display:flex;flex-direction:column;min-width:0;min-height:0;background:#eef0f4}
.zp-preview-header{height:44px;display:flex;align-items:center;gap:10px;padding:0 18px;border-bottom:1px solid #e2e5ec;background:#fff;flex-shrink:0}
.zp-preview-label{font-size:11px;font-weight:700;color:#8b93a1;letter-spacing:.06em;text-transform:uppercase}
.zp-preview-context{font-size:11.5px;color:#5b6472;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
/* Plain, non-interactive stand-in for the process dropdown when there are no subprocesses to switch between. */
.zp-flow-label{padding:10px 16px;font-size:12.5px;font-weight:700;color:#3a2a66;flex-shrink:0;margin-right:8px;white-space:nowrap}
/* The "Dashboards"/"Automations" half of the crumb, back to the grid when one is open. */
.zp-preview-crumb-back{cursor:pointer;color:#7c3aed;text-decoration:underline;text-underline-offset:2px}
.zp-preview-crumb-back:hover{color:#5b21b6}
.zp-preview-body{flex:1;overflow-y:auto;padding:24px;position:relative}

.zp-flow-zoom{position:absolute;bottom:20px;right:20px;display:flex;align-items:center;gap:2px;background:#fff;border:1px solid #e2e5ec;border-radius:11px;box-shadow:0 8px 20px rgba(20,12,50,.14);padding:4px;z-index:10}
.zp-flow-zoom-btn{width:28px;height:28px;border:none;border-radius:8px;background:transparent;color:#3a4150;font-size:16px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;line-height:1}
.zp-flow-zoom-btn:hover{background:#f3f0fb;color:#7c3aed}
.zp-flow-zoom-btn:disabled{opacity:.35;cursor:default;background:transparent;color:#3a4150}
.zp-flow-zoom-pct{width:42px;text-align:center;font-size:11.5px;font-weight:700;color:#5b6472;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
.zp-preview-empty{text-align:center;max-width:280px;margin:60px auto 0}
.zp-preview-empty-icon{width:48px;height:48px;border-radius:13px;background:#fff;border:1px solid #e2e5ec;color:#7c3aed;font-size:20px;display:flex;align-items:center;justify-content:center;margin:0 auto 14px}
.zp-preview-empty-title{font-size:14px;font-weight:700}
.zp-preview-empty-sub{font-size:12px;color:#8b93a1;margin-top:6px;text-wrap:pretty}

/* the build card is centred with auto margins, not align-items:center - a centred card taller than the panel
   overflowed ABOVE the scroll origin and its top could not be scrolled to (2026-11-05) */
.zp-preview-body-building{display:flex;align-items:flex-start;justify-content:center;padding:20px}
.zp-building-card{width:100%;max-width:760px;background:#fff;border:1px solid #e6ddf7;border-radius:22px;box-shadow:0 14px 34px rgba(60,40,120,.10);padding:28px 44px 24px;margin-top:auto;margin-bottom:auto}
.zp-building-header{text-align:center;margin-bottom:20px}
.zp-building-header-icon{width:48px;height:48px;border-radius:14px;background:#f1eafd;color:#7c3aed;font-size:21px;display:flex;align-items:center;justify-content:center;margin:0 auto 12px;animation:zpPulse 1.2s ease-in-out infinite}
.zp-building-header-title{font-size:17px;font-weight:800;color:#1a1f26;letter-spacing:-.01em}
.zp-building-header-sub{font-size:12px;color:#8b93a1;margin-top:6px;max-width:480px;margin-left:auto;margin-right:auto}
.zp-building-progress{display:flex;align-items:center;gap:8px;margin-bottom:18px}
.zp-building-progress-track{flex:1;height:5px;background:#eef0f4;border-radius:99px;overflow:hidden}
.zp-building-progress-fill{height:100%;background:#7c3aed;border-radius:99px;transition:width .3s ease}
.zp-building-progress-count{font-size:10.5px;font-weight:700;color:#7c3aed;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;flex-shrink:0}
.zp-building-card-ready .zp-building-header-icon{background:#e1f5ee;color:#2f9e58;font-weight:700;animation:none}
.zp-building-card-ready .zp-building-progress-fill{background:#2f9e58}
.zp-building-card-ready .zp-building-progress-count{color:#2f9e58}
.zp-building-rows{display:flex;flex-direction:column;gap:5px}
.zp-building-row{display:flex;align-items:center;gap:14px;padding:9px 8px;border-radius:12px}
.zp-building-row-active{background:#faf9fe}
.zp-building-row-state{width:22px;height:22px;border-radius:99px;font-size:12px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.zp-building-icon-done{background:#e1f5ee;color:#2f9e58}
.zp-building-icon-active{border:2px solid #7c3aed}
.zp-building-icon-waiting{background:#f3f5f8}
.zp-building-spinner{width:10px;height:10px;border-radius:99px;border:1.5px solid #dcc9f7;border-top-color:#7c3aed;animation:spin .6s linear infinite}
.zp-building-row-glyph{width:28px;height:28px;border-radius:9px;background:#f7f5fc;color:#9583c4;font-size:14px;display:flex;align-items:center;justify-content:center;flex-shrink:0}
.zp-building-row-active .zp-building-row-glyph{background:#f1eafd;color:#7c3aed}
.zp-building-row-body{flex:1;min-width:0}
.zp-building-row-label{font-size:13.5px;font-weight:700;color:#1a1f26}
.zp-building-row-sub{font-size:11px;color:#8b93a1}
.zp-building-row-active .zp-building-row-sub{color:#7c3aed;font-weight:600}
/* A finished category. .zp-building-icon-done (the green tick chip) already existed above — it was
   written for a state the JS never set. These are the row-level companions to it. Kept fully legible
   rather than greyed out: a completed row is information the user still wants to read, not chrome. */
.zp-building-row-done{background:#fbfdfc}
.zp-building-row-done .zp-building-row-glyph{background:#e1f5ee;color:#2f9e58}
.zp-building-row-done .zp-building-row-sub{color:#2f9e58;font-weight:600}
.zp-building-icon-done{font-weight:700}
.zp-building-caption{font-size:11px;color:#aeb6c2;margin-top:14px;text-align:center}

.zp-comp-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(220px,1fr));gap:16px}
.zp-comp-card{display:flex;flex-direction:column;background:#fff;border:1px solid #e2e5ec;border-radius:16px;overflow:hidden}
.zp-comp-card-clickable{cursor:pointer;transition:box-shadow .15s,border-color .15s,transform .15s}
.zp-comp-card-clickable:hover{border-color:#c4b5f0;box-shadow:0 10px 24px rgba(60,40,120,.12);transform:translateY(-2px)}
/* Brief highlight after an AI edit lands - see flagArtifactHighlight in designerStreams.js.
   The class is removed automatically after ~2.5s, and the transition above (already used
   for hover) fades it back out with no separate keyframe needed. */
.zp-comp-card-updated{border-color:#7c3aed;box-shadow:0 0 0 2px rgba(124,58,237,.18)}

.zp-comp-card-preview{background:#f3f0fb;padding:16px;min-height:96px;display:flex;flex-direction:column;justify-content:center}
.zp-comp-card-footer{padding:13px 15px;display:flex;align-items:center;justify-content:space-between;gap:10px}
.zp-comp-card-name{font-size:14px;font-weight:800;letter-spacing:-.01em;color:#1a1f26;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0}
.zp-comp-card-badge{flex-shrink:0;font-size:10.5px;font-weight:700;color:#7c3aed;background:#f1eafd;border-radius:99px;padding:4px 10px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;white-space:nowrap}

.zp-comp-fields-preview{display:flex;flex-direction:column;gap:9px}
.zp-comp-field-row{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.zp-comp-field-name{font-size:12.5px;font-weight:600;color:#3a4150;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-comp-field-type{font-size:11px;font-weight:600;color:#a184e4;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;flex-shrink:0}

.zp-comp-perm-row{display:flex;align-items:center;gap:8px}
.zp-comp-perm-dot{flex-shrink:0;width:6px;height:6px;border-radius:99px;background:#7c3aed}
.zp-comp-perm-label{font-size:12px;font-weight:600;color:#3a4150;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

.zp-comp-email-preview{display:flex;flex-direction:column;gap:6px}
.zp-comp-email-title{font-size:14px;font-weight:800;letter-spacing:-.01em;color:#1a1f26;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-comp-email-subject{font-size:12px;font-weight:700;color:#3a2a66;letter-spacing:-.005em;line-height:1.35;overflow:hidden;display:-webkit-box;-webkit-line-clamp:1;-webkit-box-orient:vertical}
.zp-comp-email-body{font-size:12px;color:#5b6472;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}

.zp-comp-card-preview-empty{font-size:11.5px;color:#9198a6;font-style:italic}

.zp-comp-report-preview{display:flex;flex-direction:column;gap:6px}
.zp-comp-report-title{font-size:14px;font-weight:800;letter-spacing:-.01em;color:#1a1f26;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-comp-report-desc{font-size:12px;color:#5b6472;line-height:1.4;overflow:hidden;display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical}
/* Footer holds only the badge for a report card (its title already leads the preview above),
   so space-between - built for a name-plus-badge pair - would otherwise leave the badge
   stranded on the left with nothing to push against. */
.zp-comp-card-footer > .zp-comp-card-badge:only-child{margin-left:auto}
/* Second line of a card preview: what it targets, how often it runs - facts, not prose */
.zp-comp-card-preview-meta{margin-top:8px;font-size:10.5px;font-weight:700;color:#a184e4;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;letter-spacing:.02em}

.zp-comp-card-skeleton{display:flex;flex-direction:column;gap:9px}
.zp-skel-row{height:11px;border-radius:4px;background:linear-gradient(90deg,rgba(124,58,237,.09),rgba(124,58,237,.18),rgba(124,58,237,.09));background-size:200% 100%;animation:zpSkeletonShimmer 1.4s ease-in-out infinite}
.zp-skel-line{height:7px;border-radius:4px;background:linear-gradient(90deg,rgba(124,58,237,.09),rgba(124,58,237,.18),rgba(124,58,237,.09));background-size:200% 100%;animation:zpSkeletonShimmer 1.4s ease-in-out infinite}
.zp-skel-line.short{width:45%}
@keyframes zpSkeletonShimmer{0%{background-position:200% 0}100%{background-position:-200% 0}}

/* Component Detail Modal */
.zp-component-detail-overlay{position:fixed;inset:0;background:rgba(24,18,44,.45);z-index:100;display:flex;align-items:center;justify-content:center}
.zp-component-detail-modal{width:640px;max-height:80vh;background:#fff;border-radius:16px;box-shadow:0 24px 60px rgba(20,12,50,.35);display:flex;flex-direction:column;overflow:hidden}
.zp-component-detail-header{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;padding:24px;border-bottom:1px solid #e2e5ec;flex-shrink:0;position:relative}
.zp-component-detail-heading{display:flex;flex-direction:column;gap:6px;min-width:0;flex:1}
.zp-component-detail-title{font-size:18px;font-weight:800;letter-spacing:-.01em;color:#1a1f26}
.zp-component-detail-desc{font-size:13px;color:#5b6472;line-height:1.5;max-width:80ch}
.zp-component-detail-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
.zp-component-detail-close{width:32px;height:32px;border:none;background:transparent;color:#8b93a1;font-size:28px;cursor:pointer;padding:0;line-height:1;flex-shrink:0}
.zp-component-detail-close:hover{color:#1a1f26}

.zp-form-tweak-btn{display:flex;align-items:center;gap:7px;height:34px;padding:0 15px;border-radius:9px;cursor:pointer;background:#fff;border:1px solid #7c3aed;color:#7c3aed;font-size:12.5px;font-weight:700;font-family:inherit;white-space:nowrap}
.zp-form-tweak-btn:hover{background:#f1eafd}
.zp-form-tweak-btn-active{background:#7c3aed;color:#fff}
.zp-form-tweak-btn-active:hover{background:#6d28d9}
.zp-form-tweak-popover{position:absolute;top:64px;right:24px;width:320px;background:#fff;border-radius:14px;border:1px solid #e2e5ec;box-shadow:0 20px 48px rgba(20,12,50,.28);padding:16px;z-index:30}
.zp-form-tweak-popover textarea{width:100%;box-sizing:border-box;border:1px solid #e2e5ec;border-radius:10px;padding:10px 12px;font-size:13px;font-family:inherit;resize:none;margin-bottom:12px;outline:none}
.zp-form-tweak-popover textarea:focus{border-color:#c4b5f7}
.zp-component-detail-body{flex:1;overflow-y:auto;padding:24px}

.zp-detail-section{margin-bottom:28px}
.zp-detail-section:last-child{margin-bottom:0}
.zp-detail-section-title{font-size:12px;font-weight:800;color:#8b93a1;letter-spacing:.08em;text-transform:uppercase;margin-bottom:12px}
.zp-detail-section-toggle{display:flex;align-items:center;justify-content:space-between;cursor:pointer;user-select:none}
.zp-detail-chevron{color:#8b93a1;font-size:11px;transition:transform .15s}
.zp-detail-chevron-collapsed{transform:rotate(-90deg)}
.zp-detail-field-row{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid #eef0f4}
.zp-detail-field-row:last-child{border-bottom:none}
.zp-detail-label{font-size:12px;font-weight:600;color:#5b6472;min-width:80px}
.zp-detail-value{font-size:13.5px;color:#1a1f26;flex:1;word-break:break-word}
.zp-detail-fields{display:flex;flex-direction:column;gap:0}
.zp-detail-field{display:flex;align-items:center;justify-content:space-between;padding:12px 0;border-bottom:1px solid #eef0f4}
.zp-detail-field:last-child{border-bottom:none}
.zp-detail-field-name{font-size:13.5px;font-weight:600;color:#1a1f26;flex:1}
.zp-detail-field-type{font-size:11px;font-weight:600;color:#a184e4;background:#f1eafd;border-radius:6px;padding:4px 10px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif;flex-shrink:0;margin-left:12px}
/* Report columns: a wrapped chip cloud, not a bordered list - the reader just needs to
   scan which fields are on the report, not their storage type (see zp-detail-field-type above,
   which is what used to sit next to each column name here). */
.zp-detail-column-chips{display:flex;flex-wrap:wrap;gap:8px}
.zp-detail-column-chip{font-size:12.5px;font-weight:600;color:#3a4150;background:#f7f6fa;border:1px solid #eef0f4;border-radius:8px;padding:6px 12px}
.zp-detail-body-content{font-size:13px;line-height:1.6;color:#3a4150;white-space:pre-wrap;word-wrap:break-word;background:#f9f8fc;border-radius:8px;padding:14px;font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,'Helvetica Neue',Arial,sans-serif}
.zp-detail-empty-section{font-size:12px;color:#aeb6c2;padding:12px 0;font-style:italic}

/* Email body preview - rendered template HTML, with Velocity refs shown as field chips.
   White card rather than the grey code block: this is meant to read as the email the
   recipient gets, not as source. Height-capped and scrolled, since the body is no longer
   truncated (truncating HTML cut mid-tag). */
.zp-email-body-preview{font-size:13px;line-height:1.6;color:#3a4150;background:#fff;border:1px solid #eef0f4;border-radius:10px;padding:16px;max-height:340px;overflow:auto;word-wrap:break-word}
.zp-email-body-preview>*:first-child{margin-top:0}
.zp-email-body-preview>*:last-child{margin-bottom:0}
.zp-email-body-preview p{margin:0 0 10px}
.zp-email-body-preview h1,.zp-email-body-preview h2,.zp-email-body-preview h3{font-size:15px;font-weight:700;margin:14px 0 8px;color:#2b3040}
.zp-email-body-preview ul,.zp-email-body-preview ol{margin:0 0 10px;padding-left:22px}
.zp-email-body-preview table{border-collapse:collapse;margin:10px 0;max-width:100%}
.zp-email-body-preview td,.zp-email-body-preview th{padding:6px 10px;border:1px solid #eef0f4;text-align:left;vertical-align:top}
.zp-email-body-preview th{background:#f9f8fc;font-weight:600}
.zp-email-body-preview a{color:#7c3aed}
.zp-email-body-preview img{max-width:100%;height:auto}
.zp-email-body-preview hr{border:none;border-top:1px solid #eef0f4;margin:12px 0}

/* A Velocity ref, rendered as the field it stands for. Purple = a field on a data
   component; grey = a platform value ($!task.dueDate). Raw ref is on the title.

   The 2px VERTICAL margin is load-bearing, not decoration: a chip is inline-BLOCK, so the
   line box takes its MARGIN box height (CSS 2.1 10.8.1), which means those 2px are what
   separate consecutive chip-bearing lines - the "Claim: / Submitted by: / Total amount: /
   Task due:" stack in a reminder email, where four bordered chips on four adjacent lines
   otherwise touch. It costs nothing on lines of plain text, which is why the spacing lives
   here rather than as a bigger line-height on the whole preview. */
.zp-velocity-chip{display:inline-block;padding:1px 7px;margin:2px 1px;border-radius:6px;background:#f1ebfd;color:#5b32b0;border:1px solid #e0d3fa;font-size:12px;font-weight:600;line-height:1.5;white-space:nowrap;vertical-align:baseline;cursor:default}
.zp-velocity-chip-owner{opacity:.5;font-weight:500}
.zp-velocity-chip-system{background:#eef1f5;color:#5b6472;border-color:#e2e5ec}
/* On a grid card the chip sits in a 13px clamped-to-2-lines subject, so it drops to the
   surrounding size and loses the vertical margin - there is no stack to separate there, and
   the extra height would eat into the two lines the clamp allows. */
.zp-comp-email-subject .zp-velocity-chip{font-size:11.5px;padding:0 5px;margin:0 1px;line-height:1.3;font-weight:700}
.zp-detail-loading{font-size:14px;color:#5b6472;text-align:center;padding:40px 20px;display:flex;align-items:center;justify-content:center;gap:12px}
.zp-detail-loading::after{content:'';width:16px;height:16px;border:2px solid #e2e5ec;border-top-color:#7c3aed;border-radius:99px;animation:spin .6s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}

/* Step tweak popover - opens next to a clicked block in the process flow canvas (see
   designerFlow.js/designerComponentChat.js); submitting it routes into the main chat. */
.zp-step-prompt{position:fixed;width:320px;background:#fff;border-radius:14px;box-shadow:0 20px 48px rgba(20,12,50,.28);border:1px solid #e2e5ec;padding:16px;z-index:96}
.zp-step-prompt-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}
.zp-step-prompt-eyebrow{font-size:11px;font-weight:800;color:#7c3aed;letter-spacing:.08em;text-transform:uppercase}
.zp-step-prompt-close{border:none;background:transparent;color:#8b93a1;font-size:20px;cursor:pointer;line-height:1;padding:0}
.zp-step-prompt-label{font-size:13.5px;font-weight:700;color:#1a1f26;margin-bottom:10px}.zp-step-prompt textarea{width:100%;box-sizing:border-box;border:1px solid #e2e5ec;border-radius:10px;padding:10px 12px;font-size:13px;font-family:inherit;resize:none;margin-bottom:12px;outline:none}
.zp-step-prompt textarea:focus{border-color:#c4b5f7}
/* a Customize popover while a reply runs: field + Apply disabled, nothing is queued (customizeFieldsTemplate) */
.zp-step-prompt-busy{font-size:12px;color:#6b7280;margin:-4px 0 10px;line-height:1.4}
.zp-step-prompt textarea:disabled,.zp-form-tweak-popover textarea:disabled{background:#f5f6f8;cursor:not-allowed}
.zp-step-prompt-apply:disabled{opacity:.5;cursor:not-allowed}
.zp-step-prompt-apply{width:100%}

/* Chat-focus banner - shown at the top of the main chat panel after a step tweak
   prompt is submitted, naming which step the conversation is currently about. */
.zp-chat-focus-banner{display:flex;align-items:center;gap:6px;padding:9px 14px;background:#f1eafd;border-bottom:1px solid #e8eaf0;flex-shrink:0;font-size:11.5px}
.zp-chat-focus-label{color:#8b6fd6;font-weight:700;text-transform:uppercase;letter-spacing:.04em;font-size:10px}
.zp-chat-focus-value{color:#4a2f9e;font-weight:600;flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}

/* Report Detail / Run Results */
.zp-detail-filter-group{margin:10px 0;padding:8px 10px;background:#f9f8fc;border-radius:8px}
.zp-detail-filter-group-label{font-size:10.5px;font-weight:700;color:#a184e4;text-transform:uppercase;letter-spacing:.04em;margin-bottom:4px}
.zp-detail-filter-group .zp-detail-field-row{border-bottom:none;padding:4px 0}
.zp-report-run-btn{margin-top:2px}
/* Document template detail: the .docx download sits under the file's own rows */
.zp-doc-download-btn{margin-top:12px}
.zp-doc-preview-hint{font-size:12px;color:#8b93a1;margin-bottom:10px}
.zp-doc-preview-frame{display:block;width:100%;height:780px;border:1px solid #e3e6eb;border-radius:8px;background:#f4f5f7}
.zp-report-results{margin-top:18px}
.zp-report-results-scroll{overflow-x:auto;border:1px solid #eef0f4;border-radius:10px}
.zp-report-results-table{width:100%;border-collapse:collapse;font-size:12.5px}
.zp-report-results-table th{text-align:left;padding:9px 12px;background:#f7f8fb;color:#8b93a1;font-weight:700;font-size:11px;text-transform:uppercase;letter-spacing:.04em;border-bottom:1px solid #eef0f4;white-space:nowrap}
.zp-report-results-table td{padding:9px 12px;color:#1a1f26;border-bottom:1px solid #eef0f4;white-space:nowrap}
.zp-report-results-table tr:last-child td{border-bottom:none}

/* Form Detail Layout */
.zp-component-detail-modal.zp-form-modal{width:90%;max-width:760px}
.zp-form-detail-container{display:flex;gap:28px;height:100%}
.zp-form-preview{flex:1;display:flex;flex-direction:column;min-width:0}
.zp-form-fields-list{width:240px;border-left:1px solid #eef0f4;display:flex;flex-direction:column;min-width:0;overflow:hidden}
.zp-form-fields-list .zp-detail-section-title{padding-left:12px}
.zp-form-fields-list .zp-detail-fields{padding:0 12px}
.zp-form-content{flex:1;overflow-y:auto;padding:16px 0}
/* The start form rendered inline in the preview panel (post-build landing) rather than in the modal:
   the preview body already scrolls and pads, so drop zp-form-content's own scroll/top-padding to
   avoid a nested scrollbar. */
.zp-startform-bar{margin-bottom:12px;font-size:13px}
.zp-form-content.zp-startform-inline{overflow:visible;padding:0}
/* The inline start form as an A4-style page: a centered white card with real padding sitting on the
   preview's grey board, matching how the form actually renders to a user instead of stretching edge
   to edge. */
.zp-startform-page{display:flex;justify-content:center}
/* guest start form preview: the company logo guests see + Change logo (designerGuestLogo.js) */
/* the guest start form's banner, previewed as the guest page draws it (mobile.css .desktop-page .header: full form
   width, 120px tall at 815px wide, image stretched to fill, 5px corners); Remove / Change on a row under it */
.zp-guest-logo-bar{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:16px 40px;border-bottom:1px solid #eef0f4;background:#fbfaff}
.zp-guest-logo-img{display:block;width:100%;aspect-ratio:815/120;height:auto;object-fit:fill;border-radius:5px}
/* the guest page's sandbox placeholder (js/zpGuestLogo.js), same size as the banner it stands in for */
.zp-guest-logo-ph{box-sizing:border-box;width:100%;aspect-ratio:815/120;display:flex;align-items:center;gap:14px;padding:0 20px;border:2px dashed #c9bfe0;border-radius:8px;background:#f7f4fc;text-align:left}
.zp-guest-logo-ph-mark{flex:0 0 auto;width:48px;height:48px;border-radius:12px;display:flex;align-items:center;justify-content:center;background:linear-gradient(135deg,#7b5cb0,#573d7d);color:#fff}
.zp-guest-logo-ph-text{display:flex;flex-direction:column;min-width:0}
.zp-guest-logo-ph-name{font-size:20px;font-weight:800;color:#2d2240;letter-spacing:-.01em;line-height:1.2}
.zp-guest-logo-ph-hint{margin-top:3px;font-size:13px;font-weight:400;color:#5f5670;line-height:1.35}
.zp-guest-logo-ph-tag{margin-left:auto;flex:0 0 auto;font-size:11px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#8a6d00;background:#fff4cc;border-radius:999px;padding:3px 10px}
.zp-guest-logo-bar .zp-guest-logo-link{color:#573d7d;font-weight:700;text-decoration:underline;white-space:nowrap;cursor:pointer}
.zp-guest-logo-bar .zp-guest-logo-link:hover{color:#3f2b5c}
.zp-guest-logo-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;font-size:13px}
.zp-guest-logo-sep{color:#b8b2c4}
.zp-guest-logo-bar .zp-guest-logo-actions .zp-guest-logo-remove{color:#8b93a1}
.zp-guest-logo-busy{color:#5f5670;font-weight:600}
@media (max-width:767px){.zp-guest-logo-bar{padding:12px 16px}.zp-guest-logo-ph{gap:10px;padding:0 12px}.zp-guest-logo-ph-mark{width:36px;height:36px;border-radius:9px}.zp-guest-logo-ph-name{font-size:16px}.zp-guest-logo-ph-hint{font-size:12px}.zp-guest-logo-ph-tag{display:none}}
.zp-startform-card{width:100%;max-width:820px;background:#fff;border:1px solid #e2e5ec;border-top:3px solid #7c3aed;border-radius:14px;box-shadow:0 1px 2px rgba(20,16,40,.05),0 10px 30px rgba(20,16,40,.07);overflow:hidden}
.zp-startform-card-head{padding:18px 40px;border-bottom:1px solid #eef0f4;font-size:16px;font-weight:800;color:#1a1f26;display:flex;align-items:center;justify-content:space-between;gap:16px;position:relative}
.zp-startform-card-head .zp-form-tweak-popover{top:58px;right:40px;font-weight:normal}
.zp-startform-card-title{display:inline-flex;align-items:center;flex-wrap:wrap;gap:4px 7px}
/* centred on the title's line: a box as tall as the title's line box, its text centred inside it; the smaller
   label's glyphs sit low in their box, so it is lifted 1px to meet the title's middle */
.zp-startform-card-readonly{display:inline-flex;align-items:center;align-self:stretch;font-size:13px;font-weight:500;line-height:1;color:#8b93a1;white-space:nowrap;position:relative;top:-1px}
.zp-startform-card-preview{color:#d93025}
.zp-startform-card-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}
.zp-startform-copy-link{display:flex;align-items:center;gap:7px;height:34px;padding:0 15px;border-radius:9px;cursor:pointer;background:#fff;border:1px solid #dde1e9;color:#3a4150;font-size:12.5px;font-weight:700;font-family:inherit;white-space:nowrap}
.zp-startform-copy-link:hover{border-color:#7c3aed;color:#7c3aed}
.zp-startform-card .zp-form-content.zp-startform-inline{padding:28px 40px 36px}

/* How-it-starts notices (designerStartMode.js): above the start form's fields when an automation fills
   the form in or the public submits it, and above the Forms grid when the process has no start form. */
.zp-start-notice{padding:16px 18px;border-radius:12px;border:1px solid #e3ddf5;background:#f7f4fd;font-size:13px;line-height:1.5;color:#2a2340}
.zp-startform-inline .zp-start-notice{margin:0 0 22px}
.zp-start-notice + .zp-start-notice{margin-top:-10px}
.zp-start-notice-guest{border-color:#d4e4f3;background:#f2f7fc}
.zp-start-notice-parent,.zp-start-notice-plain{border-color:#e2e5ec;background:#f8f9fb}
.zp-start-notice-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:6px}
.zp-start-notice-title{font-size:14px;font-weight:800;color:#3b2a7a;display:inline-flex;align-items:center;flex-wrap:wrap;gap:8px}
.zp-start-notice-guest .zp-start-notice-title{color:#1f4f7a}
.zp-start-notice-close{flex:0 0 auto;width:26px;height:26px;margin:-4px -6px 0 0;border:0;border-radius:6px;background:transparent;color:#5b7088;font-size:20px;line-height:1;cursor:pointer}
.zp-start-notice-close:hover{background:rgba(31,79,122,.08);color:#1f4f7a}
.zp-start-notice-parent .zp-start-notice-title,.zp-start-notice-plain .zp-start-notice-title{color:#3a4150}
.zp-start-notice p{margin:0 0 8px}
.zp-start-notice p:last-child{margin-bottom:0}
.zp-start-notice ul{margin:2px 0 8px 18px;padding:0}
.zp-start-notice li{margin:2px 0}
.zp-start-notice-status{display:inline-flex;align-items:center;padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700;background:#fff;border:1px solid #e3ddf5;color:#6d28d9}
.zp-start-notice-status-off{color:#b45309;border-color:#f3dcb8}
.zp-start-notice-status-on{color:#15803d;border-color:#bfe3c9}
.zp-start-notice-btn{flex-shrink:0;height:32px;padding:0 13px;border-radius:9px;cursor:pointer;background:#fff;border:1px solid #dde1e9;color:#3a4150;font-size:12.5px;font-weight:700;font-family:inherit;white-space:nowrap}
.zp-start-notice-btn:hover{border-color:#7c3aed;color:#7c3aed}
.zp-start-notice-standalone{max-width:820px;margin:0 auto 18px}
.zp-browse-item-note .zp-browse-item-meta{font-style:italic}

/* A browse component (email / report / data component / role / document template) opened INLINE in the
   preview panel - componentDetailInlineTemplate. Same centered card look as the inline start form,
   reusing the modal's header/body classes but without the modal's fixed height + inner scroll (the
   preview body scrolls instead). Reports/dashboards get a wider card. */
.zp-detail-inline{display:flex;justify-content:center}
.zp-detail-inline-card{width:100%;max-width:820px;background:#fff;border:1px solid #e2e5ec;border-top:3px solid #7c3aed;border-radius:14px;box-shadow:0 1px 2px rgba(20,16,40,.05),0 10px 30px rgba(20,16,40,.07);display:flex;flex-direction:column}
.zp-detail-inline-wide .zp-detail-inline-card{max-width:1080px}
.zp-detail-inline-card .zp-component-detail-body{overflow:visible}
.zp-form-field{margin-bottom:16px}
.zp-form-field label{display:block;font-size:13px;font-weight:600;color:#1a1f26;margin-bottom:6px}
.zp-form-field input,.zp-form-field textarea,.zp-form-field select{width:100%;padding:10px 12px;border:1px solid #e2e5ec;border-radius:8px;font-size:13px;background:#fff;color:#1a1f26;font-family:inherit}
.zp-form-field-checkbox label{display:flex;align-items:center;gap:8px;font-weight:500}
.zp-form-field-checkbox input{width:auto}
.zp-form-radio-group{display:flex;flex-direction:column;gap:8px}
.zp-form-radio-option{display:flex;align-items:center;gap:8px;font-size:13px;font-weight:400;color:#1a1f26;margin:0}
.zp-form-radio-option input{width:auto}
.zp-form-checklist-group{display:flex;flex-wrap:wrap;gap:8px}
.zp-form-checklist-option{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;color:#1a1f26;margin:0;padding:7px 14px;border:1px solid #e1e4ea;border-radius:999px;cursor:pointer;background:#fff}
.zp-form-checklist-option:has(input:checked){border-color:#7c3aed;background:#f3edff;color:#6d28d9}
.zp-form-checklist-option input{width:auto;margin:0}
.zp-cl-follow{margin-top:12px;display:flex;flex-direction:column;gap:12px;padding:12px 14px;background:#faf8ff;border:1px solid #e9e0fb;border-radius:10px}
.zp-cl-follow[hidden],.zp-cl-follow-item[hidden],.zp-cl-follow .zp-form-req[hidden]{display:none}
.zp-cl-follow textarea{min-height:60px}
.zp-cl-corrective{display:flex;flex-wrap:wrap;gap:8px;align-items:center}
.zp-cl-corrective select,.zp-cl-corrective input[type=text]{flex:1;min-width:120px}
.zp-cl-check{display:flex;align-items:center;gap:6px;font-size:13px;font-weight:500;margin:0}
.zp-cl-check input{width:auto}
.zp-form-section{margin-bottom:20px;border-top:1px solid #eef0f4;padding-top:16px}
.zp-form-section:first-child{border-top:none;margin-top:0;padding-top:0}
/* Section titles in the brand purple, matching the real form's section headers (e.g. "Claim Details"). */
.zp-form-section h4{font-size:13px;font-weight:700;color:#6d28d9;letter-spacing:.01em;margin:0 0 14px 0}
/* Multi-page form preview (formPreviewHTML): page tabs + one page at a time + Previous/Next, as the
   Employee Portal shows a multi-page form. */
.zp-form-pages{display:flex;flex-direction:column}
.zp-form-pagetabs{display:flex;gap:4px;overflow-x:auto;border-bottom:1px solid #e2e5ec;margin-bottom:18px;scrollbar-width:thin}
.zp-form-pagetab{flex-shrink:0;background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1px;padding:8px 12px;font:inherit;font-size:12.5px;color:#5b6472;cursor:pointer;white-space:nowrap}
.zp-form-pagetab:hover{color:#1a1f26}
.zp-form-pagetab-active{color:#6d28d9;font-weight:700;border-bottom-color:#7c3aed}
.zp-form-pagenav{display:flex;align-items:center;justify-content:space-between;gap:12px;border-top:1px solid #eef0f4;margin-top:8px;padding-top:14px}
.zp-form-pagenav-btn{background:none;border:none;font:inherit;font-size:12.5px;color:#5b6472;cursor:pointer;padding:4px 2px}
.zp-form-pagenav-btn:hover:not(:disabled){color:#6d28d9}
.zp-form-pagenav-btn:disabled{color:#c7cbd3;cursor:default}
.zp-form-pagenav-count{font-size:11.5px;color:#8b93a1}
/* Information element: static guidance text, not an input. */
.zp-form-info{font-size:12.5px;color:#3b4250;line-height:1.5;margin-bottom:14px;white-space:pre-line}
.zp-form-layout{display:flex;gap:16px;margin-bottom:16px}
.zp-form-column{flex:1}

/* Field markers + control types that mirror the real form renderer (pulpstreamTemplate.js). */
.zp-form-req{color:#dc2626;font-weight:700;margin-left:4px}
.zp-form-help{display:inline-flex;align-items:center;justify-content:center;width:15px;height:15px;margin-left:6px;border-radius:50%;background:#eceaf4;color:#8b7fb0;font-size:10px;font-weight:700;cursor:help;vertical-align:middle}
/* Read-only / computed fields render with a grey fill and non-editable, like fieldAttribute==2 in the
   real UI (zpPortalForms.css mirrors this). The text stays the normal dark colour so a read-only value is
   as legible as an editable one; placeholders keep the muted grey so an empty box still looks empty. */
.zp-form-control-readonly,.zp-form-field-readonly input,.zp-form-field-readonly textarea,.zp-form-field-readonly select{background:#eef0f4 !important;color:#1a1f26 !important;-webkit-text-fill-color:#1a1f26;cursor:not-allowed}
.zp-form-control-readonly::placeholder,.zp-form-field-readonly input::placeholder,.zp-form-field-readonly textarea::placeholder{color:#8b93a1;-webkit-text-fill-color:#8b93a1;opacity:1}
.zp-form-field-readonly select[data-zp-readonly-select]{cursor:pointer}
/* Child data list ("Add") and file/image ("Add File") action affordances. */
.zp-form-childlist,.zp-form-file{padding:2px 0}
.zp-form-add-btn{display:inline-flex;align-items:center;gap:6px;padding:7px 14px;border:1px solid #cfc6ea;border-radius:8px;background:#f7f5fd;color:#6d28d9;font-size:12.5px;font-weight:600;font-family:inherit;cursor:default}
.zp-form-add-btn:disabled{opacity:1}
.zp-form-add-btn[data-zp-child-form]{cursor:pointer}
.zp-form-add-btn[data-zp-child-form]:hover{background:#efe9fc;border-color:#a78bfa}
/* Child data list add/edit form (formPreviewHTML "+ Add"): stacks above the component detail modal. */
.zp-childform-overlay{z-index:110}
.zp-childform-footer{display:flex;justify-content:flex-end;gap:10px;padding:14px 24px;border-top:1px solid #e2e5ec;flex-shrink:0}
/* Lookup / "Choose Record" field: a value box with a magnifier on the right. */
.zp-form-lookup{position:relative}
.zp-form-lookup input{padding-right:36px}
.zp-form-lookup-icon{position:absolute;right:12px;top:50%;transform:translateY(-50%);font-size:12px;color:#8b93a1;pointer-events:none}
/* Mockup interactions (bindFormMockEvents): sample-choice lookup menu, picked-file chips, drawing pad,
   child list rows. Nothing behind them is saved. */
.zp-form-add-btn[data-zp-file-pick]:not(:disabled),.zp-form-add-btn[data-zp-pad-open]:not(:disabled){cursor:pointer}
.zp-form-add-btn[data-zp-file-pick]:not(:disabled):hover,.zp-form-add-btn[data-zp-pad-open]:not(:disabled):hover{background:#efe9fc;border-color:#a78bfa}
.zp-form-lookup-input:not(:disabled){cursor:pointer}
.zp-cl-corrective .zp-form-lookup{flex:1;min-width:120px}
.zp-form-lookup-menu{position:absolute;left:0;right:0;top:calc(100% + 4px);z-index:20;background:#fff;border:1px solid #e2e5ec;border-radius:10px;box-shadow:0 12px 32px rgba(20,12,50,.16);padding:6px;max-height:220px;overflow-y:auto}
.zp-form-lookup-hint{font-size:10.5px;font-weight:700;text-transform:uppercase;letter-spacing:.04em;color:#8b93a1;padding:4px 8px 6px}
.zp-form-lookup-option{display:block;width:100%;text-align:left;background:none;border:none;border-radius:7px;padding:8px 10px;font:inherit;font-size:13px;color:#1a1f26;cursor:pointer}
.zp-form-lookup-option:hover{background:#f3edff;color:#6d28d9}
.zp-form-lookup-option-active{font-weight:700;color:#6d28d9}
.zp-form-lookup-clear{color:#8b93a1;border-top:1px solid #eef0f4;border-radius:0 0 7px 7px;margin-top:4px}
.zp-form-file-list{display:flex;flex-wrap:wrap;gap:8px}
.zp-form-file-list:not(:empty){margin-top:8px}
.zp-form-file-chip{display:inline-flex;align-items:center;gap:8px;max-width:100%;padding:5px 6px 5px 10px;border:1px solid #e2e5ec;border-radius:8px;background:#fafbfc;font-size:12.5px;color:#1a1f26}
.zp-form-file-chip span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-form-file-chip img{width:32px;height:32px;object-fit:cover;border-radius:5px}
.zp-form-chip-remove{flex-shrink:0;width:20px;height:20px;padding:0;border:none;border-radius:50%;background:none;color:#8b93a1;font-size:15px;line-height:1;cursor:pointer}
.zp-form-chip-remove:hover{background:#eef0f4;color:#c1392b}
.zp-form-pad[hidden]{display:none}
.zp-form-pad{position:relative}
.zp-form-pad canvas{display:block;width:100%;height:160px;border:1px dashed #cfc6ea;border-radius:8px;background:#fff;touch-action:none;cursor:crosshair}
.zp-form-pad-clear{position:absolute;top:8px;right:8px;background:#fff;border:1px solid #e2e5ec;border-radius:6px;padding:3px 10px;font:inherit;font-size:11.5px;color:#5b6472;cursor:pointer}
.zp-form-pad-clear:hover{color:#6d28d9;border-color:#a78bfa}
.zp-form-childrow{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:8px 6px 8px 12px;margin-bottom:6px;border:1px solid #e2e5ec;border-radius:8px;background:#fafbfc;font-size:13px;color:#1a1f26}
.zp-form-childrow span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-form-childlist .zp-form-childrow + .zp-form-add-btn{margin-top:2px}

/* report results: the Highcharts canvas and its empty/failure states (designerReportChart.js) */
.zp-report-chart{width:100%;min-height:320px;margin:4px 0 14px}
.zp-report-chart-empty{font-size:12.5px;color:#8b93a1;padding:22px 4px;text-align:center;background:#f7f6fa;border-radius:10px;margin:4px 0 14px}

/* An artifact opened in the preview panel rather than in a modal: a global data object (its form
   and fields) or a dashboard (its widgets, running). The panel's own body is the grey board the
   card grid sits on, so the open artifact needs the white surface the modal used to give it. */
.zp-global-detail{background:#fff;border:1px solid #e2e5ec;border-radius:16px;padding:20px 22px;min-height:100%;display:flex;flex-direction:column}
.zp-global-detail-head{margin-bottom:18px}
.zp-global-detail-title{font-size:16px;font-weight:800;color:#1a1f26}
.zp-global-detail-desc{font-size:12.5px;color:#8b93a1;margin-top:4px}
.zp-global-detail .zp-form-detail-container{flex:1;min-height:0}
/* Several forms on one object stack, each under its own name; a single one needs no heading. */
.zp-global-form + .zp-global-form{border-top:1px solid #eef0f4;margin-top:16px;padding-top:16px}
.zp-global-form-name{font-size:12.5px;font-weight:700;color:#1a1f26;margin-bottom:8px}

/* the Dashboards tab body: a horizontal tab bar of boards, the active one's widgets below it
   (designerDashboards.js, dashboardsPanelTemplate) - the same shape as neo.html's dashboard tabs.
   ONE white surface for the whole thing (tabs and widgets both), same as .zp-global-detail gives a
   single opened object - so dashboardInlineTemplate does not nest a second one inside this. */
.zp-dash-panel{background:#fff;border:1px solid #e2e5ec;border-radius:16px;padding:16px 22px 20px;min-height:100%;display:flex;flex-direction:column}
.zp-dash-tabs{display:flex;align-items:center;gap:4px;flex-wrap:wrap;border-bottom:1px solid #eef0f4;margin:0 -22px 18px;padding:0 22px 12px}
.zp-dash-tab{padding:8px 14px;font-size:12.5px;font-weight:600;color:#5b6472;cursor:pointer;border-radius:8px;white-space:nowrap}
.zp-dash-tab:hover{background:#f3f0fb;color:#1a1f26}
.zp-dash-tab-active{background:#f1eafd;color:#5b21b6}
.zp-dash-panel-body{flex:1;min-height:0}

/* a dashboard's widgets, run (designerDashboards.js) */
/* the dashboard's own columns, as the portal draws them: 1 wide left, 3 two even, 2 three, 4/6 one */
.zp-dash-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;align-items:start}
.zp-dash-layout-1{grid-template-columns:minmax(0,2fr) minmax(0,1fr)}
.zp-dash-layout-2{grid-template-columns:repeat(3,minmax(0,1fr))}
.zp-dash-layout-4,.zp-dash-layout-6{grid-template-columns:minmax(0,1fr)}
.zp-dash-col{display:flex;flex-direction:column;gap:14px;min-width:0}
@media (max-width:900px){.zp-dash-grid{grid-template-columns:minmax(0,1fr)}}
.zp-dash-widget{border:1px solid #eef0f4;border-radius:12px;padding:12px 14px;background:#fff;min-width:0}
.zp-dash-widget-title{font-size:12.5px;font-weight:700;color:#1a1f26;margin-bottom:8px}
.zp-dash-widget-note{font-size:12px;color:#8b93a1;padding:18px 4px;text-align:center}
.zp-dash-widget .zp-report-chart{min-height:260px;margin:0}
.zp-dash-widget .zp-report-results-scroll{max-height:260px;overflow-y:auto}

/* a paused automation, told apart from a running one at a glance (designerAutomations.js) */
.zp-comp-card-badge-muted{background:#f1f2f5;color:#8b93a1}

/* Automations - card grid and the When -> For records -> Then detail flow (designerAutomations.js). */
.zp-auto-card{min-height:170px}
.zp-auto-card-body{flex:1;padding:16px 16px 12px;display:flex;flex-direction:column;gap:6px;min-width:0}
.zp-auto-card-top{display:flex;align-items:center;justify-content:space-between;gap:8px;margin-bottom:6px}
.zp-auto-card-name{font-size:14px;font-weight:800;letter-spacing:-.01em;color:#1a1f26;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.zp-auto-card-desc{font-size:12px;line-height:1.5;color:#5b6472;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.zp-auto-card-desc-empty{color:#aeb6c2;font-style:italic}
.zp-auto-card-foot{display:flex;flex-wrap:wrap;gap:6px;padding:10px 16px 14px;border-top:1px solid #f1f2f5;min-width:0}
.zp-auto-card-paused .zp-auto-card-body,.zp-auto-card-paused .zp-auto-card-foot{opacity:.62}
.zp-auto-chip{display:inline-flex;align-items:center;gap:5px;max-width:100%;padding:3px 9px;border-radius:99px;background:#f5f6f9;color:#5b6472;font-size:11px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-auto-chip-target{background:#f3f0fb;color:#6d4fc4}
.zp-auto-chip-icon{font-size:11px;opacity:.8}
.zp-auto-icon{flex-shrink:0;width:30px;height:30px;border-radius:9px;display:inline-flex;align-items:center;justify-content:center;font-size:15px;line-height:1}
.zp-auto-icon-process{background:#f1eafd;color:#7c3aed}
.zp-auto-icon-report{background:#e8f3fe;color:#2f6fd6}
.zp-auto-icon-lg{width:42px;height:42px;border-radius:12px;font-size:20px}
.zp-auto-status{flex-shrink:0;display:inline-flex;align-items:center;gap:6px;padding:3px 10px 3px 8px;border-radius:99px;font-size:10.5px;font-weight:700;white-space:nowrap}
.zp-auto-status-dot{width:7px;height:7px;border-radius:50%;background:currentColor}
.zp-auto-status-on{background:#e8f7ef;color:#178a4c}
.zp-auto-status-on .zp-auto-status-dot{box-shadow:0 0 0 3px rgba(23,138,76,.15)}
.zp-auto-status-off{background:#f1f2f5;color:#8b93a1}

.zp-auto-detail-head{display:flex;align-items:flex-start;gap:14px;padding-bottom:18px;margin-bottom:20px;border-bottom:1px solid #eef0f4}
.zp-auto-detail-heading{flex:1;min-width:0}
.zp-auto-detail-title-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.zp-auto-detail-kind{margin-top:2px;font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#a3aab8}
.zp-auto-detail .zp-global-detail-desc{margin-top:8px;font-size:13px;line-height:1.55;color:#5b6472}

.zp-auto-flow{display:flex;flex-direction:column}
.zp-auto-step{display:flex;gap:14px}
.zp-auto-step-rail{position:relative;flex-shrink:0;width:26px;display:flex;justify-content:center}
.zp-auto-step-rail:after{content:'';position:absolute;top:30px;bottom:-4px;left:50%;width:2px;margin-left:-1px;background:#e7defa}
.zp-auto-step:last-child .zp-auto-step-rail:after{display:none}
.zp-auto-step-marker{position:relative;z-index:1;width:26px;height:26px;border-radius:50%;background:#7c3aed;color:#fff;font-size:12px;font-weight:800;display:flex;align-items:center;justify-content:center;box-shadow:0 0 0 4px #fff}
.zp-auto-step-card{flex:1;min-width:0;margin-bottom:16px;padding:14px 16px;border:1px solid #eef0f4;border-radius:12px;background:#fcfbff}
.zp-auto-step-title{font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#a184e4}
.zp-auto-step-headline{margin-top:3px;font-size:15px;font-weight:700;color:#1a1f26;word-break:break-word}
.zp-auto-kv{display:grid;grid-template-columns:max-content 1fr;column-gap:16px;row-gap:7px;margin-top:12px;font-size:12.5px}
.zp-auto-kv-label{color:#8b93a1;font-weight:600}
.zp-auto-kv-value{color:#1a1f26;word-break:break-word}
.zp-auto-kv-warn{color:#b45309;font-weight:600}
.zp-auto-kv-muted{color:#aeb6c2}
.zp-auto-note{margin-top:10px;font-size:12px;color:#8b93a1;font-style:italic}
.zp-auto-note-warn{color:#b45309;font-style:normal;font-weight:600}
.zp-auto-filters-label{margin-top:12px;margin-bottom:6px;font-size:11px;font-weight:700;color:#8b93a1}
.zp-auto-filters,.zp-auto-maps,.zp-auto-items{display:flex;flex-direction:column;gap:6px}
.zp-auto-filter,.zp-auto-map,.zp-auto-item{display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:7px 10px;border-radius:8px;background:#fff;border:1px solid #eef0f4;font-size:12.5px;min-width:0}
.zp-auto-filter-field,.zp-auto-map-field,.zp-auto-item-name{font-weight:700;color:#1a1f26;word-break:break-word}
.zp-auto-filter-op{color:#8b93a1}
.zp-auto-filter-value,.zp-auto-map-value{padding:1px 8px;border-radius:6px;background:#f1eafd;color:#6d4fc4;font-weight:600;word-break:break-word}
.zp-auto-map-arrow{color:#c4b5f0}
.zp-auto-map-how{font-size:10.5px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;color:#a3aab8}
.zp-auto-item-icon{font-size:13px}

/* Retire / Delete menu - the muted "..." after the version pill (designerProcessSettings.js).
   Kept deliberately quiet: no border, grey glyph, wakes up only on hover/open. */
.zp-process-menu-wrap{margin-left:6px}
.zp-process-menu-btn{width:30px;height:34px;display:flex;align-items:center;justify-content:center;border:none;border-radius:9px;background:transparent;color:#a3aab8;font-size:20px;line-height:1;cursor:pointer;font-family:inherit}
.zp-process-menu-btn:hover,.zp-process-menu-btn-open{background:#f3f5f8;color:#5b6472}
.zp-process-menu{position:absolute;top:40px;right:0;width:150px;background:#fff;border:1px solid #e2e5ec;border-radius:10px;box-shadow:0 12px 32px rgba(20,12,50,.14);padding:5px;z-index:40}
.zp-process-menu-item{padding:8px 11px;border-radius:7px;font-size:13px;font-weight:500;color:#3a4150;cursor:pointer}
.zp-process-menu-item:hover{background:#f3f5f8}
.zp-process-menu-sub{display:flex;align-items:center;justify-content:space-between;gap:8px}
.zp-process-menu-sub-caret{font-size:15px;line-height:1;color:#a3aab8}
.zp-process-menu-item-active{background:#f3f0fb;color:#7c3aed}
.zp-process-menu-item-active .zp-process-menu-sub-caret{color:#7c3aed}
/* the version list beside the menu's "Version history" row, not under the "..." */
.zp-history-flyout .zp-history-dropdown{top:0;right:auto;left:calc(100% + 6px)}
.zp-history-flyout-left .zp-history-dropdown{left:auto;right:calc(100% + 6px)}
.zp-modal-narrow{width:400px;max-width:calc(100vw - 32px)}
.zp-app-card-retired{opacity:.6}

/* A component opened inline from the Browse rail is switched via the rail, never "closed" back to
   the category grid - so the inline card has no close (x). The modal keeps its own. */
.zp-detail-inline .zp-component-detail-close{display:none}

/* Live/settled run time on the chat's working rows and build feed ("45s", "1m 30s") - designerChat.js#elapsedHTML. */
.zp-elapsed{margin-left:auto;padding-left:8px;flex-shrink:0;font-size:11px;font-weight:500;font-style:normal;color:#a3aab8;font-variant-numeric:tabular-nums;white-space:nowrap}
/* "You can leave and come back" - pops up above the credits bar, dismissable (designerBuilding.js#buildLeaveNoteTemplate). */
.zp-leave-note{display:flex;align-items:flex-start;gap:8px;margin:0 12px 10px;padding:10px 10px 10px 12px;border-radius:10px;background:#f6f3fd;border:1px solid #e7defa;box-shadow:0 4px 14px rgba(76,52,140,.10);font-size:12px;line-height:1.5;color:#4b4560;flex-shrink:0;animation:zpLeaveNoteIn .25s ease-out}
.zp-leave-note-icon{color:#7c3aed;font-size:13px;line-height:1.4;flex-shrink:0}
.zp-leave-note-text{flex:1;min-width:0}
.zp-leave-note-close{flex-shrink:0;width:20px;height:20px;display:flex;align-items:center;justify-content:center;border:0;border-radius:5px;background:transparent;color:#8b84a3;font-size:11px;line-height:1;cursor:pointer;padding:0}
.zp-leave-note-close:hover{background:#ece5fb;color:#4b4560}
/* Mid-build mini progress toast, shown while the user is peeking at a component (designerBuilding.js buildToastTemplate) */
.zp-build-toast{position:fixed;right:24px;bottom:24px;z-index:900;display:flex;align-items:center;gap:12px;min-width:220px;max-width:calc(100vw - 32px);padding:10px 12px 10px 12px;border-radius:10px;background:#1c1a22;color:#fff;box-shadow:0 8px 24px rgba(20,16,40,.28);animation:zpLeaveNoteIn .25s ease-out}
/* Keep the toast left of the components rail instead of over it: 56px icon strip or 320px open panel (.zp-browse-rail), plus the 24px margin */
.zp-detail-rail-collapsed .zp-build-toast{right:80px}
.zp-detail-rail-open .zp-build-toast{right:344px}
.zp-build-toast-ring{flex-shrink:0}
.zp-build-toast-ring circle:last-child{transition:stroke-dashoffset .4s ease}
.zp-build-toast-text{flex:1;min-width:0}
.zp-build-toast-title{font-size:12px;font-weight:600;line-height:1.35;white-space:nowrap}
.zp-build-toast-sub{font-size:11px;line-height:1.35;color:#b9b4c8;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-build-toast-view{flex-shrink:0;margin-left:8px;padding:4px 6px;border:0;border-radius:6px;background:transparent;color:#c4b5fd;font-size:12px;font-weight:600;cursor:pointer}
.zp-build-toast-view:hover{background:#2c2838;color:#fff}
@media (max-width:767px){.zp-build-toast{display:none}}
@keyframes zpLeaveNoteIn{from{opacity:0;transform:translateY(8px)}to{opacity:1;transform:none}}
.zp-breadcrumb .zp-proc-chip-building{font-size:11px}
.zp-breadcrumb .zp-elapsed{margin-left:-2px;padding-left:0;font-size:12px}
/* Profile menu - the Employee Portal's designer menu (pulpstream2.css .designer-profile-menu), rebuilt here. */
/* Portal parity: the portal's menu gets Tailwind's base line-height (1.5) and zpPortal.css's .mysetting-dropdown
   frame (12px radius, --zp-line border, soft shadow) - mirrored here so the two account menus look the same */
.zp-dp-menu{padding:0;font-family:Inter,-apple-system,'Segoe UI',Helvetica,Arial,sans-serif;line-height:1.5;border-color:#e7e5ee;border-radius:12px;box-shadow:0 12px 32px rgba(28,27,34,.12)}
.zp-dp-menu button{font-family:inherit}
.zp-dp-identity{padding:14px 18px 12px}
.zp-dp-name{font-size:16px;font-weight:700;color:#1a1c1e;line-height:1.3;word-break:break-word}
.zp-dp-role{margin-top:2px;font-size:13px;color:#687588}
.zp-dp-env-label{padding:10px 18px 6px;font-size:11px;font-weight:600;letter-spacing:.08em;text-transform:uppercase;color:#98a2b3;border-top:1px solid #eaecf0}
/* same metrics as the portal's menu (neo/css/pulpstream2.css .designer-profile-menu .dp-env*) so the two read alike */
.zp-dp-env{position:relative;display:flex;gap:10px;padding:10px 18px;cursor:pointer;border-left:3px solid transparent;transition:background-color .15s ease}
.zp-dp-env:hover{background:#f7fafc}
.zp-dp-env-current,.zp-dp-env-current:hover{background:#fdece7;border-left-color:#e03a0e;cursor:default}
.zp-dp-env-marker{flex-shrink:0;width:12px;height:12px;margin-top:3px;border:1.5px solid #98a2b3;border-radius:2px}
.zp-dp-env-current .zp-dp-env-marker{background:#e03a0e;border-color:#e03a0e}
.zp-dp-env-body{min-width:0;flex:1}
/* "Employee portal" on the Sandbox row - the Designer's header button (.zp-header-btn) at menu scale */
.zp-dp-env-portal{position:absolute;top:9px;right:14px;display:flex;align-items:center;gap:4px;height:24px;padding:0 9px;border-radius:7px;border:1px solid #dde1e9;background:#fff;color:#3a4150;font:inherit;font-size:11.5px;font-weight:600;cursor:pointer;white-space:nowrap;transition:color .15s ease,border-color .15s ease,background-color .15s ease}
.zp-dp-env-portal:hover{border-color:#7c3aed;color:#7c3aed;background:#f3f0fb}
.zp-dp-env-title{font-size:15px;font-weight:700;color:#1a1c1e}
.zp-dp-env-desc{margin-top:2px;font-size:12px;color:#687588}
/* Pinned sizes, IDENTICAL in neo/css/pulpstream2.css (.designer-profile-menu): each page inherits a different line
   height (the portal's comes through its stack of themes), so the account menus only match when these are explicit */
.zp-dp-env{padding:12px 18px}
.zp-dp-env-marker{margin-top:5px}
.zp-dp-env-title{line-height:22px}
.zp-dp-env-desc{margin-top:4px;line-height:18px}
.zp-dp-env-portal{top:11px}
/* Sandbox and Production always the same height: every row takes the tallest row's height (e.g. when
   "Development and Testing" wraps beside the Employee portal button) */
.zp-dp-env-list{display:grid;grid-auto-rows:1fr}
.zp-dp-plan .zp-user-plan{line-height:20px;padding:2px 10px}
.zp-dp-plan-link{line-height:20px}
.zp-dp-actions{padding:0;border-top:1px solid #eaecf0}
.zp-dp-item{display:block;width:100%;text-align:left;background:none;border:0;font:inherit;font-size:14px;line-height:1.5;color:#1c1b22;padding:10px 16px;border-radius:8px;cursor:pointer;transition:background-color .3s ease,color .3s ease}
.zp-dp-item:hover{background:#f1ecfd;color:#5b21b6}

/* Your settings / Account Administration inside the Designer (designerPortalPages.js): a muted Back link
   under the logo, the portal screen in a centred column ~70% wide on the portal's own canvas colour */
.zp-portal-page{flex:1;position:relative;display:flex;justify-content:center;min-height:0;background:#F4F3F8}
.zp-portal-page-back{position:absolute;top:16px;left:14px;z-index:2;display:flex;align-items:center;gap:8px;padding:6px 12px;border:0;border-radius:9px;background:transparent;color:#8b93a1;font-size:17px;font-weight:600;line-height:1;font-family:inherit;cursor:pointer;transition:color .15s ease,background-color .15s ease}
.zp-portal-page-back-arrow{display:block;flex-shrink:0;width:20px;height:20px}
.zp-portal-page-back:hover{color:#1a1f26;background:#e4e6eb}
/* The form preview's "Back to the workflow" (designerDetail.js) floats over the top-left of the preview body, and
   the form card is centred at max 760px. At normal zoom the card's top-left stays clear of it. Once the pane is
   narrow (zoomed in, or the chat panel is widened) the card slid under it. Push the card down when the body's
   content box is under 900px. A margin-top percentage resolves against that width, so this is a step: 0 at 900px
   and over (normal zoom is unchanged), 28px below 900px. No container query is needed. */
.zp-preview-body > .zp-portal-page-back + *{margin-top:clamp(0px, (900px - 100%) * 1000, 28px)}
.zp-portal-page-frame{width:70%;height:100%;border:0;background:#F4F3F8}
@media (max-width:1100px){.zp-portal-page{padding-top:64px}.zp-portal-page-frame{width:100%}}

/* Canvas step popups beyond human tasks (designerComponentDetail.js#stepOtherDetailTemplate): rule sets,
   rule steps, decision matrices, task-outcome decisions, start, parallel gateways, subprocesses */
.zp-step-muted{color:#8b93a1}
.zp-step-list{margin:0;padding:0 0 0 18px;display:flex;flex-direction:column;gap:6px}
.zp-step-list li{line-height:1.45}
.zp-step-chip{display:inline-block;padding:1px 8px;border-radius:999px;background:#f1eafd;border:1px solid #e4d9fb;color:#6d28d9;font-size:12px;font-weight:700;line-height:1.5;white-space:nowrap}
.zp-step-code{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:12px;background:#f4f5f8;border:1px solid #e2e5ec;border-radius:6px;padding:1px 6px;overflow-wrap:anywhere}
.zp-step-quote{color:#3a4150;font-style:italic}
.zp-step-desc{font-size:12.5px;margin:-4px 0 8px}
.zp-step-note{font-size:12.5px;margin-top:10px}
.zp-step-table-wrap{overflow-x:auto;border:1px solid #e2e5ec;border-radius:10px}
.zp-step-table{width:100%;border-collapse:collapse;font-size:13px}
.zp-step-table th{text-align:left;padding:8px 12px;background:#f7f8fa;color:#5b6472;font-size:11.5px;font-weight:700;letter-spacing:.02em;border-bottom:1px solid #e2e5ec;white-space:nowrap}
.zp-step-table td{padding:8px 12px;border-bottom:1px solid #eef0f4;color:#1a1f26}
.zp-step-table tr:last-child td{border-bottom:0}

/* "Test process" under the reply that closes the first build (designerChat.js#firstBuildFinalMessageIdx). */
.zp-chat-test-row{display:flex;justify-content:center;gap:8px;margin:16px 0 2px}
.zp-chat-test-btn{height:34px;padding:0 16px;font-size:13px}
.zp-chat-test-btn:disabled{opacity:.5;cursor:not-allowed}

/* Global loading spinner (.loading_div in zeropulp.html): always dead centre of the viewport.
   showLoading() runs jQuery .center() (absolute, scroll-relative inline top/left), but many callers
   just .show() it, which left a full-width block at the top of the page. Fixed + translate wins over
   both, so the spinner sits mid-screen whichever path shows it. */
.loading_div{position:fixed !important;top:50% !important;left:50% !important;transform:translate(-50%,-50%);width:auto !important;height:auto !important;margin:0 !important;pointer-events:none}
.loading_div img{display:block}

/* Sign-up password field (designerSignup.js): an eye button inside the input to show / hide the
   password, and the three rules underneath that tick green as they're met. */
.zp-pw-wrap{position:relative;display:flex}
.zp-pw-wrap input{flex:1;min-width:0;padding-right:42px}
.zp-pw-eye{position:absolute;top:0;right:0;height:100%;width:40px;display:flex;align-items:center;justify-content:center;background:none;border:0;color:#8b93a1;cursor:pointer;border-radius:0 10px 10px 0}
.zp-pw-eye:hover{color:#7c3aed}
.zp-pw-checks{list-style:none;margin:4px 0 0;padding:0;display:flex;flex-direction:column;gap:5px}
.zp-pw-check{display:flex;align-items:center;gap:8px;font-size:12px;color:#8b93a1;transition:color .15s}
.zp-pw-check-icon{width:16px;height:16px;flex-shrink:0;border-radius:99px;border:1.5px solid #dde1e9;display:flex;align-items:center;justify-content:center;color:transparent;transition:background .15s,border-color .15s,color .15s}
.zp-pw-check-ok{color:#15803d}
.zp-pw-check-ok .zp-pw-check-icon{background:#16a34a;border-color:#16a34a;color:#fff}

/* First-run tutorial (designerTutorial.js): a stepped welcome modal over the Designer. */
.zp-tour-overlay{position:fixed;inset:0;background:rgba(24,18,44,.45);backdrop-filter:blur(3px);-webkit-backdrop-filter:blur(3px);z-index:90;display:flex;align-items:center;justify-content:center;padding:16px;animation:zpFadeUp .15s ease}
.zp-tour{position:relative;width:680px;max-width:100%;max-height:100%;background:#fff;border-radius:18px;box-shadow:0 24px 60px rgba(20,12,50,.35);overflow:hidden;display:flex;flex-direction:column}
.zp-tour-progress{height:6px;background:#eef0f6;flex-shrink:0}
.zp-tour-progress-bar{height:100%;background:linear-gradient(90deg,#a855f7,#6366f1);border-radius:0 99px 99px 0;transition:width .3s ease}
.zp-tour-head{display:flex;align-items:center;gap:12px;padding:16px 22px;border-bottom:1px solid #eef0f4;flex-shrink:0}
.zp-tour-step{font-size:12.5px;font-weight:700;color:#7c3aed;background:#f4edff;border:1px solid #e2d6fb;border-radius:99px;padding:5px 13px;white-space:nowrap}
.zp-tour-head-title{font-size:13px;color:#8b93a1;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-tour-body{padding:30px 28px 22px;overflow-y:auto}
.zp-tour-title{margin:0;font-size:24px;font-weight:800;letter-spacing:-.02em;color:#161a22}
.zp-tour-sub{margin:8px 0 22px;font-size:14px;color:#5b6472;text-wrap:pretty}
.zp-tour-card{display:flex;flex-direction:column;align-items:center;text-align:center;padding:30px 28px 28px;border-radius:16px;border:1px solid #ebe6fb;background:linear-gradient(135deg,#f6effe 0%,#eef0fd 100%)}
.zp-tour-icon{width:64px;height:64px;border-radius:18px;display:flex;align-items:center;justify-content:center;color:#fff;background:linear-gradient(135deg,#8b3df0,#6d4aee);box-shadow:0 8px 18px rgba(109,74,238,.32)}
.zp-tour-card-title{margin-top:16px;font-size:17px;font-weight:800;color:#161a22}
.zp-tour-card-text{margin-top:6px;max-width:460px;font-size:13.5px;line-height:1.5;color:#5b6472;text-wrap:pretty}
.zp-tour-mock{width:100%;max-width:560px;pointer-events:none;user-select:none;text-align:left}
.zp-tour-mock .zp-prompt-card{padding:16px 16px 12px}
.zp-tour-mock-text{min-height:66px;font-size:14.5px;line-height:1.5;color:#757575}
.zp-tour-mock .zp-building-card{padding:18px 24px 16px;box-shadow:0 8px 22px rgba(60,40,120,.10)}
.zp-tour-mock .zp-building-header{margin-bottom:12px}
.zp-tour-mock .zp-building-progress{margin-bottom:10px}
.zp-tour-mock .zp-building-row{padding:6px 8px}
.zp-tour-mock-rail{max-width:272px;padding:12px 10px;display:flex;flex-direction:column;gap:12px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 8px 22px rgba(60,40,120,.10);text-align:left}
.zp-tour-mock-chat{max-width:440px;text-align:left}
.zp-tour-mock-chat .zp-chat-panel{width:100%;border:1px solid #e2e5ec;border-radius:14px;overflow:hidden;box-shadow:0 8px 22px rgba(60,40,120,.10)}
.zp-tour-mock-chat .zp-chat-body{overflow:visible;padding:12px;gap:8px}
.zp-tour-mock-typed-ph{color:#9aa3b0}
.zp-tour-mock-kickoff{max-width:420px;text-align:left}
.zp-tour-callout{display:inline-block;margin-bottom:10px;font-size:11.5px;font-weight:700;color:#6d28d9;background:#fff;border:1px solid #e2d6fb;border-radius:99px;padding:4px 12px}
.zp-tour-mock-kickoff .zp-startform-card{max-width:none;box-shadow:0 8px 22px rgba(60,40,120,.10)}
.zp-tour-mock-kickoff .zp-startform-card-head{padding:12px 20px;font-size:14px}
.zp-tour-mock-kickoff .zp-startform-card .zp-form-content.zp-startform-inline{padding:16px 20px 6px}
.zp-tour-mock-kickoff .zp-form-field{margin-bottom:12px}
.zp-tour-mock-typed{flex:1;min-width:0;font-size:12.8px;line-height:1.45;color:#1a1f26;padding:7px 0;text-align:left}
.zp-tour-mock-header{display:flex;flex-wrap:wrap;justify-content:center;gap:10px;padding:12px 14px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 8px 22px rgba(60,40,120,.10)}
.zp-tour-mock-procs{max-width:280px}
.zp-tour-mock-procs .zp-home-apps-title{margin-bottom:10px}
.zp-tour-dots{display:flex;justify-content:center;gap:8px;margin-top:22px}
.zp-tour-dot{width:12px;height:12px;border-radius:99px;border:0;padding:0;cursor:pointer;background:#cfd5e1;transition:width .2s ease,background .2s ease}
.zp-tour-dot:hover{background:#b3bccd}
.zp-tour-dot-active,.zp-tour-dot-active:hover{width:36px;background:linear-gradient(90deg,#a855f7,#7c3aed)}
.zp-tour-foot{display:flex;align-items:center;justify-content:flex-end;gap:12px;padding:16px 22px;border-top:1px solid #eef0f4;background:#fafbfd;flex-shrink:0}
.zp-tour-nav{display:flex;gap:10px}
.zp-tour-back,.zp-tour-next{display:flex;align-items:center;gap:8px;height:44px;padding:0 20px;border-radius:12px;font:inherit;font-size:14.5px;font-weight:700;cursor:pointer}
.zp-tour-back{background:#fff;border:1px solid #e3e6ee;color:#3a4150}
.zp-tour-back:hover:not([disabled]){background:#f3f5f8}
.zp-tour-back[disabled]{color:#b3bccd;cursor:default}
.zp-tour-next{border:0;color:#fff;background:#6366f1;box-shadow:0 6px 14px rgba(99,102,241,.35)}
.zp-tour-next:hover{background:#4f52e0}
@media (max-width:560px){
	.zp-tour-body{padding:22px 18px 16px}
	.zp-tour-title{font-size:20px}
	.zp-tour-card{padding:22px 16px}
	.zp-tour-foot{flex-direction:column;align-items:stretch}
	.zp-tour-nav{justify-content:flex-end}
}

/* Slides with a replica of the UI: the replica and the copy sit side by side so the modal never needs to
   scroll. Narrow screens stack them (the only case where scrolling can't be avoided). */
@media (min-width:761px){
	.zp-tour{width:940px}
	.zp-tour-card-split{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);column-gap:28px;align-items:center;text-align:left;padding:24px 28px}
	.zp-tour-card-split .zp-tour-mock{margin:0 auto}
	.zp-tour-card-split .zp-tour-card-copy{text-align:left}
	.zp-tour-card-split .zp-tour-card-title{margin-top:0}
	.zp-tour-card-split .zp-tour-card-text{max-width:none}
	.zp-tour-body{padding-top:22px;padding-bottom:16px}
	.zp-tour-sub{margin-bottom:16px}
	.zp-tour-dots{margin-top:16px}
}
@media (min-width:761px) and (max-height:760px){
	.zp-tour-body{padding-top:14px;padding-bottom:10px}
	.zp-tour-title{font-size:21px}
	.zp-tour-sub{margin:4px 0 10px}
	.zp-tour-card-split{padding:16px 22px}
	.zp-tour-head,.zp-tour-foot{padding-top:10px;padding-bottom:10px}
	.zp-tour-dots{margin-top:10px}
}

/* Home: "Take the Designer tour" under the prompt box, right-aligned under the Build button (designerHome.js #zpTakeTour) */
.zp-home-tour-link{display:block;margin:10px 0 0 auto;padding:4px 2px;text-align:right;border:0;background:none;font-family:inherit;font-size:13px;font-weight:600;color:#7c3aed;cursor:pointer}
.zp-home-tour-link:hover{text-decoration:underline}

/* Step dots live in the footer, on the same row as Back / Next. */
.zp-tour-foot{justify-content:space-between}
.zp-tour-foot .zp-tour-dots{margin:0}
@media (max-width:560px){
	.zp-tour-foot{flex-direction:row;align-items:center;flex-wrap:wrap;justify-content:center;gap:12px}
	.zp-tour-foot .zp-tour-nav{justify-content:flex-end}
}

/* Dots centered in the footer; Back / Next stay on the right. */
@media (min-width:561px){
	.zp-tour-foot{display:grid;grid-template-columns:1fr auto 1fr;align-items:center}
	.zp-tour-foot .zp-tour-dots{grid-column:2}
	.zp-tour-foot .zp-tour-nav{grid-column:3;justify-self:end}
}

/* Tour: profile-menu replica (sandbox step) - the real .zp-dp-* rules style the rows */
.zp-tour-mock-profile{display:flex;flex-direction:column;align-items:stretch;gap:8px;padding:12px 14px;background:#f7f8fb;border:1px solid #e2e5ec;border-radius:12px}
.zp-tour-profile-menu{position:static;width:100%;max-width:330px;margin:0 auto}
/* the action rows open the menu now (Environment is last), so they drop the divider, not the label */
.zp-tour-profile-menu .zp-dp-actions{border-top:0}

/* Publish tutorial replicas: sandbox -> production, production Start card, Users list */
.zp-tour-mock-envflow{display:flex;flex-direction:column;gap:6px;max-width:340px}
.zp-tour-env{padding:12px 14px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 8px 22px rgba(60,40,120,.08)}
.zp-tour-env-head{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.zp-tour-env-head b{font-size:15px;font-weight:700;color:#1a1c1e}
.zp-tour-env-head i{font-style:normal;font-size:12px;color:#687588}
.zp-tour-env-dot{width:11px;height:11px;border-radius:2px;border:1.5px solid #98a2b3}
.zp-tour-env-sandbox{background:#fdece7;border-color:#f6cfc4}
.zp-tour-env-sandbox .zp-tour-env-dot{background:#e03a0e;border-color:#e03a0e}
.zp-tour-env-prod .zp-tour-env-dot{background:#2f9e58;border-color:#2f9e58}
.zp-tour-env-proc{margin-top:9px;display:flex;align-items:center;justify-content:space-between;padding:8px 11px;border-radius:9px;background:#fff;border:1px solid #e2e5ec;font-size:12.5px;font-weight:600;color:#1a1f26}
.zp-tour-env-proc em{font-style:normal;font-size:10.5px;font-weight:700;color:#2f9e58;background:#e1f5ee;border-radius:99px;padding:2px 8px}
.zp-tour-env-arrow{align-self:center;font-size:12px;font-weight:700;color:#7c3aed}
.zp-tour-env-arrow span{font-size:15px}
.zp-tour-mock-prodstart{max-width:340px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;overflow:hidden;box-shadow:0 8px 22px rgba(60,40,120,.08)}
.zp-tour-ps-bar{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;border-bottom:1px solid #eef0f4;font-size:12px;font-weight:700;color:#1a1f26}
.zp-tour-ps-user{display:flex;align-items:center;gap:7px;font-weight:600;font-size:11.5px}
.zp-tour-ps-user .zp-avatar{width:24px;height:24px;font-size:10px}
.zp-tour-ps-card{margin:14px;padding:14px;border:1px solid #e2e5ec;border-radius:12px;background:#fcfcfe}
.zp-tour-ps-card b{display:block;font-size:14px;color:#1a1f26}
.zp-tour-ps-card p{margin:4px 0 12px;font-size:12px;color:#687588}
.zp-tour-ps-start{display:inline-flex;align-items:center;height:30px;padding:0 14px;border-radius:9px;background:linear-gradient(135deg,#8b5cf6,#6f42c1);color:#fff;font-size:12px;font-weight:700}
.zp-tour-mock-adduser{max-width:340px;background:#fff;border:1px solid #e2e5ec;border-radius:12px;overflow:hidden;box-shadow:0 8px 22px rgba(60,40,120,.08)}
.zp-tour-au-head{display:flex;align-items:center;gap:8px;padding:10px 12px;border-bottom:1px solid #eef0f4;font-size:13px}
.zp-tour-au-env{font-size:10.5px;font-weight:700;color:#2f9e58;background:#e1f5ee;border-radius:99px;padding:2px 8px}
.zp-tour-au-new{margin-left:auto;display:inline-flex;align-items:center;height:26px;padding:0 10px;border-radius:8px;background:linear-gradient(135deg,#8b5cf6,#6f42c1);color:#fff;font-size:11.5px;font-weight:700;box-shadow:0 0 0 3px rgba(167,139,250,.55)}
.zp-tour-au-row{display:flex;align-items:center;gap:10px;padding:9px 12px;border-bottom:1px solid #f1f0f5;font-size:12.5px}
.zp-tour-au-row:last-child{border-bottom:0}
.zp-tour-au-row .zp-avatar{width:26px;height:26px;font-size:10px}
.zp-tour-au-name{flex:1;font-weight:600;color:#1a1f26}
.zp-tour-au-role{font-size:11.5px;color:#687588}

/* Every Designer tutorial slide is the same size: a fixed-height modal whose card fills the body, with the
   slide's content centred in it (smaller windows shrink the replicas instead of letting the size vary). */
@media (min-width:761px){
	.zp-tour{height:min(700px,100%)}
	.zp-tour-body{display:flex;flex-direction:column;flex:1;min-height:0}
	.zp-tour-card{flex:1;justify-content:center}
	.zp-tour-card-split{align-content:center}
}
@media (min-width:761px) and (max-height:700px){
	.zp-tour-card .zp-tour-mock{zoom:.85}
}
@media (min-width:761px) and (max-height:620px){
	.zp-tour-card .zp-tour-mock{zoom:.7}
}

/* Tutorials row in the sidebar: purple, like the Employee Portal's Tutorials item */
.zp-browse-section-tutorials{padding-bottom:6px}
#zpBrowseTutorials,#zpBrowseTutorials .zp-browse-group-icon,#zpBrowseTutorials .zp-browse-group-label{color:#6d28d9}
#zpBrowseTutorials .zp-browse-group-icon{display:flex;align-items:center;justify-content:center;margin-top:0}
#zpBrowseTutorials .zp-browse-group-label{font-weight:600}
#zpBrowseTutorials:hover{background:#f5f3ff}

/* "your process is building" popup (designerBuilding.js) - tutorial look, not a tutorial */
.zp-buildpop-overlay{animation:none}
.zp-buildpop{width:560px}
.zp-buildpop-bar{width:100%;background-size:200% 100%;background-image:linear-gradient(90deg,#a855f7,#6366f1,#a855f7);animation:zpBuildPopBar 2.2s linear infinite}
@keyframes zpBuildPopBar{to{background-position:-200% 0}}
.zp-buildpop-orb{position:relative;width:96px;height:96px;display:flex;align-items:center;justify-content:center}
.zp-buildpop-orb .zp-tour-icon{position:relative;z-index:1;animation:zpBuildPopThink 1.8s ease-in-out infinite}
.zp-buildpop-ring{position:absolute;inset:0;border-radius:50%;border:2px solid rgba(124,58,237,.35);animation:zpBuildPopRing 2.4s ease-out infinite}
.zp-buildpop-ring-b{animation-delay:1.2s}
@keyframes zpBuildPopThink{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
@keyframes zpBuildPopRing{0%{transform:scale(.62);opacity:.9}100%{transform:scale(1.15);opacity:0}}
.zp-buildpop-fun{position:relative;height:20px;width:100%;margin-top:10px;font-size:13px;font-weight:600;color:#7c3aed}
.zp-buildpop-fun span{position:absolute;left:0;right:0;opacity:0;animation:zpBuildPopFun 9s infinite}
.zp-buildpop-fun span:nth-child(2){animation-delay:3s}
.zp-buildpop-fun span:nth-child(3){animation-delay:6s}
@keyframes zpBuildPopFun{0%{opacity:0;transform:translateY(4px)}6%,28%{opacity:1;transform:none}34%,100%{opacity:0}}
.zp-buildpop .zp-tour-close{margin-left:auto;flex-shrink:0;width:32px;height:32px;border:0;border-radius:50%;background:#f4f5f8;color:#5b6472;font-size:22px;line-height:1;cursor:pointer}
.zp-buildpop .zp-tour-close:hover{background:#e8eaf0;color:#161a22}

/* Same size on narrow screens too: fixed height, the body scrolls if a slide is taller */
@media (max-width:760px){
	.zp-tour{height:min(700px,100%)}
	.zp-tour-body{display:flex;flex-direction:column;flex:1;min-height:0}
	.zp-tour-card{flex:1;justify-content:center}
}
.zp-buildpop{height:auto}
.zp-feed-ready-note{margin-top:4px;color:#5b6472}

/* Process Catalog replica (tutorial) - the portal's Home catalog (zpPortalCatalog.css), scaled down */
.zp-tour-mock-catalog{width:100%;max-width:460px;padding:14px 16px 16px;background:#fff;border:1px solid #E7E5EE;border-radius:14px;box-shadow:0 1px 2px rgba(28,27,34,.04);text-align:left}
.zp-tour-cat-section{margin-bottom:10px;font-size:15px;font-weight:600;color:#1C1B22}
.zp-tour-cat-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.zp-tour-cat-card{display:flex;flex-direction:column;gap:6px;padding:12px;background:#fff;border:1px solid #E7E5EE;border-radius:12px;box-shadow:0 1px 2px rgba(28,27,34,.04)}
.zp-tour-cat-card-on{border-color:#DDD3F8;box-shadow:0 6px 18px rgba(28,27,34,.08)}
.zp-tour-cat-card h3{margin:0;font-size:13px;font-weight:600;color:#1C1B22}
.zp-tour-cat-card p{margin:0;font-size:11.5px;line-height:1.45;color:#5E5B6B}
.zp-tour-cat-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:6px;margin-top:auto;padding-top:8px}
.zp-tour-cat-designer{display:inline-flex;align-items:center;padding:0 8px;height:26px;border:1px solid #E7E5EE;border-radius:8px;font-size:10.5px;font-weight:600;color:#3a3744;white-space:nowrap}
.zp-tour-cat-start{display:inline-flex;align-items:center;gap:5px;padding:0 11px;height:26px;border-radius:8px;font-size:11px;font-weight:600;color:#fff;background:#7C3AED}

/* A tutorial's closing "Remember" slide: a checklist of the main points. */
.zp-tour-mock-recap{display:flex;flex-direction:column;gap:8px;max-width:420px}
.zp-tour-recap-row{display:flex;align-items:center;gap:12px;padding:12px 14px;background:#fff;border:1px solid #e7e5ee;border-radius:12px;box-shadow:0 4px 12px rgba(60,40,120,.07);font-size:13.5px;font-weight:600;color:#1c1b22;line-height:1.35}
.zp-tour-recap-tick{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;width:26px;height:26px;border-radius:50%;background:#ede7fb;color:#7c3aed}

/* Account Administration's Users tab (Users.js) - the Publishing tour's "Add your users first" slide. */
.zp-tour-mock-users{width:100%;max-width:560px}
.zp-tour-uwin{background:#fff;border:1px solid #e7e5ee;border-radius:12px;overflow:hidden;box-shadow:0 8px 22px rgba(60,40,120,.10)}
.zp-tour-utabs{display:flex;align-items:center;justify-content:space-between;padding:10px 12px;border-bottom:1px solid #eeedf3}
.zp-tour-utab-on{font-size:12.5px;font-weight:600;color:#5b21b6;border-bottom:2px solid #7c3aed;padding-bottom:4px}
.zp-tour-uactions{display:inline-flex;align-items:center;gap:8px}
.zp-tour-addview{display:inline-flex;align-items:center;gap:4px;font-size:10.5px;font-weight:600;color:#6d28d9;white-space:nowrap}
.zp-tour-newuser{display:inline-flex;align-items:center;gap:5px;min-height:28px;padding:0 11px;border-radius:8px;background:#7c3aed;color:#fff;font-size:11.5px;font-weight:600;box-shadow:0 0 0 3px #e2d6fb}
.zp-tour-settingsbtn{display:inline-flex;align-items:center;min-height:28px;padding:0 10px;border:1px solid #e7e5ee;border-radius:8px;font-size:11px;font-weight:600;color:#1c1b22}
.zp-tour-usearch{display:flex;align-items:center;justify-content:space-between;margin:10px 12px;padding:0 10px;height:30px;border:1px solid #e7e5ee;border-radius:8px;font-size:11px;color:#9a97a6}
.zp-tour-usearch i{font-style:normal;font-weight:600;color:#6d28d9}
.zp-tour-utable{width:100%;border-collapse:collapse;table-layout:fixed;font-size:10px;color:#4a4757}
.zp-tour-utable th{padding:7px 4px 7px 12px;text-align:left;font-size:8.5px;font-weight:600;text-transform:uppercase;letter-spacing:.04em;color:#6b6878;background:#fafafc;border-bottom:1px solid #eeedf3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-tour-utable td{padding:8px 4px 8px 12px;border-bottom:1px solid #f1f0f5;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-tour-utable td b{font-weight:600;color:#1c1b22}

/* "Look at this button": when two slides share a picture, the one the slide is about pulses, lifts and
   gets a mouse pointer on it, and the rest of the picture fades back a little. */
@keyframes zpTourHlPulse{0%{box-shadow:0 0 0 2px #fff,0 0 0 4px #7c3aed,0 0 0 4px rgba(124,58,237,.45)}70%{box-shadow:0 0 0 2px #fff,0 0 0 4px #7c3aed,0 0 0 14px rgba(124,58,237,0)}100%{box-shadow:0 0 0 2px #fff,0 0 0 4px #7c3aed,0 0 0 14px rgba(124,58,237,0)}}
.zp-tour-hl{position:relative;z-index:2;border-radius:8px;box-shadow:0 0 0 2px #fff,0 0 0 4px #7c3aed;animation:zpTourHlPulse 1.8s ease-out infinite}
.zp-tour-hl{transform:scale(1.08)}
.zp-tour-hl::after{content:'';position:absolute;right:-12px;bottom:-16px;width:24px;height:24px;background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24'%3E%3Cpath d='M5 3l14 7.5-6.2 1.6L10 18.5z' fill='%231c1b22' stroke='%23fff' stroke-width='1.6' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center/contain;pointer-events:none;filter:drop-shadow(0 2px 3px rgba(0,0,0,.25))}
@media (prefers-reduced-motion:reduce){.zp-tour-hl{animation:none}}
.zp-tour-mock-header:has(.zp-tour-hl) .zp-header-btn:not(.zp-tour-hl),.zp-tour-mock-header:has(.zp-tour-hl) .zp-process-menu-btn{opacity:.45}
.zp-tour-mock-header:has(.zp-tour-hl){padding-bottom:18px;overflow:visible}
.zp-tour-hl-quiet{transform:none}
.zp-tour-hl-quiet::after{display:none}

/* The Designer top-bar replica: a real-looking bar (logo, process name + version chip, the buttons spaced
   out so their highlight rings never touch) over a faded hint of the page. */
.zp-tour-mock-header{display:block;width:100%;max-width:560px;padding:0;gap:0;overflow:visible;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 8px 22px rgba(60,40,120,.10)}
.zp-tour-mock-header:has(.zp-tour-hl){padding:0}
.zp-tour-hdr-bar{display:flex;align-items:center;gap:8px;padding:12px 14px 16px;border-bottom:1px solid #eef0f4}
.zp-tour-hdr-logo{flex-shrink:0;display:block}
.zp-tour-hdr-title{min-width:0;font-size:13px;font-weight:700;color:#1a1f26;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-tour-hdr-chip{flex-shrink:0;font-size:10px;font-weight:600;color:#5b6472;background:#f1f3f7;border-radius:99px;padding:3px 8px;white-space:nowrap}
.zp-tour-hdr-spacer{flex:1;min-width:6px}
.zp-tour-hdr-actions{display:flex;align-items:center;gap:14px;flex-shrink:0}
.zp-tour-mock-header .zp-header-btn{height:32px;padding:0 12px;font-size:12px}
.zp-tour-mock-header .zp-process-menu-btn{width:24px;height:32px;margin-left:-4px}
.zp-tour-hdr-page{display:grid;grid-template-columns:30% 1fr;gap:14px;padding:14px;opacity:.55}
.zp-tour-hdr-side i,.zp-tour-hdr-main i{display:block;height:8px;margin-bottom:9px;border-radius:4px;background:#e7e9ef}
.zp-tour-hdr-side i:nth-child(2n){width:70%}
.zp-tour-hdr-main b{display:block;height:12px;width:45%;margin-bottom:12px;border-radius:4px;background:#dcdfe7}
.zp-tour-hdr-main i:nth-child(3){width:85%}
.zp-tour-hdr-main i:last-child{width:60%;margin-bottom:0}
@media (max-width:640px){.zp-tour-hdr-chip{display:none}}

/* The Account Management heading and tab bar above the Users list. */
.zp-tour-amhead{display:flex;flex-direction:column;gap:2px;padding:12px 12px 6px}
.zp-tour-amhead b{font-size:14px;font-weight:700;color:#1c1b22}
.zp-tour-amhead span{font-size:10.5px;color:#6b6878}
.zp-tour-amtabs{display:flex;gap:14px;padding:0 12px;border-bottom:1px solid #eeedf3;font-size:11px;font-weight:600;color:#6b6878;white-space:nowrap;overflow:hidden}
.zp-tour-amtabs span{padding:6px 0 7px}
.zp-tour-amtabs .zp-tour-amtab-on{color:#5b21b6;border-bottom:2px solid #7c3aed}
.zp-tour-utabs{padding-right:22px}
/* "Explain publishing" in the Publish confirm step: a quiet link on the left that reopens the publishing tour. */
.zp-modal-explain{margin-right:auto;padding:0;border:0;background:none;font:inherit;font-size:12.5px;font-weight:600;color:#7c3aed;cursor:pointer;text-decoration:underline;text-underline-offset:3px}
.zp-modal-explain:hover{color:#5b21b6}
.zp-modal-explain[disabled]{color:#b3bccd;cursor:default}

/* Sidebar tour: the whole rail, the section being explained ringed, the rest shrunk to labels and faded. */
.zp-tour-mock-railfull{gap:8px;padding:10px 8px}
.zp-tour-mock-railfull .zp-browse-overview{padding:4px 8px}
.zp-tour-mock-railfull .zp-browse-group{padding:6px 8px}
.zp-tour-mock-railfull .zp-browse-item-startform{padding:6px 8px}
.zp-tour-sec-on{padding:6px 0 4px;border-radius:10px;background:#faf7ff;box-shadow:0 0 0 2px #7c3aed;animation:zpTourHlPulse 1.8s ease-out infinite}
.zp-tour-sec-off{opacity:.4}
.zp-tour-sec-off .zp-browse-group-desc,.zp-tour-sec-off .zp-browse-item-meta{display:none}
.zp-tour-sec-off .zp-browse-group,.zp-tour-sec-off .zp-browse-item-startform{padding-top:3px;padding-bottom:3px}
.zp-tour-sec-off .zp-browse-group-label,.zp-tour-sec-off .zp-browse-item-name{font-size:12px;font-weight:500}
@media (prefers-reduced-motion:reduce){.zp-tour-sec-on{animation:none}}
/* "Open the sidebar": the closed rail's menu button beside a faded hint of the start form. */
.zp-tour-mock-railopen{display:grid;grid-template-columns:1fr 56px;width:100%;max-width:420px;overflow:visible;background:#fff;border:1px solid #e2e5ec;border-radius:12px;box-shadow:0 8px 22px rgba(60,40,120,.10);text-align:left}
.zp-tour-ro-rail{display:flex;justify-content:center;padding:14px 0 30px;border-left:1px solid #eef0f4}
.zp-tour-ro-rail .zp-browse-collapse-btn{font-size:16px;color:#5b21b6;background:#f3f0fb}
.zp-tour-ro-page{padding:18px 20px;opacity:.55}
.zp-tour-ro-page b{display:block;height:12px;width:45%;margin-bottom:16px;border-radius:4px;background:#dcdfe7}
.zp-tour-ro-page i{display:block;height:7px;width:30%;margin-bottom:6px;border-radius:4px;background:#e7e9ef}
.zp-tour-ro-page em{display:block;height:24px;margin-bottom:12px;border:1px solid #e2e5ec;border-radius:7px;background:#fafbfd}

/* Folded sections in the sidebar tour picture: just the title and a one-line list of the groups. */
.zp-tour-sec-off{gap:0}
.zp-tour-sec-off .zp-browse-section-title{padding-bottom:1px}
.zp-tour-sec-sum{padding:0 10px;font-size:11.5px;color:#5b6472;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-tour-ro-rail{flex-direction:column;align-items:center;gap:18px}
.zp-tour-ro-mini{display:flex;flex-direction:column;align-items:center;gap:3px;font-size:9px;font-weight:600;color:#8b93a1;opacity:.8}
.zp-tour-ro-mini{color:#6d28d9;opacity:1}
.zp-step-target-link{color:#6d28d9;text-decoration:none}
.zp-step-target-link:hover{text-decoration:underline}

/* ===== Process screen - "components rail" concept (2026-11-04) =====
   The chat, preview, start-form card and header restated with the design mockup's values (Inter,
   #F6F5FA board, #E7E4EF / #EFEDF5 rules, #1E1B2E text, #6B6680 muted, 40-44px controls). Kept
   together at the end of the file so they win over the older rules above and can be read as one
   change; the component rules above are untouched. */
.zp-root{color:#1E1B2E;background:#F6F5FA}
.zp-root ::-webkit-scrollbar-thumb{border-color:#F6F5FA}

/* header */
.zp-header{border-bottom-color:#E7E4EF;padding:12px 24px;height:auto;min-height:60px;gap:12px 20px}
.zp-header .zp-badge{font-size:11px;font-weight:600;letter-spacing:.08em;color:#6D28D9;background:#F1EAFE;border-radius:6px;padding:4px 8px}
.zp-breadcrumb-sep{color:#9A95AB}
.zp-header-detail .zp-proc-switcher-title,.zp-header-detail .zp-breadcrumb-app{font-size:16px;font-weight:500;color:#1E1B2E}
.zp-version-chip{font-size:13px;font-weight:600;color:#6D28D9;background:#F1EAFE;border:0;padding:4px 10px}
.zp-header-detail .zp-header-btn{height:40px;padding:0 16px;border-radius:10px;border-color:#D9D4E6;color:#1E1B2E;font-size:14px;font-weight:600;gap:6px}
.zp-header-detail .zp-header-btn:hover{border-color:#7C3AED;color:#6D28D9}
.zp-header-detail .zp-header-publish-btn{padding:0 20px;border-color:#7C3AED;color:#fff}
.zp-header-detail .zp-header-publish-btn:hover{color:#fff}
.zp-header-detail .zp-header-btn[disabled],.zp-header-detail .zp-header-btn[disabled]:hover{color:#1E1B2E;border-color:#D9D4E6}
/* blocked Publish (checked out / mid-build = .zp-header-publish-locked, or [disabled] while publishing): the
   dim outlined state, restated here because the solid rule above would otherwise win and leave white on white */
.zp-header-detail .zp-header-publish-btn[disabled],.zp-header-detail .zp-header-publish-btn[disabled]:hover,.zp-header-detail .zp-header-publish-locked,.zp-header-detail .zp-header-publish-locked:hover{color:#1E1B2E;border-color:#D9D4E6;background:transparent;opacity:.4;cursor:not-allowed}
.zp-header .zp-avatar{width:36px;height:36px;font-size:13px}

/* chat */
.zp-chat-panel{background:#fff;border-right-color:#E7E4EF}
.zp-chat-header{padding:10px 20px;min-height:56px;border-bottom-color:#EFEDF5;font-size:12px;font-weight:600;letter-spacing:.08em;color:#6B6680}
/* the open chat's collapse button sits in this row at its siblings' 36px (same border/chevron as the rail's);
   collapsed, it stays the rail's 44px */
.zp-chat-header .zp-chat-collapse-toggle{width:36px;height:36px;border-radius:8px}
.zp-chat-new-btn{height:36px;padding:0 12px;border-color:#D9D4E6;color:#1E1B2E;font-size:13px;font-weight:500;border-radius:8px}
.zp-chat-history-btn{width:36px;height:36px;border-color:#D9D4E6}
.zp-chat-body{padding:20px;font-size:14px;line-height:1.6}
.zp-chat-msg{font-size:14px;line-height:1.6}
.zp-cost-bar{padding:12px 20px;border-top:0;background:transparent;font-size:13px;color:#6B6680}
.zp-cost-summary,.zp-cost-user-text{font-size:13px;color:#6B6680}
.zp-cost-total{color:#1E1B2E}
/* the meter fills the row between the two readings, as in the mockup (the spacer gives way to it) */
.zp-cost-spacer{display:none}
.zp-cost-user{flex:1;min-width:0;gap:10px;margin-left:2px}
.zp-cost-meter{height:6px;border-radius:3px;background:#EDE9F6;flex:1;width:auto;min-width:40px}
.zp-cost-meter i{border-radius:3px}
.zp-chat-composer{padding:0 20px 20px;border-top:0;background:transparent}
.zp-chat-composer-inner{align-items:center;gap:10px;border:1px solid #D9D4E6;border-radius:14px;padding:10px 10px 10px 12px;box-shadow:none}
.zp-chat-composer-inner textarea{font-size:14px;line-height:1.5;color:#1E1B2E;padding:6px 4px}
.zp-chat-attach{align-self:center;width:36px;height:36px}
.zp-chat-send{width:44px;height:44px;border-radius:10px;font-size:16px}

/* preview */
.zp-preview-panel{background:#F6F5FA}
.zp-preview-header{height:auto;min-height:56px;padding:0 28px;gap:12px;border-bottom-color:#E7E4EF}
.zp-preview-label{font-size:12px;font-weight:600;letter-spacing:.08em;color:#6B6680}
.zp-preview-context{font-size:14px;color:#4A4560;font-family:inherit}
.zp-preview-body{padding:32px 28px}

/* the start-form card */
.zp-startform-card,.zp-detail-inline-card{max-width:760px;border:0;border-top:4px solid #7C3AED;border-radius:16px;box-shadow:0 1px 3px rgba(30,27,46,.08)}
.zp-startform-card-head{padding:28px 32px;border-bottom-color:#EFEDF5;align-items:flex-start;gap:12px}
.zp-startform-card-title{flex-direction:column;align-items:flex-start;gap:4px;font-size:22px;font-weight:700;color:#1E1B2E;line-height:1.2}
.zp-startform-card-readonly{top:0;font-size:14px;font-weight:400}
.zp-startform-card-preview{color:#B42318}
.zp-startform-card .zp-form-content.zp-startform-inline{padding:28px 32px 36px}
.zp-form-tweak-btn{height:44px;padding:0 18px;border:1.5px solid #7C3AED;border-radius:10px;color:#6D28D9;font-size:14px;font-weight:600}
.zp-form-tweak-btn-active{color:#fff}
.zp-startform-copy-link{height:44px;padding:0 16px;border-radius:10px;border-color:#D9D4E6;color:#1E1B2E;font-size:14px;font-weight:600}
.zp-startform-card-head .zp-form-tweak-popover{top:76px;right:32px}

/* Process versions (designerProcessVersions.js): the chip above the chat composer, its history list, and the
   "Saved as Version 1.2" lines in the transcript */
.zp-pv-bar{position:relative;display:flex;justify-content:flex-start;padding:0 20px 8px;flex-shrink:0}
.zp-pv-chip{display:inline-flex;align-items:center;gap:5px;cursor:pointer;font-family:inherit;line-height:1.3}
.zp-pv-chip:hover,.zp-pv-chip-open{background:#E6DAFD}
.zp-pv-chip svg{transition:transform .15s}
.zp-pv-chip-open svg{transform:rotate(180deg)}
.zp-pv-menu{position:absolute;left:20px;bottom:calc(100% + 2px);z-index:30;width:min(340px,calc(100% - 40px));max-height:320px;overflow-y:auto;background:#fff;border:1px solid #E4DEF0;border-radius:12px;box-shadow:0 12px 32px rgba(30,27,46,.14);padding:6px}
.zp-pv-menu-title{font-size:11px;font-weight:700;letter-spacing:.06em;text-transform:uppercase;color:#8b93a1;padding:6px 8px 4px}
.zp-pv-item{padding:8px;border-radius:8px}
.zp-pv-item+.zp-pv-item{border-top:1px solid #F1EEF7}
.zp-pv-item-current{background:#F8F5FE}
.zp-pv-item-head{display:flex;align-items:center;gap:8px}
.zp-pv-item-label{font-size:13px;font-weight:700;color:#1E1B2E;white-space:nowrap}
.zp-pv-item-time{font-size:11.5px;color:#8b93a1;flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.zp-pv-item-tag{font-size:11px;font-weight:700;color:#6D28D9;background:#F1EAFE;border-radius:99px;padding:2px 8px}
.zp-pv-rollback{font-family:inherit;font-size:12px;font-weight:600;color:#6D28D9;background:#fff;border:1px solid #D9D4E6;border-radius:8px;padding:3px 10px;cursor:pointer;white-space:nowrap}
.zp-pv-rollback:hover{background:#F1EAFE;border-color:#C9B8F5}
.zp-version-marker{font-style:normal;color:#7c6aa6;padding:2px 4px 6px;gap:6px}
/* "Undo this change" / "Roll back to this version" at the lower right of a chat reply (designerProcessVersions.js#processVersionMarkers) */
/* the reply + its button: as wide as the reply's bubble (the bubble's own 92% cap moves to the wrapper), so the
   button's right edge is the bubble's */
.zp-pv-msg-wrap{align-self:flex-start;max-width:92%;min-width:0;display:flex;flex-direction:column}
.zp-pv-msg-wrap>.zp-chat-msg,.zp-pv-msg-wrap>.zp-chat-asst{align-self:stretch;max-width:100%}
.zp-pv-msg-wrap .zp-chat-asst-body{max-width:100%}
.zp-pv-action-row{display:flex;justify-content:flex-end;padding:6px 0 4px}
.zp-pv-action{display:inline-flex;align-items:center;gap:6px;font-family:inherit;font-size:12px;font-weight:600;color:#6D28D9;background:#fff;border:1px solid #D9D4E6;border-radius:8px;padding:4px 10px;cursor:pointer;white-space:nowrap}
.zp-pv-action:hover{background:#F1EAFE;border-color:#C9B8F5}
.zp-pv-modal-note{background:#faf8fd;border:1px solid #ece7f6;border-radius:8px;padding:10px 12px;margin-top:-8px}
/* the rollback confirm's list of what goes back with the process (designerProcessVersions.js#rollbackPreviewTemplate) */
.zp-pv-modal-note{max-height:260px;overflow-y:auto}
.zp-pv-asset-group{margin-top:8px}
.zp-pv-asset-title{font-size:11px;font-weight:700;letter-spacing:.05em;text-transform:uppercase;color:#8b93a1}
.zp-pv-asset-group ul{margin:3px 0 0;padding-left:18px}
.zp-pv-asset-group li{margin:1px 0;color:#1E1B2E}
.zp-pv-asset-type,.zp-pv-asset-reason{color:#8b93a1}
.zp-pv-asset-foot{margin:8px 0 0;color:#8b93a1}
