:root {
  font-family:
    Inter,
    ui-sans-serif,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #17243b;
  background: #f5f7fb;
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.55;
  --blue: #315ee7;
  --muted: #718096;
  --border: #e5eaf2;
  --navy: #111d35;
  --green: #17755c;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  outline-offset: 4px;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
  opacity: 0.55;
}
a {
  color: inherit;
  text-decoration: none;
}
[hidden] {
  display: none !important;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: 30px;
  letter-spacing: -1.1px;
  line-height: 1.2;
  margin-bottom: 9px;
  font-weight: 650;
}
h2 {
  font-size: 18px;
  letter-spacing: -0.35px;
  margin-bottom: 7px;
}
h3 {
  font-size: 15px;
  margin-bottom: 7px;
}
.muted {
  color: var(--muted);
}
.small {
  font-size: 12px;
}
.eyebrow {
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 1.7px;
  color: var(--blue);
  margin-bottom: 19px;
}
.skip-link {
  position: fixed;
  top: -70px;
  left: 20px;
  background: white;
  padding: 12px;
  z-index: 20;
}
.skip-link:focus {
  top: 12px;
}
.button {
  display: inline-flex;
  gap: 9px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 650;
  padding: 10px 16px;
  min-height: 40px;
  transition:
    background 0.15s,
    box-shadow 0.15s;
}
.primary {
  background: var(--blue);
  color: white;
  box-shadow: 0 3px 8px #315ee71a;
}
.primary:hover {
  background: #244fd1;
}
.secondary {
  background: white;
  border-color: #dce3ef;
  color: #34435c;
}
.secondary:hover {
  background: #f5f7fc;
}
.danger {
  color: #ac3343;
  border-color: #f1d4d8;
  background: #fff7f7;
}
.text-button {
  border: 0;
  background: none;
  color: #63718a;
  font-size: 12px;
  padding: 8px;
}
.text-button:hover {
  color: var(--blue);
}
.icon-button {
  background: transparent;
  border: 0;
  color: #748199;
  font-size: 22px;
  min-width: 36px;
  min-height: 36px;
}
.brand {
  display: flex;
  gap: 12px;
  align-items: center;
  color: #fff;
  font-weight: 750;
  font-size: 25px;
  letter-spacing: -0.8px;
  line-height: 1.1;
}
.brand-subtitle {
  display: block;
  font-weight: 450;
  font-size: 10px;
  letter-spacing: 0.8px;
  line-height: 2.4;
  color: #9eacc8;
}
.brand-mark {
  display: grid;
  place-items: center;
  border: 2px solid #6884ff;
  width: 34px;
  height: 37px;
  border-radius: 10px 10px 10px 2px;
  color: #8ea4ff;
  font-size: 32px;
  font-weight: 650;
  font-family: Georgia, serif;
  line-height: 1;
}
.brand-dark {
  color: #162741;
}
.brand-dark .brand-subtitle {
  color: #71809c;
}
.brand-dark .brand-mark {
  border-color: var(--blue);
  color: var(--blue);
}
.workspace {
  display: flex;
  min-height: 100vh;
}
.sidebar {
  width: 242px;
  flex-shrink: 0;
  background: var(--navy);
  padding: 30px 20px 20px;
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
}
.sidebar .brand {
  padding-left: 13px;
  margin-bottom: 49px;
}
.nav-label {
  font-size: 9px;
  letter-spacing: 1.8px;
  font-weight: 700;
  color: #71809c;
  padding-left: 14px;
  margin-bottom: 13px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.sidebar nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #9faec8;
  padding: 12px 14px;
  border-radius: 7px;
  font-size: 12px;
  transition: background 0.15s;
}
.sidebar nav a span {
  width: 19px;
  font-size: 21px;
  line-height: 1;
  text-align: center;
  color: #7c8dab;
}
.sidebar nav a:hover {
  background: #1a2945;
  color: white;
}
.sidebar nav a[aria-current="page"] {
  color: #e9efff;
  background: #263b6b;
  box-shadow: inset 3px 0 #6e8cff;
}
.sidebar nav a[aria-current="page"] span {
  color: #9aafff;
}
.sidebar-bottom {
  margin-top: auto;
  border-top: 1px solid #26334b;
  padding: 20px 8px 0;
  display: flex;
  gap: 10px;
  color: #bac6db;
  font-size: 11px;
  align-items: center;
}
.sidebar-bottom small {
  display: block;
  color: #788aa6;
  font-size: 9px;
  margin-top: 4px;
}
.environment-dot,
.status-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #43c999;
  border-radius: 50%;
  flex-shrink: 0;
}
.workspace-body {
  width: calc(100% - 242px);
  margin-left: 242px;
}
.topbar {
  height: 86px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 38px;
  gap: 15px;
}
.institution-field label {
  display: block;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.5px;
  color: #8a95a9;
  margin-bottom: 4px;
}
.institution-field select {
  border: 0;
  background: transparent;
  color: #26364e;
  font-size: 13px;
  font-weight: 650;
  max-width: 380px;
  padding: 0 22px 0 0;
  cursor: pointer;
}
.topbar-account {
  display: flex;
  align-items: center;
  gap: 14px;
}
.role-tag {
  font-size: 10px;
  color: #667593;
  background: #f1f4fa;
  padding: 5px 9px;
  border-radius: 5px;
  white-space: nowrap;
}
.account-avatar {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 50%;
  background: #e8edff;
  color: #536bd9;
  font-size: 11px;
  font-weight: 700;
}
.menu-toggle {
  display: none;
}
main {
  padding: 28px 38px 0;
  max-width: 1550px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 29px;
  gap: 15px;
}
.breadcrumb {
  font-size: 10px;
  color: #a0aabd;
  margin-bottom: 21px;
  display: flex;
  gap: 10px;
}
.breadcrumb #breadcrumb-current {
  color: #687a96;
}
.page-heading p {
  font-size: 12px;
  color: #7d899e;
  margin-bottom: 0;
}
.page-heading > .button {
  margin-top: 25px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 17px;
  margin-bottom: 26px;
}
.metric {
  background: white;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 21px 22px;
  box-shadow: 0 2px 4px #20325002;
}
.metric-top {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 11px;
  color: #7e8ba2;
}
.metric-icon {
  color: #8096df;
  background: #f0f3ff;
  border-radius: 6px;
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  font-size: 17px;
}
.metric-value {
  font-size: 32px;
  letter-spacing: -1.2px;
  font-weight: 600;
  color: #26364e;
  margin: 9px 0 3px;
  line-height: 1.3;
}
.metric-caption {
  font-size: 10px;
  color: #929db0;
}
.panel {
  background: white;
  border: 1px solid var(--border);
  border-radius: 11px;
  overflow: hidden;
  margin-bottom: 23px;
  box-shadow: 0 2px 4px #20325002;
}
.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 24px 18px;
  gap: 14px;
}
.panel-header h2 {
  font-size: 14px;
  margin-bottom: 3px;
}
.panel-header p {
  font-size: 11px;
  color: #8d98aa;
  margin-bottom: 0;
}
.panel-link {
  font-size: 11px;
  color: var(--blue);
  font-weight: 600;
}
.panel-body {
  padding: 0 24px 23px;
}
.overview-columns {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 23px;
  align-items: start;
}
.overview-columns .panel {
  min-height: 260px;
}
.connector-summary {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 15px 0;
  border-top: 1px solid #eff2f7;
}
.connector-symbol {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #f0f4ff;
  color: #5675d7;
  font-size: 18px;
}
.connector-summary strong {
  font-size: 12px;
  font-weight: 600;
}
.connector-summary small {
  display: block;
  font-size: 10px;
  color: #8b97ad;
  margin-top: 3px;
}
.connector-summary .badge {
  margin-left: auto;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.05px;
  white-space: nowrap;
  background: #f0f3f8;
  color: #75829a;
}
.badge.good {
  color: #26856e;
  background: #ebf7f1;
}
.badge.warning {
  color: #ae7c2c;
  background: #fff6e5;
}
.badge.bad {
  color: #b54f5d;
  background: #fff0f1;
}
.badge.blue {
  color: #5872c1;
  background: #edf2ff;
}
.badge-dot {
  width: 5px;
  height: 5px;
  display: inline-block;
  border-radius: 50%;
  background: currentColor;
}
.insight {
  display: flex;
  gap: 12px;
  background: #f5f7ff;
  border: 1px solid #e8edff;
  border-radius: 8px;
  padding: 16px;
  margin-top: 15px;
}
.insight-symbol {
  color: #6783d8;
  font-size: 18px;
}
.insight strong {
  font-size: 11px;
  color: #4b6095;
}
.insight p {
  font-size: 10px;
  color: #8591aa;
  margin: 5px 0 0;
}
.toolbar {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
  flex-wrap: wrap;
}
.toolbar-group {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
}
.field label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  color: #748199;
  margin-bottom: 6px;
}
.field input,
.field select {
  height: 39px;
  border: 1px solid #dce3ef;
  border-radius: 7px;
  background: white;
  color: #384962;
  padding: 8px 11px;
  min-width: 180px;
  font-size: 12px;
}
.field input::placeholder {
  color: #a0aaba;
}
.field input:focus,
.field select:focus {
  border-color: #839cf1;
  outline: 2px solid #e4eaff;
  outline-offset: 0;
}
.table-wrap {
  overflow: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 11px;
  text-align: left;
}
th {
  background: #fafbfe;
  padding: 12px 23px;
  color: #8a96ab;
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.65px;
  white-space: nowrap;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
td {
  padding: 15px 23px;
  border-bottom: 1px solid #eef1f6;
  color: #64738d;
  vertical-align: middle;
  max-width: 330px;
  overflow-wrap: anywhere;
}
tr:last-child td {
  border-bottom: 0;
}
td strong {
  color: #334661;
  font-weight: 600;
}
td small {
  display: block;
  font-size: 9px;
  color: #9aa5b8;
  margin-top: 4px;
}
.mono {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 10px;
}
.row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}
.row-button {
  background: white;
  border: 1px solid #e0e6f1;
  padding: 6px 10px;
  border-radius: 5px;
  font-size: 10px;
  color: #677c9e;
}
.row-button:hover {
  background: #f3f6fd;
  color: #315ee7;
}
.empty-state {
  text-align: center;
  padding: 47px 25px;
  color: #8794a9;
}
.empty-state .empty-icon {
  font-size: 28px;
  color: #a6b5d5;
  margin-bottom: 11px;
}
.empty-state h3 {
  color: #51637f;
  font-size: 13px;
}
.empty-state p {
  font-size: 11px;
  max-width: 380px;
  margin: 0 auto;
  line-height: 1.8;
}
.notice {
  border: 1px solid #e1e9fa;
  background: #f4f7ff;
  border-radius: 8px;
  padding: 13px 16px;
  color: #6d7fa4;
  font-size: 11px;
  margin-bottom: 20px;
}
.notice.warning {
  background: #fff9ed;
  border-color: #f1e4c5;
  color: #947844;
}
.notice.error {
  background: #fff4f4;
  border-color: #f1d4db;
  color: #af4e60;
}
.load-footer {
  padding: 14px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #9aa6b8;
  font-size: 10px;
}
.activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.activity-list li {
  display: flex;
  gap: 12px;
  padding: 14px 0;
  border-top: 1px solid #f0f3f8;
}
.activity-marker {
  width: 7px;
  height: 7px;
  background: #8ca6f0;
  border-radius: 50%;
  margin-top: 6px;
  flex-shrink: 0;
}
.activity-copy {
  font-size: 11px;
  color: #536785;
  flex: 1;
}
.activity-copy small {
  display: block;
  color: #96a2b7;
  font-size: 9px;
  margin-top: 4px;
}
.activity-time {
  font-size: 9px;
  color: #98a4b9;
  white-space: nowrap;
}
.workspace-footer {
  display: flex;
  justify-content: space-between;
  padding: 28px 0 23px;
  border-top: 1px solid #e6ebf4;
  color: #9ba7bb;
  font-size: 9px;
  margin-top: 34px;
}
.spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid #dbe4fc;
  border-top-color: #466de4;
  animation: spin 0.8s linear infinite;
}
.initial-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 100vh;
  color: #7e8ba1;
  font-size: 12px;
}
.page-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  padding: 90px 25px;
  color: #8a97ac;
  font-size: 12px;
}
.toast {
  position: fixed;
  bottom: 27px;
  right: 28px;
  z-index: 30;
  background: #1d354a;
  border: 1px solid #36516b;
  color: #fff;
  padding: 14px 20px;
  border-radius: 9px;
  box-shadow: 0 12px 35px #172a4326;
  font-size: 12px;
  max-width: 430px;
}
.toast.error {
  background: #7b3444;
}
dialog {
  border: 1px solid #e0e6f1;
  border-radius: 13px;
  width: min(520px, calc(100% - 30px));
  padding: 0;
  color: #26364e;
  box-shadow: 0 25px 80px #15294630;
}
dialog::backdrop {
  background: #15243e66;
  backdrop-filter: blur(3px);
}
dialog form {
  padding: 28px;
}
dialog header {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 13px;
}
dialog header .eyebrow {
  font-size: 9px;
  margin-bottom: 8px;
}
dialog h2 {
  font-size: 22px;
}
dialog .muted {
  font-size: 12px;
  line-height: 1.8;
  margin-bottom: 22px;
}
dialog .field {
  margin-bottom: 18px;
}
dialog .field input,
dialog .field select {
  width: 100%;
}
dialog footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  border-top: 1px solid var(--border);
  padding-top: 21px;
  margin-top: 23px;
}
.form-error {
  color: #b04a5b;
  font-size: 11px;
  background: #fff2f3;
  padding: 10px;
  border-radius: 6px;
}
.login-screen {
  display: grid;
  grid-template-columns: 1fr 1fr;
  min-height: 100vh;
  background: white;
}
.login-main {
  padding: 49px 9%;
  display: flex;
  flex-direction: column;
}
.login-main > .brand {
  align-self: flex-start;
}
.login-copy {
  max-width: 430px;
  margin: auto 0;
  padding: 90px 0;
}
.login-copy h1 {
  font-size: 48px;
  letter-spacing: -2.1px;
  font-weight: 650;
  line-height: 1.15;
  margin-bottom: 24px;
}
.login-description {
  color: #8793a8;
  line-height: 1.9;
  font-size: 13px;
  max-width: 350px;
  margin-bottom: 33px;
}
.google-button {
  justify-content: space-between;
  gap: 16px;
  background: white;
  color: #344762;
  border: 1px solid #d7dfed;
  box-shadow: 0 3px 9px #213c6c04;
  font-size: 12px;
  width: 305px;
  padding: 12px 18px;
}
.google-button:hover {
  background: #f4f7ff;
}
.google-letter {
  font-size: 18px;
  color: #4879df;
  font-weight: 750;
}
.login-hint {
  font-size: 10px;
  color: #97a2b5;
  margin-top: 14px;
}
.login-hint strong {
  color: #7d8ca5;
  font-weight: 550;
}
.login-footer {
  font-size: 10px;
  color: #a1adbe;
  margin: 0;
}
.login-art {
  background: #142643;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px;
}
.art-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(#597cb211 1px, transparent 1px),
    linear-gradient(90deg, #597cb211 1px, transparent 1px);
  background-size: 52px 52px;
  mask-image: radial-gradient(ellipse at center, #000, transparent 75%);
}
.login-art:after {
  content: "";
  position: absolute;
  width: 500px;
  height: 500px;
  left: 20%;
  top: 20%;
  background: #2855d12b;
  filter: blur(100px);
  border-radius: 50%;
  pointer-events: none;
}
.art-caption {
  z-index: 1;
  width: 100%;
  max-width: 330px;
  margin-bottom: 40px;
}
.small-tag {
  font-size: 8px;
  color: #91a9d2;
  letter-spacing: 2px;
}
.art-caption h2 {
  font-size: 30px;
  color: #d8e4f9;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.8px;
  margin-top: 16px;
}
.flow-card {
  z-index: 1;
  border: 1px solid #42618b70;
  background: #213858d9;
  border-radius: 11px;
  padding: 18px 21px;
  display: flex;
  align-items: center;
  gap: 15px;
  width: min(330px, 100%);
  color: #d1def5;
  font-size: 13px;
  box-shadow: 0 20px 35px #0c18271a;
}
.flow-card small {
  display: block;
  color: #819cbe;
  font-size: 9px;
  margin-top: 4px;
}
.flow-icon {
  display: grid;
  place-items: center;
  border-radius: 8px;
  width: 34px;
  height: 34px;
  background: #294971;
  color: #9db8ef;
  font-size: 20px;
}
.flow-core {
  background: #355fdd;
  border-color: #6384ef;
  color: #fff;
  transform: translateX(20px);
}
.flow-core small {
  color: #b2c5ff;
}
.flow-core .flow-icon {
  background: #5278e5;
  color: white;
}
.flow-card .status-dot {
  margin-left: auto;
  width: 6px;
  height: 6px;
}
.flow-line {
  height: 32px;
  width: 1px;
  background: linear-gradient(#456491, #7394cc);
  z-index: 1;
}
.art-footer {
  position: relative;
  z-index: 1;
  color: #7f99bd;
  font-size: 9px;
  margin: 37px 0 0;
  text-align: center;
}
.detail-json {
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 10px;
  background: #f5f7fc;
  border-radius: 6px;
  padding: 15px;
  overflow: auto;
  max-height: 360px;
}
.access-chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
}
.text-truncate {
  max-width: 300px;
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
@media (min-width: 1600px) {
  .login-main {
    padding-left: 16%;
  }
  .login-copy {
    max-width: 460px;
  }
}
@media (max-width: 1100px) {
  .sidebar {
    width: 210px;
    padding-left: 13px;
    padding-right: 13px;
  }
  .workspace-body {
    margin-left: 210px;
    width: calc(100% - 210px);
  }
  .topbar {
    padding: 0 25px;
  }
  main {
    padding: 26px 25px 0;
  }
  .metric-grid {
    gap: 11px;
  }
  .metric {
    padding: 18px 15px;
  }
  .metric-value {
    font-size: 29px;
  }
  .overview-columns {
    grid-template-columns: 1fr;
  }
  .role-tag {
    max-width: 160px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .login-art {
    padding: 40px;
  }
  .login-copy h1 {
    font-size: 40px;
  }
}
@media (max-width: 760px) {
  .sidebar {
    visibility: hidden;
    transform: translateX(-100%);
    z-index: 12;
    transition: transform 0.15s;
    width: 242px;
  }
  .sidebar.open {
    visibility: visible;
    transform: translateX(0);
  }
  .workspace-body {
    width: 100%;
    margin: 0;
  }
  .menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-left: -8px;
  }
  .topbar {
    height: 76px;
    padding: 0 18px;
  }
  .institution-field {
    flex: 1;
    min-width: 0;
  }
  .institution-field select {
    max-width: 100%;
    font-size: 11px;
  }
  .topbar-account {
    gap: 8px;
  }
  .role-tag {
    display: none;
  }
  .account-avatar {
    display: none;
  }
  .topbar .text-button {
    font-size: 10px;
    padding-right: 0;
  }
  main {
    padding: 20px 18px 0;
  }
  .breadcrumb {
    margin-bottom: 17px;
  }
  h1 {
    font-size: 26px;
  }
  .page-heading {
    align-items: start;
    margin-bottom: 23px;
  }
  .page-heading > .button {
    padding: 8px 11px;
    font-size: 10px;
    margin-top: 37px;
    min-height: 34px;
  }
  .page-heading p {
    max-width: 240px;
    font-size: 11px;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }
  .metric {
    padding: 16px;
  }
  .metric-value {
    font-size: 29px;
  }
  .metric-top {
    font-size: 10px;
  }
  .metric-caption {
    font-size: 9px;
  }
  .panel-header {
    padding: 18px;
  }
  .panel-body {
    padding: 0 18px 18px;
  }
  td,
  th {
    padding: 12px 16px;
  }
  .toolbar {
    gap: 12px;
  }
  .toolbar-group {
    width: 100%;
  }
  .field {
    flex: 1;
  }
  .field input,
  .field select {
    min-width: 0;
    width: 100%;
  }
  .toolbar > .button {
    width: 100%;
  }
  .overview-columns {
    gap: 0;
  }
  .workspace-footer {
    gap: 10px;
    flex-wrap: wrap;
  }
  .login-screen {
    display: block;
    min-height: 100vh;
  }
  .login-main {
    min-height: 100vh;
    padding: 35px 30px;
  }
  .login-copy {
    margin: auto;
    max-width: 400px;
    width: 100%;
    padding: 70px 0;
  }
  .login-copy h1 {
    font-size: 42px;
  }
  .login-art {
    display: none;
  }
  .google-button {
    width: 100%;
    max-width: 330px;
  }
  .login-footer {
    text-align: center;
  }
  .toast {
    left: 18px;
    right: 18px;
    bottom: 18px;
    font-size: 11px;
  }
  .row-actions {
    justify-content: start;
  }
  .flow-core {
    transform: none;
  }
  .workspace-footer {
    font-size: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

@media (max-width: 760px) {
  .table-wrap table {
    min-width: 760px;
  }
  .sidebar .sidebar-close {
    display: block;
    position: absolute;
    top: 15px;
    right: 10px;
    color: #9fb0cc;
  }
}
@media (min-width: 761px) {
  .sidebar-close {
    display: none;
  }
}

.brand-logo { display: block; width: 153px; height: auto; object-fit: contain; }
.brand-dark .brand-logo { filter: brightness(0); }
.brand .brand-subtitle { margin-top: 4px; text-align: center; }

.builder-form { display: grid; gap: 18px; }
.builder-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.configuration-editor { width:100%; min-height:150px; resize:vertical; border:1px solid var(--line,#dfe4ef); border-radius:8px; padding:12px; font:12px/1.5 monospace; background:#fafbfe; }
.builder-actions { margin-top:20px; flex-wrap:wrap; }
@media(max-width:760px){.builder-grid{grid-template-columns:1fr;}}

.connector-chat-log { display:grid;gap:12px;max-height:440px;overflow:auto;padding:4px; }
.connector-chat-message { padding:14px 16px;border:1px solid var(--line,#dfe4ef);border-radius:10px;background:#f6f8fc;min-width:0; }
.connector-chat-message.user { background:#edf3ff;margin-left:20px; }
.connector-chat-message.assistant { margin-right:20px; }
.chat-text { white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.6;margin:8px 0 0; }

.workflow-editor { grid-column:1/-1; min-width:0; }
.workflow-chain { list-style:none; display:flex; gap:12px; overflow-x:auto; padding:8px 2px 18px; margin:0; }
.workflow-chain>li { flex:0 0 210px; position:relative; }
.workflow-chain>li+li:before { content:'→'; position:absolute; left:-13px; top:36px; color:#66749a; }
.workflow-step-card { width:100%; min-height:108px; display:grid; gap:6px; justify-items:start; text-align:left; border:1px solid var(--line,#dfe4ef); border-radius:12px; background:#fff; padding:14px; cursor:pointer; overflow-wrap:anywhere; }
.workflow-step-card.selected { border:2px solid #4655dd; background:#f1f3ff; padding:13px; }
.workflow-step-number { background:#e5e9ff; border-radius:50%; padding:3px 9px; color:#3544c3; font-size:12px; }
.workflow-step-card small { color:#667085; font-size:11px; }
.workflow-step-actions { display:flex; flex-wrap:wrap; gap:5px; margin-top:8px; }
.workflow-step-actions .button { font-size:10px; padding:6px 8px; min-height:30px; }
.workflow-step-detail { margin-top:20px; border:1px solid var(--line,#dfe4ef); border-radius:12px; padding:20px; }
.workflow-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:14px; }
.workflow-field { display:grid; align-content:start; gap:6px; min-width:0; }
.workflow-field label { font-size:12px; color:#475467; font-weight:600; }
.workflow-field input:not([type=checkbox]),.workflow-field select { width:100%; min-width:0; border:1px solid var(--line,#dfe4ef); border-radius:8px; padding:10px; background:#fff; color:#192641; font:inherit; font-size:13px; }
.workflow-field input[type=checkbox] { width:18px; height:18px; margin:5px; accent-color:#4655dd; }
.workflow-field input:focus,.workflow-field select:focus,.workflow-step-card:focus-visible,.workflow-section summary:focus-visible { outline:2px solid #4655dd; outline-offset:3px; }
.workflow-section { margin-top:16px; padding:16px; border:1px solid var(--line,#dfe4ef); border-radius:10px; min-width:0; }
.workflow-section>summary { cursor:pointer; font-weight:600; font-size:14px; }
.workflow-section>p { margin:12px 0; }
.workflow-row { display:flex; align-items:end; gap:12px; flex-wrap:wrap; margin-bottom:12px; }
.workflow-row>.workflow-field { flex:1 1 140px; }
.workflow-association { border:1px solid var(--line,#dfe4ef); background:#fafbfe; border-radius:10px; padding:14px; margin:12px 0; display:grid; gap:12px; }
.workflow-binding { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; }
.workflow-editor .toolbar { flex-wrap:wrap; margin:12px 0; }
.workflow-editor .notice { margin-bottom:14px; }
@media(max-width:760px){.workflow-grid,.workflow-binding{grid-template-columns:1fr}.workflow-step-detail{padding:12px}.workflow-chain>li{flex-basis:185px}.workflow-section{padding:12px}}
