.workspace-switcher,
.workspace-static {
  position: relative;
  flex: 0 0 auto;
  color: #332820;
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0;
}

.workspace-trigger,
.workspace-static {
  min-width: 142px;
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  color: #332820;
  background: #fffaf0;
  border: 1px solid #dfcfb7;
  border-radius: 7px;
}

.workspace-trigger {
  cursor: pointer;
  text-align: left;
}

.workspace-trigger:hover {
  background: #fff4d8;
  border-color: #cba878;
}

.workspace-trigger > svg,
.workspace-static > svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  color: #b56d0c;
}

.workspace-trigger > span,
.workspace-static > span {
  min-width: 0;
  display: grid;
  flex: 1;
  line-height: 1.15;
}

.workspace-trigger small,
.workspace-static small {
  color: #81776f;
  font-size: 9px;
  font-weight: 700;
}

.workspace-trigger strong,
.workspace-static strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-trigger .workspace-chevron {
  width: 14px;
  height: 14px;
  flex-basis: 14px;
  color: #81776f;
}

.workspace-menu {
  position: absolute;
  z-index: 1300;
  top: calc(100% + 8px);
  right: 0;
  width: 292px;
  padding: 7px;
  background: #fff;
  border: 1px solid #ded6cb;
  border-radius: 8px;
  box-shadow: 0 18px 42px rgba(58, 43, 31, 0.2);
}

.workspace-menu[hidden] { display: none; }

.workspace-menu-head {
  padding: 7px 9px 9px;
  color: #81776f;
  font-size: 11px;
  font-weight: 800;
}

.workspace-option {
  width: 100%;
  min-height: 58px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  color: #332820;
  background: transparent;
  border: 0;
  border-radius: 6px;
  cursor: pointer;
  text-align: left;
}

.workspace-option:hover { background: #faf7f1; }
.workspace-option.is-active { background: #fff3d2; }

.workspace-option-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  display: grid;
  place-items: center;
  color: #9c6414;
  background: #fff8e8;
  border-radius: 7px;
}

.workspace-option-icon svg { width: 18px; height: 18px; }

.workspace-option-copy {
  min-width: 0;
  display: grid;
  flex: 1;
  line-height: 1.3;
}

.workspace-option-copy strong { font-size: 13px; font-weight: 900; }
.workspace-option-copy small { color: #81776f; font-size: 10px; font-weight: 600; }
.workspace-check { width: 17px; height: 17px; flex: 0 0 17px; color: #3c8b52; }

.workspace-quick-switch {
  width: min(1180px, 100%);
  min-height: 64px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto 16px;
  padding: 10px 12px;
  color: #332820;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid #ded6cb;
  border-left: 4px solid #f4b63d;
  border-radius: 8px;
  box-shadow: 0 2px 0 rgba(79, 61, 45, 0.07);
  font-family: "Noto Sans TC", "PingFang TC", "Microsoft JhengHei", sans-serif;
  letter-spacing: 0;
}

.workspace-quick-title {
  min-width: 0;
  flex: 0 1 168px;
  display: flex;
  align-items: center;
  gap: 9px;
}

.workspace-quick-title-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  flex: 0 0 36px;
  color: #a96509;
  background: #fff3d2;
  border-radius: 7px;
}

.workspace-quick-title-icon svg { width: 18px; height: 18px; }
.workspace-quick-title > span:last-child { min-width: 0; display: grid; line-height: 1.25; }
.workspace-quick-title strong { font-size: 12px; font-weight: 900; }
.workspace-quick-title small { color: #81776f; font-size: 9px; font-weight: 650; }

.workspace-quick-options {
  min-width: 0;
  flex: 1 1 280px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
}

.workspace-quick-option {
  min-width: 112px;
  max-width: 100%;
  flex: 1 1 112px;
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 7px 11px;
  color: #5f554e;
  background: #fff;
  border: 1px solid #d8cfc3;
  border-radius: 7px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 850;
  white-space: nowrap;
}

.workspace-quick-option:hover { color: #332820; background: #fffaf0; border-color: #cba878; }
.workspace-quick-option.is-active { color: #75440f; background: #fff3d2; border-color: #d6a942; box-shadow: inset 0 0 0 1px #f0c766; }
.workspace-quick-option > svg { width: 17px; height: 17px; flex: 0 0 17px; }
.workspace-quick-option .workspace-quick-check { width: 15px; height: 15px; color: #3c8b52; }

@media (max-width: 820px) {
  .workspace-trigger,
  .workspace-static {
    min-width: 104px;
    max-width: 116px;
    min-height: 40px;
    gap: 6px;
    padding: 4px 6px;
  }

  .workspace-trigger > svg,
  .workspace-static > svg { width: 18px; height: 18px; flex-basis: 18px; }
  .workspace-trigger small,
  .workspace-static small { display: none; }
  .workspace-trigger strong,
  .workspace-static strong { font-size: 11px; }
  .workspace-menu { position: fixed; top: 68px; right: 10px; left: 10px; width: auto; }
  .workspace-quick-switch { align-items: stretch; flex-direction: column; flex-wrap: nowrap; gap: 9px; padding: 10px; }
  .workspace-quick-title { min-width: 0; width: 100%; flex: 0 0 auto; }
  .workspace-quick-options { width: 100%; flex: 0 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(136px, 1fr)); justify-content: stretch; }
  .workspace-quick-option { min-width: 0; width: 100%; }
  .workspace-quick-option:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (max-width: 520px) {
  .workspace-trigger,
  .workspace-static { min-width: 42px; width: 42px; max-width: 42px; justify-content: center; }
  .workspace-trigger > span,
  .workspace-static > span,
  .workspace-trigger .workspace-chevron { display: none; }
}
