:root { color-scheme: light; font-family: Inter, system-ui, sans-serif; color: #213047; background: #f1f4f9; --border: #dce4ef; --blue: #2869d9; }
* { box-sizing: border-box; }
body { margin: 0; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; border: 1px solid var(--border); border-radius: 7px; background: white; color: #293e59; padding: 8px 12px; }
button:hover:not(:disabled) { background: #eaf1fe; border-color: #8bafe7; }
button:disabled { opacity: .45; cursor: not-allowed; }
button.primary, button.selected { background: var(--blue); color: white; border-color: var(--blue); }
button.danger { color: #b72b35; }
input, select, textarea { border: 1px solid var(--border); border-radius: 6px; background: white; padding: 8px; width: 100%; color: inherit; }
textarea { min-height: 90px; resize: vertical; font: 13px/1.5 ui-monospace, monospace; }
label { display: block; font-size: 13px; font-weight: 600; }
label > input, label > select, label > textarea { display: block; margin-top: 5px; }
label.check { display: flex; gap: 8px; align-items: center; }
label.check input { width: auto; }
header { padding: 16px 24px; background: #172c49; color: white; display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }
.brand { color: white; text-decoration: none; font-size: 25px; font-weight: 700; }
.brand small { font-size: 12px; display: block; color: #a8c4e8; font-weight: 500; }
nav { display: flex; gap: 8px; flex-wrap: wrap; }
nav button { background: #243f60; color: #dceaff; border-color: #405d7e; }
header > #reset { margin-left: auto; }
.notice { margin: 0; padding: 11px 24px; background: #e4edfd; font-size: 13px; }
#error { background: #ffe7e8; color: #a21724; margin: 0; padding: 12px 24px; }
main { display: grid; grid-template-columns: 220px minmax(0, 1fr); min-height: calc(100vh - 170px); }
aside { background: white; border-right: 1px solid var(--border); padding: 18px 14px; }
h1 { font-size: 23px; margin: 0 0 8px; } h2 { font-size: 16px; margin: 0 0 12px; } p { line-height: 1.5; }
.section-head, .toolbar, .toolbar-buttons, .aside-actions, .dialog-buttons { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.section-head { justify-content: space-between; margin-bottom: 14px; } .section-head h2 { margin: 0; }
#flows { display: grid; gap: 8px; margin: 12px 0 18px; }
.flow { text-align: left; width: 100%; } .flow small { display: block; margin-top: 5px; opacity: .7; }
.aside-actions { margin-bottom: 16px; } #armed { width: 100%; } .muted { font-size: 12px; color: #718198; } #workspace { overflow-wrap: anywhere; }
.tab { padding: 22px; min-width: 0; } .toolbar { justify-content: space-between; margin-bottom: 18px; }
.toolbar-buttons { justify-content: flex-end; } .designer-layout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(250px, 1fr); gap: 18px; }
.canvas, .inspector, .run-panel, .template, .run-card, #run-detail { background: white; border: 1px solid var(--border); border-radius: 10px; padding: 18px; min-width: 0; }
.run-panel { margin-top: 18px; } .inspector form, #credential-form, #settings-fields { display: grid; gap: 14px; }
.step { display: flex; align-items: center; gap: 5px; padding: 8px; border: 1px solid var(--border); border-left: 4px solid #69a4ec; border-radius: 7px; margin-bottom: 8px; min-width: 0; }
.step.selected { background: #edf4ff; border-color: #72a3ee; } .step.disabled { opacity: .55; }
.step-title { flex: 1; background: transparent; border: 0; text-align: left; padding: 4px; min-width: 0; overflow-wrap: anywhere; }
.step-title small { display: block; color: #708199; font-size: 11px; margin-top: 4px; }
.step > button:not(.step-title) { padding: 5px 8px; }
.lane-label { color: #7b8ba2; font-size: 11px; margin: 9px 0; }
.children { border-left: 1px dashed #b7c9e2; padding-left: 15px; margin-left: 13px; }
.add-action { display: grid; gap: 10px; margin-top: 20px; }
.badge { display: inline-block; background: #eaf1fc; padding: 4px 8px; font-size: 12px; border-radius: 5px; }
.badge.failed { background: #ffe5e8; color: #b02536; } .badge.succeeded { background: #e3f6ec; color: #24794d; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #f4f7fb; padding: 10px; border-radius: 6px; font: 12px/1.6 ui-monospace, monospace; max-height: 350px; overflow: auto; }
table { border-collapse: collapse; width: 100%; font-size: 12px; } td, th { padding: 8px; border-bottom: 1px solid var(--border); text-align: left; overflow-wrap: anywhere; }
#history { display: grid; gap: 10px; margin-bottom: 20px; } .run-card { text-align: left; }
#template-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 22px; }
#credential-form { max-width: 500px; margin-top: 24px; }
dialog { border: 1px solid var(--border); border-radius: 12px; width: min(600px, 95vw); max-height: 90vh; padding: 24px; } dialog::backdrop { background: #172c4980; }
.dialog-buttons { justify-content: flex-end; margin-top: 22px; }
footer { display: flex; justify-content: space-between; gap: 15px; padding: 12px 24px; font-size: 12px; background: white; border-top: 1px solid var(--border); }
[hidden] { display: none !important; }
@media (max-width: 1050px) { .designer-layout { grid-template-columns: minmax(0, 1fr); } .toolbar-buttons { justify-content: flex-start; } }
@media (max-width: 650px) { header { padding: 14px; gap: 14px; } nav { gap: 5px; } nav button { padding: 7px 9px; font-size: 12px; } main { grid-template-columns: minmax(0, 1fr); } aside { border-right: 0; border-bottom: 1px solid var(--border); } #flows { grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); } .tab { padding: 14px; } .notice { padding: 10px 14px; } .toolbar-buttons button { padding: 7px 9px; font-size: 12px; } .children { padding-left: 7px; margin-left: 3px; } }
