:root {
  --sidebar-width:244px;
  --paper:#fafafa;
  --panel:#fff;
  --ink:#171d27;
  --muted:#697386;
  --line:#e4e7ec;
  --accent:#2463eb;
  --accent-deep:#174ab5;
  --accent-soft:#eff4ff;
  --sidebar-hover:#f2f5fa;
  --success:#167552;
  --success-soft:#e7f6ee;
  --radius:9px;
  font-family:
    "Avenir Next",
    "Segoe UI",
    "PingFang SC",
    "Microsoft YaHei",
    sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
  font-size: 14px;
  line-height: 1.5;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
select {
  font: inherit;
}
button,
a,
input,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: not-allowed;
  opacity: .5;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -.7px;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
  letter-spacing: -.2px;
}
h3 {
  font-size: 14px;
  font-weight: 600;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.table-scroll:focus-visible {
  outline: 3px solid #2463eb44;
  outline-offset: 3px;
}
.icon {
  width: 19px;
  height: 19px;
  flex: 0 0 19px;
}
.muted,
.hint {
  color: var(--muted);
}
.hint {
  font-size: 12px;
  line-height: 1.65;
}
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 13px;
  border: 1px solid #dce1e8;
  border-radius: 6px;
  background: #fff;
  color: #344054;
  font-size: 12px;
  font-weight: 550;
  line-height: 1.4;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
}
.button:hover {
  background: #f7f8fa;
  border-color: #c7d0dc;
  text-decoration: none;
}
.button .icon {
  width: 16px;
  height: 16px;
  flex-basis: 16px;
}
.button--primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.button--primary:hover {
  background: var(--accent-deep);
  border-color: var(--accent-deep);
}
.button--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  padding: 5px 0;
  min-height: 32px;
}
.button--quiet:hover {
  background: transparent;
  border-color: transparent;
  text-decoration: underline;
}
.button[aria-busy=true] {
  cursor: wait;
}
.control {
  width: 100%;
  min-height: 42px;
  border: 1px solid #d7dde6;
  background: #fff;
  color: var(--ink);
  border-radius: 6px;
  padding: 10px 12px;
  outline-offset: 2px;
  font-size: 13px;
}
.control::placeholder {
  color: #8b95a5;
}
.control:disabled {
  background: #f5f6f8;
  color: var(--muted);
}
.select {
  appearance: none;
  padding-right: 35px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none'%3E%3Cpath d='m4 6 4 4 4-4' stroke='%23697386' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: calc(100% - 11px) center;
}
.field {
  display: grid;
  gap: 8px;
  min-width: 0;
}
.field-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: #344054;
}
.field-heading .button {
  min-height: 24px;
  padding-top: 0;
  padding-bottom: 0;
}
.checkbox {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--muted);
  font-size: 12px;
  cursor: pointer;
}
.checkbox input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--accent);
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: max-content;
  max-width: 100%;
  padding: 3px 8px;
  border-radius: 5px;
  background: #f1f3f6;
  color: #586477;
  font-size: 11px;
  line-height: 1.5;
  white-space: normal;
}
.badge--success {
  background: var(--success-soft);
  color: var(--success);
}
.badge--blue {
  background: var(--accent-soft);
  color: #365c92;
}
.badge--warning {
  background: #fff4dd;
  color: #80602b;
}
.badge--danger {
  background: #fceef0;
  color: #a54550;
}
.panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  overflow: hidden;
  min-width: 0;
}
.panel-heading {
  padding: 18px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.panel-heading .button {
  font-size: 11px;
}
.panel-body {
  padding: 0 20px 21px;
}
.panel-body > .button {
  width: 100%;
  margin-top: 19px;
}
.panel-body > .hint {
  margin-top: 15px;
}
.table-scroll {
  overflow: auto;
  max-width: 100%;
}
table {
  border-collapse: collapse;
  width: 100%;
  text-align: left;
  font-size: 12px;
}
th {
  padding: 12px 18px;
  background: #f8f9fc;
  color: #697386;
  font-size: 11px;
  font-weight: 550;
  border-top: 1px solid #edf0f4;
  border-bottom: 1px solid #edf0f4;
  white-space: nowrap;
}
td {
  padding: 17px 18px;
  border-bottom: 1px solid #edf0f4;
  color: #475467;
  vertical-align: middle;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #fcfdff;
}
.thumbnail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 6px;
  object-fit: cover;
  background: #f2f3f5;
  color: #97a1af;
  flex: 0 0 36px;
}
.thumbnail .icon {
  width: 18px;
  height: 18px;
}
.empty-state {
  min-height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  text-align: center;
  padding: 35px 24px;
  gap: 12px;
}
.empty-state > .icon {
  width: 30px;
  height: 30px;
  color: #98a4b5;
  margin-bottom: 5px;
}
.empty-state h3 {
  font-size: 16px;
}
.empty-state p {
  color: var(--muted);
  font-size: 12px;
  max-width: 330px;
  line-height: 1.8;
}
.empty-state .button {
  margin-top: 8px;
}
.dialog {
  width: min(540px, calc(100vw - 32px));
  max-height: calc(100svh - 50px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 24px 80px #10182824;
}
.dialog::backdrop {
  background: #26354d55;
}
.dialog .connect-form {
  display: grid;
  gap: 20px;
  margin-top: 18px;
}
.control[aria-invalid=true] {
  border-color: #cf8b94;
  background: #fffdfd;
}
.control[aria-invalid=true]:focus-visible {
  outline-color: #bc526533;
}
.field-error {
  color: #ad4758;
  font-size: 12px;
  line-height: 1.6;
}
.form-feedback {
  color: #ad4758;
  font-size: 12px;
  line-height: 1.7;
}
.sent-feedback {
  color: #59715f;
  font-size: 11px;
  line-height: 1.6;
}
.popup {
  position: relative;
  min-width: 0;
}
.dropdown-trigger {
  width: 100%;
  justify-content: space-between;
  min-height: 43px;
  padding: 10px;
  font-size: 12px;
  font-weight: 500;
}
.dropdown-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-trigger > .icon {
  flex: 0 0 15px;
  width: 15px;
  color: #8b96a6;
}
.dropdown-trigger[aria-expanded=true] {
  border-color: #afc3e4;
  background: #f8faff;
}
.dropdown-options,
.action-menu-panel {
  position: absolute;
  left: 0;
  right: 0;
  z-index: 30;
  padding: 5px;
  border: 1px solid #dce2eb;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 28px #172a4514;
}
.dropdown-options {
  top: calc(100% + 7px);
  max-height: min(300px, 35svh);
  overflow-y: auto;
}
.dropdown-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 39px;
  border-radius: 5px;
  padding: 9px;
  color: #475467;
  font-size: 12px;
  cursor: pointer;
  overflow-wrap: anywhere;
}
.dropdown-option[aria-selected=true] {
  color: #1b4c9f;
  background: #f2f6fc;
}
.dropdown-option.is-active,
.dropdown-option:hover {
  background: #edf3fc;
}
.dropdown-option > .icon {
  color: var(--accent);
  flex: 0 0 15px;
  width: 15px;
  height: 15px;
}
.action-menu-panel {
  bottom: calc(100% + 8px);
}
.account-email {
  font-size: 11px;
  color: var(--muted);
  padding: 9px 10px 12px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--line);
  overflow-wrap: anywhere;
}
.account-trigger {
  justify-content: flex-start;
  width: 100%;
  gap: 10px;
  padding: 10px 12px;
  border-color: transparent;
  background: transparent;
  color: #536177;
  min-height: 42px;
  font-weight: 500;
}
.account-trigger > .icon:last-child {
  margin-left: auto;
  width: 14px;
  height: 14px;
}
.account-trigger[aria-expanded=true] {
  background: var(--sidebar-hover);
}
.action-menu-item {
  width: 100%;
  justify-content: flex-start;
  padding: 10px;
  border: 0;
  font-weight: 500;
  color: #536177;
  background: transparent;
}
.action-menu-item:hover,
.action-menu-item:focus-visible {
  background: #f2f5fa;
}
.dropdown-value,
.dropdown-option-text {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 4px;
}
.dropdown-main {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.dropdown-secondary {
  flex-shrink: 0;
  white-space: pre;
  color: #7b8798;
}
/* An indeterminate brand fill, never a simulated percentage. */
.brand-loading { min-height: 320px; display: grid; place-items: center; padding: 36px 20px; }
.brand-loading--screen { min-height: 100svh; padding: 0; }
.brand-loading-content { display: flex; flex-direction: column; align-items: center; gap: 13px; }
.brand-loading-mark { position: relative; display: block; width: 64px; height: 64px; }
.brand-loading-mark img { position: absolute; inset: 0; display: block; width: 100%; height: 100%; }
.brand-loading-base { filter: grayscale(1); opacity: .12; }
.brand-loading-fill { position: absolute; inset: 0; display: block; background: var(--accent); mask: url('/assets/mark.svg') center / contain no-repeat; animation: brand-color-fill 2.2s ease-in-out infinite; will-change: clip-path, opacity; }
.brand-loading-name { display: block; width: 124px; height: auto; }
@keyframes brand-color-fill {
  0%, 8% { clip-path: inset(100% 0 0 0); opacity: 1; }
  68%, 86% { clip-path: inset(0 0 0 0); opacity: 1; }
  100% { clip-path: inset(0 0 0 0); opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .brand-loading-fill { animation: none; clip-path: none; opacity: 1; will-change: auto; }
}

.account-avatar { display: grid; place-items: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; background: #eaf0ff; color: #345fad; font-size: 12px; font-weight: 600; }
.account-trigger > span:not(.account-avatar) { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.action-menu-item .menu-value { margin-left: auto; color: var(--muted); font-size: 11px; }
.action-menu-item > .icon:last-child:not(:first-child) { width: 14px; height: 14px; }
.menu-back { border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: 5px; }

.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
