.filter-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.search-box { height: 42px; min-width: 280px; display: flex; align-items: center; gap: 9px; padding: 0 13px; border: 1px solid var(--border); border-radius: 11px; background: var(--white); color: #898b82; }
.search-box input { border: 0; background: transparent; outline: 0; width: 100%; font-size: 11px; }
.segmented { display: flex; padding: 4px; background: #dedcd5; border-radius: 10px; }
.segmented button { border: 0; background: transparent; padding: 7px 12px; border-radius: 7px; font-size: 9px; font-weight: 700; cursor: pointer; }
.segmented button.active { background: var(--white); box-shadow: 0 3px 8px rgba(23,24,20,.08); }
.process-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.process-card { min-height: 300px; background: var(--white); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.process-card:hover { box-shadow: var(--shadow-soft); }
.process-card-link { display: flex; flex-direction: column; height: 100%; padding: 22px; }
.process-card-top { display: flex; justify-content: space-between; align-items: center; }
.process-card-icon { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; background: var(--paper); color: var(--violet); }
.process-card h2 { font-family: Georgia, serif; font-size: 24px; margin: 22px 0 7px; }
.process-card p { margin: 0; font-size: 11px; line-height: 1.5; color: #73756c; }
.process-mini-flow { margin: 22px 0; display: flex; align-items: center; gap: 7px; overflow: hidden; }
.process-mini-flow span { max-width: 110px; padding: 7px 9px; border-radius: 8px; background: var(--paper); font-size: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.process-mini-flow i { color: #aaa; }
.process-card footer { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--border); display: flex; justify-content: space-between; font-size: 9px; color: #8a8c83; }
.process-card footer strong { display: flex; align-items: center; gap: 4px; color: var(--ink); }
.process-card-new { display: grid; place-items: center; align-content: center; text-align: center; padding: 24px; border-style: dashed; background: transparent; }
.process-card-new > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: var(--white); border: 1px solid var(--border); }
.process-card-new h2 { margin: 14px 0 7px; }

.editor-page, .run-detail-page { margin: -34px -36px -60px; min-height: calc(100vh - var(--topbar)); display: flex; flex-direction: column; }
.editor-header { min-height: 86px; padding: 16px 24px; background: var(--white); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; gap: 24px; }
.editor-header h1 { margin: 5px 0 3px; font-family: Georgia, serif; font-size: 25px; }
.editor-header p { margin: 0; color: #8a8c83; font-size: 9px; }
.back-link { display: inline-flex; align-items: center; gap: 4px; color: #74766e; font-size: 9px; font-weight: 700; }
.icon-back { transform: rotate(180deg); }
.editor-actions { display: flex; align-items: center; gap: 8px; }
.editor-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(520px, 1fr) 330px; }
.process-document-panel { background: #e8e6df; overflow: auto; }
.document-toolbar { height: 58px; padding: 0 20px; background: rgba(255,254,250,.75); border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; align-items: center; }
.document-toolbar > div { display: grid; gap: 3px; }
.document-toolbar strong { font-size: 11px; }
.process-document { max-width: 700px; margin: 36px auto 80px; padding: 40px; background: var(--white); border: 1px solid var(--border); border-radius: 4px; box-shadow: 0 22px 60px rgba(23,24,20,.11); }
.process-sentence { width: 100%; min-height: 86px; padding: 17px 20px; border: 1px solid var(--border); border-radius: 12px; background: white; display: grid; grid-template-columns: 90px 1fr auto; grid-template-rows: auto auto; gap: 5px 14px; text-align: left; cursor: pointer; position: relative; }
.process-sentence:hover { border-color: var(--border-strong); }
.process-sentence.selected { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(106,92,255,.09); }
.process-sentence.review-sentence { background: #f5ffd9; }
.process-sentence .sentence-verb { grid-row: 1 / span 2; align-self: center; color: var(--violet); }
.process-sentence strong { font-size: 13px; align-self: end; }
.process-sentence small { font-size: 9px; color: #8a8c83; align-self: start; }
.sentence-controls { grid-row: 1 / span 2; align-self: center; display: flex; align-items: center; gap: 8px; color: #888a81; }
.enabled-dot { width: 7px; height: 7px; border-radius: 50%; background: #67d18f; }
.trigger-sentence { border-left: 4px solid var(--violet); }
.sentence-connector { height: 28px; margin-left: 31px; display: flex; align-items: center; }
.sentence-connector i { width: 1px; height: 100%; background: var(--border-strong); }
.sentence-connector button { width: 22px; height: 22px; margin-left: -11px; border-radius: 50%; border: 1px solid var(--border); background: var(--white); display: grid; place-items: center; opacity: 0; cursor: pointer; }
.sentence-connector:hover button { opacity: 1; }
.add-step-button { width: 100%; height: 44px; border: 1px dashed var(--border-strong); border-radius: 11px; background: transparent; display: flex; align-items: center; justify-content: center; gap: 8px; color: #777970; font-size: 10px; font-weight: 700; cursor: pointer; }
.step-inspector { background: var(--white); border-left: 1px solid var(--border); overflow: auto; padding: 22px; }
.inspector-header { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--border); }
.inspector-header h2 { font-family: Georgia, serif; font-size: 21px; line-height: 1.2; margin: 5px 0 0; }
.inspector-section { padding: 18px 0; border-bottom: 1px solid var(--border); display: grid; gap: 9px; }
.inspector-section > label { font-size: 9px; font-weight: 800; }
.inspector-section input, .select-field { width: 100%; min-height: 40px; border: 1px solid var(--border); border-radius: 9px; background: #faf9f5; padding: 10px; font-size: 10px; text-align: left; }
.select-field { display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.condition-box { display: grid; grid-template-columns: 1fr auto 60px; align-items: center; gap: 7px; }
.condition-box span, .condition-box strong { padding: 9px; border-radius: 8px; background: var(--paper); font-size: 9px; }
.output-preview { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; background: var(--paper); }
.output-preview > span { color: var(--violet); }
.output-preview div { display: grid; gap: 2px; }
.output-preview strong { font-size: 10px; }
.output-preview small { font-size: 8px; color: #85877e; }
.inspector-toggle { grid-template-columns: 1fr auto; align-items: center; }
.inspector-toggle p { margin: 4px 0 0; color: #85877e; font-size: 9px; line-height: 1.4; }
.toggle { width: 38px; height: 22px; padding: 3px; border: 0; border-radius: 999px; background: #d2d2cc; cursor: pointer; }
.toggle i { display: block; width: 16px; height: 16px; border-radius: 50%; background: white; transition: transform .15s ease; box-shadow: 0 2px 5px rgba(0,0,0,.15); }
.toggle.active { background: var(--violet); }
.toggle.active i { transform: translateX(16px); }
.inspector-footer { padding-top: 22px; display: flex; justify-content: space-between; gap: 10px; }
.danger-link { border: 0; background: transparent; color: var(--red); font-size: 9px; font-weight: 750; cursor: pointer; }
