:root {
  color-scheme: light;
  --bg: #f2f5fa;
  --ink: #17243b;
  --secondary: #65728a;
  --muted: #8b97aa;
  --blue: #2878f0;
  --line: #1c2b4810;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  font-family:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI",
    "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  background-image:
    radial-gradient(ellipse at 95% 0%, #e6ecfb, transparent 38%),
    radial-gradient(ellipse at 0 75%, #e7f3f5, transparent 40%);
  min-height: 100vh;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  border: 0;
  background: none;
  color: inherit;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #89b6fa;
  outline-offset: 3px;
}
a {
  color: inherit;
  text-decoration: none;
}
svg {
  width: 20px;
  height: 20px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-size: 32px;
  letter-spacing: -1.2px;
  line-height: 1.35;
  font-weight: 650;
}
h2 {
  font-size: 16px;
  font-weight: 650;
}
h3 {
  font-size: 13px;
  font-weight: 500;
}
p {
  color: var(--secondary);
  line-height: 1.75;
}
small {
  font-size: 11px;
}
[hidden] {
  display: none !important;
}
.symbols {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.glass {
  background: #ffffffc7;
  border: 1px solid #fffffff0;
  box-shadow:
    inset 0 1px 0 #ffffffe6,
    0 8px 36px #3e53800b;
  backdrop-filter: blur(22px) saturate(135%);
  -webkit-backdrop-filter: blur(22px) saturate(135%);
}
input,
select,
textarea {
  border: 1px solid var(--line);
  background: #f1f5fad9;
  border-radius: 11px;
  color: var(--ink);
  width: 100%;
  padding: 11px 12px;
  min-height: 41px;
  transition:
    border-color 0.18s,
    box-shadow 0.18s;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #99baf0;
  box-shadow: 0 0 0 3px #2878f011;
  outline: none;
}
input::placeholder,
textarea::placeholder {
  color: #95a0b2;
  font-size: 12px;
}
textarea {
  resize: vertical;
}
label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 12px;
  font-weight: 500;
  color: var(--secondary);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-height: 0;
  accent-color: var(--blue);
  cursor: pointer;
}
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 17px;
  border-radius: 12px;
  font-weight: 580;
  font-size: 13px;
  white-space: nowrap;
  min-height: 42px;
  transition:
    transform 0.18s var(--ease),
    background 0.18s;
}
.button:hover:not(:disabled) {
  transform: translateY(-1px);
}
.button:active:not(:disabled) {
  transform: scale(0.98);
}
.button.primary {
  color: white;
  background: linear-gradient(180deg, #3988fb, #2675ed);
  box-shadow:
    0 3px 9px #2878f020,
    inset 0 1px 0 #ffffff33;
}
.button.secondary {
  background: #ebf0f8d9;
  color: #3e5a84;
  border: 1px solid #526e9f12;
}
.button.ghost {
  color: #63748e;
}
.button.ghost:hover {
  background: #eaf0f8;
}
.button.compact {
  padding: 7px 10px;
  min-height: 34px;
  font-size: 12px;
  border-radius: 10px;
}
.button.danger {
  color: #c94d60;
}
.button svg {
  width: 16px;
  height: 16px;
}
.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ffffff99;
  border: 1px solid var(--line);
  font-size: 24px;
}
.icon-button svg {
  width: 17px;
  height: 17px;
}
.text-button {
  font-size: 11px;
  color: var(--secondary);
  padding: 5px 8px;
  border-radius: 7px;
}
.text-button:hover {
  background: #e7edf5;
}
.badge {
  display: inline-flex;
  padding: 5px 9px;
  border-radius: 8px;
  background: #edf1f6;
  color: var(--secondary);
  font-size: 10px;
  white-space: nowrap;
}
.badge.good {
  background: #e9f5ed;
  color: #27845e;
}
.badge.bad {
  background: #fff0f0;
  color: #c94d60;
}
.blue-badge {
  background: #eaf1ff;
  color: var(--blue);
}
.eyebrow {
  font-size: 9px;
  letter-spacing: 2.3px;
  color: var(--muted);
  font-weight: 650;
}
.title-dot {
  color: var(--blue);
  margin-left: 3px;
}
.soft-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 11px;
}
.soft-icon svg {
  width: 18px;
  height: 18px;
}
.blue {
  background: #eaf1ff;
  color: #4484e4;
}
.purple {
  background: #f1edfd;
  color: #9170d8;
}
.green {
  background: #e8f5ef;
  color: #48a780;
}
.orange {
  background: #fff1e6;
  color: #d69a58;
}
.app-shell {
  display: flex;
  max-width: 1920px;
  margin: auto;
}
.sidebar {
  width: 214px;
  position: fixed;
  top: 18px;
  bottom: 18px;
  left: max(18px, calc((100vw - 1920px) / 2 + 18px));
  border-radius: 25px;
  padding: 29px 17px 20px;
  display: flex;
  flex-direction: column;
  z-index: 10;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 10px 37px;
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 2px;
}
.brand small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 2px;
  font-weight: 500;
  margin-top: 3px;
}
.brand-mark {
  height: 42px;
  width: 42px;
  border-radius: 14px;
  background: linear-gradient(140deg, #68a6ff, #3177ef);
  box-shadow:
    0 5px 13px #2878f026,
    inset 0 1px 0 #ffffff77;
  display: grid;
  place-items: center;
  color: white;
}
.brand-mark svg {
  height: 26px;
  width: 26px;
}
.nav-label {
  font-size: 10px;
  color: var(--muted);
  padding: 0 14px 13px;
  letter-spacing: 1px;
}
.sidebar nav {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.nav-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px;
  border-radius: 14px;
  text-align: left;
  font-size: 13px;
  color: #6b7a91;
  transition: 0.2s;
}
.nav-item svg {
  height: 18px;
  width: 18px;
}
.nav-item:hover {
  background: #e9eef7;
}
.nav-item.active {
  background: #e5eeff;
  color: #3479df;
  font-weight: 600;
}
.nav-item i {
  height: 5px;
  width: 5px;
  background: var(--blue);
  border-radius: 50%;
  margin-left: auto;
}
.sidebar-bottom {
  margin-top: auto;
  padding: 18px 10px 0;
  border-top: 1px solid var(--line);
}
.connection {
  display: flex;
  gap: 7px;
  align-items: center;
  font-size: 10px;
  color: #657c78;
  margin-bottom: 9px;
}
.connection i,
.status-dot {
  height: 5px;
  width: 5px;
  border-radius: 50%;
  background: #56b390;
  display: inline-block;
}
.sidebar-bottom > small {
  display: block;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 18px;
  font-size: 9px;
}
.main-shell {
  margin-left: 256px;
  width: calc(100% - 256px);
  min-width: 0;
}
.topbar {
  height: 76px;
  padding: 0 37px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #3d588408;
}
.breadcrumb {
  font-size: 11px;
  color: var(--muted);
  display: flex;
  gap: 12px;
}
.breadcrumb b {
  color: var(--secondary);
  font-weight: 500;
}
.top-actions {
  display: flex;
  gap: 17px;
  align-items: center;
}
.avatar {
  height: 31px;
  width: 31px;
  background: linear-gradient(130deg, #dbe9ff, #efe9fa);
  border: 2px solid white;
  border-radius: 50%;
  font-size: 11px;
  color: #6d83aa;
  display: grid;
  place-items: center;
}
main {
  padding: 29px 37px 16px;
  max-width: 1550px;
  margin: auto;
}
.page-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 28px;
}
.page-heading h1 {
  margin: 8px 0 9px;
}
.page-heading p {
  font-size: 12px;
}
.page {
  display: none;
}
.page.active {
  display: block;
  animation: pageIn 0.35s var(--ease);
}
@keyframes pageIn {
  from {
    opacity: 0;
    transform: translateY(5px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.metrics {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  margin-bottom: 22px;
}
.metric {
  border-radius: 19px;
  min-height: 99px;
  padding: 19px 18px;
  display: flex;
  align-items: center;
  gap: 13px;
  position: relative;
}
.metric-icon {
  display: grid;
  place-items: center;
  height: 38px;
  width: 38px;
  border-radius: 13px;
}
.metric-icon svg {
  width: 19px;
  height: 19px;
}
.metric div > span {
  font-size: 11px;
  color: var(--secondary);
  display: block;
  margin-bottom: 5px;
}
.metric strong {
  font-size: 27px;
  font-weight: 600;
  letter-spacing: -1px;
  font-variant-numeric: tabular-nums;
}
.metric .text-value {
  font-size: 19px;
  letter-spacing: -0.5px;
}
.metric small {
  position: absolute;
  top: 20px;
  right: 16px;
  font-size: 8px;
  color: #9aa5b6;
}
.environment-grid {
  display: grid;
  grid-template-columns: 1.12fr 1fr;
  gap: 19px;
  margin-bottom: 22px;
}
.card {
  border-radius: 24px;
  padding: 22px 24px;
  margin-bottom: 22px;
  min-width: 0;
}
.environment-grid .card {
  margin: 0;
  display: flex;
  flex-direction: column;
}
.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 19px;
}
.card-header p {
  font-size: 10px;
  margin-top: 5px;
}
.section-title {
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px 15px;
}
.span-2 {
  grid-column: span 2;
}
.card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-top: 1px solid var(--line);
  padding-top: 15px;
  margin-top: 19px;
}
.card-footer small {
  color: var(--muted);
  font-size: 9px;
  line-height: 1.7;
}
.environment-grid .card-footer {
  margin-top: auto;
  padding-top: 13px;
}
.environment-grid .form-grid {
  margin-bottom: 16px;
}
.switch {
  position: relative;
  display: block;
  width: 34px;
  height: 21px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  z-index: 2;
}
.switch span {
  height: 21px;
  width: 34px;
  background: #d8dfe8;
  border-radius: 20px;
  transition: 0.2s;
  display: block;
}
.switch span:after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  background: white;
  border-radius: 50%;
  height: 17px;
  width: 17px;
  box-shadow: 0 1px 3px #0002;
  transition: 0.2s;
}
.switch input:checked + span {
  background: #589bf5;
}
.switch input:checked + span:after {
  transform: translateX(13px);
}
.inline-notice {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 3px 0 23px;
  color: var(--secondary);
  font-size: 10px;
  padding: 13px 10px;
  background: #eff5fc88;
  border-radius: 10px;
}
.toolbar {
  display: flex;
  gap: 6px;
  align-items: center;
  flex-wrap: wrap;
}
.batch-editor {
  background: #f5f7fb99;
  font-family: "SFMono-Regular", Consolas, monospace;
  font-size: 12px;
  line-height: 1.9;
  padding: 14px 16px;
  border-radius: 13px;
  min-height: 130px;
}
.run-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 17px;
  gap: 16px;
}
.list-count {
  font-size: 10px;
  color: var(--muted);
}
.run-options {
  display: flex;
  align-items: center;
  gap: 11px;
}
.run-options label {
  flex-direction: row;
  align-items: center;
  font-size: 10px;
  white-space: nowrap;
}
.run-options select {
  width: auto;
  min-width: 55px;
  padding: 7px 23px 7px 9px;
  min-height: 33px;
  font-size: 11px;
}
.count-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  font-size: 10px;
  background: #eef2f8;
  color: var(--muted);
  border-radius: 7px;
  min-width: 23px;
  padding: 3px 6px;
}
.table-wrap {
  overflow-x: auto;
  border-radius: 13px;
  border: 1px solid #e9eef555;
}
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 11px;
  min-width: 660px;
}
th {
  font-size: 10px;
  font-weight: 500;
  color: #8491a7;
  background: #f5f7fb99;
  padding: 12px 14px;
  white-space: nowrap;
}
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  max-width: 280px;
  overflow-wrap: anywhere;
  color: #5b6c84;
}
td b {
  color: var(--ink);
  font-weight: 500;
}
td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover {
  background: #f0f5fd77;
}
.empty-state {
  text-align: center;
  padding: 32px 16px 35px;
}
.empty-icon {
  display: grid;
  place-items: center;
  height: 39px;
  width: 39px;
  background: #f0f4fa;
  border: 1px solid #e9eff7;
  border-radius: 13px;
  color: #9faec6;
  margin: 0 auto 11px;
}
.empty-icon svg {
  height: 19px;
  width: 19px;
}
.empty-state h3 {
  color: #67788f;
}
.empty-state p {
  font-size: 10px;
  margin-top: 6px;
  color: #98a4b5;
}
.search {
  width: 260px;
  font-size: 11px;
  min-height: 36px;
  padding: 9px 12px;
}
.account-toolbar {
  display: flex;
  gap: 9px;
  align-items: center;
  flex-wrap: wrap;
  padding-bottom: 16px;
}
.checkbox-label {
  flex-direction: row;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}
.account-toolbar > span {
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
}
.content-form {
  max-width: 940px;
}
.action-chips {
  border: 0;
  margin: 0;
  padding: 4px 0;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.action-chips legend {
  font-size: 12px;
  color: var(--secondary);
  margin-bottom: 9px;
}
.action-chips label {
  flex-direction: row;
  align-items: center;
  background: #f0f4fa;
  padding: 8px 12px;
  border-radius: 10px;
  gap: 6px;
}
.action-chips label:has(input:checked) {
  background: #eaf2ff;
  color: #3c7edf;
}
.log-dock {
  margin-top: 26px;
  margin-bottom: 15px;
  padding-bottom: 16px;
}
.progress-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
  gap: 20px;
}
.progress-heading .eyebrow {
  font-size: 8px;
  letter-spacing: 1.8px;
}
.progress-heading h2 {
  font-size: 12px;
  margin-top: 6px;
  line-height: 1.6;
  max-width: 900px;
  overflow-wrap: anywhere;
  font-weight: 550;
}
.percentage {
  display: flex;
  gap: 2px;
  align-items: baseline;
  white-space: nowrap;
}
.percentage strong {
  font-size: 25px;
  letter-spacing: -1px;
  font-weight: 550;
  font-variant-numeric: tabular-nums;
}
.percentage span {
  font-size: 12px;
  color: var(--muted);
}
.percentage small {
  margin-left: 13px;
  color: var(--muted);
  font-size: 10px;
}
.progress-track {
  height: 4px;
  background: #e7edf7;
  border-radius: 10px;
  overflow: hidden;
}
.progress-track > span {
  display: block;
  width: 0;
  background: linear-gradient(90deg, #5095f8, #89b8fb);
  height: 100%;
  transition: width 0.3s var(--ease);
}
.log-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 15px;
  font-size: 10px;
  color: var(--secondary);
}
.log-toolbar > span {
  display: flex;
  gap: 7px;
  align-items: center;
}
.log-lines {
  max-height: 165px;
  overflow: auto;
  margin-top: 9px;
  background: #f5f7fa88;
  border-radius: 10px;
  padding: 9px 12px;
  font:
    10px/1.9 "SFMono-Regular",
    Consolas,
    "Microsoft YaHei",
    monospace;
  color: #687b91;
  scrollbar-width: thin;
}
.log-line {
  display: flex;
  gap: 14px;
  overflow-wrap: anywhere;
}
.log-line time {
  color: #9ba9bd;
  white-space: nowrap;
}
.log-placeholder {
  font-size: 10px;
  color: #93a2b7;
}
.page-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 4px 9px;
  font-size: 9px;
  color: #a1aec0;
}
.page-footer b {
  font-weight: 500;
  margin-left: 5px;
}
.mcp-hero {
  display: flex;
  align-items: center;
  gap: 35px;
  padding: 37px;
}
.mcp-hero h2 {
  font-size: 23px;
  letter-spacing: -0.6px;
}
.mcp-hero p {
  margin-top: 11px;
  max-width: 660px;
  font-size: 12px;
}
.mcp-art {
  height: 100px;
  width: 100px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: linear-gradient(145deg, #eef5ff, #e7edfa);
  border: 2px solid white;
  border-radius: 30px;
  box-shadow:
    0 10px 20px #5779ba0a,
    inset 0 0 20px #fff9;
  color: #7b9cd9;
  transform: rotate(-7deg);
}
.mcp-art svg {
  height: 43px;
  width: 43px;
  stroke-width: 1.4;
}
.feature-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 17px;
}
.feature-tags span {
  font-size: 10px;
  color: #7192ba;
  background: #edf3fc;
  padding: 5px 10px;
  border-radius: 20px;
}
.code-block {
  background: #f2f5fa;
  border-radius: 12px;
  padding: 18px;
  font:
    11px/1.8 Consolas,
    monospace;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #597090;
}
.card-note {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.8;
  margin-top: 10px;
}
.capability-list {
  list-style: none;
  padding: 0;
  margin: 4px 0 0;
}
.capability-list li {
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 19px 0;
  border-bottom: 1px solid var(--line);
}
.capability-list li:last-child {
  border: 0;
}
.capability-list b {
  font-size: 12px;
  font-weight: 500;
}
.capability-list small {
  display: block;
  color: var(--muted);
  margin-top: 6px;
}
.capability-list li > span:last-child {
  margin-left: auto;
  color: #9eb0cb;
}
.brand-mark.large {
  width: 58px;
  height: 58px;
  border-radius: 19px;
  margin: 0 auto 25px;
}
.brand-mark.large svg {
  width: 34px;
  height: 34px;
}
#unlock-error {
  color: #c94d60;
  font-size: 12px;
  margin-top: 12px;
  min-height: 20px;
}
.dialog {
  width: min(500px, calc(100% - 32px));
  border-radius: 24px;
  padding: 24px;
  max-height: 90vh;
  overflow: auto;
  color: var(--ink);
}
.dialog::backdrop {
  background: #21395744;
  backdrop-filter: blur(6px);
}
.dialog-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.dialog p {
  font-size: 12px;
}
.dialog label {
  margin-top: 14px;
}
.dialog-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 22px;
  font-size: 12px;
}
.challenge-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 16px;
}
.challenge-tile {
  padding: 0;
  border: 3px solid transparent;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1;
  position: relative;
  min-width: 0;
  background: #e9eef7;
}
.challenge-tile img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
.challenge-tile.selected {
  border-color: var(--blue);
}
.challenge-tile.selected:after {
  content: "✓";
  position: absolute;
  top: 4px;
  right: 4px;
  color: white;
  background: var(--blue);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
}
.toast-stack {
  position: fixed;
  right: 25px;
  bottom: 24px;
  z-index: 200;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: min(380px, calc(100vw - 32px));
}
.toast {
  padding: 14px 19px;
  background: #fffffff5;
  border: 1px solid white;
  box-shadow: 0 6px 25px #1c385522;
  border-radius: 14px;
  color: #536986;
  font-size: 12px;
  animation: pageIn 0.25s;
}
.toast.error {
  color: #c94d60;
}
@media (min-width: 1600px) {
  main {
    padding: 35px 50px;
  }
  .topbar {
    padding: 0 50px;
  }
}
@media (max-width: 1250px) {
  .sidebar {
    width: 190px;
  }
  .main-shell {
    margin-left: 223px;
    width: calc(100% - 223px);
  }
  main {
    padding: 25px;
  }
  .topbar {
    padding: 0 25px;
  }
  .metric {
    padding: 17px 13px;
    gap: 10px;
  }
  .metric small {
    display: none;
  }
  .card {
    padding: 21px;
  }
  .run-options {
    gap: 8px;
  }
  .button {
    padding: 10px 13px;
  }
  .environment-grid {
    gap: 16px;
  }
}
@media (max-width: 1000px) {
  .environment-grid {
    grid-template-columns: 1fr;
  }
  .metrics {
    gap: 10px;
  }
  .metric {
    flex-direction: column;
    align-items: flex-start;
    gap: 9px;
    min-height: 110px;
    padding: 15px;
  }
  .metric div {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
  }
  .metric div > span {
    font-size: 10px;
  }
  .metric strong {
    font-size: 22px;
    margin-left: auto;
  }
  .metric .text-value {
    font-size: 15px;
  }
  .run-toolbar {
    flex-wrap: wrap;
  }
  .run-options {
    margin-left: auto;
  }
  .page-heading {
    align-items: flex-start;
  }
  h1 {
    font-size: 28px;
  }
  .card-header {
    flex-wrap: wrap;
  }
}
@media (max-width: 760px) {
  .sidebar {
    top: auto;
    bottom: 12px;
    left: 12px;
    right: 12px;
    width: auto;
    height: 66px;
    padding: 7px;
    border-radius: 23px;
    box-shadow:
      0 8px 30px #40587920,
      inset 0 1px 0 white;
    background: #ffffffe0;
  }
  .brand,
  .nav-label,
  .sidebar-bottom {
    display: none;
  }
  .sidebar nav {
    flex-direction: row;
    gap: 5px;
    width: 100%;
    height: 100%;
  }
  .nav-item {
    flex: 1;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    padding: 4px;
    min-height: 46px;
    font-size: 10px;
    border-radius: 17px;
  }
  .nav-item svg {
    height: 18px;
    width: 18px;
  }
  .nav-item i {
    display: none;
  }
  .main-shell {
    margin-left: 0;
    width: 100%;
  }
  .topbar {
    height: 61px;
    padding: 0 20px;
  }
  main {
    padding: 24px 16px 94px;
  }
  .page-heading {
    gap: 12px;
    margin-bottom: 22px;
    flex-wrap: wrap;
  }
  .page-heading h1 {
    font-size: 27px;
  }
  .page-heading > button {
    padding: 8px 12px;
    min-height: 34px;
    font-size: 11px;
  }
  .page-heading p {
    font-size: 11px;
  }
  .metrics {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 17px;
  }
  .metric {
    min-height: 90px;
    flex-direction: row;
    align-items: center;
  }
  .metric div {
    display: block;
  }
  .metric div > span {
    font-size: 10px;
  }
  .metric strong {
    font-size: 24px;
  }
  .metric .text-value {
    font-size: 17px;
  }
  .metric-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
  }
  .card {
    padding: 18px;
    border-radius: 21px;
    margin-bottom: 17px;
  }
  .environment-grid {
    gap: 17px;
    margin-bottom: 17px;
  }
  .card-header {
    gap: 12px;
    margin-bottom: 17px;
  }
  h2 {
    font-size: 15px;
  }
  .card-header p {
    font-size: 10px;
  }
  .form-grid {
    gap: 13px 10px;
  }
  input,
  select,
  textarea {
    font-size: 16px;
    padding: 10px;
    min-height: 43px;
  }
  .batch-editor {
    font-size: 12px;
    padding: 12px;
    min-height: 155px;
  }
  .run-toolbar {
    gap: 12px;
  }
  .run-options {
    flex-wrap: wrap;
    justify-content: flex-end;
    margin-left: 0;
    width: 100%;
    gap: 8px;
  }
  .run-options label {
    margin-right: auto;
  }
  .run-options label + label {
    margin-right: 0;
  }
  .run-options .button {
    flex: 1;
    min-height: 43px;
  }
  .run-options select {
    font-size: 14px;
  }
  .card-footer {
    flex-wrap: wrap;
    gap: 10px;
  }
  .toolbar {
    gap: 2px;
  }
  .button.compact {
    font-size: 11px;
    min-height: 34px;
  }
  .table-wrap {
    margin: 0 -4px;
  }
  table {
    min-width: 610px;
  }
  .search {
    width: 100%;
    font-size: 16px;
  }
  .account-toolbar {
    gap: 4px;
  }
  .account-toolbar > span {
    width: 100%;
    margin-top: 9px;
  }
  .action-chips {
    gap: 7px;
  }
  .action-chips label {
    font-size: 12px;
    padding: 9px 10px;
  }
  .log-dock {
    margin-top: 21px;
  }
  .progress-heading h2 {
    font-size: 11px;
  }
  .percentage strong {
    font-size: 23px;
  }
  .percentage small {
    display: none;
  }
  .log-lines {
    font-size: 10px;
  }
  .page-footer {
    font-size: 8px;
    gap: 12px;
  }
  .mcp-hero {
    gap: 18px;
    flex-direction: column;
    align-items: flex-start;
    padding: 24px;
  }
  .mcp-art {
    width: 67px;
    height: 67px;
    border-radius: 20px;
  }
  .mcp-art svg {
    width: 30px;
    height: 30px;
  }
  .mcp-hero h2 {
    font-size: 21px;
  }
  .toast-stack {
    right: 16px;
    bottom: 90px;
  }
  .dialog-actions .button {
    min-height: 44px;
  }
}
@media (max-width: 360px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .span-2 {
    grid-column: span 1;
  }
  .metric {
    gap: 7px;
    padding: 12px;
  }
  .page-heading h1 {
    font-size: 24px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@supports not (backdrop-filter: blur(1px)) {
  .glass {
    background: #fff;
  }
}
.context-menu {
  position: fixed;
  z-index: 100;
  border-radius: 13px;
  padding: 6px;
  width: 180px;
}
.context-menu button {
  display: block;
  width: 100%;
  text-align: left;
  padding: 10px;
  border-radius: 9px;
  font-size: 12px;
}
.context-menu button:hover {
  background: #eaf1fc;
}
/* Progressive disclosure: the primary task is always visible; optional controls stay available. */
.simple-details {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-top: 14px;
}
.simple-details > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 550;
  color: var(--muted);
  padding: 10px 0;
  list-style: none;
  display: flex;
  gap: 10px;
  align-items: center;
}
.simple-details > summary::-webkit-details-marker {
  display: none;
}
.simple-details > summary::before {
  content: "›";
  font-size: 20px;
  line-height: 1;
  transition: transform 0.18s;
}
.simple-details[open] > summary::before {
  transform: rotate(90deg);
}
.simple-details > summary:focus-visible {
  outline: 2px solid var(--blue);
  outline-offset: 3px;
  border-radius: 8px;
}
.simple-details[open] > summary {
  margin-bottom: 12px;
}
.settings-fold {
  padding: 8px 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  margin: 0 0 20px;
}
.settings-fold > summary {
  color: var(--text);
  padding: 14px 0;
}
.detail-hint {
  font-weight: 400;
  font-size: 11px;
  color: var(--muted);
  margin-left: auto;
}
.settings-fold .environment-grid {
  margin-bottom: 10px;
}
.settings-fold > .button {
  margin-bottom: 12px;
}
.inline-options {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  padding-bottom: 12px;
}
.inline-options label {
  display: flex;
  align-items: center;
  gap: 10px;
}
.inline-options select {
  width: 100px;
}
.toolbar-more {
  position: relative;
  border: 0;
  padding: 0;
  margin: 0;
}
.toolbar-more > summary {
  border-radius: 12px;
  padding: 9px 12px;
  background: #eaf0f680;
  font-size: 12px;
  min-height: 38px;
}
.toolbar-more[open] > summary {
  margin-bottom: 0;
}
.more-actions {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 155px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 12px 35px #23345424;
  z-index: 20;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.more-actions > .button {
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}
.account-toolbar .toolbar-more {
  margin-left: auto;
}
.account-toolbar > #selected-count {
  margin-left: 0;
}
.preset-row {
  grid-column: span 2;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.preset-button {
  padding: 11px 17px;
  border-radius: 14px;
  background: #eef2f7;
  color: var(--text);
  min-height: 44px;
  font-size: 14px;
}
.preset-button.active {
  background: #e6efff;
  color: #2460c4;
  box-shadow: inset 0 0 0 1px #c7d9fa;
  font-weight: 600;
}
.comment-toggle {
  grid-column: span 2;
  align-items: center;
  gap: 8px;
  display: flex;
}
.comment-toggle input {
  width: 18px;
  height: 18px;
  min-height: 0;
}
#content-options {
  margin: 0;
}
#content-options > .form-grid {
  padding-bottom: 8px;
}
.login-helper {
  color: var(--muted);
  line-height: 1.7;
}
.login-status {
  min-height: 1.5em;
  color: var(--muted);
  line-height: 1.6;
  margin-top: 14px;
}
#login-dialog #password-login {
  margin-top: 20px;
}
#login-dialog #login-code-submit {
  width: 100%;
}
#stop-current {
  margin-left: auto;
}
@media (max-width: 760px) {
  .settings-fold {
    padding: 6px 16px;
  }
  .detail-hint {
    max-width: 65%;
    font-size: 10px;
    text-align: right;
  }
  .more-actions {
    min-width: 150px;
  }
  .preset-row {
    gap: 7px;
  }
  .preset-button {
    flex: 1 1 auto;
    padding: 10px 12px;
    font-size: 13px;
  }
  .account-toolbar {
    gap: 8px;
  }
  .account-toolbar > #selected-count {
    width: auto;
    margin-top: 0;
  }
  .progress-heading {
    flex-wrap: wrap;
    gap: 10px;
  }
}
@media (max-width: 360px) {
  .preset-row,
  .comment-toggle {
    grid-column: span 1;
  }
}

.connection-error {
  position: fixed;
  inset: 24% 20px auto;
  max-width: 460px;
  margin: auto;
  padding: 26px;
  border-radius: 24px;
  z-index: 50;
}

.automation-switch{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin:12px 0}.automation-switch label{display:flex;align-items:center;gap:8px}.automation-switch input[type=checkbox]{width:18px;height:18px;min-height:0}.automation-switch select{flex:1;min-width:180px}.automation-switch label:has(#automation-enabled){font-weight:600}#automation-summary{font-size:12px;font-weight:400;color:var(--muted);margin-left:10px}
/* Account status uses evidence, not selected-row styling. */
.account-status{display:inline-flex;align-items:center;gap:6px;font-weight:650;font-size:13px;padding:5px 9px;border-radius:20px;white-space:nowrap}
.account-status::before{content:"";width:6px;height:6px;border-radius:50%;background:currentColor}
.status-online{color:#188747;background:#e7f5ec}.status-abnormal{color:#c93138;background:#fdecee}.status-offline{color:#777d87;background:#eef0f3}
.account-counts{display:grid;grid-template-columns:repeat(2,max-content);gap:5px 12px;color:#667085;font-size:12px}.account-counts b{font-variant-numeric:tabular-nums;color:#263247}
.proxy-state{max-width:220px;white-space:normal}.proxy-unusable{color:#c93138!important}.account-proxy-button{white-space:nowrap}
#target,#automation-target{resize:vertical;min-height:100px;line-height:1.7}#account-proxy-dialog{width:min(580px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;border:1px solid #e4e8ef;border-radius:24px;padding:24px;background:rgba(250,252,255,.97);backdrop-filter:blur(24px)}
#account-proxy-dialog::backdrop{background:rgba(24,35,58,.28);backdrop-filter:blur(5px)}#account-proxy-dialog .dialog-heading{display:flex;justify-content:space-between;align-items:start;margin-bottom:16px}#account-proxy-dialog .dialog-actions{display:flex;justify-content:end;gap:10px;margin-top:20px}#account-proxy-dialog .dialog-form{padding:0}#account-proxy-dialog small{line-height:1.7;color:#687386}#account-proxy-message{color:#b7313b;font-size:13px}
@media(max-width:600px){#account-proxy-dialog{padding:18px}#account-proxy-dialog .dialog-actions{flex-wrap:wrap}.account-counts{gap:4px 8px}}
/* Keep dense account information readable; the table scrolls within its card on phones. */
#accounts-body td{vertical-align:middle}#accounts-body td:nth-child(2){min-width:112px}#accounts-body td:nth-child(3){white-space:nowrap}#accounts-body td:nth-child(4){min-width:90px}#accounts-body td:last-child{white-space:nowrap}
#accounts-body .account-counts{min-width:105px}#accounts-body .proxy-state{min-width:100px}table:has(#accounts-body){min-width:900px}#accounts-body td small{line-height:1.5}

.account-count-button{border:0;background:transparent;color:inherit;font:inherit;cursor:pointer;padding:4px 5px;border-radius:8px;text-align:left;white-space:nowrap}
.account-count-button:hover{background:rgba(0,122,255,.09);color:#007aff}.account-count-button:focus-visible{outline:2px solid #007aff;outline-offset:1px}
.activity-dialog{width:min(680px,calc(100vw - 28px))}.activity-list{display:grid;gap:10px;max-height:55vh;overflow:auto;margin:16px 0}
.activity-item{padding:14px;border:1px solid rgba(127,127,127,.16);border-radius:16px;background:rgba(255,255,255,.45);min-width:0}.activity-item h3{margin:0 0 6px;font-size:15px;overflow-wrap:anywhere}.activity-item small{display:block;color:#697386;margin:5px 0;overflow-wrap:anywhere}.activity-item a{color:#007aff}.activity-item p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px;margin:8px 0 0}.inline-error{color:#d73438;white-space:pre-wrap}.button.danger{background:#e34145;color:#fff}

/* Function tabs: one mounted panel per workspace, no business state reset. */
.workspace-tabs {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 5px;
  margin: 0 0 22px;
  width: fit-content;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 16px;
  background: rgba(226,233,243,.68);
  box-shadow: inset 0 1px 3px #24355008;
  scrollbar-width: none;
}
.workspace-tabs::-webkit-scrollbar { display: none; }
.workspace-tabs [role="tab"] {
  flex: 0 0 auto;
  padding: 11px 19px;
  min-height: 44px;
  border-radius: 12px;
  font-size: 13px;
  font-weight: 600;
  color: #65728a;
  white-space: nowrap;
  transition: background .18s, color .18s, box-shadow .18s;
}
.workspace-tabs [role="tab"]:hover { background: #ffffff70; color: #24324a; }
.workspace-tabs [aria-selected="true"] {
  background: #ffffff;
  color: #246be0;
  box-shadow: 0 2px 8px #334d7010, 0 1px 2px #334d7008;
}
.workspace-panel { min-width: 0; animation: panel-appear .18s ease-out; }
.workspace-panel > .card { margin-top: 0; }
.workspace-panel > .card + .card { margin-top: 18px; }
.panel-actions { display: flex; justify-content: flex-end; margin-top: 14px; }
.panel-context, .tab-footnote {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 4px 2px 14px;
  color: var(--secondary);
  font-size: 12px;
}
.tab-footnote { padding: 12px 2px 0; }
.panel-context .text-button, .tab-footnote .text-button { color: var(--blue); min-height: 40px; }
.activity-strip {
  position: sticky;
  bottom: 16px;
  z-index: 8;
  padding: 16px 20px;
  border-radius: 20px;
  margin-top: 22px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 8px 28px #22395613;
  backdrop-filter: blur(18px);
}
.activity-strip .progress-heading { gap: 14px; margin-bottom: 12px; }
.activity-strip .progress-heading > div:first-child { min-width: 0; flex: 1; }
.activity-strip .activity-caption { display: block; font-size: 10px; color: var(--muted); margin-bottom: 4px; }
.activity-strip #current-step { font-size: 13px; line-height: 1.5; overflow-wrap: anywhere; }
.activity-strip .percentage { flex-shrink: 0; }
.activity-strip .percentage strong { font-size: 24px; }
.activity-strip .activity-link { display: block; margin: 8px 0 -4px auto; color: var(--blue); }
.activity-strip .progress-track { margin-bottom: 0; }
.page[data-view="logs"] .log-lines { min-height: 320px; max-height: 55vh; }
.page[data-view="logs"] .log-toolbar { padding-top: 0; }
@keyframes panel-appear { from { opacity: .5; transform: translateY(3px); } to { opacity: 1; transform: translateY(0); } }
@media (max-width: 760px) {
  .workspace-tabs { width: 100%; margin-bottom: 16px; border-radius: 14px; }
  .workspace-tabs [role="tab"] { flex-grow: 1; padding: 10px 13px; font-size: 12px; }
  .activity-strip { position: static; padding: 14px 16px; margin-top: 18px; border-radius: 18px; }
  .activity-strip .progress-heading { gap: 10px; }
  .activity-strip .progress-heading > div:first-child { flex-basis: 100%; }
  .activity-strip #stop-current { margin-left: 0; }
  .activity-strip .percentage { margin-left: auto; }
  .page-heading { gap: 14px; }
  .page[data-view="logs"] .log-lines { min-height: 280px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-panel { animation: none; }
  .workspace-tabs [role="tab"] { transition: none; }
}

/* Inline account content controls replace the standalone content tab. */
.account-content-fold { margin-top: 18px; border: 1px solid #dbe3ef; border-radius: 20px; background: #ffffffc7; }
.account-content-fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.account-content-fold > summary::-webkit-details-marker { display: none; }
.account-content-fold > summary::after { content: "+"; color: var(--secondary); font-size: 20px; }
.account-content-fold[open] > summary::after { content: "−"; }
.account-content-fold .detail-hint { margin-left: auto; overflow-wrap: anywhere; font-weight: 400; max-width: 65%; text-align: right; }
.account-content-fold > #content-card { margin: 0; border-radius: 0 0 20px 20px; box-shadow: none; border-top: 1px solid var(--line); }
.activity-note-link { display: inline-block; max-width: 100%; overflow-wrap: anywhere; font-weight: 500; line-height: 1.6; }
.activity-item h3:empty { display: none; }
@media (max-width: 760px) { .account-content-fold > summary { padding: 16px; } }

/* Minimal light glass visual direction; business platform remains Android. */
:root { --bg:#f5f5f7; --ink:#1d1d1f; --secondary:#86868b; --muted:#a0a0a7; --blue:#007aff; --line:#d2d2d733; }
body { background:#f5f5f7; background-image:none; }
.glass { background:rgba(255,255,255,.8); border:1px solid #fff; box-shadow:0 4px 22px #00000004; backdrop-filter:blur(24px); }
h1 { font-size:28px; font-weight:620; letter-spacing:-.8px; } h2 {font-weight:600;}
.sidebar { background:rgba(255,255,255,.75); box-shadow:none; }
.nav-label,.breadcrumb>span,.page-footer,.sidebar-bottom small,.page-heading p,.card-header p,.card-footer>small,.card-note,.feat-list,.mcp-art,.detail-hint#environment-summary,.empty-state p,.log-placeholder,.login-helper,.login-hint {display:none;}
.topbar { background:transparent; } .card {border-radius:24px;} .card-header{padding-bottom:14px;}
.button.primary {background:#007aff;box-shadow:none;}.button.secondary {background:#f0f0f3;color:#1d1d1f;border:none;}
.button {border-radius:13px;font-weight:500;} input,select,textarea{background:#f7f7fa;border:1px solid #e5e5ea;border-radius:12px;}
.workspace-tabs {background:#e9e9ee;border:none;border-radius:13px;box-shadow:none;gap:3px;}
.workspace-tabs [role=tab]{border-radius:10px;color:#86868b;padding:10px 18px;}.workspace-tabs [aria-selected=true]{color:#1d1d1f;box-shadow:0 2px 5px #0000000b;}
.nav-item.active {background:#edf4ff;color:#007aff;}.soft-icon{background:#f3f3f7!important;color:#86868b!important;border-radius:12px;}
.metric{box-shadow:none;background:#fff;}.metric .soft-icon{display:none;}.metrics{gap:12px;}
.activity-strip {background:#fffffff0;box-shadow:0 3px 16px #00000005;border:1px solid #e5e5ea;}
.ip-status {font-size:12px;font-weight:600;display:inline-flex;align-items:center;gap:6px;white-space:nowrap;line-height:1.7;}
.ip-status::before {content:"";width:5px;height:5px;border-radius:50%;background:currentColor;}
.ip-good {color:#23994d!important;}.ip-bad {color:#e33838!important;}.ip-pending {color:#8e8e93!important;}
.login-ip-row{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 0;}.login-ip-row button{color:#007aff;}
#account-proxy-dialog .dialog-heading p,#account-proxy-message{font-size:12px;line-height:1.5;}.account-content-fold{border-color:#e5e5ea;background:#fff;}
.account-counts{font-size:11px;color:#86868b;}.table-wrap table th{color:#86868b;font-weight:500;}.account-proxy-button{color:#007aff;}
@media(max-width:760px){h1{font-size:24px;}.sidebar{background:#ffffffeb;}.workspace-tabs [role=tab]{padding:10px 12px;}}

#login-status:empty { display:none; }
