@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800&display=swap");
:root {
  color-scheme: dark;
  --bg: #121316;
  --sidebar: #101114;
  --panel: #191a1f;
  --panel2: #1e2026;
  --border: #2a2c33;
  --text: #f0f0f3;
  --muted: #93959f;
  --dim: #626571;
  --accent: #ff795c;
  --green: #7ac8a3;
  --radius: 12px;
  --sidebar-w: 224px;
  font-family: "DM Sans", "Noto Sans JP", sans-serif;
  font-size: 13px;
  font-weight: 400;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button,
a {
  touch-action: manipulation;
}
button {
  color: inherit;
  border: 0;
  background: transparent;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
input,
textarea,
select {
  color: var(--text);
  background: #15161b;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  outline: 0;
  min-width: 0;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #e78870;
  box-shadow: 0 0 0 3px #ff795c0d;
}
input::placeholder,
textarea::placeholder {
  color: #626571;
}
textarea {
  resize: vertical;
  line-height: 1.7;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -0.7px;
}
h2 {
  font-size: 17px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.icon {
  display: inline-block;
}
hr {
  height: 1px;
  border: 0;
  background: var(--border);
  margin: 20px 0;
}
kbd {
  font-family: inherit;
  border: 1px solid #3a3c44;
  border-radius: 4px;
  color: var(--muted);
  padding: 1px 5px;
  font-size: 10px;
}
.muted {
  color: var(--muted);
}
.dim {
  color: var(--dim);
}
.small {
  font-size: 11px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.between {
  justify-content: space-between;
}
.grow {
  flex: 1;
  min-width: 0;
}
.ellipsis {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.text-accent {
  color: var(--accent);
}
.text-green {
  color: var(--green);
}
.btn {
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 500;
  white-space: nowrap;
  transition: 0.15s;
  border: 1px solid var(--border);
  background: #1d1e24;
}
.btn:hover {
  background: #292b33;
  border-color: #484b55;
}
.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #221612;
  box-shadow: 0 2px 5px #0003;
  font-weight: 600;
}
.btn.primary:hover {
  background: #ff9076;
}
.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}
.btn.ghost:hover {
  background: #ffffff07;
  color: var(--text);
}
.btn.danger {
  color: #ff8d92;
  border-color: #65343b;
  background: #301d24;
}
.icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 31px;
  height: 31px;
  border-radius: 6px;
  color: var(--muted);
}
.icon-btn:hover {
  color: white;
  background: #ffffff0a;
}
.icon-btn.selected {
  color: var(--accent);
}
.tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  border-radius: 5px;
  padding: 4px 7px;
  color: #a6a7b0;
  background: #ffffff05;
  border: 1px solid #ffffff08;
  white-space: nowrap;
}
.tag.green {
  color: #8ec9ac;
  background: #78c9a309;
  border-color: #78c9a322;
}
.tag.orange {
  color: #ffab8f;
  background: #ff795c0b;
  border-color: #ff795c22;
}
.tag.blue {
  color: #9cbcf5;
  background: #639dff0a;
  border-color: #639dff20;
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  display: inline-block;
}
.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: var(--sidebar-w);
  border-right: 1px solid #25262c;
  background: var(--sidebar);
  display: flex;
  flex-direction: column;
  padding: 27px 15px 13px;
  z-index: 40;
}
.brand {
  padding: 0 13px;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--accent);
  width: fit-content;
}
.brand svg {
  width: 29px;
  height: 29px;
}
.brand-name {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  font-weight: 800;
  color: #f4f3f6;
  letter-spacing: -1.3px;
}
.brand-dot {
  color: var(--accent);
}
.workspace-picker {
  margin-top: 30px;
  border: 1px solid #303138;
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 7px;
  padding: 10px;
  cursor: pointer;
  background: #17181d;
  text-align: left;
}
.workspace-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: #353034;
  color: #e8c5b8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 12px;
}
.workspace-name {
  font-size: 11px;
  font-weight: 500;
}
.workspace-plan {
  font-size: 9px;
  color: var(--dim);
  margin-top: 2px;
}
.nav-label {
  margin: 27px 13px 10px;
  color: #626570;
  font-size: 9px;
  letter-spacing: 1.6px;
  font-weight: 600;
}
.nav-links {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.nav-link {
  padding: 11px 12px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #92949f;
  font-size: 12px;
  text-align: left;
  transition: 0.15s;
  position: relative;
}
.nav-link:hover {
  color: #ecebf0;
  background: #ffffff04;
}
.nav-link.active {
  color: #ff9a80;
  background: #ff795c10;
}
.nav-link.active:before {
  position: absolute;
  content: "";
  left: -15px;
  top: 10px;
  bottom: 10px;
  width: 2px;
  background: var(--accent);
  border-radius: 4px;
}
.nav-count {
  margin-left: auto;
  background: #343033;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 10px;
  color: #c0b1ac;
}
.sidebar-bottom {
  margin-top: auto;
  padding-top: 40px;
}
.storage-card {
  margin: 0 3px 15px;
  border: 1px solid #2d2e35;
  border-radius: 9px;
  background: linear-gradient(135deg, #202023, #16171b);
  padding: 13px 12px;
}
.storage-card p {
  font-size: 10px;
  line-height: 1.8;
  color: #8c8e99;
  margin: 8px 0 11px;
}
.storage-card .btn {
  width: 100%;
  height: 29px;
  font-size: 10px;
  background: #29282b;
  border-color: #3b3637;
}
.storage-title {
  font-size: 11px;
  display: flex;
  gap: 7px;
  align-items: center;
}
.profile {
  border-top: 1px solid #28292e;
  padding: 17px 8px 0;
  margin-top: 11px;
  display: flex;
  align-items: center;
  gap: 9px;
}
.avatar {
  width: 31px;
  height: 31px;
  background: linear-gradient(135deg, #dbb7a6, #7f685f);
  border: 2px solid #fff2;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 600;
  color: #241e1b;
}
.profile .name {
  font-size: 11px;
}
.profile .email {
  font-size: 9px;
  color: var(--dim);
  margin-top: 3px;
}
.app-main {
  margin-left: var(--sidebar-w);
  min-height: 100vh;
}
.topbar {
  height: 65px;
  padding: 0 35px;
  border-bottom: 1px solid #25272d;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #131418;
}
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 11px;
  color: #777a85;
}
.breadcrumbs .current {
  color: #d8d9e0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 10px;
  color: #9698a3;
}
.topbar-link {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #9b9da7;
}
.topbar-link:hover {
  color: white;
}
.version-badge {
  border: 1px solid #3a3030;
  background: #231c1d;
  border-radius: 4px;
  color: #df9b84;
  padding: 3px 6px;
  font-size: 9px;
}
.mobile-menu {
  display: none;
}
.page-content {
  padding: 33px 36px 25px;
  max-width: 1600px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 27px;
  gap: 16px;
}
.page-heading p {
  margin-top: 9px;
  font-size: 11px;
  color: #93949f;
  line-height: 1.7;
}
.page-heading .actions {
  display: flex;
  align-items: center;
  gap: 9px;
}
.hero {
  border: 1px solid #3e3330;
  border-radius: 11px;
  background:
    radial-gradient(ellipse at 74% 80%, #4a30272b, transparent 60%),
    linear-gradient(110deg, #201c1e 0%, #1e1b1c 40%, #1b1a1e 100%);
  position: relative;
  overflow: hidden;
  display: flex;
  min-height: 197px;
  margin-bottom: 23px;
}
.hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#ba9d861a 0.7px, transparent 0.7px);
  background-size: 17px 17px;
  pointer-events: none;
  mask-image: linear-gradient(90deg, transparent, #000);
}
.hero-copy {
  padding: 28px 30px;
  z-index: 2;
  flex-shrink: 0;
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #d1a391;
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 12px;
}
.hero h2 {
  font-size: 23px;
  font-weight: 600;
  letter-spacing: -0.4px;
  line-height: 1.5;
}
.hero h2 span {
  color: #ffab8e;
}
.hero p {
  font-size: 10px;
  color: #a39b9b;
  line-height: 1.85;
  margin-top: 8px;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 17px;
  margin-top: 17px;
}
.hero-actions .btn {
  height: 30px;
  font-size: 10px;
  border-color: #55403a;
  background: #47312b;
  color: #ffd6c8;
}
.hero-actions .text-link {
  font-size: 10px;
  color: #c1aba1;
  display: flex;
  align-items: center;
  gap: 5px;
}
.hero-art {
  position: relative;
  flex: 1;
  min-width: 330px;
  z-index: 1;
}
.hero-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hero-service {
  position: absolute;
  background: #252327;
  border: 1px solid #4c3c36;
  border-radius: 13px;
  width: 55px;
  height: 55px;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 30px #0003;
}
.hero-service.start {
  left: 11%;
  top: 76px;
  border-color: #6a4c3e;
  color: #f2a57b;
}
.hero-service.brain {
  left: 42%;
  top: 64px;
  width: 79px;
  height: 79px;
  border-color: #825344;
  background: #382b28;
  color: #ffb28f;
  box-shadow: 0 0 50px #ff785512;
}
.hero-service.brain:after {
  content: "";
  position: absolute;
  inset: -7px;
  border: 1px solid #80574729;
  border-radius: 20px;
}
.hero-service.slack {
  left: 77%;
  top: 22px;
}
.hero-service.notion {
  left: 77%;
  top: 130px;
  color: #ddd6d3;
}
.hero-art-label {
  position: absolute;
  top: 158px;
  left: 39%;
  font-size: 8px;
  letter-spacing: 1.5px;
  color: #a28b7f;
}
.hero-chip {
  position: absolute;
  left: 7%;
  top: 144px;
  font-size: 8px;
  color: #aa9286;
  display: flex;
  align-items: center;
  gap: 5px;
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-bottom: 33px;
}
.metric-card {
  border: 1px solid #2a2c32;
  border-radius: 9px;
  background: #18191e;
  padding: 17px 19px;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #a2a3ae;
  font-size: 10px;
  margin-bottom: 11px;
}
.metric-top .icon {
  color: #797c88;
}
.metric-bottom {
  display: flex;
  align-items: baseline;
  gap: 11px;
}
.metric-number {
  font-family: "Manrope", sans-serif;
  font-size: 25px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
.metric-note {
  font-size: 9px;
  color: #6f7380;
}
.metric-note.success {
  color: #83bea0;
}
.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}
.section-heading h2 {
  font-size: 15px;
}
.section-heading .text-link {
  color: #a5a5b0;
  display: flex;
  gap: 6px;
  align-items: center;
  font-size: 10px;
}
.section-heading p {
  font-size: 10px;
  color: var(--muted);
  margin-top: 7px;
}
.workflow-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.tabs {
  display: flex;
  gap: 17px;
  align-items: center;
}
.tab {
  color: #7f828e;
  font-size: 11px;
  padding: 8px 2px 12px;
  position: relative;
  display: flex;
  gap: 7px;
  align-items: center;
}
.tab.active {
  color: #f4f1f1;
}
.tab.active:after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--accent);
}
.tab-count {
  font-size: 9px;
  padding: 1px 5px;
  background: #282a32;
  border-radius: 4px;
  color: #a4a7b2;
}
.toolbar-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #30323a;
  background: #17181c;
  border-radius: 6px;
  padding: 0 10px;
  color: #737683;
  height: 32px;
}
.search-box input {
  border: 0;
  background: transparent;
  box-shadow: none;
  padding: 0;
  font-size: 10px;
  width: 155px;
}
.sort-select {
  height: 32px;
  padding: 0 8px;
  font-size: 10px;
  color: #aaaeb8;
  background: #1a1b21;
}
.view-toggle {
  display: flex;
  align-items: center;
  border: 1px solid #30323a;
  border-radius: 6px;
  padding: 2px;
  background: #15161a;
}
.view-toggle button {
  width: 27px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #666c77;
  border-radius: 3px;
}
.view-toggle button.active {
  color: #d6d9e4;
  background: #30323a;
}
.workflow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.workflow-card {
  border: 1px solid #2c2e36;
  background: #1a1b20;
  border-radius: 10px;
  overflow: hidden;
  transition: 0.2s;
  position: relative;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
}
.workflow-card:hover {
  border-color: #665047;
  transform: translateY(-2px);
  box-shadow: 0 10px 28px #0002;
}
.card-top {
  padding: 17px 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.card-top .category {
  font-size: 9px;
  color: #9396a2;
}
.card-top-actions {
  display: flex;
  gap: 2px;
}
.card-top .icon-btn {
  width: 24px;
  height: 24px;
}
.card-mini-flow {
  height: 89px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  position: relative;
}
.card-mini-flow:before {
  content: "";
  position: absolute;
  inset: 6px 0;
  background-image: radial-gradient(#55565f44 0.65px, transparent 0.65px);
  background-size: 12px 12px;
  mask-image: linear-gradient(
    90deg,
    transparent,
    #000 15%,
    #000 85%,
    transparent
  );
}
.service-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  flex-shrink: 0;
  width: 43px;
  height: 43px;
  background: #262831;
  border: 1px solid #3a3c46;
  position: relative;
  z-index: 1;
}
.service-icon.orange {
  background: #332721;
  color: #f7a581;
  border-color: #604536;
}
.service-icon.green {
  background: #20352e;
  color: #8cd9b7;
  border-color: #355346;
}
.service-icon.blue {
  background: #222d40;
  color: #88b8fa;
  border-color: #354865;
}
.service-icon.violet {
  background: #2e283e;
  color: #b59aed;
  border-color: #49405d;
}
.service-icon.amber {
  background: #343020;
  color: #dac47c;
  border-color: #51492f;
}
.service-icon.rose {
  background: #342631;
  color: #dcabc4;
  border-color: #54394a;
}
.service-icon.neutral {
  background: #292a30;
  color: #e6e5e8;
  border-color: #484950;
}
.flow-connector {
  width: 27px;
  height: 1px;
  background: #51515a;
  position: relative;
  z-index: 1;
}
.flow-connector:after {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 50%;
  position: absolute;
  right: -1px;
  top: -1.5px;
  background: #696974;
}
.card-body {
  padding: 0 17px 16px;
}
.card-body h3 {
  font-size: 12px;
  font-weight: 500;
  letter-spacing: -0.15px;
  margin-bottom: 8px;
}
.card-body p {
  font-size: 10px;
  line-height: 1.85;
  color: #858894;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 37px;
}
.card-footer {
  padding: 12px 17px;
  border-top: 1px solid #2b2d34;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 9px;
  color: #787c87;
  gap: 7px;
  margin-top: auto;
}
.card-footer .row {
  gap: 5px;
}
.status-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  display: inline-block;
  background: #b4a17a;
  margin-right: 5px;
}
.workflow-grid.list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.workflow-grid.list .workflow-card {
  display: grid;
  grid-template-columns: 140px 1fr 240px;
  align-items: center;
  min-height: 100px;
}
.workflow-grid.list .card-top {
  position: absolute;
  right: 12px;
  top: 8px;
  padding: 0;
}
.workflow-grid.list .category {
  display: none;
}
.workflow-grid.list .card-mini-flow {
  grid-column: 1;
  padding: 15px;
  height: auto;
}
.workflow-grid.list .service-icon {
  width: 29px;
  height: 29px;
  border-radius: 6px;
}
.workflow-grid.list .service-icon svg {
  width: 17px;
  height: 17px;
}
.workflow-grid.list .flow-connector {
  width: 10px;
}
.workflow-grid.list .card-body {
  grid-column: 2;
  padding: 20px;
}
.workflow-grid.list .card-footer {
  grid-column: 3;
  border: 0;
  padding-top: 39px;
  margin: 0;
}
.template-section {
  margin-top: 32px;
}
.template-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.template-card {
  padding: 17px;
  border: 1px solid #2b2d34;
  border-radius: 9px;
  background: #17181d;
  cursor: pointer;
  transition: 0.2s;
  text-align: left;
}
.template-card:hover {
  border-color: #5b4b44;
  background: #1f1e21;
}
.template-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}
.template-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}
.template-icons .service-icon {
  width: 29px;
  height: 29px;
  border-radius: 7px;
}
.template-icons .icon {
  width: 16px;
  height: 16px;
}
.template-card h3 {
  font-size: 11px;
  margin-bottom: 8px;
  font-weight: 500;
}
.template-card p {
  font-size: 10px;
  color: #808491;
  line-height: 1.9;
}
.template-card .template-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  color: #9c9da8;
  font-size: 9px;
}
.page-footer {
  margin-top: 26px;
  color: #5f6370;
  font-size: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.page-footer .row {
  gap: 5px;
}
.empty {
  padding: 55px 25px;
  border: 1px dashed #393b45;
  border-radius: 10px;
  text-align: center;
  color: #858996;
  grid-column: 1/-1;
}
.empty > svg {
  margin-bottom: 15px;
  color: #b39b91;
}
.empty h3 {
  color: #d8d7dd;
  margin-bottom: 9px;
}
.empty p {
  font-size: 11px;
  line-height: 1.9;
  margin-bottom: 18px;
}
.notice {
  border: 1px solid #4a3b31;
  background: #2a211b66;
  border-radius: 8px;
  color: #c2a793;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 11px;
  line-height: 1.8;
}
.notice.blue {
  border-color: #2c4058;
  background: #1a253344;
  color: #a4b9d1;
}
.notice a {
  color: #f9ba9c;
  text-decoration: underline;
}
.integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.integration-card {
  padding: 23px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
}
.integration-card p {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.9;
  margin: 16px 0 20px;
  min-height: 42px;
}
.integration-card h3 {
  margin: 0 0 5px;
}
.integration-card .btn {
  width: 100%;
  height: 33px;
  font-size: 11px;
}
.integration-card .service-icon {
  width: 46px;
  height: 46px;
}
.integration-card.unavailable {
  opacity: 0.65;
}
.filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.filter-pill {
  font-size: 11px;
  padding: 8px 13px;
  border: 1px solid #2c2d35;
  border-radius: 6px;
  color: var(--muted);
}
.filter-pill.active {
  color: #ffad94;
  background: #ff795c0d;
  border-color: #ff795c44;
}
.settings-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
.panel {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--panel);
  padding: 24px;
}
.panel h3 {
  margin-bottom: 19px;
}
.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 15px 0;
  border-bottom: 1px solid #ffffff07;
  font-size: 11px;
}
.setting-row:last-child {
  border: 0;
}
.setting-row p {
  color: var(--dim);
  font-size: 10px;
  margin-top: 6px;
  line-height: 1.8;
}
.steps {
  padding-left: 18px;
  color: #999daa;
  line-height: 2.5;
  font-size: 11px;
}
.code-block {
  background: #111216;
  border: 1px solid #2b2e35;
  border-radius: 7px;
  padding: 14px;
  font-family: monospace;
  font-size: 11px;
  line-height: 1.8;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
  color: #b6c8b7;
}
.table-wrap {
  border: 1px solid var(--border);
  border-radius: 9px;
  overflow: auto;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
}
th {
  font-weight: 500;
  background: #1b1c22;
  color: #828592;
  padding: 13px 18px;
  border-bottom: 1px solid var(--border);
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid #ffffff06;
  color: #b3b5c0;
}
tr:last-child td {
  border: 0;
}
tr.clickable {
  cursor: pointer;
}
tr.clickable:hover td {
  background: #ffffff03;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #06070ab5;
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 100;
}
.modal {
  width: 500px;
  max-width: 100%;
  max-height: 90vh;
  background: #1a1b21;
  border: 1px solid #383a44;
  border-radius: 13px;
  box-shadow: 0 30px 100px #0008;
  overflow: auto;
}
.modal.wide {
  width: 780px;
}
.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}
.modal-header h2 {
  font-size: 15px;
}
.modal-body {
  padding: 24px;
}
.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 18px;
}
.field label {
  font-size: 11px;
  font-weight: 500;
  color: #babcc8;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  font-size: 12px;
}
.field small {
  font-size: 10px;
  color: #777e8c;
  line-height: 1.8;
}
.field textarea {
  min-height: 95px;
}
.form-error {
  color: #ff9a9e;
  font-size: 11px;
  line-height: 1.8;
  margin: 12px 0;
  min-height: 0;
}
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 400px;
}
.toast {
  border: 1px solid #444147;
  background: #25242a;
  color: #e9e5e5;
  border-radius: 9px;
  padding: 14px 17px;
  box-shadow: 0 8px 30px #0005;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  animation: slideIn 0.2s ease;
  line-height: 1.7;
}
.toast svg {
  color: #96d1af;
}
.toast.error svg {
  color: #ff9b88;
}
@keyframes slideIn {
  from {
    transform: translateY(10px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.context-menu {
  position: fixed;
  z-index: 70;
  background: #24252c;
  border: 1px solid #3b3c47;
  border-radius: 8px;
  padding: 5px;
  min-width: 156px;
  box-shadow: 0 10px 30px #0005;
}
.context-menu button {
  width: 100%;
  padding: 9px 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  font-size: 11px;
  border-radius: 4px;
  color: #c2c4d0;
}
.context-menu button:hover {
  background: #32343d;
}
.context-menu button.danger {
  color: #f5a09a;
}
.connection-row {
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 16px;
  margin-top: 12px;
}
.connection-row .service-icon {
  width: 36px;
  height: 36px;
}
.connection-row p {
  color: var(--muted);
  font-size: 10px;
  margin-top: 5px;
}
.boot-screen {
  display: grid;
  place-items: center;
  min-height: 100vh;
  color: var(--accent);
}
.spinner {
  width: 18px;
  height: 18px;
  border: 2px solid #ffffff30;
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.editor {
  height: calc(100vh - 65px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.editor-toolbar {
  padding: 16px 22px;
  display: flex;
  align-items: center;
  gap: 15px;
  border-bottom: 1px solid var(--border);
  min-height: 78px;
  background: #17181c;
}
.editor-name {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 380px;
}
.editor-name input {
  font-size: 14px;
  font-weight: 500;
  padding: 3px 0;
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  width: 100%;
  text-overflow: ellipsis;
}
.editor-name input:focus {
  border-bottom-color: #9c6857;
}
.editor-name .small {
  font-size: 9px;
}
.editor-toolbar .btn {
  height: 33px;
  font-size: 10px;
}
.editor-tabs {
  height: 42px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #2b2d34;
  background: #15161a;
  flex-shrink: 0;
}
.editor-tabs .row {
  height: 100%;
  gap: 22px;
}
.editor-tabs .row.small {
  gap: 6px;
  font-size: 9px;
}
.editor-tab {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: #898d9b;
  position: relative;
}
.editor-tab.active {
  color: #e2dcd9;
}
.editor-tab.active:after {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  content: "";
  background: var(--accent);
}
.editor-workspace {
  display: flex;
  flex: 1;
  min-height: 230px;
  position: relative;
}
.canvas-viewport {
  flex: 1;
  position: relative;
  background-color: #121419;
  background-image: radial-gradient(#4d505c6b 1px, transparent 1px);
  background-size: 20px 20px;
  overflow: hidden;
  min-width: 0;
  touch-action: none;
  cursor: grab;
}
.canvas-viewport:active {
  cursor: grabbing;
}
.canvas-world {
  position: absolute;
  left: 0;
  top: 0;
  transform-origin: 0 0;
  will-change: transform;
}
.edge-layer {
  position: absolute;
  left: 0;
  top: 0;
  overflow: visible;
  pointer-events: none;
}
.edge {
  pointer-events: stroke;
  cursor: pointer;
}
.edge-line {
  fill: none;
  stroke: #6e777f;
  stroke-width: 1.8;
  pointer-events: none;
}
.edge-hit {
  fill: none;
  stroke: transparent;
  stroke-width: 18;
}
.edge-dot {
  fill: #a5adae;
}
.edge:hover .edge-line {
  stroke: #f7aa8a;
  stroke-width: 3;
}
.edge.executed .edge-line {
  stroke: #72c29d;
  stroke-dasharray: 7 5;
  animation: flow 1s linear infinite;
}
.edge.executed .edge-dot {
  fill: #97ddba;
}
.false-edge .edge-line {
  stroke: #665b6b;
}
@keyframes flow {
  to {
    stroke-dashoffset: -24;
  }
}
.canvas-top {
  position: absolute;
  top: 21px;
  left: 22px;
  right: 22px;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
}
.canvas-top > * {
  pointer-events: auto;
}
.canvas-label {
  font-size: 8px;
  letter-spacing: 1.4px;
  color: #666c7a;
  display: flex;
  align-items: center;
  gap: 6px;
}
.canvas-label .dot {
  background: #9baf9b;
}
.canvas-top .btn {
  font-size: 10px;
  height: 32px;
  background: #22242c;
  border-color: #383b45;
  box-shadow: 0 3px 10px #0002;
}
.canvas-top kbd {
  font-size: 9px;
  margin-left: 5px;
}
.flow-node {
  position: absolute;
  width: 230px;
  height: 104px;
  background: #1e2229;
  border: 1px solid #3b424c;
  border-radius: 11px;
  box-shadow: 0 7px 15px #0002;
  cursor: grab;
  user-select: none;
  touch-action: none;
  z-index: 2;
}
.flow-node:hover {
  border-color: #787c87;
}
.flow-node.selected {
  border-color: #eb9a79;
  box-shadow:
    0 0 0 3px #d48a6d18,
    0 8px 20px #0003;
}
.flow-node-top {
  padding: 16px 14px;
  display: flex;
  align-items: center;
  gap: 11px;
  height: 73px;
}
.flow-node-top .service-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
}
.flow-node-top strong {
  font-size: 12px;
  font-weight: 500;
  display: block;
  max-width: 135px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.flow-node-top small {
  font-size: 9px;
  color: #89909c;
  display: block;
  margin-top: 6px;
}
.flow-node-bottom {
  border-top: 1px solid #343942;
  font-size: 8px;
  padding: 9px 13px;
  display: flex;
  justify-content: space-between;
  color: #7f8795;
}
.flow-node.node-success {
  border-color: #477d63;
}
.flow-node.node-success .node-status-icon {
  color: #99d7b2;
}
.flow-node.node-error {
  border-color: #c37e75;
}
.flow-node.node-error .node-status-icon {
  color: #f7a29c;
}
.flow-node.node-skipped {
  opacity: 0.5;
}
.port {
  width: 10px;
  height: 10px;
  position: absolute;
  top: 47px;
  left: -6px;
  border: 2px solid #9a9fab;
  border-radius: 50%;
  background: #1b1e24;
  padding: 0;
  z-index: 3;
  cursor: crosshair;
}
.output-port {
  left: auto;
  right: -6px;
}
.true-port {
  top: 29px;
  border-color: #8bb69d;
}
.false-port {
  top: 71px;
  border-color: #b38b99;
}
.port:hover,
.connecting-port {
  background: var(--accent);
  border-color: #ffd3c0;
  box-shadow: 0 0 0 5px #ff795c30;
}
.connecting .input-port {
  border-color: var(--accent);
  animation: pulse 1s infinite;
}
@keyframes pulse {
  50% {
    box-shadow: 0 0 0 6px #ff795c1a;
  }
}
.port-label {
  position: absolute;
  right: -31px;
  font-family: monospace;
  font-size: 8px;
  color: #93aa9b;
  pointer-events: none;
}
.true-label {
  top: 20px;
}
.false-label {
  top: 83px;
  color: #a98c98;
}
.canvas-bottom {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 18px;
  display: flex;
  align-items: flex-end;
  gap: 15px;
  z-index: 7;
  pointer-events: none;
}
.canvas-bottom > * {
  pointer-events: auto;
}
.canvas-controls {
  background: #20232b;
  border: 1px solid #3c404a;
  border-radius: 7px;
  display: flex;
  align-items: center;
  padding: 3px;
  box-shadow: 0 3px 10px #0003;
}
.canvas-controls > span {
  font-size: 10px;
  color: #babeca;
  min-width: 33px;
  text-align: center;
}
.canvas-controls .icon-btn {
  width: 26px;
  height: 26px;
}
.canvas-controls .control-divider {
  min-width: 0;
  width: 1px;
  height: 17px;
  background: #41444f;
  margin: 0 4px;
}
.canvas-hint {
  color: #606877;
  font-size: 8px;
  margin-bottom: 12px;
  flex: 1;
  white-space: nowrap;
}
.minimap {
  width: 115px;
  height: 72px;
  border: 1px solid #333741;
  border-radius: 7px;
  background: #1a1d24ba;
  padding: 10px;
  flex-shrink: 0;
}
.minimap svg {
  width: 100%;
  height: 100%;
}
.node-inspector {
  width: 278px;
  border-left: 1px solid #2c2e37;
  background: #191b21;
  overflow-y: auto;
  flex-shrink: 0;
}
.inspector-header {
  height: 53px;
  padding: 0 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #2c3038;
  font-size: 11px;
  color: #c6c9d2;
}
.inspector-header .row {
  gap: 8px;
}
.inspector-body {
  padding: 21px 19px;
}
.overview-icon {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  color: #d9a48e;
  background: #3a2b25;
  border: 1px solid #674b3e;
  border-radius: 13px;
  margin-bottom: 18px;
}
.inspector-body h3 {
  font-size: 13px;
  line-height: 1.7;
}
.inspector-description {
  font-size: 10px;
  line-height: 1.9;
  color: #888f9f;
  margin: 10px 0 23px;
}
.overview-stats {
  display: flex;
  border: 1px solid #333740;
  border-radius: 8px;
  padding: 14px 0;
  background: #1f2229;
}
.overview-stats > div {
  width: 33.333%;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
  border-right: 1px solid #363943;
}
.overview-stats > div:last-child {
  border: 0;
}
.overview-stats strong {
  font-size: 15px;
  font-weight: 500;
}
.overview-stats span {
  font-size: 8px;
  color: #848c9b;
}
.inspector-body h4 {
  font-size: 10px;
  font-weight: 500;
  color: #b5bdcc;
  margin: 0 0 15px;
}
.flow-outline {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  position: relative;
}
.flow-outline:before {
  content: "";
  position: absolute;
  left: 12px;
  top: 15px;
  bottom: 15px;
  width: 1px;
  background: #3a404a;
}
.flow-outline li {
  position: relative;
  margin-bottom: 13px;
}
.flow-outline li button {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 10px;
  text-align: left;
  padding: 0;
  color: #a8afbc;
}
.outline-icon {
  background: #292f38;
  border: 1px solid #404752;
  border-radius: 6px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  color: #bdc6cc;
}
.outline-icon.green {
  color: #a1d3b7;
}
.outline-icon.orange {
  color: #e7aa85;
}
.outline-icon.amber {
  color: #d3bd83;
}
.inspector-tip {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border: 1px solid #353a45;
  background: #222731;
  padding: 12px 10px;
  border-radius: 7px;
  color: #838fa2;
}
.inspector-tip svg {
  margin-top: 1px;
}
.inspector-tip p {
  font-size: 9px;
  line-height: 1.9;
}
.inspector-body .field {
  margin-bottom: 18px;
}
.inspector-body .field label {
  font-size: 10px;
  color: #b6becc;
}
.inspector-body .field input,
.inspector-body .field textarea,
.inspector-body .field select {
  font-size: 10px;
  padding: 9px 10px;
  background: #15181e;
  border-color: #343a45;
}
.inspector-body .field textarea {
  min-height: 110px;
}
.inspector-body .field small {
  font-size: 9px;
}
.monospace {
  font-family: monospace;
}
.inspector-section-title {
  font-size: 8px;
  letter-spacing: 1.4px;
  margin: 25px 0 17px;
  color: #6e798b;
}
.node-picker {
  position: absolute;
  right: 0;
  top: 0;
  bottom: 0;
  width: 310px;
  background: #1d2027;
  border-left: 1px solid #424753;
  z-index: 15;
  box-shadow: -12px 0 35px #0003;
  overflow: auto;
}
.picker-content {
  padding: 17px;
}
.picker-content .search-box {
  margin-bottom: 15px;
  background: #16191e;
}
.picker-content input {
  width: 100%;
}
.node-type {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 6px;
  width: 100%;
  text-align: left;
  border-bottom: 1px solid #30353e;
}
.node-type:hover {
  background: #ffffff05;
}
.node-type .service-icon {
  width: 35px;
  height: 35px;
  border-radius: 8px;
}
.node-type strong {
  font-size: 11px;
  font-weight: 500;
  display: block;
  margin-bottom: 5px;
}
.node-type small {
  color: #878f9d;
  font-size: 9px;
}
.node-type > svg {
  color: #8b94a5;
}
.execution-panel {
  height: 260px;
  max-height: 45vh;
  flex-shrink: 0;
  border-top: 1px solid #3c414b;
  background: #181b21;
  overflow: hidden;
}
.log-header {
  height: 43px;
  padding: 0 18px;
  border-bottom: 1px solid #303640;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #b0bac9;
  font-size: 10px;
}
.log-header strong {
  font-weight: 500;
  font-size: 11px;
}
.log-content {
  height: calc(100% - 43px);
  display: flex;
}
.log-node-list {
  width: 230px;
  flex-shrink: 0;
  overflow: auto;
  padding: 8px;
  border-right: 1px solid #303640;
}
.log-node {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  font-size: 10px;
  color: #8b9baf;
  padding: 10px;
  border-radius: 5px;
  text-align: left;
}
.log-node.active {
  color: #b5d8c8;
  background: #263b32;
}
.log-node small {
  font-size: 8px;
}
.log-data {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-width: 0;
  flex: 1;
  overflow: hidden;
}
.log-data section {
  overflow: auto;
  border-right: 1px solid #303640;
  padding: 12px 17px;
}
.log-data h4 {
  margin: 0;
  color: #718295;
  font-weight: 500;
  font-size: 9px;
  letter-spacing: 1px;
}
.log-data h4 span {
  font-size: 8px;
  margin-left: 8px;
  color: #c2a28c;
  letter-spacing: 0;
}
.log-data pre {
  font-family: monospace;
  font-size: 10px;
  color: #a8c2b5;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  line-height: 1.8;
}
.log-empty {
  padding: 60px 25px;
  text-align: center;
  font-size: 11px;
  color: #798597;
}
.canvas-empty {
  position: absolute;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  text-align: center;
  width: 300px;
  color: #7e8898;
}
.canvas-empty h3 {
  margin: 18px 0 10px;
}
.canvas-empty p {
  font-size: 10px;
}
.canvas-empty[hidden],
[hidden] {
  display: none !important;
}
@media (min-width: 1600px) {
  .page-content {
    padding-top: 40px;
  }
  .hero {
    min-height: 220px;
  }
  .hero-copy {
    padding: 32px 38px;
  }
  .hero h2 {
    font-size: 28px;
  }
  .hero p {
    font-size: 12px;
  }
  .hero-art {
    max-width: 560px;
    margin-left: auto;
  }
  .card-mini-flow {
    height: 110px;
  }
  .card-body h3 {
    font-size: 14px;
  }
  .card-body p {
    font-size: 11px;
  }
  .template-card {
    padding: 22px;
  }
  .metrics {
    margin-bottom: 35px;
  }
}
@media (max-width: 1250px) {
  :root {
    --sidebar-w: 202px;
  }
  .page-content {
    padding: 26px;
  }
  .topbar {
    padding: 0 26px;
  }
  .hero-copy {
    padding: 25px;
  }
  .hero h2 {
    font-size: 21px;
  }
  .hero-art {
    min-width: 270px;
  }
  .hero-service.brain {
    left: 38%;
  }
  .hero-art-label {
    left: 25%;
    font-size: 7px;
  }
  .hero-service.slack,
  .hero-service.notion {
    left: 76%;
    width: 45px;
    height: 45px;
  }
  .hero-service.start {
    left: 5%;
  }
  .hero-chip {
    left: 4%;
  }
  .metric-card {
    padding: 14px;
  }
  .metric-note {
    font-size: 8px;
  }
  .workflow-toolbar {
    gap: 8px;
  }
  .tabs {
    gap: 12px;
  }
  .toolbar-controls {
    gap: 7px;
  }
  .search-box input {
    width: 125px;
  }
  .node-inspector {
    width: 250px;
  }
  .canvas-hint {
    display: none;
  }
  .editor-toolbar {
    padding: 14px;
  }
  .editor-name {
    max-width: 290px;
  }
  .card-mini-flow {
    padding: 0 12px;
  }
  .card-mini-flow .service-icon {
    width: 37px;
    height: 37px;
  }
  .flow-connector {
    width: 20px;
  }
  .template-card h3 {
    font-size: 10px;
  }
  .template-card p {
    font-size: 9px;
  }
  .card-body h3 {
    font-size: 11px;
  }
  .hero-art-label {
    top: 165px;
  }
  .hero-service.start {
    top: 80px;
  }
  .hero-service.brain {
    top: 68px;
  }
}
@media (max-width: 1050px) {
  :root {
    --sidebar-w: 190px;
  }
  .app-sidebar {
    padding-left: 12px;
    padding-right: 12px;
  }
  .brand {
    padding-left: 7px;
  }
  .nav-link {
    font-size: 11px;
    padding: 10px;
  }
  .workspace-name {
    font-size: 10px;
  }
  .page-content {
    padding: 25px 22px;
  }
  .hero-art {
    min-width: 235px;
  }
  .hero h2 {
    font-size: 19px;
  }
  .hero-copy {
    padding: 25px 20px;
  }
  .hero-service.brain {
    width: 65px;
    height: 65px;
    top: 75px;
  }
  .hero-art-label {
    left: 20%;
    font-size: 6px;
  }
  .hero-service.start {
    width: 45px;
    height: 45px;
    top: 85px;
  }
  .metrics {
    gap: 10px;
  }
  .metric-card {
    padding: 12px;
  }
  .metric-bottom {
    gap: 6px;
    flex-wrap: wrap;
  }
  .metric-note {
    white-space: nowrap;
  }
  .metric-number {
    font-size: 23px;
  }
  .workflow-grid,
  .template-grid {
    gap: 12px;
  }
  .workflow-toolbar {
    flex-wrap: wrap;
  }
  .tabs {
    gap: 20px;
  }
  .toolbar-controls {
    margin-left: auto;
  }
  .node-inspector {
    width: 235px;
  }
  .editor-name {
    max-width: 220px;
  }
  .editor-tabs .row.small {
    display: none;
  }
  .canvas-label {
    display: none;
  }
  .canvas-top {
    justify-content: flex-end;
  }
  .integration-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .card-footer {
    padding: 10px;
    font-size: 8px;
  }
  .card-body {
    padding: 0 13px 13px;
  }
  .card-top {
    padding: 13px 13px 0;
  }
  .settings-grid {
    gap: 16px;
  }
  .panel {
    padding: 20px;
  }
  .workflow-grid.list .workflow-card {
    grid-template-columns: 120px 1fr;
  }
  .workflow-grid.list .card-footer {
    display: none;
  }
}
@media (max-width: 850px) {
  :root {
    --sidebar-w: 68px;
  }
  .app-sidebar {
    padding: 24px 9px 16px;
  }
  .brand {
    padding: 0 10px;
  }
  .brand svg {
    width: 27px;
  }
  .brand-name,
  .workspace-picker,
  .nav-label,
  .nav-link span,
  .sidebar-bottom .storage-card,
  .profile .grow,
  .profile .icon-btn {
    display: none;
  }
  .nav-links {
    margin-top: 30px;
    gap: 9px;
  }
  .nav-link {
    justify-content: center;
    font-size: 0;
    padding: 12px;
  }
  .nav-link.active:before {
    left: -9px;
  }
  .nav-link > svg {
    width: 20px;
    height: 20px;
  }
  .nav-link > svg:last-child:not(:first-child) {
    display: none;
  }
  .profile {
    padding: 15px 8px 0;
    justify-content: center;
  }
  .sidebar-bottom .nav-link {
    font-size: 0;
  }
  .sidebar-bottom {
    padding-top: 0;
  }
  .topbar {
    padding: 0 22px;
  }
  .page-content {
    padding: 25px 22px;
  }
  .hero-art {
    min-width: 225px;
  }
  .hero-copy {
    padding: 24px 20px;
  }
  .hero h2 {
    font-size: 20px;
  }
  .hero-art-label {
    left: 20%;
  }
  .metrics {
    margin-bottom: 27px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading .btn {
    font-size: 10px;
    padding: 0 10px;
  }
  .page-heading p {
    font-size: 10px;
  }
  .workflow-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workflow-card:last-child:nth-child(odd) {
    grid-column: auto;
  }
  .template-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .template-grid > .template-card:last-child:nth-child(odd) {
    display: none;
  }
  .template-section .template-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .template-section .template-card:last-child {
    display: block;
  }
  .template-card {
    padding: 14px;
  }
  .template-icons .service-icon {
    width: 26px;
    height: 26px;
  }
  .template-icons {
    gap: 4px;
  }
  .template-card-head .tag {
    font-size: 8px;
    padding: 3px 4px;
  }
  .editor-toolbar .row {
    gap: 6px;
  }
  .editor-name {
    max-width: 210px;
  }
  .node-inspector {
    width: 230px;
  }
  .settings-grid {
    grid-template-columns: 1fr;
  }
  .page-footer {
    line-height: 1.8;
  }
  .page-footer > span:last-child {
    display: none;
  }
}
@media (max-width: 650px) {
  :root {
    --sidebar-w: 0px;
  }
  .app-sidebar {
    display: none;
  }
  .app-sidebar.mobile-open {
    display: flex;
    width: 224px;
    z-index: 90;
    box-shadow: 0 0 0 100vmax #0008;
    padding: 25px 15px;
  }
  .app-sidebar.mobile-open .brand-name,
  .app-sidebar.mobile-open .nav-label,
  .app-sidebar.mobile-open .workspace-picker,
  .app-sidebar.mobile-open .nav-link span,
  .app-sidebar.mobile-open .sidebar-bottom .storage-card,
  .app-sidebar.mobile-open .profile .grow {
    display: block;
  }
  .app-sidebar.mobile-open .workspace-picker {
    display: flex;
  }
  .app-sidebar.mobile-open .nav-links {
    margin-top: 0;
  }
  .app-sidebar.mobile-open .nav-link {
    justify-content: flex-start;
    font-size: 12px;
  }
  .app-sidebar.mobile-open .profile .icon-btn {
    display: flex;
  }
  .app-sidebar.mobile-open .sidebar-bottom .nav-link {
    font-size: 12px;
  }
  .app-sidebar.mobile-open .brand {
    padding-left: 12px;
  }
  .mobile-menu {
    display: flex;
  }
  .topbar {
    height: 55px;
    padding: 0 14px;
  }
  .breadcrumbs {
    gap: 8px;
    font-size: 9px;
  }
  .breadcrumbs > svg:first-of-type {
    display: none;
  }
  .topbar-right {
    gap: 8px;
  }
  .topbar-link,
  .version-badge {
    display: none;
  }
  .topbar-right .tag {
    font-size: 8px;
  }
  .page-content {
    padding: 24px 16px;
  }
  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 18px;
    margin-bottom: 22px;
  }
  .page-heading h1 {
    font-size: 25px;
  }
  .page-heading p {
    font-size: 11px;
    line-height: 1.9;
  }
  .page-heading .actions {
    width: 100%;
    justify-content: flex-end;
  }
  .hero {
    min-height: 210px;
  }
  .hero-copy {
    padding: 23px;
    max-width: 100%;
  }
  .hero-art {
    display: none;
  }
  .hero h2 {
    font-size: 22px;
  }
  .hero p {
    font-size: 10px;
  }
  .hero:after {
    mask-image: none;
    opacity: 0.35;
  }
  .eyebrow {
    font-size: 7px;
  }
  .hero-actions {
    gap: 15px;
  }
  .hero-actions .btn {
    font-size: 9px;
  }
  .hero-actions .text-link {
    font-size: 9px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .metric-card {
    padding: 15px;
  }
  .metric-number {
    font-size: 25px;
  }
  .metric-note {
    font-size: 9px;
  }
  .section-heading {
    gap: 10px;
  }
  .section-heading .small.dim {
    display: none;
  }
  .workflow-toolbar {
    flex-direction: column;
    align-items: stretch;
    gap: 15px;
  }
  .toolbar-controls {
    margin: 0;
    width: 100%;
  }
  .toolbar-controls .search-box {
    flex: 1;
  }
  .toolbar-controls .search-box input {
    width: 100%;
    min-width: 50px;
  }
  .sort-select {
    max-width: 85px;
  }
  .tabs {
    gap: 24px;
  }
  .workflow-grid {
    grid-template-columns: 1fr;
  }
  .card-mini-flow {
    height: 95px;
  }
  .card-mini-flow .service-icon {
    width: 43px;
    height: 43px;
  }
  .flow-connector {
    width: 35px;
  }
  .card-body {
    padding: 0 18px 20px;
  }
  .card-body h3 {
    font-size: 14px;
  }
  .card-body p {
    font-size: 11px;
    min-height: 0;
  }
  .card-footer {
    font-size: 10px;
    padding: 14px 18px;
  }
  .card-top {
    padding: 16px 18px 0;
  }
  .card-top .category {
    font-size: 10px;
  }
  .template-section .template-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }
  .template-grid > .template-card:last-child:nth-child(odd) {
    display: block;
  }
  .template-section .section-heading h2 {
    font-size: 13px;
  }
  .template-section .section-heading .tag {
    display: none;
  }
  .template-card {
    padding: 20px;
  }
  .template-card h3 {
    font-size: 13px;
  }
  .template-card p {
    font-size: 11px;
  }
  .template-icons .service-icon {
    width: 32px;
    height: 32px;
  }
  .template-card-head .tag {
    font-size: 10px;
  }
  .integration-grid {
    grid-template-columns: 1fr;
  }
  .integration-card p {
    min-height: 0;
  }
  .notice {
    font-size: 10px;
    flex-wrap: wrap;
  }
  .modal-backdrop {
    padding: 15px;
  }
  .modal-header {
    padding: 18px;
  }
  .modal-body {
    padding: 20px;
  }
  .modal-footer {
    padding: 15px;
  }
  .toast-container {
    bottom: 16px;
    right: 16px;
    left: 16px;
    max-width: none;
  }
  .editor {
    height: calc(100dvh - 55px);
  }
  .editor-toolbar {
    flex-wrap: wrap;
    padding: 11px;
    gap: 12px;
  }
  .editor-toolbar > .row:first-child {
    width: 100%;
  }
  .editor-toolbar > .row:last-child {
    margin-left: auto;
  }
  .editor-name {
    max-width: none;
    flex: 1;
  }
  .editor-name input {
    font-size: 12px;
  }
  .editor-toolbar .btn {
    height: 30px;
  }
  .editor-tabs {
    padding: 0 16px;
  }
  .node-inspector {
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 265px;
    z-index: 10;
    box-shadow: -10px 0 30px #0006;
  }
  .node-inspector:has(.overview-icon) {
    display: none;
  }
  .node-picker {
    width: 280px;
  }
  .canvas-top {
    top: 14px;
    right: 14px;
  }
  .canvas-bottom {
    left: 13px;
    right: 13px;
    bottom: 14px;
  }
  .minimap {
    margin-left: auto;
    width: 90px;
    height: 60px;
  }
  .execution-panel {
    height: 240px;
  }
  .log-node-list {
    width: 120px;
  }
  .log-node {
    padding: 10px 6px;
    font-size: 8px;
    gap: 5px;
  }
  .log-node small {
    display: none;
  }
  .log-data {
    grid-template-columns: 1fr;
  }
  .log-data section:first-child {
    display: none;
  }
  .log-header {
    padding: 0 12px;
  }
  .log-header .row {
    gap: 7px;
  }
  .log-data pre {
    font-size: 9px;
  }
  .workflow-grid.list .workflow-card {
    grid-template-columns: 100px 1fr;
  }
  .workflow-grid.list .card-body {
    padding: 30px 15px 15px;
  }
  .workflow-grid.list .card-body h3 {
    font-size: 11px;
  }
  .workflow-grid.list .card-body p {
    font-size: 9px;
  }
  .workflow-grid.list .flow-connector {
    width: 7px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
