:root {
  color-scheme: light;
  --ink: #192a3a;
  --muted: #788694;
  --line: #e7ebee;
  --canvas: #f5f7f8;
  --white: #fff;
  --green: #157b64;
  --green-dark: #116550;
  --green-soft: #e7f4ef;
  --navy: #183143;
  --shadow: 0 16px 42px rgba(27, 49, 65, .09);
  font-family: 'DM Sans', 'Segoe UI', sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 360px; min-height: 100vh; color: var(--ink); background: var(--canvas); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; }
.topbar { height: 72px; display: flex; align-items: center; justify-content: space-between; padding: 0 34px; background: var(--white); border-bottom: 1px solid var(--line); }
.brand { display: inline-flex; gap: 12px; align-items: center; color: inherit; text-decoration: none; }
.brand-mark { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; color: white; background: var(--green); font-family: Manrope, sans-serif; font-size: 19px; font-weight: 800; }
.brand-copy { display: grid; gap: 2px; }
.brand-copy strong { font-family: Manrope, sans-serif; font-size: 14px; letter-spacing: -.25px; }
.brand-copy span, .sidebar-label, .sidebar-footer, .eyebrow { color: #8995a0; font-size: 9px; font-weight: 700; letter-spacing: 1.15px; }
.topbar-right { display: flex; align-items: center; gap: 17px; }
.environment-pill { display: inline-flex; align-items: center; gap: 8px; padding: 8px 11px; border: 1px solid #dfece7; border-radius: 20px; color: #28775f; background: #f4faf7; font-size: 11px; font-weight: 600; }
.environment-pill span { width: 7px; height: 7px; border-radius: 50%; background: #2da47b; box-shadow: 0 0 0 3px #def1e9; }
.avatar { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 50%; color: #42566a; background: #eaf0f3; font-size: 12px; font-weight: 700; }
.workspace { display: grid; grid-template-columns: 242px minmax(0, 1fr); min-height: calc(100vh - 72px); }
.sidebar { position: relative; display: flex; flex-direction: column; min-height: calc(100vh - 72px); padding: 31px 17px 19px; background: var(--white); border-right: 1px solid var(--line); }
.sidebar-label { padding: 0 12px; margin-bottom: 12px; }
.nav-link, .area-link { width: 100%; display: flex; align-items: center; gap: 11px; border: 0; border-radius: 8px; padding: 10px 12px; color: #637281; background: transparent; text-align: left; font-size: 12px; font-weight: 500; }
.nav-link.active, .area-link.active { color: #176f5a; background: #eaf5f1; font-weight: 700; }
.nav-icon { width: 17px; color: #85929d; font-size: 18px; text-align: center; }
.nav-link.active .nav-icon { color: var(--green); }
.nav-count { margin-left: auto; color: #718078; font-size: 10px; }
.area-heading { display: flex; justify-content: space-between; align-items: center; margin-top: 35px; margin-bottom: 8px; }
.text-icon-button { width: 23px; height: 23px; border: 0; border-radius: 6px; color: #798792; background: transparent; font-size: 18px; line-height: 1; }
.text-icon-button:hover { color: var(--green); background: #eef5f2; }
.area-nav { display: grid; gap: 3px; }
.area-link { padding: 9px 12px; font-size: 11px; }
.area-dot { width: 7px; height: 7px; flex: 0 0 auto; border-radius: 3px; background: #a4b9b1; }
.area-link.active .area-dot { background: var(--green); }
.area-total { margin-left: auto; color: #96a0a9; font-size: 10px; }
.sidebar-note { display: flex; gap: 9px; margin: auto 1px 18px; padding: 12px 10px; border: 1px solid #e8eee9; border-radius: 9px; background: #f8faf8; }
.note-icon { width: 16px; height: 16px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #357a62; background: #e5f1eb; font-size: 10px; font-weight: 700; }
.sidebar-note p { margin: 0; color: #788681; font-size: 9px; line-height: 1.55; }
.sidebar-note strong { color: #475d51; font-size: 10px; }
.sidebar-footer { display: flex; justify-content: space-between; padding: 15px 7px 0; border-top: 1px solid #edf0f1; font-size: 8px; letter-spacing: .75px; }
.sidebar-footer span { color: #a2abb2; letter-spacing: 0; }
.main-content { min-width: 0; padding: 27px 38px 55px; }
.content-inner { width: min(1110px, 100%); margin: 0 auto; }
.breadcrumb { display: flex; align-items: center; gap: 9px; color: #8b969f; font-size: 10px; }
.breadcrumb strong { color: #4b5a68; font-weight: 600; }
.breadcrumb-separator { color: #c1c8cc; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin: 28px 0 23px; }
.eyebrow { margin: 0 0 7px; color: #628376; font-size: 8px; }
h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 { font-family: Manrope, 'Segoe UI', sans-serif; }
h1 { margin: 0; font-size: 27px; font-weight: 700; letter-spacing: -.85px; }
.page-subtitle { margin: 6px 0 0; color: #87929b; font-size: 12px; }
.button { min-height: 37px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 14px; border: 1px solid transparent; border-radius: 7px; font-size: 11px; font-weight: 600; transition: background .15s, border .15s, transform .15s; }
.button:active { transform: translateY(1px); }
.button-primary { color: white; background: var(--green); box-shadow: 0 3px 8px rgba(21, 123, 100, .15); }
.button-primary:hover { background: var(--green-dark); }
.button-primary:disabled { cursor: not-allowed; opacity: .48; }
.button-secondary { border-color: #dfe6e2; color: #41685a; background: white; }
.button-secondary:hover, .button-quiet:hover { background: #f3f7f5; }
.button-quiet { border-color: #e6eaed; color: #6a7782; background: white; }
.notice-banner { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border: 1px solid #e8e4d7; border-radius: 8px; background: #fffdf7; }
.notice-banner[hidden] { display: none; }
.notice-icon { width: 18px; height: 18px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; color: #9a8147; background: #f7efd9; font-size: 11px; }
.notice-banner p { flex: 1; margin: 0; color: #817c6c; font-size: 10px; line-height: 1.5; }
.notice-banner strong { color: #706443; }
.icon-button { width: 29px; height: 29px; display: inline-grid; place-items: center; border: 0; border-radius: 6px; color: #98a2aa; background: transparent; font-size: 21px; line-height: 1; }
.icon-button:hover { color: #465563; background: #f1f3f4; }
.stats-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; margin: 17px 0 31px; }
.stat-card { display: flex; align-items: center; gap: 12px; min-height: 72px; padding: 14px 15px; border: 1px solid var(--line); border-radius: 9px; background: var(--white); }
.stat-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; font-size: 15px; }
.stat-icon-violet { color: #7960aa; background: #f0ecf7; }
.stat-icon-blue { color: #537caf; background: #eaf1f8; }
.stat-icon-green { color: #438269; background: #eaf4ee; }
.stat-card div { display: grid; gap: 2px; }
.stat-label { color: #88949e; font-size: 9px; }
.stat-card strong { font-family: Manrope, sans-serif; color: #344756; font-size: 17px; line-height: 1.15; }
.library-section { border-top: 1px solid #e8ecee; padding-top: 23px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 16px; }
.section-heading h2 { margin: 0 0 4px; font-size: 15px; letter-spacing: -.25px; }
.section-heading p { margin: 0; color: #8b969f; font-size: 10px; }
.search-box { width: 205px; height: 34px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #e2e7e9; border-radius: 7px; color: #919da5; background: white; }
.search-box span:not(.sr-only) { font-size: 18px; line-height: 1; transform: rotate(-15deg); }
.search-box input { width: 100%; min-width: 0; border: 0; outline: 0; color: var(--ink); background: transparent; font-size: 10px; }
.search-box:focus-within { border-color: #94bdad; box-shadow: 0 0 0 3px rgba(21, 123, 100, .08); }
.recipe-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.recipe-card { min-width: 0; display: flex; flex-direction: column; min-height: 182px; padding: 14px; border: 1px solid #e4e9eb; border-radius: 9px; background: white; transition: box-shadow .15s, transform .15s, border-color .15s; }
.recipe-card:hover { border-color: #d0ded8; box-shadow: 0 7px 18px rgba(27, 49, 65, .06); transform: translateY(-2px); }
.recipe-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.area-tag { display: inline-flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: 20px; color: #527060; background: #f0f5f1; font-size: 9px; font-weight: 600; }
.area-tag span { width: 5px; height: 5px; border-radius: 50%; background: #65a184; }
.menu-trigger { width: 24px; height: 24px; border: 0; border-radius: 6px; color: #89959e; background: transparent; font-size: 16px; }
.menu-trigger:hover { color: #4c5c67; background: #f3f5f6; }
.recipe-card h3 { margin: 15px 0 5px; overflow-wrap: anywhere; font-size: 13px; letter-spacing: -.2px; }
.recipe-description { display: -webkit-box; overflow: hidden; min-height: 31px; margin: 0; color: #83909a; font-size: 10px; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.recipe-card-bottom { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 14px; }
.recipe-meta { display: flex; gap: 12px; color: #89949c; font-size: 9px; }
.recipe-meta span { display: inline-flex; align-items: center; gap: 4px; }
.card-actions { display: flex; gap: 5px; }
.small-button { min-height: 27px; padding: 0 9px; border: 1px solid #e4e9e7; border-radius: 5px; color: #5d6d66; background: white; font-size: 9px; font-weight: 600; }
.small-button:hover { border-color: #bdd5ca; background: #f8fbf9; }
.small-button.start { border-color: #d5e9e0; color: #237258; background: #f0f8f4; }
.small-button.start:hover { background: #e3f3eb; }
.empty-state { display: grid; justify-items: center; padding: 48px 20px; border: 1px dashed #dce3e4; border-radius: 9px; background: rgba(255,255,255,.62); text-align: center; }
.empty-state[hidden] { display: none; }
.empty-icon { width: 39px; height: 39px; display: grid; place-items: center; margin-bottom: 12px; border-radius: 11px; color: #758a81; background: #ebf2ee; font-size: 17px; }
.empty-state h3 { margin: 0 0 5px; font-size: 13px; }
.empty-state p { margin: 0 0 15px; color: #87939b; font-size: 10px; }
.compact-empty { padding: 34px 20px; }
.compact-empty p { margin-bottom: 0; }
.recipe-home[hidden], .flow-outcome[hidden] { display: none; }
.back-to-library { margin: 0 0 20px; }
.recipe-home-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 18px; }
.recipe-home-heading .area-tag { margin-bottom: 10px; }
.recipe-home-heading h2 { margin: 0 0 5px; font-size: 22px; letter-spacing: -.55px; }
.recipe-home-heading p { max-width: 650px; margin: 0; color: #82909a; font-size: 11px; line-height: 1.6; }
.detail-duration { padding: 7px 10px; border: 1px solid #e4e9e7; border-radius: 7px; color: #718078; background: white; font-size: 10px; white-space: nowrap; }
.flow-instructions { display: flex; align-items: center; gap: 11px; margin: 0 0 17px; padding: 11px 13px; border: 1px solid rgba(201, 133, 69, .24); border-radius: 8px; background: rgba(224, 152, 79, .07); }
.flow-instructions-icon { width: 25px; height: 25px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 7px; color: #9a642e; background: rgba(224, 152, 79, .16); font-size: 15px; }
.flow-instructions p { margin: 0; color: #75847c; font-size: 10px; line-height: 1.55; }
.flow-instructions strong { color: #4b6a58; }
.flow-summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding: 11px 13px; border: 1px solid #e7ebed; border-radius: 8px; background: white; }
.flow-summary > div { display: grid; gap: 3px; }
.flow-summary .eyebrow { margin: 0; font-size: 8px; }
.flow-summary > div > strong { color: #465761; font-family: Manrope, sans-serif; font-size: 12px; }
.flow-status { padding: 5px 8px; border-radius: 20px; color: #806b3e; background: #faf4e5; font-size: 9px; font-weight: 600; }
.flow-status.complete { color: #347652; background: #eaf5ee; }
.flow-status.stopped { color: #94613e; background: #fbf0e8; }
.flowchart-scroll { width: 100%; overflow-x: auto; padding: 8px 3px 16px; border-radius: 9px; overscroll-behavior-x: contain; scrollbar-color: #b7c8bf #edf1ee; scrollbar-width: thin; }
.flowchart-scroll:focus-visible { outline: 2px solid #85b49d; outline-offset: 3px; }
.recipe-flowchart { display: flex; align-items: stretch; width: max-content; min-width: 100%; margin: 0; padding: 4px 2px 8px; gap: 34px; list-style: none; }
.flow-step { position: relative; flex: 0 0 230px; width: 230px; margin: 0; padding: 0; }
.flow-step:not(:last-child)::after { position: absolute; top: 50%; left: 100%; width: 34px; height: 2px; background: rgba(196, 128, 64, .38); content: ""; }
.flow-step:not(:last-child)::before { position: absolute; z-index: 1; top: calc(50% - 4px); left: calc(100% + 28px); width: 0; height: 0; border-top: 5px solid transparent; border-bottom: 5px solid transparent; border-left: 7px solid rgba(177, 108, 48, .72); content: ""; }
.flow-step-button { width: 100%; min-height: 100px; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid #e4e9eb; border-radius: 9px; color: var(--ink); background: white; text-align: left; }
.flow-step.current .flow-step-button { border-color: rgba(190, 119, 53, .58); background: rgba(224, 152, 79, .11); box-shadow: 0 0 0 3px rgba(224, 152, 79, .10); cursor: pointer; }
.flow-step.current .flow-step-button:hover { border-color: rgba(174, 101, 38, .72); background: rgba(224, 152, 79, .17); }
.flow-step.completed .flow-step-button { border-color: #e1ebe4; background: #f8fbf8; }
.flow-step.skipped .flow-step-button { border-style: dashed; }
.flow-step.locked .flow-step-button { color: #65717a; background: #fbfcfc; }
.flow-step.decision:not(.current) .flow-step-button { border-color: #e1e8f0; background: #f9fbfd; }
.flow-step-button:disabled { cursor: default; opacity: 1; }
.flow-step-icon { width: 31px; height: 31px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 9px; color: #86939b; background: #eff2f3; font-family: Manrope, sans-serif; font-size: 11px; font-weight: 700; }
.flow-step.current .flow-step-icon { color: #89531f; background: rgba(224, 152, 79, .23); }
.flow-step.completed .flow-step-icon { color: #367451; background: #e4f1e8; }
.flow-step.skipped .flow-step-icon { color: #8d7951; background: #f7f0e0; }
.flow-step-content { min-width: 0; flex: 1; display: grid; gap: 4px; }
.flow-step-code { overflow-wrap: anywhere; color: #314553; font-family: Manrope, sans-serif; font-size: 12px; }
.flow-step-status { color: #929da3; font-size: 9px; }
.flow-step.current .flow-step-status { color: #8c5c2e; font-weight: 600; }
.flow-step.completed .flow-step-status { color: #578367; }
.flow-step-action { flex: 0 0 auto; color: #85918a; font-size: 9px; font-weight: 600; }
.flow-step.current .flow-step-action { color: #8c5c2e; }
.flow-outcome { display: flex; align-items: center; gap: 12px; width: 100%; margin: 17px auto 0; padding: 13px; border: 1px solid #dfece4; border-radius: 9px; background: #f5faf6; }
.flow-outcome .result-icon { width: 35px; height: 35px; flex: 0 0 auto; margin: 0; border-radius: 11px; font-size: 16px; }
.flow-outcome > div { flex: 1; }
.flow-outcome > div > strong { color: #365646; font-family: Manrope, sans-serif; font-size: 11px; }
.flow-outcome > div > p { margin: 3px 0 0; color: #77877e; font-size: 9px; line-height: 1.5; }
.flow-stopped { border-color: #efe5d8; background: #fdf9f2; }
.flow-stopped > div > strong { color: #745c3a; }
.flow-stopped > div > p { color: #897b65; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

.modal-dialog { width: min(680px, calc(100% - 28px)); max-width: none; max-height: min(90vh, 900px); padding: 0; overflow: auto; border: 0; border-radius: 12px; color: var(--ink); background: white; box-shadow: var(--shadow); }
.modal-dialog::backdrop { background: rgba(19, 34, 45, .48); backdrop-filter: blur(2px); }
.modal-card { display: flex; flex-direction: column; }
.modal-header { position: sticky; z-index: 1; top: 0; display: flex; align-items: center; justify-content: space-between; padding: 19px 23px 15px; border-bottom: 1px solid #edf0f1; background: white; }
.modal-header .eyebrow { margin-bottom: 4px; }
.modal-header h2 { margin: 0; font-size: 17px; letter-spacing: -.3px; }
.modal-body { padding: 18px 23px 21px; }
.modal-footer { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 8px; padding: 13px 23px; border-top: 1px solid #edf0f1; background: white; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.field { display: grid; gap: 6px; color: #65737d; font-size: 10px; font-weight: 600; }
.field-wide { grid-column: 1 / -1; }
.field input, .field select, .field textarea, .step-editor input, .step-editor select, .step-editor textarea { width: 100%; min-width: 0; padding: 9px 10px; border: 1px solid #e2e7e9; border-radius: 6px; outline: 0; color: #334655; background: white; font-size: 11px; font-weight: 400; }
.field textarea, .step-editor textarea { resize: vertical; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus, .step-editor input:focus, .step-editor select:focus, .step-editor textarea:focus { border-color: #8bb9a5; box-shadow: 0 0 0 3px rgba(21, 123, 100, .07); }
.field input::placeholder, .field textarea::placeholder, .step-editor input::placeholder, .step-editor textarea::placeholder { color: #aab3b9; }
.steps-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 22px 0 11px; }
.steps-heading h3 { margin: 0 0 3px; font-size: 13px; }
.steps-heading p { margin: 0; color: #8a969e; font-size: 9px; }
.step-count { color: #87939b; font-size: 9px; white-space: nowrap; }
.step-editor-list { display: grid; gap: 9px; }
.step-editor { padding: 11px; border: 1px solid #e7ebed; border-radius: 8px; background: #fbfcfc; }
.step-editor-top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.step-number { width: 21px; height: 21px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 6px; color: #537467; background: #eaf2ed; font-size: 9px; font-weight: 700; }
.step-editor-top input { flex: 1; }
.step-editor-top select { width: 127px; }
.remove-step { width: 28px; height: 31px; flex: 0 0 auto; border: 0; border-radius: 5px; color: #a18484; background: transparent; font-size: 17px; }
.remove-step:hover { color: #a23f3f; background: #fcf0f0; }
.step-editor textarea { display: block; min-height: 54px; }
.route-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; margin-top: 9px; }
.route-grid label { display: grid; gap: 5px; color: #74817e; font-size: 9px; font-weight: 600; }
.route-grid select { padding: 7px 8px; font-size: 10px; }
.route-hint { margin: 7px 0 0; color: #929da3; font-size: 9px; }
.button-add-step { width: 100%; margin-top: 10px; border: 1px dashed #cfdbd5; color: #507466; background: #f8fbf9; }
.button-add-step:hover { border-color: #a8c8b8; background: #f0f7f3; }
.run-dialog { width: min(700px, calc(100% - 28px)); }
.run-panel { padding: 0; }
.run-header { display: flex; align-items: center; justify-content: space-between; padding: 17px 22px; border-bottom: 1px solid #edf0f1; }
.run-brand { display: flex; align-items: center; gap: 9px; color: #5c7067; font-size: 10px; font-weight: 700; }
.run-brand-mark { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; color: white; background: var(--green); font-family: Manrope, sans-serif; font-size: 13px; }
.run-header-actions { display: flex; align-items: center; gap: 8px; }
.run-badge { padding: 6px 8px; border-radius: 20px; color: #3e775f; background: #edf6f0; font-size: 9px; font-weight: 600; }
.run-body { padding: 22px 26px 26px; }
.run-crumb { margin: 0 0 14px; color: #87949b; font-size: 9px; }
.run-crumb strong { color: #4c675a; }
.run-recipe-title { margin: 0 0 4px; font-size: 20px; letter-spacing: -.5px; }
.run-recipe-description { margin: 0; color: #84919a; font-size: 10px; }
.progress-wrap { display: flex; align-items: center; gap: 10px; margin: 19px 0 18px; }
.progress-track { height: 5px; flex: 1; overflow: hidden; border-radius: 5px; background: #e9eeeb; }
.progress-fill { height: 100%; border-radius: inherit; background: #54a17c; transition: width .25s ease; }
.progress-label { color: #87938d; font-size: 9px; white-space: nowrap; }
.run-step-card { padding: 18px; border: 1px solid #e7ece9; border-radius: 9px; background: #fbfcfb; }
.run-step-type { display: flex; align-items: center; gap: 7px; margin-bottom: 11px; color: #628272; font-size: 9px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; }
.run-step-type span { width: 19px; height: 19px; display: grid; place-items: center; border-radius: 6px; color: #477a64; background: #e9f2ec; font-size: 11px; }
.run-step-title { margin: 0 0 8px; font-size: 15px; letter-spacing: -.2px; }
.run-instructions { margin: 0; color: #697984; font-size: 11px; line-height: 1.7; white-space: pre-wrap; }
.run-callout { display: flex; gap: 8px; margin-top: 13px; padding: 9px 10px; border-radius: 6px; color: #847348; background: #fff9e9; font-size: 9px; line-height: 1.55; }
.signature-field { display: grid; gap: 6px; margin-top: 16px; color: #66757d; font-size: 9px; font-weight: 600; }
.signature-field input { padding: 9px 10px; border: 1px solid #e0e6e5; border-radius: 6px; outline: 0; font-size: 11px; }
.signature-field input:focus { border-color: #8bb9a5; box-shadow: 0 0 0 3px rgba(21, 123, 100, .07); }
.answer-buttons { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.answer-button { min-width: 72px; min-height: 34px; padding: 0 13px; border: 1px solid #dfe7e2; border-radius: 6px; color: #446657; background: white; font-size: 10px; font-weight: 600; }
.answer-button:hover, .answer-button.selected { border-color: #92bca9; color: #236449; background: #edf6f0; }
.run-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 17px; }
.run-footer-note { color: #929ca2; font-size: 9px; }
.run-result { display: grid; justify-items: center; padding: 39px 28px 35px; text-align: center; }
.result-icon { width: 51px; height: 51px; display: grid; place-items: center; margin-bottom: 14px; border-radius: 16px; color: #268260; background: #e9f5ee; font-size: 23px; }
.result-icon.stopped { color: #9a7140; background: #fbf3e5; }
.run-result h2 { margin: 0 0 6px; font-size: 19px; }
.run-result p { max-width: 400px; margin: 0 0 17px; color: #829098; font-size: 10px; line-height: 1.6; }
.result-summary { width: min(390px, 100%); margin-bottom: 20px; padding: 11px 13px; border: 1px solid #e8edeb; border-radius: 7px; color: #708078; background: #fafcfb; text-align: left; font-size: 9px; line-height: 1.8; }
.area-dialog { width: min(440px, calc(100% - 28px)); }
.toast { position: fixed; right: 24px; bottom: 23px; z-index: 10; max-width: min(360px, calc(100vw - 48px)); padding: 11px 15px; border-radius: 8px; color: white; background: #2b493e; box-shadow: var(--shadow); font-size: 11px; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.toast.visible { opacity: 1; transform: translateY(0); }

@media (max-width: 1050px) {
  .main-content { padding-right: 27px; padding-left: 27px; }
  .recipe-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .topbar { height: 62px; padding: 0 15px; }
  .workspace { grid-template-columns: 1fr; min-height: calc(100vh - 62px); }
  .sidebar { min-height: 0; padding: 9px 14px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar > .sidebar-label:not(.area-heading), .sidebar-note, .sidebar-footer { display: none; }
  .nav-link { width: auto; }
  .sidebar .nav-link { display: none; }
  .area-heading { margin: 0; padding: 4px 2px 6px; font-size: 8px; }
  .area-nav { display: flex; overflow-x: auto; gap: 5px; }
  .area-link { width: auto; flex: 0 0 auto; white-space: nowrap; }
  .main-content { padding: 18px 17px 38px; }
  .page-heading { align-items: flex-start; margin: 22px 0 17px; }
  h1 { font-size: 22px; }
  .page-heading > .button { padding: 0 10px; font-size: 10px; }
  .notice-banner p { font-size: 9px; }
  .stats-grid { gap: 7px; margin: 13px 0 24px; }
  .stat-card { min-height: 65px; gap: 7px; padding: 9px; }
  .stat-icon { width: 26px; height: 26px; }
  .stat-label { font-size: 8px; }
  .stat-card strong { font-size: 15px; }
  .section-heading { align-items: flex-start; flex-direction: column; }
  .search-box { width: 100%; }
  .recipe-grid { grid-template-columns: 1fr; }
  .recipe-card { min-height: 169px; }
  .recipe-home-heading { flex-direction: column; gap: 9px; }
  .recipe-home-heading h2 { font-size: 19px; }
  .flow-step { flex-basis: 210px; width: 210px; }
  .flowchart-scroll { padding-right: 4px; padding-left: 4px; }
  .flow-step-button { min-height: 92px; gap: 9px; padding: 11px 10px; }
  .flow-step-action { max-width: 72px; text-align: right; }
  .flow-outcome { align-items: flex-start; flex-wrap: wrap; }
  .flow-outcome .button { margin-left: 47px; }
}
@media (max-width: 430px) {
  .brand-copy strong { font-size: 12px; }
  .brand-copy span { font-size: 7px; }
  .environment-pill { padding: 7px 8px; font-size: 9px; }
  .topbar-right { gap: 8px; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-card { min-height: 54px; }
  .stat-icon { width: 30px; height: 30px; }
  .form-grid { grid-template-columns: 1fr; }
  .field-wide { grid-column: auto; }
  .step-editor-top { flex-wrap: wrap; }
  .step-editor-top input { flex-basis: calc(100% - 78px); }
  .step-editor-top select { flex: 1; }
  .route-grid { grid-template-columns: 1fr; }
  .run-body { padding: 18px 16px 20px; }
  .flow-step-icon { width: 26px; height: 26px; }
  .flow-step-code { font-size: 10px; }
  .flow-step-status { font-size: 8px; }
  .flow-instructions { align-items: flex-start; }
}
