:root {
  font-family:
    Inter,
    -apple-system,
    BlinkMacSystemFont,
    'Segoe UI',
    'PingFang SC',
    'Microsoft YaHei',
    sans-serif;
  color: #172d4e;
  background: #ffffff;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  font-size: 14px;
  --blue: #0755f5;
  --line: #e2eaf5;
  --muted: #647896;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select,
textarea {
  font: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
button,
input,
select,
textarea {
  border-radius: 7px;
}
button {
  border: 1px solid var(--line);
  background: white;
  color: #233b62;
  padding: 9px 13px;
  font-weight: 560;
}
button:hover:not(:disabled) {
  border-color: #91b7ff;
  background: #f5f9ff;
}
button.primary {
  background: var(--blue);
  border-color: var(--blue);
  color: white;
}
button.primary:hover:not(:disabled) {
  background: #0d55e0;
}
button.ghost {
  border-color: transparent;
  background: transparent;
}
button.danger {
  color: #bd3e42;
}
button.small {
  padding: 6px 9px;
  font-size: 12px;
}
.icon-button {
  padding: 5px 9px;
}
.muted {
  color: var(--muted);
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 1.6px;
  color: #6482ac;
  font-weight: 700;
  text-transform: uppercase;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -0.5px;
  font-weight: 650;
}
h2 {
  font-size: 19px;
}
h3 {
  font-size: 14px;
}
p {
  line-height: 1.7;
}
input,
select,
textarea {
  border: 1px solid #dce4f0;
  background: #fff;
  padding: 9px 10px;
  outline: none;
  color: #172d4e;
  min-width: 0;
  max-width: 100%;
}
input:focus,
select:focus,
textarea:focus,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid #bed4ff;
  outline-offset: 1px;
  border-color: #0755f5;
}
input:disabled {
  background: #f6f8fc;
  color: #75849b;
}
input[type='checkbox'] {
  accent-color: var(--blue);
  width: 16px;
  height: 16px;
}
.label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  color: #50627f;
  font-size: 12px;
}
.check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
}
.row {
  display: flex;
  align-items: center;
  gap: 10px;
}
.spread {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.wrap {
  flex-wrap: wrap;
}
.badge {
  display: inline-flex;
  font-size: 11px;
  border: 1px solid #e2e9f4;
  background: #f1f5fa;
  color: #63748d;
  padding: 4px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.badge.live {
  background: #edf8f2;
  color: #217958;
  border-color: #cce9da;
}
.badge.blue {
  background: #edf3ff;
  color: #0755f5;
  border-color: #d6e3ff;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 650;
}
.brand img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  border-radius: 8px;
}
.brand small {
  display: block;
  color: #7690b6;
  font-size: 10px;
  letter-spacing: 1.8px;
  margin-top: 4px;
}
.shell {
  display: grid;
  grid-template-columns: 238px minmax(0, 1fr);
  min-height: 100vh;
}
.sidebar {
  background: #e7f2ff;
  border-right: 1px solid #dce7f8;
  padding: 26px 19px;
  display: flex;
  flex-direction: column;
  gap: 26px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.sidebar .brand {
  padding: 0 5px;
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav button {
  text-align: left;
  background: transparent;
  border-color: transparent;
  padding: 11px 13px;
  font-weight: 500;
}
.nav button.selected {
  background: #d3e5ff;
  color: #125ad5;
  font-weight: 650;
}
.nav-icon {
  display: inline-block;
  width: 27px;
  font-size: 17px;
}
.sidebar-bottom {
  margin-top: auto;
  font-size: 11px;
  color: #6e85a7;
  line-height: 1.7;
  border-top: 1px solid #d5e3f7;
  padding-top: 18px;
}
.workspace {
  min-width: 0;
}
.topbar {
  height: 66px;
  background: #fff;
  border-bottom: 1px solid var(--line);
  padding: 0 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  font-size: 12px;
  color: var(--muted);
}
.user-dot {
  height: 28px;
  width: 28px;
  border-radius: 50%;
  background: #eaf1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.main {
  max-width: 1420px;
  margin: auto;
  padding: 34px 38px 50px;
}
.page-heading {
  margin-bottom: 26px;
}
.page-heading p {
  font-size: 13px;
  color: var(--muted);
  margin-top: 8px;
}
.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
  margin: 24px 0;
}
.stat {
  background: white;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 20px 23px;
}
.stat strong {
  font-size: 30px;
  font-weight: 600;
  display: block;
  margin-top: 10px;
}
.stat span {
  color: var(--muted);
  font-size: 12px;
}
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 11px;
  overflow: hidden;
}
.card-head {
  padding: 18px 21px;
  border-bottom: 1px solid var(--line);
}
.card-body {
  padding: 21px;
}
.empty {
  padding: 65px 20px;
  text-align: center;
}
.empty-symbol {
  margin: 0 auto 20px;
  width: 64px;
  height: 64px;
  border-radius: 17px;
  background: #edf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 29px;
}
.empty p {
  color: var(--muted);
  font-size: 13px;
  margin: 12px auto 23px;
  max-width: 440px;
}
.empty .row {
  justify-content: center;
}
.integrations {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.integrations th {
  background: #f8faff;
  color: #7383a0;
  font-weight: 500;
  font-size: 11px;
  text-align: left;
  padding: 12px 21px;
}
.integrations td {
  padding: 18px 21px;
  border-top: 1px solid var(--line);
}
.integrations td small {
  display: block;
  color: var(--muted);
  margin-top: 5px;
}
.linklike {
  border: 0;
  background: none;
  padding: 0;
  color: var(--blue);
  font-weight: 600;
}
.notice {
  padding: 13px 16px;
  background: #f0f5ff;
  border: 1px solid #dce8ff;
  border-radius: 8px;
  font-size: 12px;
  color: #476894;
  line-height: 1.65;
}
.notice.warning {
  background: #fff9ed;
  border-color: #f2e2ba;
  color: #8b6e2e;
}
.notice.error {
  background: #fff0f0;
  border-color: #f6d5d5;
  color: #a83c43;
}
.editor-meta {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 17px;
  padding: 21px;
}
.tabs {
  display: flex;
  gap: 24px;
  margin: 27px 0 20px;
  border-bottom: 1px solid var(--line);
  overflow: auto;
}
.tabs button {
  border: 0;
  border-radius: 0;
  background: none;
  white-space: nowrap;
  padding: 0 1px 13px;
  font-size: 13px;
  color: #7587a4;
}
.tabs button.active {
  border-bottom: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 650;
}
.pane-intro {
  margin: 0 0 17px;
}
.pane-intro p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 6px;
}
.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field-side .card-head {
  background: #fbfcff;
}
.side-mark {
  width: 25px;
  height: 25px;
  border: 1px solid #dce6f5;
  background: #eef4ff;
  color: var(--blue);
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 11px;
}
.field-list {
  padding: 8px 16px 14px;
}
.field-row {
  padding: 12px 0;
  border-bottom: 1px solid #edf1f8;
}
.field-row:last-child {
  border-bottom: 0;
}
.field-row-main {
  display: grid;
  grid-template-columns: minmax(85px, 1fr) minmax(70px, 0.8fr) 83px 45px 28px;
  gap: 7px;
  align-items: center;
}
.field-row-main input,
.field-row-main select {
  width: 100%;
  font-size: 12px;
  padding: 8px;
}
.field-row-main .check {
  gap: 3px;
  font-size: 10px;
  white-space: nowrap;
}
.field-row-main input[type='checkbox'] {
  width: 14px;
  min-width: 14px;
  height: 14px;
  flex: none;
  padding: 0;
}
.field-row-main button {
  padding: 4px;
  color: #8493a9;
  border: 0;
}
.advanced {
  margin-top: 8px;
  font-size: 11px;
  color: #7285a5;
}
.advanced summary {
  cursor: pointer;
  width: fit-content;
  padding: 3px 0;
}
.advanced-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.advanced-content input {
  width: 100%;
  font-size: 12px;
}
.children {
  border-left: 2px solid #dce7fc;
  padding-left: 10px;
  margin-top: 8px;
}
.children .field-row-main {
  grid-template-columns: minmax(60px, 1fr) 75px 42px 27px;
}
.children .field-label-input {
  display: none;
}
.section-add {
  margin: 0 16px 16px;
  width: calc(100% - 32px);
  border-style: dashed;
  font-size: 12px;
  color: #6381ae;
}
.mapping-card {
  margin-top: 22px;
}
.mapping-list {
  padding: 8px 21px 18px;
}
.map-rule {
  padding: 13px 0;
  border-bottom: 1px solid #eaf0f8;
}
.map-row {
  display: grid;
  grid-template-columns: minmax(100px, 1fr) 24px minmax(120px, 1fr) 100px;
  align-items: center;
  gap: 11px;
}
.map-target strong {
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, monospace;
}
.map-target small {
  display: block;
  font-size: 11px;
  color: #8a99b0;
  margin-top: 3px;
}
.map-row select {
  width: 100%;
  font-size: 12px;
}
.arrow {
  color: #99b9ed;
  text-align: center;
}
.rule-extra {
  margin-top: 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}
.rule-extra input {
  flex: 1;
}
.nested-rules {
  border-left: 2px solid #dce7fc;
  padding-left: 15px;
  margin: 12px 0 0 10px;
}
.code {
  width: 100%;
  min-height: 265px;
  resize: vertical;
  font:
    12px/1.8 ui-monospace,
    SFMono-Regular,
    Menlo,
    Consolas,
    monospace;
  color: #254368;
  tab-size: 2;
  background: #fbfcff;
}
.preview-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.result-code {
  margin: 0;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  min-height: 265px;
  padding: 14px;
  background: #f8fbff;
  border-radius: 7px;
  font:
    12px/1.8 ui-monospace,
    monospace;
}
.actions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.actions-footer p {
  font-size: 11px;
  color: var(--muted);
}
.template-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
}
.template-card {
  padding: 24px;
}
.template-card h2 {
  margin: 18px 0 10px;
  font-size: 17px;
}
.template-card p {
  color: var(--muted);
  font-size: 12px;
  min-height: 78px;
}
.template-card button {
  margin-top: 23px;
}
.template-icon {
  width: 40px;
  height: 40px;
  background: #edf3ff;
  color: var(--blue);
  display: grid;
  place-items: center;
  font-size: 21px;
  border-radius: 9px;
}
.guide-steps {
  display: grid;
  gap: 18px;
  margin: 24px 0;
}
.guide-step {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 13px;
}
.guide-step > span {
  background: #edf3ff;
  color: var(--blue);
  border-radius: 8px;
  height: 30px;
  display: grid;
  place-items: center;
  font-weight: 700;
}
.guide-step p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 5px;
}
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: #172d4e66;
  backdrop-filter: blur(3px);
  z-index: 20;
  padding: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.modal {
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 13px;
  box-shadow: 0 25px 90px #172d4e33;
}
.modal-head {
  padding: 22px 25px;
  border-bottom: 1px solid var(--line);
}
.modal-body {
  padding: 24px 25px;
}
.modal .label {
  margin-bottom: 16px;
}
.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 24px;
}
#toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 40;
  background: #132c51;
  color: white;
  border-radius: 9px;
  font-size: 13px;
  box-shadow: 0 8px 25px #17305726;
  max-width: 90vw;
}
#toast:not(:empty) {
  padding: 13px 19px;
}
.login {
  min-height: 100dvh;
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  background: #f9fbfd;
}
.login-art {
  background: #dfe9f9;
  padding: 40px 55px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-right: 1px solid #d5e1f2;
}
.login-art > div:nth-child(2) {
  margin: auto 0;
  padding: 65px 0;
}
.login-art .eyebrow {
  font-size: 9px;
  letter-spacing: 1.6px;
  color: #5c769e;
}
.login-art h1 {
  font-size: clamp(32px, 3.4vw, 48px);
  line-height: 1.5;
  margin: 20px 0 18px;
  letter-spacing: -1.5px;
  font-weight: 550;
  color: #283d5d;
}
.login-art p {
  color: #5d789e;
  font-size: 13px;
  line-height: 2;
}
.login-art > p {
  font-size: 10px;
  letter-spacing: 1px;
}
.login-journey {
  margin-top: 38px;
  max-width: 280px;
  display: grid;
  gap: 18px;
}
.login-journey > div {
  border: 1px solid #c2d6f3;
  background: #f3f6fbbb;
  border-radius: 8px;
  padding: 15px 17px;
  display: flex;
  gap: 14px;
  align-items: center;
  color: #5f789c;
  font-size: 12px;
}
.login-journey > div.current {
  border-color: #8da4c4;
  background: #fff;
  box-shadow: 0 3px 15px #293f6110;
}
.login-journey span {
  flex: 1;
}
.login-journey small {
  font-size: 10px;
}
.login-form-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 45px;
}
.login-form {
  max-width: 340px;
  width: 100%;
}
.auth-lock {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  background: #e3ecf9;
  border: 1px solid #d1dff5;
  border-radius: 11px;
  margin-bottom: 25px;
}
.login-form h2 {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 10px;
}
.login-form p {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 28px;
}
.login-form .label {
  margin-top: 22px;
}
.login-form input {
  min-height: 42px;
  background: #f9fbfd;
}
.login-form button.primary {
  width: 100%;
  margin-top: 28px;
  padding: 12px;
}
.login-note {
  font-size: 11px !important;
  line-height: 1.8;
  margin-top: 23px;
}
.login-form .notice {
  margin-top: 20px;
}
.boot {
  min-height: 100dvh;
  padding: 48px 24px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.boot > img {
  object-fit: contain;
}
.boot > strong {
  color: #172d4e;
  font-size: 20px;
}
.status-text {
  font-size: 11px;
  color: #8493ac;
}
.editor-error {
  margin-bottom: 18px;
}
.delivery-route {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 32px minmax(0, 1fr) 32px minmax(0, 1fr);
  align-items: center;
  padding: 24px;
  margin: 18px 0;
  border: 1px solid #dbe7ff;
  border-radius: 11px;
  background: #f4f8ff;
  text-align: center;
  gap: 10px;
}
.delivery-route strong,
.delivery-route small,
.delivery-route div > span {
  display: block;
  overflow-wrap: anywhere;
}
.delivery-route strong {
  margin: 10px 0;
  font-size: 18px;
}
.delivery-route small,
.delivery-route div > span {
  font-size: 12px;
  color: var(--muted);
}
.delivery-arrow {
  color: var(--blue);
  font-size: 24px;
}
.delivery-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.delivery-card {
  margin-bottom: 18px;
  min-width: 0;
}
.delivery-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.delivery-body > .doc-endpoint {
  margin: 0;
}
.delivery-body p {
  font-size: 12px;
  overflow-wrap: anywhere;
}
.delivery-body .preview-grid > * {
  min-width: 0;
}
.delivery-body .result-code {
  max-height: 420px;
  overflow: auto;
}
.step-number {
  color: var(--blue);
  margin-right: 10px;
  font-variant-numeric: tabular-nums;
}
.check-line,
.caller-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 12px;
}
.caller-row {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.caller-row strong {
  font-size: 12px;
}
.caller-row small {
  display: block;
  color: var(--muted);
  line-height: 1.7;
  margin-top: 5px;
  overflow-wrap: anywhere;
}
.acceptance-list {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 12px;
  line-height: 2;
}
@media (max-width: 900px) {
  .delivery-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
}
@media (max-width: 720px) {
  .delivery-route {
    grid-template-columns: 1fr;
    padding: 18px;
  }
  .delivery-route strong {
    margin: 5px 0;
    font-size: 16px;
  }
  .delivery-arrow {
    transform: rotate(90deg);
  }
  .check-line,
  .caller-row {
    flex-wrap: wrap;
  }
  .delivery-body .spread {
    align-items: flex-start;
  }
}
.doc-endpoint {
  font:
    13px ui-monospace,
    monospace;
  padding: 15px;
  background: #edf4ff;
  color: #255cab;
  border-radius: 7px;
  margin: 16px 0;
  overflow-wrap: anywhere;
}
@media (min-width: 1500px) {
  .main {
    padding-left: 45px;
    padding-right: 45px;
  }
}
@media (max-width: 1150px) {
  .shell {
    grid-template-columns: 190px minmax(0, 1fr);
  }
  .sidebar {
    padding: 22px 13px;
  }
  .main {
    padding: 25px 22px;
  }
  .topbar {
    padding: 0 22px;
  }
  .field-grid {
    grid-template-columns: 1fr;
  }
  .login-art {
    padding: 40px 9%;
  }
  .diagram {
    gap: 9px;
  }
  .diagram-box {
    padding: 13px;
    min-width: 90px;
  }
}
@media (max-width: 720px) {
  .shell {
    display: block;
  }
  .sidebar {
    height: auto;
    position: static;
    padding: 17px;
    gap: 17px;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .sidebar .brand img {
    width: 31px;
    height: 31px;
  }
  .nav {
    flex-direction: row;
    gap: 4px;
  }
  .nav button {
    flex: 1;
    font-size: 12px;
    padding: 10px 7px;
    text-align: center;
  }
  .nav-icon {
    width: 20px;
    font-size: 14px;
  }
  .sidebar-bottom {
    display: none;
  }
  .topbar {
    height: 53px;
    padding: 0 17px;
  }
  .topbar > span {
    display: none;
  }
  .topbar .row {
    margin-left: auto;
  }
  .main {
    padding: 23px 17px;
  }
  .page-heading.spread {
    align-items: flex-start;
    flex-direction: column;
    gap: 17px;
  }
  h1 {
    font-size: 23px;
  }
  .stats {
    gap: 8px;
    margin: 20px 0;
  }
  .stat {
    padding: 15px 13px;
  }
  .stat strong {
    font-size: 25px;
  }
  .stat span {
    font-size: 11px;
  }
  .editor-meta {
    grid-template-columns: 1fr;
    padding: 17px;
  }
  .field-row-main {
    grid-template-columns: minmax(75px, 1fr) 68px 72px 40px 24px;
    gap: 4px;
  }
  .field-list {
    padding: 8px 10px;
  }
  .map-row {
    grid-template-columns: 1fr 18px 1fr;
    gap: 6px;
  }
  .map-row > select:last-child {
    grid-column: 3;
  }
  .preview-grid,
  .template-grid {
    grid-template-columns: 1fr;
  }
  .actions-footer {
    align-items: flex-start;
    flex-direction: column;
  }
  .card-head {
    padding: 16px;
  }
  .integrations th,
  .integrations td {
    padding: 13px 11px;
  }
  .integrations th:nth-child(2),
  .integrations td:nth-child(2) {
    display: none;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 25px;
  }
  .login-art > div:not(:first-child),
  .login-art > p {
    display: none;
  }
  .login-form-wrap {
    padding: 45px 25px;
  }
  .modal-backdrop {
    padding: 15px;
  }
  .modal-body,
  .modal-head {
    padding: 20px;
  }
  .tabs {
    gap: 21px;
  }
  .empty {
    padding: 42px 16px;
  }
  .empty .row {
    flex-wrap: wrap;
  }
}

.language-meta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
  margin: 16px 0;
}
.language-meta > p {
  grid-column: 1 / -1;
  font-size: 12px;
}
.delivery-body .language-meta {
  margin: 0;
}
@media (max-width: 720px) {
  .language-meta {
    grid-template-columns: 1fr;
  }
}

/* Shared RPA visual system, adapted for dense API configuration. */
[hidden] {
  display: none !important;
}
button {
  min-height: 39px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition:
    background 0.16s,
    border-color 0.16s;
}
button.primary:hover:not(:disabled) {
  background: #0048dd;
  border-color: #0048dd;
}
button.small {
  min-height: 32px;
}
.icon {
  width: 20px;
  height: 20px;
  flex: none;
  opacity: 0.72;
}
.brand {
  gap: 11px;
  font-size: 23px;
  letter-spacing: 0;
  white-space: nowrap;
}
.brand img {
  width: 46px;
  height: 46px;
  border-radius: 0;
  flex-shrink: 0;
}
.brand small {
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 1.2px;
  color: #5f7698;
}
.sidebar {
  padding: 25px 20px 18px;
  gap: 24px;
}
.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.sidebar-create {
  width: 100%;
  min-height: 44px;
  justify-content: flex-start;
  padding-left: 20px;
}
.sidebar .eyebrow {
  font-size: 10px;
  letter-spacing: 1px;
  color: #647c9e;
  margin: 0 12px 12px;
}
.nav button {
  justify-content: flex-start;
  gap: 11px;
  border-radius: 5px;
  min-height: 45px;
  color: #526a8c;
  font-size: 13px;
  position: relative;
}
.nav button.selected {
  background: #d3e5ff;
  color: var(--blue);
}
.nav button.selected::before {
  content: '';
  position: absolute;
  width: 3px;
  left: 0;
  top: 10px;
  bottom: 10px;
  background: var(--blue);
  border-radius: 3px;
}
.sidebar-bottom {
  font-size: 11px;
  padding-top: 22px;
  line-height: 1.9;
}
.sidebar-bottom strong {
  font-weight: 550;
  color: #526a8c;
}
.sidebar-bottom p:last-child {
  margin-top: 12px;
}
.mobile-menu {
  display: none;
}
.topbar > span {
  display: flex;
  align-items: center;
  gap: 13px;
}
.breadcrumb-divider {
  color: #b1bdce;
}
.topbar strong {
  color: #172d4e;
  font-weight: 550;
}
.user-dot {
  background: #0755f5;
  color: white;
  width: 30px;
  height: 30px;
}
.page-heading h1 {
  line-height: 1.4;
}
.page-heading p {
  font-size: 14px;
}
.stats {
  gap: 18px;
}
.stat {
  background: #f8faff;
  border-color: #e2eaf5;
  border-radius: 9px;
  padding: 21px 24px;
}
.stat strong {
  font-size: 32px;
  line-height: 1.15;
  color: #172d4e;
}
.card {
  border-color: #dfe7f2;
}
.card-head {
  padding: 19px 22px;
}
.card-head h3 {
  font-weight: 600;
}
.card-head + .notice {
  margin: 18px;
}
.main > .notice {
  margin-top: 20px;
}
.integrations th {
  background: #f7f9fc;
  font-size: 12px;
}
.integrations tbody tr:hover {
  background: #f9fbff;
}
.integrations td {
  overflow-wrap: anywhere;
}
.empty-symbol .icon {
  width: 29px;
  height: 29px;
}
.empty h2 {
  font-weight: 550;
}
.empty p {
  line-height: 1.9;
}
.label {
  font-weight: 500;
  color: #526783;
}
input,
select,
textarea {
  border-color: #d8e2ef;
  min-height: 39px;
}
input::placeholder,
textarea::placeholder {
  color: #8396af;
}
input[type='checkbox'] {
  min-height: 16px;
}
.editor-meta {
  gap: 20px;
}
.language-meta {
  padding: 18px 22px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #f8faff;
}
.delivery-body .language-meta {
  padding: 0;
  border: 0;
  background: transparent;
}
.tabs {
  gap: 25px;
  scrollbar-width: thin;
}
.tabs button {
  min-height: 44px;
  padding: 10px 0 13px;
}
.field-side .card-head {
  background: #f7faff;
}
.field-row {
  padding: 14px 0;
}
.field-row-main input,
.field-row-main select {
  min-height: 36px;
}
.field-row-main input[type='checkbox'] {
  min-height: 14px;
}
.section-add {
  min-height: 36px;
  color: #4d6fa3;
}
.field-row-main .icon-button {
  min-height: 32px;
}
.template-card {
  padding: 27px;
}
.template-card p {
  line-height: 1.9;
}
.template-icon {
  background: #edf4ff;
  border: 1px solid #e0e9f8;
  width: 44px;
  height: 44px;
}
.guide-step {
  gap: 16px;
}
.guide-step p {
  line-height: 1.9;
}
.notice {
  line-height: 1.8;
}
.modal {
  border: 1px solid #dbe4f0;
  border-radius: 12px;
  max-height: calc(100dvh - 48px);
}
.modal-head h2 {
  font-size: 18px;
  font-weight: 600;
}
.modal-head .ghost {
  min-width: 38px;
  font-size: 22px;
}
.modal-actions {
  flex-wrap: wrap;
}
.busy-status {
  position: fixed;
  top: 16px;
  left: 50%;
  transform: translateX(-50%);
  padding: 12px 20px;
  z-index: 45;
  border: 1px solid #bdd2f6;
  border-radius: 8px;
  background: #edf4ff;
  box-shadow: 0 8px 28px #172d4e14;
  color: #224a82;
  font-size: 13px;
}
@media (max-width: 1150px) and (min-width: 721px) {
  .shell {
    grid-template-columns: 210px minmax(0, 1fr);
  }
  .sidebar {
    padding: 24px 14px;
  }
  .brand {
    font-size: 21px;
  }
  .brand img {
    width: 40px;
    height: 40px;
  }
  .topbar {
    padding: 0 22px;
  }
  .main {
    padding: 28px 22px;
  }
  .editor-meta {
    grid-template-columns: 1fr 1fr;
  }
  .page-heading {
    align-items: flex-start;
  }
  .page-heading > .row {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}
@media (max-width: 720px) {
  .sidebar {
    padding: 16px 18px;
    gap: 0;
  }
  .sidebar .brand img {
    width: 38px;
    height: 38px;
  }
  .brand {
    font-size: 20px;
  }
  .brand small {
    font-size: 9px;
  }
  .mobile-menu {
    display: inline-flex;
    width: 42px;
    min-height: 42px;
  }
  .sidebar > .sidebar-create,
  .sidebar > div:not(.sidebar-brand):not(.sidebar-bottom) {
    display: none;
  }
  .sidebar.nav-expanded > .sidebar-create {
    display: flex;
    margin-top: 20px;
  }
  .sidebar.nav-expanded > div:not(.sidebar-brand):not(.sidebar-bottom) {
    display: block;
    margin-top: 20px;
  }
  .nav {
    flex-direction: column;
    gap: 5px;
  }
  .nav button {
    justify-content: flex-start;
    text-align: left;
    padding: 12px;
    min-height: 44px;
  }
  .topbar {
    height: auto;
    min-height: 56px;
    padding: 10px 18px;
  }
  .topbar > span {
    display: none;
  }
  .topbar .row {
    gap: 7px;
    width: 100%;
    justify-content: flex-end;
  }
  .topbar .badge {
    margin-right: auto;
  }
  .main {
    padding: 25px 18px 36px;
  }
  h1 {
    font-size: 24px;
  }
  .page-heading p {
    font-size: 13px;
  }
  .page-heading > .row {
    flex-wrap: wrap;
  }
  .stats {
    gap: 8px;
  }
  .stat {
    padding: 17px 11px;
  }
  .stat strong {
    font-size: 26px;
  }
  .stat span {
    font-size: 11px;
  }
  .editor-meta,
  .language-meta {
    padding: 18px;
  }
  .field-row-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
    gap: 8px;
  }
  .field-row-main input:first-child {
    grid-column: 1;
  }
  .field-row-main select {
    grid-column: 1;
    grid-row: 2;
  }
  .field-row-main .check {
    grid-column: 2;
    grid-row: 2;
    font-size: 12px;
  }
  .field-row-main button {
    grid-column: 3;
    grid-row: 1 / 3;
    min-height: 44px;
  }
  .children .field-row-main {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 38px;
  }
  .children .field-row-main input:first-child {
    grid-column: 1 / 3;
  }
  .field-list {
    padding: 6px 16px 14px;
  }
  .advanced-content {
    grid-template-columns: 1fr;
  }
  .map-row {
    grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr);
  }
  .map-target,
  .map-target strong {
    overflow-wrap: anywhere;
    min-width: 0;
  }
  .rule-extra {
    flex-wrap: wrap;
  }
  .rule-extra input {
    min-width: 100px;
  }
  .nested-rules {
    padding-left: 10px;
    margin-left: 0;
  }
  .integrations thead {
    display: none;
  }
  .integrations,
  .integrations tbody,
  .integrations tr,
  .integrations td {
    display: block;
    width: 100%;
  }
  .integrations tr {
    padding: 15px 18px;
    border-top: 1px solid var(--line);
  }
  .integrations tr:first-child {
    border-top: 0;
  }
  .integrations td {
    padding: 7px 0;
    border: 0;
  }
  .integrations td:nth-child(2) {
    display: block;
    font-size: 12px;
    color: var(--muted);
  }
  .integrations td:nth-child(2)::before {
    content: '草稿版本  ';
  }
  .integrations td:last-child {
    text-align: right;
  }
  .actions-footer .row {
    width: 100%;
  }
  .actions-footer button {
    flex: 1;
    min-width: 85px;
    min-height: 44px;
  }
  .modal-backdrop {
    padding: 12px;
  }
  .modal {
    max-height: calc(100dvh - 24px);
  }
  .modal-body,
  .modal-head {
    padding: 18px;
  }
  .modal-actions button {
    min-height: 44px;
  }
  .login {
    display: block;
  }
  .login-art {
    padding: 24px;
  }
  .login-art > div:nth-child(2),
  .login-art > p {
    display: none;
  }
  .login-form-wrap {
    padding: 38px 24px;
  }
  .login-form {
    max-width: 400px;
  }
  .login-form input {
    min-height: 44px;
    font-size: 16px;
  }
  .login-form button.primary {
    min-height: 46px;
  }
  .template-card {
    padding: 22px;
  }
  .tabs {
    gap: 20px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
