.doubao-desk {
  font-family: Inter, system-ui, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: #e6edf6;
  background: #18253a;
  font-size: 13px;
}
.doubao-desk {
  margin: 0;
  height: 100dvh;
  display: grid;
  grid-template-columns: 158px minmax(0, 1fr);
  overflow: hidden;
}
button { font: inherit; cursor: pointer; }
.doubao-desk button:focus-visible { outline: 2px solid #76b7ff; outline-offset: 2px; }
.doubao-desk .rail {
  background: #1c2a41;
  border-right: 1px solid #43526b;
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: auto;
}
.doubao-desk .brand {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  gap: 8px;
  background: #172239;
  border-bottom: 1px solid #35425b;
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
}
.doubao-desk .mark {
  color: #fff;
  background: #3866a8;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border-radius: 4px;
  font-size: 12px;
}
.doubao-desk .rail-menu { padding: 9px 7px 6px; }
.doubao-desk .rail-menu > button {
  padding: 6px 8px;
  color: #bac8da;
  line-height: 18px;
}
.doubao-desk .rail-menu > .active {
  background: #2a496a;
  border-radius: 3px;
  color: #f0f7ff;
}
.doubao-desk .rail-label {
  margin: 2px 8px 4px;
  padding: 7px 5px 3px;
  border-top: 1px solid #35425b;
  color: #a9bbd2;
  font-size: 11px;
  font-weight: 600;
}
.doubao-desk .accounts {
  display: grid;
  gap: 3px;
  margin: 0;
  padding: 0 7px;
  list-style: none;
}
.doubao-desk .account {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 5px 6px;
  min-height: 28px;
  gap: 5px;
  background: #22344c;
  border: 1px solid #34465f;
  border-radius: 3px;
  color: #dbe6f3;
  white-space: nowrap;
}
.doubao-desk .account:hover { background: #2a415e; }
.doubao-desk .account[aria-pressed="true"] {
  background: #344c68;
  border-color: #7393bd;
  color: #fff;
}
.doubao-desk .account-name { font-size: 12px; }
.doubao-desk .switch-label {
  background: #a75d36;
  color: #fff4e6;
  min-width: 33px;
  border-radius: 2px;
  text-align: center;
  line-height: 16px;
  font-size: 10px;
}
.doubao-desk .account[aria-pressed="true"] .switch-label {
  background: #d38a47;
  color: #161923;
}
main {
  display: grid;
  grid-template-rows: 42px 25px minmax(0, 1fr);
  min-width: 0;
  min-height: 0;
}
.doubao-desk .tabs {
  background: #172239;
  border-bottom: 1px solid #43526b;
  padding: 0 9px 0 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.doubao-desk .tab, .doubao-desk .connect-button {
  border: 1px solid #526585;
  border-radius: 3px;
  padding: 3px 11px;
  color: #edf5ff;
  background: #253754;
  min-height: 25px;
}
.doubao-desk .tab[data-account="1"] { border-bottom-color: #55a88c; }
.doubao-desk .tab[data-account="2"] { border-bottom-color: #8d7bd5; }
.doubao-desk .tab[aria-pressed="true"] { background: #3b5681; border-color: #7f9acc; }
.doubao-desk .connect-button { margin-left: auto; background: #253e54; }
.doubao-desk .connect-button:disabled { opacity: .55; cursor: wait; }
.doubao-desk .location {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 9px;
  background: #243349;
  border-bottom: 1px solid #4a5a70;
  color: #c6d4e6;
  font-size: 11px;
}
.screen-status { margin-left: auto; }
.doubao-desk .stage {
  min-width: 0;
  min-height: 0;
  background: #fff;
  display: grid;
  place-items: stretch;
  overflow: hidden;
}
.doubao-desk .stage img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: contain;
  object-position: top left;
}
@media (max-width: 720px) {
  .doubao-desk { grid-template-columns: 105px minmax(0, 1fr); }
  .doubao-desk .brand { padding: 0 5px; gap: 4px; font-size: 11px; }
  .doubao-desk .mark { width: 16px; height: 16px; }
  .doubao-desk .account { padding-inline: 3px; }
  .doubao-desk .account-name { font-size: 10px; }
  .doubao-desk .switch-label { min-width: 23px; font-size: 9px; }
  .doubao-desk .tab, .doubao-desk .connect-button { padding-inline: 5px; white-space: nowrap; font-size: 11px; }
}

.doubao-desk { line-height: 1.35; }
.doubao-desk .brand { height: 42px; margin: 0; }
.doubao-desk .brand .mark { margin: 0; width: 21px; height: 21px; border-radius: 4px; font-size: 12px; background: #3866a8; }
.doubao-desk .rail-menu > button {
  display: block;
  width: 100%;
  text-align: left;
  background: transparent;
  border: 0;
  border-radius: 3px;
}
.doubao-desk .rail-menu > button:hover { background: #2a415e; }
.doubao-desk .stage { position: relative; }
.doubao-desk .stage [hidden] { display: none; }
.doubao-desk .stage .screen { user-select: none; touch-action: none; }
.doubao-desk .screen-input {
  position: absolute;
  top: 4px;
  left: 4px;
  opacity: 0;
  width: 1px;
  height: 1px;
  padding: 0;
  pointer-events: none;
}
.doubao-desk .pair {
  align-self: start;
  justify-self: start;
  width: min(100%, 520px);
  padding: 22px 25px;
  color: #23344c;
  color-scheme: light;
}
.doubao-desk .pair h1 { margin: 0 0 8px; font-size: 20px; }
.doubao-desk .pair a { color: #265ca5; }
.doubao-desk .pair label { display: grid; margin: 14px 0 8px; }
.doubao-desk .pair input { background: #fff; color: #172239; border: 1px solid #9aacc4; }
.doubao-desk .pair button { background: #2e5180; color: #fff; padding: 5px 15px; }
.doubao-desk .pair-error { color: #aa3028; }

@media (max-width: 720px) { .doubao-desk .brand .mark { width: 16px; height: 16px; } }
