/* WIP001 SocialTalent theme. Shell chrome (nav, top bar, account menu) is themed on every page; the page controls are scoped to .workflow-studio-content. */
/* Approved visual treatment and consolidated account/context menu.
   The original WorkflowEditor rules remain as references for the new studio.
   Load after Cara's base.css and layout utility styles. */
@font-face{font-family:'TT Hoves Pro';font-style:normal;font-weight:400;font-display:swap;src:url('/assets/fonts/tt-hoves-pro-regular.woff2') format('woff2')}
@font-face{font-family:'TT Hoves Pro';font-style:normal;font-weight:500;font-display:swap;src:url('/assets/fonts/tt-hoves-pro-medium.woff2') format('woff2')}
@font-face{font-family:'TT Hoves Pro';font-style:normal;font-weight:600;font-display:swap;src:url('/assets/fonts/tt-hoves-pro-demibold.woff2') format('woff2')}
@font-face{font-family:'TT Hoves Pro';font-style:normal;font-weight:700;font-display:swap;src:url('/assets/fonts/tt-hoves-pro-bold.woff2') format('woff2')}

:root{
  --frost:#ebf5eb;--pastel:#c2f4c4;--lime:#97f881;--leaf:#00a75d;
  --emerald:#156f53;--forest:#124035;--ocean:#02271f;
  --studio-canvas:#f6f8fa;--studio-surface:#fff;--studio-ink:#30313d;
  --studio-text:#414552;--studio-muted:#687284;--studio-subtle:#8792a2;
  --studio-border:#d4dee9;--studio-divider:#e6ebf1;
  --studio-hover:#f6f8fa;--studio-selected:#edf6f1;
  --studio-control-radius:6px;--studio-panel-radius:8px;
  --studio-control-shadow:0 1px 2px rgb(48 49 61 / 6%),0 1px 3px rgb(48 49 61 / 4%);
  --studio-panel-shadow:0 1px 3px rgb(48 49 61 / 4%);
  --field-focus-ring:0 0 0 3px rgb(0 167 93 / 13%);
  --font-ui:'TT Hoves Pro',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;
}
/* Keep the existing 16px rem base: changing it would resize Tailwind's shell,
   spacing, max-widths and icon geometry as an accidental layout change. */
#app-shell{font-family:var(--font-ui)}
.workflow-studio-content{color:var(--studio-text);line-height:1.45;font-size:14px}
#app-shell :is(button,input,textarea,select){font-family:inherit}
#app-shell :is(button,a,input,select,textarea){transition:background-color 120ms,border-color 120ms,color 120ms,box-shadow 120ms}
#app-shell :is(button,a):focus-visible{outline:2px solid var(--leaf);outline-offset:3px}
#app-shell :is(input,select,textarea):focus-visible{outline:0}
#app-shell button:disabled{cursor:not-allowed}

/* Existing shell. Keep its 234px sidebar and 56px top bar. */
#app-nav,#app-topbar{background:var(--studio-surface);border-color:var(--studio-divider)}
#app-main{background:var(--studio-canvas);color:var(--studio-text)}
#app-nav>div:first-child{border-color:var(--studio-divider)}
#app-nav nav>a{border-radius:6px;color:var(--studio-muted);font-weight:500;font-size:14px;line-height:20px}
#app-nav nav>a:hover{color:var(--studio-ink);background:var(--studio-hover)}
#app-nav nav>a[class*="bg-[color:var(--cara-btn)]"]{background:var(--studio-selected);color:var(--emerald);font-weight:600}
#app-nav nav>a[class*="bg-[color:var(--cara-btn)]"]:hover{background:#e6f1eb}
#app-nav nav svg,#app-topbar button>svg{stroke-width:1.65}
.app-nav-icon{width:16px;height:16px;flex:0 0 16px}
.app-nav-placeholder{display:flex;align-items:center;gap:10px;min-height:36px;padding:8px 12px;border-radius:6px;color:var(--studio-muted);font-size:14px;font-weight:500;line-height:20px;cursor:default}
.app-nav-placeholder .app-nav-icon{color:var(--studio-subtle)}
.app-nav-label{flex:1;min-width:0}
.app-nav-soon{flex:0 0 auto;padding:1px 5px;border:1px solid var(--studio-divider);border-radius:4px;background:var(--studio-hover);color:var(--studio-muted);font-size:11px;line-height:16px;font-weight:400;white-space:nowrap}
/* One unbranded identity control replaces the logo, old switcher and footer. */
.account-nav-header{display:flex;align-items:center;padding:5px 8px}
.account-trigger{display:flex;align-items:center;gap:9px;width:100%;min-width:0;height:44px;padding:5px 8px;border:0;border-radius:6px;background:var(--studio-hover);color:var(--studio-text);cursor:pointer;text-align:left;box-shadow:none}
.account-trigger:hover,.account-trigger[aria-expanded=true]{background:#eef2f6}
.account-avatar{display:grid;place-items:center;flex:0 0 28px;width:28px;height:28px;overflow:hidden;border-radius:6px;background:#f2f5f8;color:#516173;font-size:12px;font-weight:600}
.account-avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit}
.account-trigger-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:1px}
.account-context{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:11px;line-height:15px;font-weight:400;color:var(--studio-muted)}
.account-person{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:13px;line-height:17px;font-weight:600;color:var(--studio-ink)}
.account-chevron{width:14px;height:14px;flex:0 0 14px;stroke-width:1.7;color:var(--studio-muted);transition:transform 120ms}
.account-trigger[aria-expanded=true] .account-chevron{transform:rotate(180deg)}
.account-menu{position:fixed;inset:62px auto auto 10px;margin:0;width:300px;max-width:calc(100vw - 20px);max-height:calc(100dvh - 74px);overflow-y:auto;padding:6px;border:1px solid var(--studio-border);border-radius:10px;background:#fff;color:var(--studio-text);font:inherit;box-shadow:0 6px 24px rgb(48 49 61 / 12%);z-index:100}
.account-menu::backdrop{background:transparent}
.account-menu-profile{display:flex;flex-direction:column;align-items:center;gap:16px;padding:24px 16px 22px;text-align:center}
.account-avatar--large{flex-basis:64px;width:64px;height:64px;font-size:22px;border-radius:8px}
.account-menu-profile>div{display:flex;min-width:0;flex-direction:column;align-items:center;gap:4px}
.account-menu-profile strong{color:var(--studio-ink);font-size:17px;line-height:24px;font-weight:600}
.account-menu-profile>div>span{color:var(--studio-muted);font-size:12px;line-height:17px;overflow-wrap:anywhere}
.account-menu-divider{height:1px;background:var(--studio-divider);margin:4px -6px}
.account-menu-label{margin:10px 11px 5px;color:var(--studio-muted);font-size:11px;line-height:16px;font-weight:500}
.account-menu-item{display:flex;align-items:center;gap:10px;min-height:37px;padding:8px 11px;border-radius:6px;color:var(--studio-text);font-size:13px;font-weight:500;line-height:20px;text-decoration:none}
.account-menu-item:hover{background:var(--studio-hover)}
.account-menu-item:focus-visible{outline:0;background:var(--studio-selected);box-shadow:inset 0 0 0 1px var(--leaf)}
.account-menu-item>span{flex:1;min-width:0;overflow-wrap:anywhere}
.account-menu-icon{flex:0 0 16px;width:16px;height:16px;stroke-width:1.65;color:var(--studio-muted)}
.account-menu-group{margin-bottom:8px}
#app-topbar button{border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);box-shadow:var(--studio-control-shadow);font-size:13px;font-weight:600}
#app-topbar button:hover{background:var(--studio-hover)}
#app-topbar button[class*="bg-[color:var(--cara-btn)]"]{background:var(--emerald);border-color:var(--emerald);color:#fff}


.workflow-studio-content{--cara-surface:var(--studio-canvas);--cara-ink:var(--ocean);--cara-btn:var(--emerald);--cara-btn-hover:var(--forest);--cara-accent:var(--emerald);--cara-accent-soft:var(--frost);--cara-selected-bg:var(--studio-selected);--cara-border:var(--studio-divider);--cara-text:var(--studio-text);--cara-cream:var(--frost);--cara-highlight:var(--studio-selected);--ui-element-radius:var(--studio-control-radius);--ui-input-border:var(--studio-border);--field-border:var(--studio-border);--ui-focus-ring:var(--field-focus-ring)}

/* Same header and details card, with the rugby / Stripe visual scale. */
.workflow-studio-content .skill-breadcrumb{font-size:12px;color:var(--studio-subtle)}
.workflow-studio-content .skill-breadcrumb a{color:var(--studio-muted);font-weight:500}
.workflow-studio-content .skill-breadcrumb a:hover{color:var(--emerald)}
.workflow-studio-content .skill-breadcrumb .skill-icon{color:#a3acba}
.workflow-studio-content .skill-header h1{font-size:28px;line-height:36px;font-weight:600;letter-spacing:-.025em;color:var(--studio-ink)}
.workflow-studio-content .skill-card{border:1px solid var(--studio-divider);border-radius:8px;background:white;box-shadow:var(--studio-panel-shadow)}
.workflow-studio-content .skill-info label{color:var(--studio-text);font-size:13px;line-height:20px;font-weight:600}
.workflow-studio-content .skill-info label>.ui-field{margin-top:8px}
.workflow-studio-content .wf-optional{color:var(--studio-muted);font-size:12px;font-weight:400;margin-left:3px}
.workflow-studio-content .skill-card .text-stone-500{color:var(--studio-muted);font-size:12px;line-height:18px;font-weight:400}
.workflow-studio-content .wf-card-divider{background:var(--studio-divider)}
.workflow-studio-content .wf-skill-field .wf-card-label{color:var(--studio-text);font-size:13px;font-weight:600}
.workflow-studio-content .wf-card-hint{color:var(--studio-muted);font-size:12.5px;line-height:19px}
.workflow-studio-content .skill-mode-tabs{background:#eef1f5;border:1px solid var(--studio-divider);border-radius:6px;box-shadow:none;padding:2px}
.workflow-studio-content .skill-mode-tabs button{border-radius:4px;color:var(--studio-muted);font-size:12px;font-weight:600;min-height:30px}
.workflow-studio-content .skill-mode-tabs button.active{color:var(--studio-text);background:#fff;box-shadow:var(--studio-control-shadow)}
.workflow-studio-content .skill-mode-tabs .skill-icon{color:var(--studio-muted);font-size:13px}

/* Control geometry is shared across the existing page and drawers. */
.workflow-studio-content .ui-field,.workflow-studio-content .cara-field,.workflow-studio-content .field-input{border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);font-size:14px;line-height:20px;box-shadow:0 1px 2px rgb(48 49 61 / 3%);padding-left:11px;padding-right:11px}
.workflow-studio-content .ui-field:not(textarea){height:40px}
.workflow-studio-content textarea.ui-field{min-height:96px;padding:10px 11px;line-height:20px}
.workflow-studio-content .ui-field::placeholder,.workflow-studio-content .cara-field::placeholder,.workflow-studio-content .field-input::placeholder{color:var(--studio-subtle);font-weight:400;opacity:1}
.workflow-studio-content .ui-field:hover,.workflow-studio-content .cara-field:hover{border-color:#b8c3d2}
.workflow-studio-content .ui-field:focus,.workflow-studio-content .cara-field:focus,.workflow-studio-content .field-input:focus{outline:0;border-color:var(--leaf);box-shadow:var(--field-focus-ring)}
.workflow-studio-content select.ui-field{appearance:none;padding-right:38px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687284' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");background-position:right 11px center;background-repeat:no-repeat}
.workflow-studio-content .skill-btn,.workflow-studio-content .ui-button{min-height:36px;border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);font-size:13px;font-weight:600;gap:6px;box-shadow:var(--studio-control-shadow)}
.workflow-studio-content .skill-btn>svg,.workflow-studio-content .wf-icon-btn>svg{stroke-width:1.6}
.workflow-studio-content .skill-btn:hover,.workflow-studio-content .ui-button:hover{background:var(--studio-hover);border-color:#bac6d5;box-shadow:var(--studio-control-shadow)}
.workflow-studio-content .skill-btn:focus{box-shadow:var(--field-focus-ring)}
.workflow-studio-content .skill-btn-primary,.workflow-studio-content .skill-btn-primary:disabled:hover,.workflow-studio-content .save-bar>.skill-btn:last-child{color:#fff;background:var(--emerald);border-color:var(--emerald);box-shadow:var(--studio-control-shadow)}
.workflow-studio-content .skill-btn-primary:hover,.workflow-studio-content .save-bar>.skill-btn:last-child:hover{background:var(--forest);border-color:var(--forest);box-shadow:var(--studio-control-shadow)}
.workflow-studio-content .skill-btn:disabled{opacity:.45;box-shadow:none}
.workflow-studio-content .skill-btn:disabled:not(.skill-btn-primary):hover{background:#fff;border-color:var(--studio-border)}
.workflow-studio-content .wf-icon-btn,.workflow-studio-content .icon-btn{border-radius:6px;color:var(--studio-subtle);box-shadow:none}
.workflow-studio-content .wf-icon-btn:hover,.workflow-studio-content .icon-btn:hover{background:var(--studio-hover);color:var(--studio-text)}
.workflow-studio-content .wf-icon-btn:disabled{color:#c6ced9}

/* Existing authoring columns, same widths and placement. */
.workflow-studio-content .wf-h2{color:var(--studio-ink);font-size:16px;line-height:24px;font-weight:600;letter-spacing:-.012em}
.workflow-studio-content .wf-sub{color:var(--studio-muted);font-size:12.5px;line-height:19px}
.workflow-studio-content .wf-sub strong{color:var(--studio-text);font-weight:600}
.workflow-studio-content .wf-empty{border:1px dashed var(--studio-border);border-radius:8px;background:#fff;color:var(--studio-muted);font-size:13px;box-shadow:none}
.workflow-studio-content .wf-step{border:1px solid var(--studio-border);border-radius:8px;background:white;box-shadow:var(--studio-panel-shadow)}
.workflow-studio-content .wf-step-head{border-color:var(--studio-divider);background:#fafbfd}
.workflow-studio-content .wf-step-num{background:#edf1f6;color:var(--studio-muted);font-weight:600;font-size:12px}
.workflow-studio-content .wf-step-title{color:var(--studio-ink);font-size:14px;font-weight:600;line-height:20px}
.workflow-studio-content .wf-step-title::placeholder,.workflow-studio-content .wf-step-body::placeholder{color:var(--studio-subtle);font-weight:400}
.workflow-studio-content .wf-step-title:focus{outline:0}
.workflow-studio-content .wf-step-head:focus-within{border-bottom-color:#badbc9;background:#f8fcfa}
.workflow-studio-content .wf-step-body{background:#fff;color:var(--studio-text);font-size:14px;line-height:22px}
.workflow-studio-content .wf-step-body:focus{box-shadow:inset 0 0 0 2px rgb(0 167 93 / 18%)}
.workflow-studio-content .wf-step--checkpoint{border-color:#cfe2d7;background:#fff}
.workflow-studio-content .wf-step--checkpoint .wf-step-head{background:#f7fbf8}
.workflow-studio-content .wf-step--checkpoint .wf-step-num,.workflow-studio-content .wf-checkpoint-tag{background:var(--frost);color:var(--emerald)}
.workflow-studio-content .wf-checkpoint-tag{font-weight:600;font-size:10px;letter-spacing:.025em}
.workflow-studio-content .wf-checkpoint-warn{color:#8a6123;background:#fffcf5}
.workflow-studio-content .fields-rail{border:1px solid var(--studio-divider);border-radius:8px;background:#fff;box-shadow:var(--studio-panel-shadow)}
.workflow-studio-content .fields-rail-head,.workflow-studio-content .fields-rail-head strong{color:var(--studio-text);font-weight:600;font-size:13px}
.workflow-studio-content .fields-rail-head>svg{color:var(--studio-subtle);stroke-width:1.7}
.workflow-studio-content .fields-rail-hint{color:var(--studio-muted);font-size:12px;line-height:18px}
.workflow-studio-content .fields-rail-hint strong{color:var(--studio-text);font-weight:600}
.workflow-studio-content .fields-rail-hint code,.workflow-studio-content .skill-fields-empty code{background:#f0f3f7;color:var(--studio-text);border:1px solid #e6ebf1;border-radius:4px;font-size:11px;padding:1px 4px}
.workflow-studio-content .fields-rail-hint[style*="border-left"]{border-left-color:#cda15b!important;border-left-width:2px!important;background:#fffbf3!important;color:#786245!important;border-radius:4px!important;line-height:18px}
.workflow-studio-content .fields-rail-hint[style*="border-left"] strong{color:inherit}
.workflow-studio-content .skill-fields-empty{color:var(--studio-muted);font-size:12px;line-height:18px}
.workflow-studio-content .field-def{border-color:var(--studio-divider);background:#fff;border-radius:6px}
.workflow-studio-content .field-def-req{color:var(--studio-muted)!important;font-size:12px!important;font-weight:400!important}
.workflow-studio-content .skill-field-chip{color:var(--emerald);background:var(--frost);border-color:#d7e8dc;font-weight:500}
.workflow-studio-content input[type=checkbox]{accent-color:var(--emerald)}
.workflow-studio-content .wf-combo-list{border:1px solid var(--studio-border);border-radius:6px;background:#fff;box-shadow:0 4px 16px rgb(48 49 61 / 10%)}
.workflow-studio-content .wf-combo-item{color:var(--studio-text);font-size:13px}
.workflow-studio-content .wf-combo-item:hover{background:var(--studio-selected);color:var(--emerald)}
.workflow-studio-content .wf-combo-empty{color:var(--studio-subtle)}
.workflow-studio-content .wf-skill-chip{border-color:#d4e4da;background:#f5faf7;border-radius:6px}
.workflow-studio-content .wf-skill-name{color:var(--emerald);font-size:12px;font-weight:500;border-radius:4px}
.workflow-studio-content .wf-skill-x{color:var(--studio-subtle);border-radius:4px}
.workflow-studio-content .wf-skill-x:hover{background:#e6f1eb;color:var(--emerald)}
.workflow-studio-content .save-bar{border-color:var(--studio-divider);color:var(--studio-muted);font-size:12px}

/* Retained dialogs / side panel. No new controls or information architecture. */
.workflow-studio-content .skill-drawer,.workflow-studio-content .file-viewer{background:#fff;color:var(--studio-text);box-shadow:0 8px 40px rgb(48 49 61 / 15%)}
.workflow-studio-content .skill-drawer::backdrop,.workflow-studio-content .file-viewer::backdrop{background:rgb(35 45 61 / 25%)}
.workflow-studio-content .file-viewer.modal-center{border:1px solid var(--studio-divider);border-radius:12px}
.workflow-studio-content .file-viewer-head,.workflow-studio-content .drawer-head,.workflow-studio-content .drawer-foot{border-color:var(--studio-divider);color:var(--studio-ink)}
.workflow-studio-content .file-viewer-title,.workflow-studio-content .drawer-head h2{color:var(--studio-ink);font-weight:600}
.workflow-studio-content .file-viewer-body,.workflow-studio-content .drawer-content,.workflow-studio-content .run-hint{color:var(--studio-muted)}
.workflow-studio-content .skill-kicker{color:var(--studio-subtle)}
.workflow-studio-content .skill-preview-file-head{background:var(--studio-hover);border-color:var(--studio-divider);color:var(--studio-text)}
.workflow-studio-content .text-neutral-700,.workflow-studio-content .text-stone-700{color:var(--studio-text)}
.workflow-studio-content .text-stone-500,.workflow-studio-content .text-neutral-500{color:var(--studio-muted)}
.workflow-studio-content .text-stone-400,.workflow-studio-content .text-neutral-400{color:var(--studio-subtle)}
.workflow-studio-content .text-neutral-900,.workflow-studio-content .text-stone-900{color:var(--studio-ink)}
.workflow-studio-content .bg-stone-50,.workflow-studio-content .bg-neutral-50{background:var(--studio-hover)}
.workflow-studio-content .border-neutral-200,.workflow-studio-content .border-stone-200{border-color:var(--studio-divider)}

@media(prefers-reduced-motion:reduce){#app-shell :is(button,a,input,select,textarea){transition:none}}


/* ---- workflow studio ---- */

/* New workflow authoring surface. Reuses the approved SocialTalent theme. */
.app-content.workflow-studio-content{max-width:none;height:100%}
.workflow-studio{height:100%;min-height:480px;display:flex;flex-direction:column;color:var(--studio-text);container-name:workflow;container-type:inline-size}
.studio-page-head{flex:0 0 auto;padding:28px 32px 0;background:#fff;border-bottom:1px solid var(--studio-divider)}
.studio-title-row{display:flex;align-items:center;gap:12px;min-width:0;flex:1}
.studio-title-row h1{margin:0;color:var(--studio-ink);font-size:28px;line-height:36px;letter-spacing:-.025em;font-weight:600;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.studio-draft{flex:0 0 auto;padding:2px 9px;border:1px solid var(--studio-border);border-radius:12px;color:var(--studio-muted);font-size:12px;line-height:18px;font-weight:500}
.studio-draft.is-published{color:var(--emerald);border-color:#d3e8de;background:var(--studio-selected)}
.studio-tabs{display:flex;gap:28px;margin-top:12px;overflow-x:auto;scrollbar-width:thin}
.studio-tabs [role=tab]{flex:0 0 auto;white-space:nowrap}
.studio-tabs [role=tab]{position:relative;padding:11px 0 13px;border:0;background:none;color:var(--studio-muted);font-size:14px;line-height:20px;font-weight:500;cursor:pointer}
.studio-tabs [role=tab]:hover{color:var(--studio-ink)}
.studio-tabs [aria-selected=true]{color:var(--emerald);font-weight:600}
.studio-tabs [aria-selected=true]::after{content:'';position:absolute;bottom:0;left:0;right:0;height:2px;background:var(--emerald)}
.studio-tab-panel{flex:1;min-height:0;background:var(--studio-canvas);overflow-y:auto}
.studio-tab-panel[hidden]{display:none}
.studio-workspace{display:grid;grid-template-columns:minmax(0,1fr);height:100%;min-height:0}
.studio-workspace.has-inspector{grid-template-columns:minmax(0,1fr) 400px}
.studio-sequence{overflow-y:auto;padding:24px 32px;min-width:0}
.studio-chain{max-width:440px;margin:0 auto}
.studio-trigger-card,.studio-step-card{display:flex;align-items:center;gap:14px;width:100%;padding:20px;border:1px solid var(--studio-border);border-radius:8px;background:#fff;box-shadow:var(--studio-panel-shadow);text-align:left;color:var(--studio-text)}
.studio-trigger-card{cursor:pointer;min-height:94px}
.studio-trigger-card:hover{border-color:#aab8c7;box-shadow:var(--studio-control-shadow)}
.studio-trigger-card.is-selected{border-color:var(--emerald);box-shadow:0 0 0 1px var(--emerald)}
.studio-node-icon{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border:1px solid var(--studio-divider);border-radius:7px;background:#fff;color:var(--studio-muted)}
.studio-node-icon svg{width:18px;height:18px;stroke-width:1.6}
.studio-trigger-icon{color:var(--emerald);background:var(--studio-selected);border-color:#e0ece5}
.studio-node-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.studio-node-kicker{font-size:12px;line-height:17px;color:var(--studio-muted);font-weight:400}
.studio-node-copy strong{font-size:15px;line-height:21px;font-weight:600;color:var(--studio-ink)}
.studio-node-summary{font-size:12px;line-height:18px;color:var(--studio-muted);overflow-wrap:anywhere}
.studio-option-arrow{flex:0 0 16px;width:16px;height:16px;color:var(--studio-subtle);stroke-width:1.6}
.studio-trigger-check{flex:0 0 16px;width:16px;height:16px;color:var(--emerald);stroke-width:1.8}
.studio-connector{height:20px;width:1px;margin:0 auto;background:#cbd5df}
.studio-add-step{display:flex;align-items:center;justify-content:center;gap:9px;margin:0 auto;padding:6px 12px 6px 6px;border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);font-size:13px;font-weight:600;cursor:pointer;box-shadow:var(--studio-control-shadow)}
.studio-add-step:hover{border-color:#b7c6bd;background:var(--studio-selected);color:var(--emerald)}
.studio-add-icon{display:grid;place-items:center;width:25px;height:25px;border-radius:4px;color:var(--emerald)}
.studio-add-icon svg{width:17px;height:17px;stroke-width:1.8}
.studio-step-card{padding:12px 20px}
.studio-step-card:hover{border-color:#aab8c7}
.studio-step-card.is-selected{border-color:var(--emerald);box-shadow:0 0 0 1px var(--emerald)}
.studio-step-open{display:flex;align-items:center;gap:14px;flex:1;min-width:0;padding:0;border:0;background:none;color:var(--studio-text);text-align:left;cursor:pointer;border-radius:4px}
.studio-icon-button{display:grid;place-items:center;flex:0 0 32px;width:32px;height:32px;padding:0;border:0;border-radius:5px;background:none;color:var(--studio-muted);cursor:pointer}
.studio-icon-button svg{width:16px;height:16px;stroke-width:1.65}
.studio-icon-button:hover{background:var(--studio-hover);color:var(--studio-ink)}
.studio-inspector{display:flex;flex-direction:column;min-width:0;min-height:0;background:#fff;border-left:1px solid var(--studio-divider)}
.studio-inspector-head{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:65px;padding:18px 24px;border-bottom:1px solid var(--studio-divider)}
.studio-inspector-head h2{margin:0;color:var(--studio-ink);font-size:16px;line-height:24px;font-weight:600;letter-spacing:-.01em}
.studio-inspector-subtitle{margin:2px 0 0;color:var(--studio-muted);font-size:12px;line-height:18px}
.studio-inspector-tabs{display:flex;gap:12px;padding:0 24px;border-bottom:1px solid var(--studio-divider);overflow-x:auto;scrollbar-width:thin}
.studio-inspector-tabs [role=tab]{flex:0 0 auto;white-space:nowrap}
.studio-inspector-tabs [role=tab]{position:relative;padding:12px 0;border:0;background:none;color:var(--studio-muted);font-size:13px;line-height:20px;font-weight:500;cursor:pointer}
.studio-inspector-tabs [role=tab]:hover{color:var(--studio-ink)}
.studio-inspector-tabs [aria-selected=true]{color:var(--emerald);font-weight:600}
.studio-inspector-tabs [aria-selected=true]::after{content:'';position:absolute;bottom:-1px;left:0;right:0;height:2px;background:var(--emerald)}
.studio-inspector-page{display:flex;flex:1;flex-direction:column;min-height:0}
.studio-inspector-page[hidden]{display:none}
.studio-trigger-form{display:flex;flex:1;min-height:0;flex-direction:column}
.studio-inspector-body{flex:1;overflow-y:auto;padding:24px}
.studio-panel-intro{margin:0 0 20px;color:var(--studio-muted);font-size:13px;line-height:20px}
.studio-trigger-options{display:flex;flex-direction:column;gap:10px}
.studio-inspector-body:has(.studio-trigger-options){padding-top:20px;padding-bottom:20px}
.studio-trigger-options{gap:8px}
.studio-trigger-options .studio-option{padding:11px 12px}
.studio-option{display:flex;align-items:center;gap:12px;width:100%;padding:14px 12px;border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);text-align:left;cursor:pointer}
.studio-option:hover{border-color:#a4c2b2;background:#f8fbf9}
.studio-option:disabled,.studio-option:disabled:hover{cursor:default;background:#fafbfd;border-color:var(--studio-divider)}
.studio-option:disabled .studio-node-icon{color:var(--studio-subtle);background:#fafbfd}
.studio-option:disabled .studio-option-copy strong{color:var(--studio-muted)}
.studio-coming-soon{flex:0 0 auto;padding:2px 6px;border:1px solid var(--studio-divider);border-radius:4px;color:var(--studio-muted);font-size:11px;line-height:16px;font-weight:400;white-space:nowrap}
.studio-option-copy{display:flex;flex:1;min-width:0;flex-direction:column;gap:3px}
.studio-option-copy strong{color:var(--studio-ink);font-size:13px;line-height:19px;font-weight:600}
.studio-option-copy>span{color:var(--studio-muted);font-size:12px;line-height:18px}
.studio-selected-trigger{display:flex;align-items:center;gap:11px;padding:12px;border:1px solid var(--studio-border);border-radius:6px;margin-bottom:18px}
.studio-selected-trigger strong{flex:1;color:var(--studio-ink);font-size:14px;font-weight:600}
.studio-selected-trigger .studio-node-icon{width:28px;height:28px;flex-basis:28px;border:0}
.studio-button{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:7px 12px;min-height:34px;border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);font-size:13px;line-height:18px;font-weight:600;cursor:pointer;box-shadow:var(--studio-control-shadow)}
.studio-button:hover{background:var(--studio-hover);border-color:#b8c5d3}
.studio-button-primary{border-color:var(--emerald);background:var(--emerald);color:#fff}
.studio-button-primary:hover{border-color:var(--forest);background:var(--forest)}
.studio-button:disabled{opacity:.4;cursor:not-allowed;box-shadow:none}
.studio-button:disabled:hover{border-color:var(--studio-border);background:#fff}
.studio-button-primary:disabled:hover{border-color:var(--emerald);background:var(--emerald)}
.studio-inspector-footer{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto;padding:16px 24px;border-top:1px solid var(--studio-divider)}
.studio-fields{display:flex;flex-direction:column;gap:20px;margin-top:26px}
.studio-field{display:flex;flex-direction:column;gap:7px;color:var(--studio-text);font-size:13px;font-weight:500;line-height:19px}
.studio-field input,.studio-field select,.studio-field textarea{height:36px;width:100%;min-width:0;padding:7px 10px;border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);font:400 13px/20px var(--font-ui);box-shadow:0 1px 2px rgb(48 49 61 / 3%)}
.studio-field select{appearance:none;padding-right:32px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687284' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");background-position:right 9px center;background-repeat:no-repeat}
.studio-field input:focus,.studio-field select:focus,.studio-field textarea:focus{outline:0;border-color:var(--leaf);box-shadow:var(--field-focus-ring)}
.studio-field input::placeholder,.studio-field textarea::placeholder{color:var(--studio-muted)}
.studio-field-hint{margin:7px 0 0;color:var(--studio-muted);font-size:12px;font-weight:400;line-height:18px}
.studio-info-block{margin-top:26px;padding:17px;border-radius:6px;background:var(--studio-hover)}
.studio-fields .studio-info-block{margin-top:4px}
.studio-info-block h3{margin:0 0 6px;color:var(--studio-ink);font-size:13px;font-weight:600;line-height:20px}
.studio-info-block p{margin:0;color:var(--studio-muted);font-size:12px;line-height:19px}
.studio-step-dialog{position:fixed;inset:0;margin:auto;width:540px;max-width:calc(100vw - 40px);max-height:calc(100dvh - 64px);padding:0;border:1px solid var(--studio-border);border-radius:12px;background:#fff;color:var(--studio-text);box-shadow:0 20px 70px rgb(22 34 49 / 18%);overflow-y:auto}
.studio-step-dialog::backdrop{background:rgb(27 42 55 / 22%)}
.studio-dialog-head{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:24px 24px 20px;border-bottom:1px solid var(--studio-divider)}
.studio-dialog-head h2{margin:0;color:var(--studio-ink);font-size:20px;font-weight:600;line-height:28px;letter-spacing:-.015em}
.studio-dialog-head p{margin:4px 0 0;color:var(--studio-muted);font-size:13px;line-height:20px}
.studio-dialog-body{padding:16px}
.studio-option-group{margin:8px 8px 6px;color:var(--studio-muted);font-size:11px;line-height:16px;font-weight:500}
.studio-dialog-body section+section{margin-top:17px}
.studio-step-option{display:flex;align-items:center;gap:13px;width:100%;padding:12px 8px;border:0;border-radius:6px;background:#fff;text-align:left;cursor:pointer}
.studio-step-option:hover{background:var(--studio-hover)}
.studio-step-option:focus-visible{outline:2px solid var(--leaf);outline-offset:-1px}
.studio-header-row{display:flex;align-items:center;justify-content:space-between;gap:24px}
.studio-header-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex:0 0 auto}
.studio-header-separator{height:22px;width:1px;background:var(--studio-divider);margin:0 6px}
.studio-activation{display:flex;align-items:center;gap:8px;margin-right:2px;font-size:13px;line-height:20px;color:var(--studio-muted)}
.studio-status-switch{position:relative;display:flex;align-items:center;width:32px;height:32px;padding:0;border:0;border-radius:6px;background:none;cursor:pointer;flex:0 0 auto}
.studio-status-switch::before{content:'';position:absolute;left:1px;right:1px;top:7px;height:18px;border-radius:12px;background:#a8b1bf}
.studio-status-switch span{position:relative;margin-left:3px;width:14px;height:14px;border-radius:50%;background:#fff;box-shadow:0 1px 2px rgb(20 32 46 / 15%);transition:transform .12s}
.studio-status-switch[aria-checked=true]::before{background:var(--emerald)}
.studio-status-switch[aria-checked=true] span{transform:translateX(12px)}
.studio-status-switch:disabled{opacity:.55;cursor:not-allowed}
.studio-status-switch:focus-visible{outline:2px solid var(--leaf);outline-offset:3px}
.studio-draft-status{display:flex;align-items:center;gap:7px;margin-top:8px;color:var(--studio-muted);font-size:12px;line-height:18px;flex-wrap:wrap}
.studio-draft-status>span:first-child{color:var(--studio-text)}
.studio-footer-hint{margin-right:auto;color:var(--studio-muted);font-size:12px;line-height:18px}
.studio-configuration{max-width:760px;margin:28px 32px;padding:24px;border:1px solid var(--studio-divider);border-radius:8px;background:#fff;box-shadow:var(--studio-panel-shadow)}
.studio-details-head{padding-bottom:20px;border-bottom:1px solid var(--studio-divider)}
.studio-details-head h2{margin:0;font-size:16px;line-height:24px;font-weight:600;color:var(--studio-ink)}
.studio-details-head p{margin:4px 0 0;font-size:13px;line-height:20px;color:var(--studio-muted)}
.studio-details-fields{display:flex;flex-direction:column;gap:20px;margin-top:24px}
.studio-field textarea{height:auto;min-height:110px;resize:vertical}
.studio-field-optional{margin-left:6px;font-size:12px;font-weight:400;color:var(--studio-muted)}
.studio-field-error{margin:6px 0 0;color:#a14b35;font-size:12px;font-weight:400;line-height:18px}
.studio-field input[aria-invalid=true]{border-color:#a14b35}
.studio-field .studio-readonly-field{background:var(--studio-hover);color:var(--studio-muted);box-shadow:none}
.studio-id-hint{margin-top:-14px}
.studio-empty-state{min-height:260px;height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;padding:32px;text-align:center}
.studio-empty-state.is-compact{min-height:210px;height:auto;padding:32px 12px}
.studio-empty-symbol{display:grid;place-items:center;width:40px;height:40px;background:var(--studio-hover);border:1px solid var(--studio-divider);border-radius:8px;color:var(--studio-muted)}
.studio-empty-symbol svg{width:18px;height:18px;stroke-width:1.65}
.studio-empty-state h2{margin:14px 0 0;font-size:15px;line-height:22px;color:var(--studio-ink);font-weight:600}
.studio-empty-state p{margin:5px 0 0;font-size:13px;line-height:20px;color:var(--studio-muted)}
.studio-concept-note{padding:12px 14px;border:1px solid var(--studio-divider);border-radius:6px;background:var(--studio-hover)}
.studio-concept-note strong{display:block;color:var(--studio-text);font-size:12px;font-weight:600;line-height:18px}
.studio-concept-note p{margin:4px 0 0;color:var(--studio-muted);font-size:12px;line-height:18px}
.step-test-stream>.step-concept-note{margin:16px 20px 0;flex:0 0 auto}
.step-edit-logs>.step-concept-note{margin-bottom:20px}
.studio-publish-body{padding:24px}
.studio-publish-summary{margin:0 0 24px;display:grid;gap:14px}
.studio-publish-summary>div{display:grid;grid-template-columns:120px minmax(0,1fr);gap:20px;font-size:13px;line-height:20px}
.studio-publish-summary dt{color:var(--studio-muted)}
.studio-publish-summary dd{margin:0;color:var(--studio-ink);font-weight:500;overflow-wrap:anywhere}
@container workflow (min-width:1400px){.studio-workspace.has-inspector{grid-template-columns:minmax(0,1fr) 420px}}
@container workflow (max-width:1050px){.studio-workspace.has-inspector{grid-template-columns:minmax(0,1fr) 360px}.studio-sequence{padding:40px 24px}.studio-trigger-card,.studio-step-card{padding:16px;gap:10px}.studio-page-head{padding-left:24px;padding-right:24px}.studio-inspector-body{padding:20px}.studio-inspector-head{padding-left:20px;padding-right:20px}.studio-inspector-tabs{padding-left:20px;padding-right:20px}.studio-configuration{margin-left:24px;margin-right:24px}.studio-header-row{gap:16px}}
@container workflow (max-width:850px){.studio-header-row{flex-wrap:wrap}.studio-title-row{flex-basis:100%}.studio-header-actions{justify-content:flex-start}.studio-workspace.has-inspector{grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(380px,1fr);height:auto;min-height:100%}.has-inspector .studio-sequence{max-height:260px;padding:24px;overflow-y:auto}.studio-inspector{min-height:380px;border-left:0;border-top:1px solid var(--studio-divider)}.studio-title-row h1{font-size:24px}.studio-tabs{gap:20px}.studio-trigger-form{min-height:360px}.studio-draft-status>span:last-child{flex-basis:100%}.studio-draft-status>span[aria-hidden]{display:none}}
@container workflow (max-width:480px){.studio-page-head{padding:20px 16px 0}.studio-header-actions{flex-wrap:wrap}.studio-header-separator{display:none}.studio-activation{margin-right:12px}.studio-configuration{margin:20px 16px;padding:20px}.studio-sequence{padding:32px 16px}.studio-title-row h1{font-size:22px}.studio-header-actions .studio-button{padding:7px 10px}.studio-option{gap:8px}.studio-option-copy>span{font-size:11px}.studio-option .studio-node-icon{display:none}}


/* ---- schedule fields ---- */

/* Local schedule editing controls, using the approved studio visual tokens. */
.schedule-fields{display:flex;flex-direction:column;gap:16px;margin-top:16px;color:var(--studio-text)}
.schedule-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px}
.schedule-field{display:flex;flex-direction:column;gap:7px;min-width:0;color:var(--studio-text);font-size:13px;line-height:19px;font-weight:500}
.schedule-field input,.schedule-field select{width:100%;min-width:0;height:36px;padding:7px 10px;border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);font:400 13px/20px var(--font-ui);box-shadow:0 1px 2px rgb(48 49 61 / 3%)}
.schedule-field select{appearance:none;padding-right:30px;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23687284' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m8 10 4 4 4-4'/%3E%3C/svg%3E");background-position:right 8px center;background-repeat:no-repeat}
.schedule-field input:focus,.schedule-field select:focus{outline:0;border-color:var(--leaf);box-shadow:var(--field-focus-ring)}
.schedule-field input::placeholder{color:var(--studio-subtle)}
.schedule-field input[type=date],.schedule-field input[type=time]{padding-left:8px;padding-right:7px}
.schedule-group{min-width:0;margin:0;padding:0;border:0}
.schedule-group legend{padding:0;margin-bottom:8px;color:var(--studio-text);font-size:13px;line-height:19px;font-weight:500}
.schedule-week-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.schedule-week-days button,.schedule-month-days button{display:grid;place-items:center;min-width:0;min-height:34px;padding:5px 0;border:1px solid var(--studio-border);border-radius:5px;background:#fff;color:var(--studio-muted);font:500 11px/18px var(--font-ui);cursor:pointer;box-shadow:0 1px 2px rgb(48 49 61 / 3%)}
.schedule-week-days button:hover,.schedule-month-days button:hover{background:var(--studio-hover);color:var(--studio-text)}
.schedule-week-days button[aria-pressed=true],.schedule-month-days button[aria-pressed=true]{border-color:#b9d7c7;background:var(--studio-selected);color:var(--emerald);font-weight:600;box-shadow:none}
.schedule-month-fields{display:flex;flex-direction:column;gap:12px}
.schedule-hint{margin:6px 0 0;color:var(--studio-muted);font-size:12px;line-height:18px;font-weight:400}
.schedule-month-fields>.schedule-hint{margin-top:0}
.schedule-date-picker{border:1px solid var(--studio-border);border-radius:6px;background:#fff;box-shadow:0 1px 2px rgb(48 49 61 / 3%)}
.schedule-date-picker summary{display:flex;align-items:center;gap:8px;padding:9px 10px;list-style:none;cursor:pointer;color:var(--studio-text);font-size:13px;line-height:18px}
.schedule-date-picker summary::-webkit-details-marker,.schedule-advanced summary::-webkit-details-marker{display:none}
.schedule-date-picker summary>span{flex:1;min-width:0}
.schedule-date-picker summary svg{flex:0 0 15px;width:15px;height:15px;stroke-width:1.6;color:var(--studio-muted)}
.schedule-date-picker[open] summary{border-bottom:1px solid var(--studio-divider)}
.schedule-date-picker[open] summary>svg:last-child,.schedule-advanced[open] summary>svg{transform:rotate(180deg)}
.schedule-date-picker summary:focus-visible,.schedule-advanced summary:focus-visible{outline:2px solid var(--leaf);outline-offset:2px;border-radius:5px}
.schedule-date-picker-body{padding:12px}
.schedule-month-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px}
.schedule-month-days button{min-height:30px;font-size:12px}
.schedule-last-day{display:flex;align-items:center;gap:7px;margin-top:12px;color:var(--studio-text);font-size:12px;line-height:18px;font-weight:400;cursor:pointer}
.schedule-last-day input{width:14px;height:14px;margin:0;accent-color:var(--emerald)}
.schedule-advanced{margin-top:1px;border-top:1px solid var(--studio-divider);padding-top:12px}
.schedule-advanced summary{display:flex;align-items:center;gap:6px;width:max-content;list-style:none;color:var(--studio-muted);font-size:12px;line-height:18px;font-weight:500;cursor:pointer}
.schedule-advanced summary:hover{color:var(--studio-text)}
.schedule-advanced summary svg{width:14px;height:14px;stroke-width:1.6}
.schedule-advanced-body{padding-top:14px}
.schedule-optional{margin-left:3px;color:var(--studio-muted);font-size:11px;font-weight:400}
.schedule-summary{padding:13px 14px;border-radius:6px;background:var(--studio-hover);color:var(--studio-text)}
.schedule-summary p{margin:0;font-size:12px;line-height:19px;font-weight:500;overflow-wrap:anywhere}
.schedule-summary>span{display:block;margin-top:4px;color:var(--studio-muted);font-size:11px;line-height:17px;font-weight:400}
.schedule-errors{padding:11px 13px;border:1px solid #ecd6b4;border-radius:6px;background:#fffaf1;color:#855f28}
.schedule-errors p{margin:0;font-size:12px;line-height:18px;font-weight:400}
.schedule-errors p+p{margin-top:5px}
.schedule-visually-hidden{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}


/* ---- step test / logs ---- */

.step-test-stream {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  color: var(--studio-text);
}

.step-test-feed {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 24px 20px;
}

.step-test-response {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.step-test-avatar {
  display: grid;
  flex: 0 0 27px;
  place-items: center;
  width: 27px;
  height: 27px;
  margin-top: 1px;
  border: 1px solid var(--studio-divider);
  border-radius: 7px;
  background: var(--studio-hover);
  color: var(--studio-muted);
}

.step-test-avatar svg { width: 14px; height: 14px; stroke-width: 1.7; }
.step-test-response-body { flex: 1; min-width: 0; }
.step-test-response-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; min-height: 23px; }
.step-test-response-heading strong { font-size: 12px; line-height: 18px; font-weight: 600; color: var(--studio-ink); }

.step-test-preview-badge {
  padding: 1px 5px;
  border: 1px solid var(--studio-divider);
  border-radius: 4px;
  color: var(--studio-muted);
  font-size: 11px;
  line-height: 17px;
  font-weight: 400;
  white-space: nowrap;
}

.step-test-introduction p, .step-test-summary { margin: 6px 0 0; font-size: 13px; line-height: 20px; }
.step-test-introduction p { color: var(--studio-muted); }
.step-test-attempt { margin-top: 28px; }
.step-test-request { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 22px; }

.step-test-request-bubble {
  padding: 9px 13px;
  border: 1px solid #dcebe1;
  border-radius: 9px 9px 3px 9px;
  background: var(--studio-selected);
  color: var(--emerald);
  font-size: 13px;
  line-height: 20px;
  font-weight: 500;
}

.step-test-message-meta { display: flex; align-items: center; flex-wrap: wrap; justify-content: flex-end; gap: 5px; margin-top: 6px; color: var(--studio-muted); font-size: 11px; line-height: 17px; }
.step-test-older { padding: 0 5px; border: 1px solid #e7dfcd; border-radius: 4px; background: #fcfaf5; color: #856522; }
.step-test-summary { margin-bottom: 14px; }
.step-test-validation { padding: 11px 0; border-top: 1px solid var(--studio-divider); border-bottom: 1px solid var(--studio-divider); }
.step-test-validation-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; color: var(--studio-text); font-size: 12px; line-height: 18px; }
.step-test-validation-heading svg { width: 14px; height: 14px; flex: 0 0 14px; stroke-width: 1.7; }
.step-test-validation-heading strong { font-weight: 600; }
.step-test-validation-heading > span { margin-left: auto; font-weight: 500; }
.step-test-validation.is-valid .step-test-validation-heading svg, .step-test-validation.is-valid .step-test-validation-heading > span { color: var(--emerald); }
.step-test-validation.needs-attention .step-test-validation-heading svg, .step-test-validation.needs-attention .step-test-validation-heading > span { color: #a14b35; }
.step-test-validation.not-checked .step-test-validation-heading svg, .step-test-validation.not-checked .step-test-validation-heading > span { color: var(--studio-muted); }
.step-test-validation p { margin: 7px 0 0; color: var(--studio-muted); font-size: 12px; line-height: 18px; }
.step-test-issues { margin: 7px 0 0; padding-left: 17px; color: #a14b35; font-size: 12px; line-height: 18px; }
.step-test-issues li + li { margin-top: 4px; }

.step-test-evidence { min-width: 0; border-bottom: 1px solid var(--studio-divider); }
.step-test-evidence summary { padding: 11px 0; border-radius: 3px; color: var(--studio-text); font-size: 12px; line-height: 18px; font-weight: 500; cursor: pointer; }
.step-test-evidence summary:hover { color: var(--emerald); }
.step-test-evidence summary:focus-visible { outline: 2px solid var(--leaf); outline-offset: 2px; }
.step-test-evidence summary::marker { color: var(--studio-subtle); font-size: 10px; }
.step-test-evidence-body { padding-bottom: 12px; }
.step-test-check-list { margin: 0; padding-left: 17px; color: var(--studio-muted); font-size: 12px; line-height: 19px; }
.step-test-check-list li + li { margin-top: 6px; }
.step-test-output-note { margin: 0 0 10px; color: var(--studio-muted); font-size: 12px; line-height: 18px; }
.step-test-no-output { margin-top: 11px; }

.step-test-json {
  max-width: 100%;
  max-height: 240px;
  margin: 0;
  overflow: auto;
  padding: 10px;
  border: 1px solid var(--studio-divider);
  border-radius: 5px;
  background: var(--studio-hover);
  color: var(--studio-text);
  font: 11px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.step-test-footer { flex: 0 0 auto; padding: 16px 24px 14px; border-top: 1px solid var(--studio-divider); background: #fff; }
.step-test-button { width: 100%; min-height: 36px; gap: 7px; }
.step-test-button svg { width: 14px; height: 14px; stroke-width: 1.8; }
.step-test-footer p { margin: 8px 0 0; color: var(--studio-muted); text-align: center; font-size: 11px; line-height: 17px; }

.step-edit-logs { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 20px 24px 24px; }
.step-edit-logs-heading { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 20px; color: var(--studio-muted); font-size: 11px; line-height: 18px; }
.step-edit-logs-heading p { margin: 0; }
.step-edit-logs-heading > span { color: var(--studio-muted); font-size: 11px; white-space: nowrap; }
.step-edit-log-list { list-style: none; margin: 0; padding: 0; }
.step-edit-log-entry { position: relative; display: flex; align-items: flex-start; gap: 12px; padding-bottom: 24px; }
.step-edit-log-entry:last-child { padding-bottom: 0; }
.step-edit-log-entry:not(:last-child)::before { position: absolute; content: ''; left: 12px; top: 28px; bottom: 3px; width: 1px; background: var(--studio-divider); }
.step-edit-log-icon { display: grid; place-items: center; flex: 0 0 25px; width: 25px; height: 25px; border: 1px solid var(--studio-divider); border-radius: 50%; background: #fff; color: var(--studio-muted); }
.step-edit-log-icon svg { width: 12px; height: 12px; stroke-width: 1.7; }
.step-edit-log-content { flex: 1; min-width: 0; padding-top: 2px; }
.step-edit-log-meta { display: flex; align-items: center; gap: 8px; color: var(--studio-muted); font-size: 11px; line-height: 17px; }
.step-edit-log-revision { padding: 0 5px; border: 1px solid var(--studio-divider); border-radius: 4px; background: var(--studio-hover); font-size: 11px; line-height: 17px; }
.step-edit-log-revision.is-current { border-color: #dcebe1; background: var(--studio-selected); color: var(--emerald); }
.step-edit-log-content h3 { margin: 5px 0 0; color: var(--studio-ink); font-size: 13px; line-height: 20px; font-weight: 500; }
.step-edit-log-description { margin-top: 4px; }
.step-edit-log-description p { margin: 0; color: var(--studio-muted); font-size: 12px; line-height: 18px; }
.step-edit-log-description p + p { margin-top: 3px; }
.step-edit-log-content .step-test-evidence { margin-top: 7px; }
.step-edit-log-content .step-test-evidence summary { padding: 7px 0; font-size: 12px; }
.step-edit-log-content .step-test-evidence + .step-test-evidence { margin-top: 0; }
.step-edit-logs-empty { display: flex; align-items: center; gap: 10px; padding-top: 5px; color: var(--studio-muted); }
.step-edit-logs-empty svg { width: 16px; height: 16px; stroke-width: 1.6; }
.step-edit-logs-empty p { margin: 0; font-size: 13px; line-height: 20px; }

@media (max-width: 1150px) {
  .step-test-feed { padding-right: 16px; padding-left: 16px; }
  .step-test-footer { padding-right: 20px; padding-left: 20px; }
  .step-edit-logs { padding-right: 20px; padding-left: 20px; }
  .step-test-validation-heading > span { margin-left: 20px; }
}

@media (max-width: 900px) {
  .step-test-stream { min-height: 360px; max-height: 560px; }
  .step-edit-logs { max-height: 500px; }
}


/* ---- brand tiles ---- */

.studio-brand-tile{display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:7px;background:var(--brand-tile-color,#00a75d);box-shadow:inset 0 0 0 1px rgb(0 0 0 / 4%);overflow:hidden;line-height:0}
.studio-brand-tile img{display:block;object-fit:contain;width:22px;height:22px;max-width:none}
.studio-brand-tile-small{flex-basis:28px;width:28px;height:28px;border-radius:6px}
.studio-brand-tile-small img{width:17px;height:17px}
.studio-brand-tile-large{flex-basis:40px;width:40px;height:40px;border-radius:8px}
.studio-brand-tile-large img{width:24px;height:24px}


/* ---- Ask Cara panel ---- */

/* Align the retained Ask Cara panel with the workflow studio's visual family.
   Scope every override to this panel; conversation behavior remains unchanged. */
.cara-assistant-panel {
  min-width: 0;
  background: var(--studio-surface);
  border-color: var(--studio-divider);
  color: var(--studio-text);
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 20px;
}

.cara-assistant-panel .text-sm,
.cara-assistant-panel textarea {
  font-family: var(--font-ui);
  font-size: 13px;
  line-height: 20px;
}

.cara-assistant-panel :is(.text-stone-900, .text-neutral-900) { color: var(--studio-ink); }
.cara-assistant-panel :is(.text-stone-700, .text-stone-600) { color: var(--studio-text); }
.cara-assistant-panel :is(.text-stone-400, .text-stone-500) { color: var(--studio-muted); }
.cara-assistant-panel :is(.bg-stone-50, .bg-stone-100) { background: var(--studio-hover); }
.cara-assistant-panel :is(.border-neutral-100, .border-neutral-200),
.cara-assistant-panel [class*="border-[#e7dfd5]"] { border-color: var(--studio-border); }
.cara-assistant-panel > header,
.cara-assistant-panel > .border-t { border-color: var(--studio-divider); }

.cara-assistant-panel [class*="bg-[#fcfaf6]"] {
  border-color: var(--studio-border);
  background: var(--studio-hover);
  border-radius: 10px;
}
.cara-assistant-panel [class*="bg-[#fcfaf6]"]:focus-within {
  border-color: var(--leaf);
  box-shadow: var(--field-focus-ring);
}
.cara-assistant-panel textarea::placeholder { color: var(--studio-subtle); }

.cara-assistant-panel a[class*="bg-[#2b211a]"] {
  border-radius: var(--studio-control-radius);
  background: var(--emerald);
  color: #fff;
  font-weight: 500;
}
.cara-assistant-panel a[class*="bg-[#2b211a]"]:hover { background: var(--forest); }
.cara-assistant-panel button.bg-stone-800 { background: var(--emerald); }
.cara-assistant-panel button.bg-stone-100:hover { background: #edf1f5; }

.cara-assistant-panel .wf-icon-btn {
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: var(--studio-control-radius);
  color: var(--studio-muted);
}
.cara-assistant-panel .wf-icon-btn:hover { background: #edf1f5; color: var(--studio-ink); }
.cara-assistant-panel .wf-icon-btn > svg { width: 16px; height: 16px; stroke-width: 1.65; }
.cara-assistant-panel button[title="Remove"] {
  display: inline-grid;
  place-items: center;
  flex: 0 0 32px;
  width: 32px;
  height: 32px;
  border-radius: var(--studio-control-radius);
  color: var(--studio-muted);
}
.cara-assistant-panel button[title="Remove"]:hover { background: var(--studio-hover); color: var(--studio-ink); }
.cara-assistant-panel button[title="Remove"] > svg { width: 14px; height: 14px; stroke-width: 1.65; }
.cara-assistant-panel button[title="Send"] { min-width: 36px; padding: 0 9px; }
.cara-assistant-panel button[title="Send"] > svg { width: 16px; height: 16px; stroke-width: 1.65; }

/* ---- not-supported-yet affordances ---- */
.account-menu-item.is-disabled{opacity:.55;cursor:not-allowed}
.account-menu-item.is-disabled:hover{background:none}
.app-nav-placeholder[title]{cursor:not-allowed}
.workflow-studio-content :is(button,.studio-button,.studio-option,.studio-step-option):disabled{cursor:not-allowed}
.studio-unsupported{display:inline-flex;max-width:100%}
.studio-unsupported>:disabled{pointer-events:none}
.studio-unsupported[title]{cursor:not-allowed}
.studio-note{display:flex;flex-direction:column;gap:4px;margin:0 0 16px;padding:12px 14px;border:1px solid var(--studio-divider);border-left:3px solid var(--leaf);border-radius:6px;background:#fff;color:var(--studio-text);font-size:13px;line-height:19px}
.studio-note strong{color:var(--studio-ink);font-weight:600}
.studio-note p{margin:0;color:var(--studio-muted)}
.studio-section{margin:0 0 20px;padding:20px 24px;border:1px solid var(--studio-divider);border-radius:8px;background:#fff;box-shadow:var(--studio-panel-shadow)}
.studio-section h2{margin:0 0 4px;color:var(--studio-ink);font-size:16px;line-height:24px;font-weight:600}
.studio-section>p{margin:0 0 14px;color:var(--studio-muted);font-size:13px;line-height:19px}
.studio-toast{position:fixed;bottom:24px;left:50%;transform:translateX(-50%);z-index:100;padding:12px 16px;border:1px solid var(--studio-border);border-radius:8px;background:#fff;color:var(--studio-text);font-size:13px;box-shadow:0 4px 16px rgb(48 49 61 / 10%)}
.studio-textarea{width:100%;min-height:160px;padding:10px 11px;border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);font:inherit;font-size:14px;line-height:22px;resize:vertical}
.studio-textarea:focus{outline:0;border-color:var(--leaf);box-shadow:var(--field-focus-ring)}
.studio-table-wrap{max-width:920px;margin:0 auto;border:1px solid var(--studio-divider);border-radius:8px;background:#fff;overflow:hidden;box-shadow:var(--studio-panel-shadow)}
.studio-table-wrap table{width:100%;border-collapse:collapse;text-align:left;font-size:13px}
.studio-table-wrap th{padding:12px 16px;background:#fafbfd;color:var(--studio-muted);font-weight:600;font-size:12px}
.studio-table-wrap td{padding:12px 16px;border-top:1px solid var(--studio-divider);color:var(--studio-text)}
.studio-tab-body{padding:28px 32px}
.studio-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;max-width:920px;margin:0 auto 16px}
.studio-toolbar h2{margin:0;color:var(--studio-ink);font-size:16px;line-height:24px;font-weight:600}
.studio-step-option:disabled,.studio-option:disabled{opacity:.5;cursor:not-allowed}
.studio-step-option:disabled:hover,.studio-option:disabled:hover{background:#fff;border-color:var(--studio-border)}
.workflow-studio-content .wf-skill-chips{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:14px}
.studio-step-fields{margin-top:24px;padding-top:20px;border-top:1px solid var(--studio-divider)}
.studio-step-fields h3{margin:0 0 6px;color:var(--studio-ink);font-size:14px;line-height:20px;font-weight:600}

/* ---- responsive shell + page (phones and small tablets) ---- */
.app-nav-toggle{display:none}
.studio-table-wrap{overflow-x:auto}
.studio-table-wrap table{min-width:560px}
@media (max-width:899px){
  #app-shell{height:100vh;height:100dvh}
  .app-nav-toggle{display:inline-grid;place-items:center;flex:0 0 36px;width:36px;height:36px;padding:0;border:1px solid var(--studio-border);border-radius:6px;background:#fff;color:var(--studio-text);cursor:pointer;box-shadow:var(--studio-control-shadow)}
  #app-nav{position:fixed;top:0;bottom:0;left:0;z-index:60;width:min(280px,86vw)!important;transform:translateX(-102%);visibility:hidden;transition:transform 180ms ease,visibility 0s linear 180ms}
  #app-nav.is-open{transform:none;visibility:visible;box-shadow:0 8px 40px rgb(48 49 61 / 25%);transition:transform 180ms ease,visibility 0s}
  .app-nav-backdrop{position:fixed;inset:0;z-index:55;background:rgb(35 45 61 / 35%)}
  #app-topbar{padding-left:12px!important;padding-right:12px!important}
  #app-right-panel{position:fixed;inset:0;z-index:70;width:100%!important;max-width:100vw}
  .account-menu{max-width:calc(100vw - 20px)}
}
@media (max-width:640px){
  .studio-tab-body{padding:16px}
  .studio-toolbar{flex-wrap:wrap}
  .studio-section{padding:16px}
  .studio-configuration{margin:0 auto 16px!important;padding:20px 16px}
  .studio-header-actions{flex-wrap:wrap}
  .studio-header-separator{display:none}
  /* On a phone the inspector takes the whole screen instead of sitting under the sequence. */
  .studio-workspace.has-inspector .studio-inspector{position:fixed;inset:0;z-index:50;min-height:0;border:0}
  .studio-workspace.has-inspector .studio-sequence{max-height:none}
  .studio-step-dialog{width:calc(100vw - 24px);max-width:calc(100vw - 24px)}
  .studio-toast{left:12px;right:12px;transform:none;text-align:center}
  .skill-drawer{width:100vw;max-width:100vw}
}
/* Wide data tables on the other (not yet redesigned) pages scroll inside their card instead of stretching the page. */
@media (max-width:1100px){
  #app-main table:not(.studio-table-wrap table){display:block;max-width:100%;overflow-x:auto;-webkit-overflow-scrolling:touch}
}
@media (max-width:640px){
  .studio-header-actions{flex:1 1 100%;max-width:100%;min-width:0}
}
.account-menu-workspaces{max-height:240px;overflow-y:auto}


/* ---- WIP003 step editors ---- */
.step-definition-editor{display:flex;flex:1;flex-direction:column;gap:20px;min-width:0;min-height:0;margin:0;padding:24px;overflow-y:auto}
.step-definition-editor>*{flex-shrink:0}
.step-definition-warning{margin:0;padding:10px 12px;border:1px solid #e4d5ba;border-radius:6px;background:#fdf9f0;color:#79521c;font-size:12px;line-height:18px}
.step-definition-fields{display:flex;flex-direction:column;gap:18px;min-width:0}
.step-definition-human-settings{display:flex;flex-direction:column;gap:18px;border-top:1px solid var(--studio-divider);padding-top:18px}
.step-resources-section{display:flex;flex-direction:column;gap:10px;min-width:0}
.step-resources-heading{margin:0;color:var(--studio-ink);font-size:13px;line-height:20px;font-weight:600}
.step-resources-section>.studio-field-hint{margin:0}
.step-resources-groups{display:flex;flex-direction:column;gap:12px}
.step-resources-group{min-width:0;margin:0;padding:12px 14px 14px;border:1px solid var(--studio-divider);border-radius:6px;background:#fff}
.step-resources-group legend{padding:0 5px;color:var(--studio-text);font-size:12px;line-height:18px;font-weight:500}
.step-resources-options{display:flex;flex-direction:column;gap:10px}
.step-resources-group .studio-field-hint{margin-top:10px}
.step-resources-legacy{background:var(--studio-hover)}
.step-resources-optional{color:var(--studio-muted);font-size:12px;font-weight:400}
.step-resources-disabled{color:var(--studio-subtle);cursor:default}
.step-resources-disabled input{cursor:default}
.step-definition-editor .studio-field textarea{min-height:88px}
.step-definition-editor textarea[id$="-instructions"]{min-height:144px}
.step-grader-editor .step-definition-fields{gap:20px}
.step-definition-concept p{margin-bottom:0}
.step-definition-tokens{margin-top:12px;padding:10px 12px;border:1px solid var(--studio-divider);border-radius:6px;background:var(--studio-hover);min-width:0}
.step-definition-token-label{display:block;margin-bottom:7px;font-size:12px;line-height:18px;font-weight:500;color:var(--studio-text)}
.step-definition-tokens>div{display:flex;flex-wrap:wrap;gap:6px}
.step-definition-tokens code{max-width:100%;padding:2px 6px;border:1px solid var(--studio-border);border-radius:4px;background:#fff;color:var(--studio-text);font:400 11px/17px ui-monospace,SFMono-Regular,Consolas,monospace;overflow-wrap:anywhere}
.step-definition-tokens p{margin:7px 0 0;color:var(--studio-muted);font-size:12px;line-height:18px}
.step-definition-checkbox{display:flex;align-items:flex-start;gap:9px;color:var(--studio-text);font-size:13px;line-height:20px;cursor:pointer}
.step-definition-checkbox input{flex:0 0 15px;width:15px;height:15px;margin:3px 0 0;accent-color:var(--emerald);cursor:pointer}
.step-definition-checkbox input:focus-visible{outline:2px solid var(--leaf);outline-offset:3px}
.step-definition-review-rule{padding:12px 14px;border-left:2px solid var(--emerald);border-radius:0 6px 6px 0;background:var(--studio-hover)}
.step-definition-review-rule strong,.step-definition-failure-default>strong{font-size:13px;line-height:19px;font-weight:600;color:var(--studio-ink)}
.step-definition-review-rule p,.step-definition-failure-default p{margin:5px 0 0;color:var(--studio-muted);font-size:12px;line-height:18px}
.step-definition-section{border-top:1px solid var(--studio-divider)}
.step-definition-section>summary{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 0 0;list-style:none;color:var(--studio-text);font-size:13px;line-height:20px;font-weight:600;cursor:pointer}
.step-definition-section>summary::-webkit-details-marker{display:none}
.step-definition-section>summary svg{flex:0 0 15px;width:15px;height:15px;color:var(--studio-muted);stroke-width:1.65;transition:transform .15s ease}
.step-definition-section[open]>summary svg{transform:rotate(180deg)}
.step-definition-section>summary:focus-visible{outline:2px solid var(--leaf);outline-offset:4px;border-radius:3px}
.step-definition-section-body{display:flex;flex-direction:column;gap:16px;padding-top:16px}
.step-definition-evidence{margin-top:8px;display:flex;flex-direction:column;gap:5px}
.step-definition-evidence p{margin:0;color:var(--studio-muted);font-size:12px;line-height:18px}
.step-definition-evidence strong{color:var(--studio-text);font-weight:500}
.step-definition-unit-field{position:relative;min-width:0}
.studio-field .step-definition-unit-field input{padding-right:55px}
.step-definition-unit-field>span{position:absolute;right:11px;top:8px;color:var(--studio-muted);font-size:12px;line-height:20px;font-weight:400;pointer-events:none}
.step-definition-retry-note{margin:0;padding-top:12px;border-top:1px solid var(--studio-divider)}
@media (prefers-reduced-motion:reduce){.step-definition-section>summary svg{transition:none}}

/* ---- WIP003 Vendor Admin frame: the platform context is visibly darker than a customer workspace ---- */
#app-shell[data-context="platform"] #app-nav,
#app-shell[data-context="platform"] #app-topbar{background:#252931;border-color:#393e48}
#app-shell[data-context="platform"] #app-nav>div:first-child{border-color:#393e48}
#app-shell[data-context="platform"] #app-nav nav>a{color:#d6dce5}
#app-shell[data-context="platform"] #app-nav nav>a .app-nav-icon{color:#b4bfce}
#app-shell[data-context="platform"] #app-nav nav>a:hover{background:#303b37;color:#edfff4}
#app-shell[data-context="platform"] #app-nav nav>a[aria-current="page"]{background:#194b3c;color:#bcf1d5;font-weight:600}
#app-shell[data-context="platform"] #app-nav nav>a[aria-current="page"] .app-nav-icon{color:#bcf1d5}
#app-shell[data-context="platform"] .app-nav-placeholder{color:#9ca8b8}
#app-shell[data-context="platform"] .app-nav-placeholder .app-nav-icon{color:#8e9aad}
#app-shell[data-context="platform"] .app-nav-soon{background:#31363f;border-color:#444b57;color:#b9c2cf}
#app-shell[data-context="platform"] .account-trigger{background:#303640;color:#edf1f7}
#app-shell[data-context="platform"] .account-trigger:hover,
#app-shell[data-context="platform"] .account-trigger[aria-expanded="true"]{background:#39413f}
#app-shell[data-context="platform"] .account-trigger .account-person{color:#f1f4f9}
#app-shell[data-context="platform"] .account-trigger .account-context,
#app-shell[data-context="platform"] .account-trigger .account-chevron{color:#bbc5d2}
#app-shell[data-context="platform"] .account-trigger .account-avatar{background:#444e59;color:#e7eff8}
#app-shell[data-context="platform"] #app-topbar button{background:#303640;border-color:#4a5360;color:#eef3f8;box-shadow:none}
#app-shell[data-context="platform"] #app-topbar button:hover{background:#39413f}
#app-shell[data-context="platform"] #app-topbar button[class*="bg-[color:var(--cara-btn)]"]{background:var(--emerald);border-color:#39896c;color:white}
.vendor-context-label{display:inline-flex;align-items:center;gap:8px;color:#dce3ec;font-size:12px;line-height:18px;font-weight:500}
.vendor-context-label>span{width:6px;height:6px;background:#73dba4;border-radius:50%}
/* the drawer toggle sits on the dark top bar */
#app-shell[data-context="platform"] .app-nav-toggle{background:#303640;border-color:#4a5360;color:#eef3f8;box-shadow:none}

/* WIP003 sets the base type and ink on the whole page, so the Vendor Admin frame does the same. */
#app-shell[data-context="platform"]{font-size:14px;line-height:1.45;color:var(--studio-text)}
.studio-inspector-footer .studio-icon-button:disabled{opacity:.35;cursor:not-allowed}
.step-resources-account{display:flex;align-items:center;gap:8px;margin:0;color:var(--studio-text);font-size:13px;line-height:20px}
.step-resources-account code{padding:2px 6px;border:1px solid var(--studio-border);border-radius:4px;background:#fff;font:400 11px/17px ui-monospace,SFMono-Regular,Consolas,monospace}
.step-resources-account .studio-coming-soon{margin-left:auto}

/* ---- a workspace's workflow page (same layout as the platform editor) ---- */
.studio-link-button{display:inline;padding:0;border:0;background:none;color:var(--emerald);font:inherit;font-size:12px;font-weight:600;text-decoration:underline;cursor:pointer}
.cfg-fields{display:flex;flex-direction:column;gap:18px;margin-top:6px}
.cfg-field{display:flex;flex-direction:column;gap:6px;padding-top:16px;border-top:1px solid var(--studio-divider)}
.cfg-field:first-child{border-top:0;padding-top:0}
.cfg-field-head{display:flex;align-items:center;justify-content:space-between;gap:12px;color:var(--studio-ink);font-size:13px;font-weight:600;line-height:20px}
.cfg-required{margin-left:8px;color:#a35a1e;font-size:11px;font-weight:600;letter-spacing:.04em;text-transform:uppercase}
.cfg-skip{display:inline-flex;align-items:center;gap:6px;color:var(--studio-muted);font-size:12px;font-weight:400}
.cfg-field .studio-field-hint{margin:0}
.ws-settings,.ws-inline-form{display:flex;flex-direction:column;gap:16px}
.ws-inline-form{margin-bottom:4px}
.ws-trigger-section{margin:0 0 12px;border:1px solid var(--studio-divider);border-radius:8px;background:#fff}
.ws-trigger-section>summary{display:flex;align-items:center;gap:10px;padding:12px 14px;list-style:none;cursor:pointer}
.ws-trigger-section>summary::-webkit-details-marker{display:none}
.ws-trigger-section>summary:focus-visible{outline:2px solid var(--leaf);outline-offset:-2px;border-radius:8px}
.ws-trigger-title{flex:1;min-width:0;color:var(--studio-ink);font-size:14px;font-weight:600}
.ws-trigger-section[open]>summary .studio-option-arrow{transform:rotate(90deg)}
.ws-trigger-body{padding:4px 14px 16px;border-top:1px solid var(--studio-divider)}
.ws-sched{display:flex;flex-direction:column;gap:14px;padding-top:12px}
.ws-sched-list,.ws-sched-personal{display:flex;flex-direction:column;gap:8px}
.ws-sched-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 12px;border:1px solid var(--studio-divider);border-radius:6px;background:var(--studio-hover)}
.ws-sched-title{display:flex;flex-wrap:wrap;align-items:center;gap:8px;color:var(--studio-ink);font-size:13px;font-weight:600;line-height:20px}
.ws-sched-via{color:var(--studio-muted);font-size:12px;font-weight:400}
.ws-sched-sub{display:flex;align-items:center;gap:6px;margin-top:2px;color:var(--studio-muted);font-size:12px;line-height:18px}
.ws-sched-add{display:flex;flex-direction:column;gap:12px}
.ws-access{margin-top:6px;padding:12px;border:1px solid var(--studio-divider);border-radius:6px;background:#fff;max-height:340px;overflow-y:auto}
.ws-lazy{margin-top:10px;border:1px solid var(--studio-divider);border-radius:6px}
.ws-lazy>summary{display:flex;align-items:center;justify-content:space-between;padding:9px 12px;list-style:none;cursor:pointer;color:var(--studio-ink);font-size:13px;font-weight:600}
.ws-lazy>summary::-webkit-details-marker{display:none}
.ws-lazy[open]>summary .studio-option-arrow{transform:rotate(90deg)}
.ws-lazy-body{padding:0 12px 12px}
.studio-example-ask{margin:8px 0 0;padding:10px 12px;border:1px solid var(--studio-divider);border-radius:6px;background:var(--studio-hover);color:var(--studio-ink);font-size:13px;line-height:20px}
.studio-set-by{display:flex;flex-direction:column;gap:10px;margin:0 0 16px;padding:0;border:0;min-width:0}
.studio-set-by legend{margin:0 0 8px;padding:0;color:var(--studio-ink);font-size:13px;font-weight:600}
.studio-radio{display:flex;align-items:flex-start;gap:10px;padding:10px 12px;border:1px solid var(--studio-border);border-radius:6px;background:#fff;cursor:pointer}
.studio-radio:has(input:checked){border-color:var(--emerald);background:var(--studio-selected)}
.studio-radio input{margin-top:3px;accent-color:var(--emerald)}
.studio-radio strong{display:block;color:var(--studio-ink);font-size:13px;font-weight:600}
.studio-radio small{display:block;color:var(--studio-muted);font-size:12px;line-height:18px}

/* ---- a workflow run: steps on the left, the live activity log on the right ---- */
.wf-run2{display:flex;flex-direction:column;height:100%;min-height:480px;color:var(--studio-text)}
.wf-run2-head{flex:0 0 auto;padding:20px 32px 14px;background:#fff;border-bottom:1px solid var(--studio-divider)}
.wf-run2-crumbs{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin-bottom:6px;color:var(--studio-subtle);font-size:12px}
.wf-run2-crumbs a{color:var(--studio-muted);font-weight:500;text-decoration:none}
.wf-run2-crumbs a:hover{color:var(--emerald)}
.wf-run2-titlerow{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px}
.wf-run2-titlerow h1{margin:0;min-width:0;color:var(--studio-ink);font-size:24px;line-height:32px;letter-spacing:-.02em;font-weight:600}
.wf-run2-titlerow .run-pill{display:inline-flex;align-items:center;gap:6px}
.wf-run2-meta{color:var(--studio-muted);font-size:13px}
.wf-run2-back{margin-left:auto;color:var(--studio-muted);font-size:13px;font-weight:500;text-decoration:none}
.wf-run2-back:hover{color:var(--emerald)}
.wf-run2-flash{margin:12px 32px 0;padding:10px 14px;border:1px solid #e4d5ba;border-radius:6px;background:#fdf9f0;color:#79521c;font-size:13px}
.wf-run2-grid{flex:1;min-height:0;display:grid;grid-template-columns:minmax(300px,400px) minmax(0,1fr)}
.wf-run2-steps,.wf-run2-log{display:flex;flex-direction:column;min-height:0;min-width:0}
.wf-run2-steps{overflow-y:auto;padding:20px 20px 32px 32px;border-right:1px solid var(--studio-divider);background:var(--studio-canvas)}
.wf-run2-log{background:#fff}
.wf-run2-sechead{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}
.wf-run2-log .wf-run2-sechead{margin:0;padding:16px 32px;border-bottom:1px solid var(--studio-divider)}
.wf-run2-sechead h2{margin:0;color:var(--studio-ink);font-size:14px;line-height:20px;font-weight:600}
.wf-run2-sub{color:var(--studio-muted);font-size:12px}
.wf-live{display:inline-flex;align-items:center;gap:6px;color:var(--emerald);font-size:12px;font-weight:600}
.wf-live i{width:7px;height:7px;border-radius:50%;background:var(--leaf);animation:wf-pulse 1.4s ease-in-out infinite}
@keyframes wf-pulse{0%,100%{opacity:1;transform:scale(1)}50%{opacity:.35;transform:scale(.8)}}
.wf-run2-logbody{flex:1;min-height:0;overflow-y:auto;padding:16px 32px 32px}
/* steps */
.wf-rs-list{display:flex;flex-direction:column;gap:0;margin:0;padding:0;list-style:none}
.wf-rs-item{position:relative;display:flex;gap:12px;padding:0 0 14px}
.wf-rs-item:not(:last-child)::before{content:"";position:absolute;left:13px;top:28px;bottom:0;width:1px;background:var(--studio-border)}
.wf-rs-mark{flex:0 0 28px;display:grid;place-items:center;width:28px;height:28px;border:1px solid var(--studio-border);border-radius:50%;background:#fff;color:var(--studio-subtle)}
.wf-rs-body{flex:1;min-width:0;padding:2px 12px 12px;border:1px solid transparent;border-radius:8px}
.wf-rs-head{display:flex;align-items:center;justify-content:space-between;gap:8px}
.wf-rs-title{display:flex;align-items:center;gap:8px;min-width:0;color:var(--studio-ink);font-size:14px;line-height:20px;font-weight:600}
.wf-rs-note{flex:0 0 auto;color:var(--studio-muted);font-size:12px;font-weight:500}
.wf-rs-text{margin:4px 0 0;color:var(--studio-muted);font-size:13px;line-height:19px;white-space:pre-wrap;overflow-wrap:anywhere}
.wf-rs-text.is-clamped{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
.wf-rs-count{display:block;margin-top:6px;color:var(--studio-subtle);font-size:11px}
.wf-rs-item--done .wf-rs-mark{border-color:var(--emerald);background:var(--emerald);color:#fff}
.wf-rs-item--done .wf-rs-note{color:var(--emerald)}
.wf-rs-item.is-current .wf-rs-body{border-color:var(--emerald);background:#fff;box-shadow:0 0 0 1px var(--emerald),var(--studio-panel-shadow);padding-top:10px}
.wf-rs-item.is-current .wf-rs-mark{border-color:var(--emerald);color:var(--emerald);box-shadow:0 0 0 3px rgb(0 167 93 / 14%)}
.wf-rs-item.is-current .wf-rs-note{color:var(--emerald);font-weight:600}
.wf-rs-item--failed .wf-rs-mark,.wf-rs-item--failed .wf-rs-note{color:#b42318;border-color:#b42318}
.wf-rs-item--failed.is-current .wf-rs-body{border-color:#b42318;box-shadow:0 0 0 1px #b42318}
.wf-rs-item--stopped .wf-rs-mark{color:#8a5a0b;border-color:#c9a25b}
.wf-rs-item--paused .wf-rs-mark{color:#8a5a0b;border-color:#c9a25b}
.wf-rs-item--waiting .wf-rs-title{color:var(--studio-muted);font-weight:500}
.wf-run2-inputs{margin-top:20px;padding-top:16px;border-top:1px solid var(--studio-divider)}
.wf-run2-inputs h3,.wf-run2-reviews h3,.wf-run2-result h3{margin:0 0 10px;color:var(--studio-ink);font-size:13px;font-weight:600}
/* log */
.wf-log-list{display:flex;flex-direction:column;margin:0;padding:0;list-style:none}
.wf-log{display:grid;grid-template-columns:64px 18px minmax(0,1fr);gap:10px;padding:7px 0;align-items:start}
.wf-log-time{padding-top:2px;color:var(--studio-subtle);font:400 11px/18px ui-monospace,SFMono-Regular,Consolas,monospace;font-variant-numeric:tabular-nums}
.wf-log-mark{display:grid;place-items:center;height:20px;color:var(--studio-subtle)}
.wf-log--done .wf-log-mark{color:var(--emerald)}
.wf-log--failed .wf-log-mark{color:#b42318}
.wf-log-text{min-width:0;color:var(--studio-text);font-size:13px;line-height:20px}
.wf-log-sub{color:var(--studio-muted)}
.wf-log--integration .wf-log-text{color:var(--studio-muted)}
.wf-log--card{padding:10px 0}
.wf-log--card .wf-log-text,.wf-log--checkpoint .wf-log-text{padding:10px 14px;border:1px solid var(--studio-divider);border-radius:8px;background:var(--studio-hover)}
.wf-log--checkpoint .wf-log-text{border-color:#e4d5ba;background:#fdf9f0}
.wf-log--checkpoint.is-waiting .wf-log-text{box-shadow:0 0 0 1px #c9a25b}
.wf-log-text strong{color:var(--studio-ink);font-weight:600}
.wf-log-md{margin-top:6px;font-size:13px}
.wf-log-err{margin-top:6px;color:#b42318}
.wf-log-empty,.wf-log-working{display:flex;align-items:center;gap:8px;margin:0;padding:10px 0;color:var(--studio-muted);font-size:13px}
.wf-run2-reviews,.wf-run2-result{margin-top:24px;padding-top:18px;border-top:1px solid var(--studio-divider)}
/* narrow screens: one column, the page scrolls */
@media (max-width:900px){
  .wf-run2{height:auto}
  .wf-run2-head{padding:16px}
  .wf-run2-flash{margin:12px 16px 0}
  .wf-run2-grid{display:block}
  .wf-run2-steps{padding:16px;border-right:0;border-bottom:1px solid var(--studio-divider);overflow:visible}
  .wf-run2-log .wf-run2-sechead{padding:14px 16px}
  .wf-run2-logbody{overflow:visible;padding:12px 16px 24px}
  .wf-log{grid-template-columns:54px 18px minmax(0,1fr);gap:8px}
}

/* Beth's Configuration tab: custom fields grouped under the step that uses them. */
.cfg-step-group { margin: 0 0 18px; }
.cfg-step-title { font-size: 13px; font-weight: 600; margin: 0 0 8px; color: var(--studio-muted, #6b6459); }
.wf-run2-answers { margin: 0; display: grid; gap: 6px; }
.wf-run2-answers dt { font-size: 12px; color: var(--studio-muted, #6b6459); }
.wf-run2-answers dd { margin: 0; font-size: 14px; }

/* A spinner inside a studio button takes the button's text colour (the default accent colour is the same
   green as a primary button, so it was invisible there). */
.studio-button .run-spin { color: currentColor; }

/* Start form: choose between uploading a file and pasting text. */
.wf-input-toggle { display: inline-flex; margin: 6px 0 8px; border: 1px solid var(--studio-border, #d9d4cb); border-radius: 8px; overflow: hidden; }
.wf-input-toggle button { padding: 6px 12px; font-size: 13px; background: transparent; border: 0; cursor: pointer; color: var(--studio-muted, #6b6459); }
.wf-input-toggle button + button { border-left: 1px solid var(--studio-border, #d9d4cb); }
.wf-input-toggle button.is-on { background: var(--emerald, #1f6f54); color: #fff; }

/* A step-by-step test asking the person for what a step needs. */
.wf-ask { margin-top: 12px; padding: 12px; border: 1px solid var(--studio-border, #d9d4cb); border-radius: 10px; background: var(--studio-surface, #fff); display: grid; gap: 10px; }
.wf-ask-q { margin: 0; font-weight: 600; white-space: pre-wrap; }
.wf-ask textarea { width: 100%; }
.wf-rs-item--asking .wf-rs-mark { color: var(--emerald, #1f6f54); }

/* Any spinner inside a button takes the button's text colour. The default spinner colour is the app's green
   accent, the same green as a primary button, so it was invisible on every primary action. */
button .run-spin, .skill-btn .run-spin, .ui-button .run-spin { color: currentColor; }

/* The two-option toggle hugs its buttons; inside the grid of the ask panel it was stretching to the full width. */
.wf-input-toggle { width: fit-content; justify-self: start; align-self: start; }

/* "Trigger · Manual" chip on the first step of a run. */
.wf-trigger-chip{display:inline-flex;align-items:center;gap:5px;padding:2px 9px;border:1px solid var(--studio-border);border-radius:12px;background:var(--frost);color:var(--emerald);font-size:12px;line-height:18px;font-weight:600;white-space:nowrap}
.wf-trigger-chip svg{flex:0 0 auto;width:12px;height:12px}

/* ---- Rendered markdown (ui-styled-text), matched to the WIP003 markdown previews ----
   The base-styles CDN heading rules carry :not(:is(…)) selectors, so these repeat the class and
   lead with `body` to win. Headings are semibold ink, body text is calm grey with generous leading. */
body .ui-styled-text.ui-styled-text, body .ui-styled-text.ui-styled-text :is(h1, h2, h3, h4, p, li, td, th, strong, em, a) { font-family: var(--font-ui); }
body .ui-styled-text.ui-styled-text { color: var(--studio-text, #3d4654); font-size: 14px; line-height: 1.65; }
body .ui-styled-text.ui-styled-text :is(h1, h2, h3, h4) { color: var(--studio-ink, #1f2430); font-weight: 600; border: 0; padding: 0; text-transform: none; }
body .ui-styled-text.ui-styled-text h1 { font-size: 23px; line-height: 30px; letter-spacing: -.02em; margin: 0 0 16px; }
body .ui-styled-text.ui-styled-text h2 { font-size: 17px; line-height: 24px; margin: 22px 0 10px; }
body .ui-styled-text.ui-styled-text h3 { font-size: 15px; line-height: 22px; margin: 18px 0 8px; }
body .ui-styled-text.ui-styled-text h4 { font-size: 14px; line-height: 20px; margin: 16px 0 6px; }
body .ui-styled-text.ui-styled-text > :first-child { margin-top: 0; }
body .ui-styled-text.ui-styled-text p { margin: 0 0 13px; }
body .ui-styled-text.ui-styled-text > :last-child { margin-bottom: 0; }
body .ui-styled-text.ui-styled-text :is(ul, ol) { margin: 0 0 14px; padding-left: 22px; }
body .ui-styled-text.ui-styled-text ul { list-style: disc; }
body .ui-styled-text.ui-styled-text ol { list-style: decimal; }
body .ui-styled-text.ui-styled-text li { margin-bottom: 5px; }
body .ui-styled-text.ui-styled-text li::marker { color: var(--studio-muted, #6b7482); }
body .ui-styled-text.ui-styled-text strong { font-weight: 600; color: var(--studio-ink, #1f2430); }
body .ui-styled-text.ui-styled-text a { color: var(--emerald, #1f6f4a); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 2px; }
/* Inline code (and {{custom field}} placeholders): a small green-tinted chip, as in the previews. */
body .ui-styled-text.ui-styled-text :not(pre) > code { padding: 1px 5px; border-radius: 4px; border: 1px solid #cfe3d6; background: #eef6f1; color: var(--emerald, #1f6f4a); font-size: .88em; }
body .ui-styled-text.ui-styled-text blockquote { margin: 0 0 14px; border-left: 3px solid var(--studio-divider, #e3e7ee); color: var(--studio-muted, #6b7482); }
body .ui-styled-text.ui-styled-text hr { border-color: var(--studio-divider, #e3e7ee); margin: 20px 0; }

/* ---- Test run panel (beside the workflow, in place of the step inspector) ---- */
.wf-test-panel .wf-test-head-actions{display:flex;align-items:center;gap:8px;flex:0 0 auto}
.wf-test-panel .wf-test-body{flex:1;min-height:0;overflow:auto;padding:16px 20px 24px;display:flex;flex-direction:column;gap:12px}
.wf-test-panel .wf-test-status{display:flex;align-items:center;gap:10px}
.wf-test-panel .wf-test-heading{margin:10px 0 0;font-size:13px;font-weight:600;color:var(--studio-ink)}
.wf-test-panel .wf-test-error{padding:9px 12px;border:1px solid #e8c9c5;background:#fbeceb;border-radius:6px;color:#9a3b34;font-size:13px}
.wf-test-panel .wf-test-activity{border-top:1px solid var(--studio-divider);padding-top:10px}
.wf-test-panel .wf-test-activity>summary{cursor:pointer;font-size:13px;font-weight:600;color:var(--studio-text);margin-bottom:8px}
.wf-test-panel .wf-rs-list{margin:0}

/* The test run gets a wide panel: steps and what you told Cara on the left, the result and the activity on the right. */
@container workflow (min-width:851px){.studio-workspace.has-test{grid-template-columns:minmax(0,1fr) minmax(560px,68%)}}
.wf-test-panel{container-type:inline-size;overflow-wrap:anywhere}
.wf-test-panel *{min-width:0}
.wf-test-panel .wf-test-cols{display:flex;flex-direction:column;gap:12px}
.wf-test-panel .wf-test-col{display:flex;flex-direction:column;gap:12px;min-width:0}
@container (min-width:640px){
  .wf-test-panel .wf-test-cols{display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);gap:28px;align-items:start}
}
.wf-test-panel .ui-styled-text,.wf-test-panel .wf-log-text,.wf-test-panel .run-output{max-width:100%}
.wf-test-panel .wf-log-list{margin:0;padding:0}

/* Skill combobox (Add a step → Skill, and a skill step's Edit tab) */
.skill-combobox{position:relative}
.skill-combobox-field{position:relative;display:block}
.skill-combobox-field input{padding-right:34px}
.skill-combobox-chevron{position:absolute;right:10px;top:50%;width:16px;height:16px;margin-top:-8px;color:var(--studio-muted);pointer-events:none}
.skill-combobox-list{position:absolute;z-index:30;left:0;right:0;margin:4px 0 0;padding:4px;max-height:260px;overflow:auto;list-style:none;background:#fff;border:1px solid var(--studio-border);border-radius:8px;box-shadow:0 8px 24px rgb(48 49 61 / 14%)}
.skill-combobox-option{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:8px 10px;border-radius:6px;font-size:13px;color:var(--studio-text);cursor:pointer}
.skill-combobox-option.is-active{background:var(--studio-hover)}
.skill-combobox-option.is-chosen{color:var(--emerald);font-weight:600}
.skill-combobox-option[aria-disabled=true]{opacity:.55;cursor:not-allowed}
.skill-combobox-note{font-size:11px;color:var(--studio-muted);font-weight:400}
.skill-combobox-empty{padding:10px;font-size:13px;color:var(--studio-muted)}
.studio-skill-picker{display:flex;flex-direction:column;gap:16px;padding:4px 0 8px}
/* Choosing a skill: tall enough that the open list of skills shows without scrolling the dialog. */
.studio-step-dialog.is-choosing-skill{height:min(620px,calc(100dvh - 64px))}
.studio-step-dialog.is-choosing-skill .studio-dialog-body{display:flex;flex-direction:column;flex:1;min-height:0;overflow:visible}
.studio-step-dialog.is-choosing-skill .studio-skill-picker{flex:1;justify-content:space-between}
.studio-step-dialog.is-choosing-skill .skill-combobox-list{max-height:min(340px,calc(100dvh - 340px))}
.studio-step-dialog.is-choosing-skill[open]{display:flex;flex-direction:column}
.studio-step-dialog.is-choosing-skill .studio-skill-picker{padding-bottom:20px}

/* What you told Cara: one block per step */
.wf-told{display:flex;flex-direction:column;gap:12px;margin-top:6px}
.wf-told-step{border:1px solid var(--studio-divider);border-radius:8px;background:#fff;overflow:hidden}
.wf-told-head{display:flex;align-items:center;gap:8px;margin:0;padding:8px 12px;background:var(--studio-hover);border-bottom:1px solid var(--studio-divider);font-size:12px;font-weight:600;color:var(--studio-ink)}
.wf-told-num{color:var(--emerald);text-transform:uppercase;letter-spacing:.04em;font-size:11px}
.wf-told-title{color:var(--studio-text);font-weight:600}
.wf-told-items{list-style:none;margin:0;padding:0}
.wf-told-item{display:flex;flex-direction:column;gap:3px;padding:10px 12px}
.wf-told-item+.wf-told-item{border-top:1px solid var(--studio-divider)}
.wf-told-q{font-size:12px;color:var(--studio-muted)}
.wf-told-a{font-size:13px;color:var(--studio-ink);white-space:pre-wrap}
.wf-told-long summary{cursor:pointer;font-size:13px;color:var(--studio-ink)}
.wf-told-full{margin-top:8px;padding:10px;background:var(--studio-hover);border-radius:6px;font-size:12px;line-height:1.55;white-space:pre-wrap;max-height:260px;overflow:auto}

/* Cara's chat replies render markdown like the preview modals, sized for a narrow chat bubble. */
.cara-assistant-panel .chat-md { line-height: 1.5; overflow-wrap: anywhere; }
.cara-assistant-panel .chat-md > :first-child { margin-top: 0; }
.cara-assistant-panel .chat-md > :last-child { margin-bottom: 0; }
.cara-assistant-panel .chat-md :is(h1, h2, h3, h4, h5, h6) { margin: 0.9em 0 0.35em; line-height: 1.25; font-weight: 600; color: #1c1917; }
.cara-assistant-panel .chat-md h1 { font-size: 1.2em; }
.cara-assistant-panel .chat-md h2 { font-size: 1.12em; }
.cara-assistant-panel .chat-md :is(h3, h4, h5, h6) { font-size: 1.02em; }
.cara-assistant-panel .chat-md :is(p, ul, ol, pre, blockquote, table) { margin: 0 0 0.6em; }
.cara-assistant-panel .chat-md :is(ul, ol) { padding-left: 1.25em; }
.cara-assistant-panel .chat-md ul { list-style: disc; }
.cara-assistant-panel .chat-md ol { list-style: decimal; }
.cara-assistant-panel .chat-md li { margin: 0.15em 0; }
.cara-assistant-panel .chat-md li > :is(ul, ol) { margin: 0.15em 0 0; }
.cara-assistant-panel .chat-md code { font-size: 0.9em; background: rgba(0, 0, 0, 0.06); padding: 0.1em 0.3em; border-radius: 4px; }
.cara-assistant-panel .chat-md pre { overflow-x: auto; background: rgba(0, 0, 0, 0.06); padding: 0.6em 0.75em; border-radius: 8px; }
.cara-assistant-panel .chat-md pre code { background: none; padding: 0; }
.cara-assistant-panel .chat-md blockquote { border-left: 3px solid #d6d3d1; padding-left: 0.75em; color: #57534e; }
.cara-assistant-panel .chat-md table { display: block; overflow-x: auto; border-collapse: collapse; font-size: 0.95em; }
.cara-assistant-panel .chat-md :is(th, td) { border: 1px solid #d6d3d1; padding: 0.25em 0.5em; text-align: left; }
.cara-assistant-panel .chat-md hr { border: 0; border-top: 1px solid #d6d3d1; margin: 0.8em 0; }
.cara-assistant-panel .chat-md a { color: #1d4ed8; text-decoration: underline; }

/* The status chip and the Live indicator sit on one line wherever the status row is used (also the step Test tab). */
.wf-test-status{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.wf-test-status .run-pill{line-height:1}
.wf-test-status .wf-live{line-height:1}
